Recherche avancée

Médias (1)

Mot : - Tags -/sintel

Autres articles (53)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

Sur d’autres sites (9851)

  • qt-faststart : Fix the signedness of variables keeping the ftello return values

    29 octobre 2012, par Michael Niedermayer
    qt-faststart : Fix the signedness of variables keeping the ftello return values
    

    These variables are assigned the return values of ftello, which
    returns an off_t, which is a signed type. On errors, ftello returns
    - 1, thus make sure this error return value can be stored properly.

    Signed-off-by : Martin Storsjö <martin@martin.st>

    • [DBH] tools/qt-faststart.c
  • PySceneDetect FFmpeg Not Available

    14 août 2023, par Dmitriy Pushkarev

    I already installed FFmpeg and this is available in terminal I can convert video and etc, but it's completely not available in PySceneDetect.

    &#xA;

    pip installed FFmpeg-python and FFmpeg library and FFmpeg itself in system.

    &#xA;

    PySceneDetect returns :

    &#xA;

    ffmpeg could not be found on the system. Please install ffmpeg to enable video output support.&#xA;

    &#xA;

    I think trouble with path, but can't put path in PySceneDetect. I can use path to binary FFmpeg, only in ffmpeg-python library, like this and it's working

    &#xA;

    This code working fine :

    &#xA;

    Here i using only FFmpeg-python library

    &#xA;

    stream = ffmpeg.input(&#x27;vi0.mp4&#x27;)&#xA;stream = ffmpeg.filter(stream, &#x27;fps&#x27;, fps=10, round=&#x27;up&#x27;)&#xA;stream = ffmpeg.output(stream, &#x27;vi1.mp4&#x27;)&#xA;ffmpeg.run(stream,cmd=&#x27;./ffmpeg&#x27;)&#xA;

    &#xA;

    But can't it to get work with PySceneDetect

    &#xA;

    print(scenedetect.video_splitter.is_ffmpeg_available())&#xA;

    &#xA;

    return False

    &#xA;

    split_video_ffmpeg(video_path, scene_list, show_progress=False)&#xA;

    &#xA;

    returns "ffmpeg could not be found on the system. Please install ffmpeg to enable video output support."

    &#xA;

  • How to upload object to a bucket in Google Cloud Platform from Python script

    7 juillet 2016, par Bryan

    The goal of this script is to extract audio from a video file using ffmpeg and upload it into a bucket on Google Cloud Platform each time it is called. Eventually I will have to extract audio from a large list of videos, so ideally I would want my script to extract and subsequently upload it into the cloud.

    My confusion is how to use GCP API to upload my object into a bucket. Any advice would be greatly appreciated !

    Link for reference : https://cloud.google.com/storage/docs/json_api/v1/json-api-python-samples#setup-code

    import subprocess
    import sys
    import re

    fullVideo = sys.argv[1]
    title = re.findall('^([^.]*).*', fullVideo)
    title = str(title[0])
    subprocess.call('ffmpeg -i ' + fullVideo + ' -vn -ab 128k ' + title + '.flac', shell = True)

    def upload_object(bucket, filename, readers, owners):
       service = create_service()

       # This is the request body as specified:
       # http://g.co/cloud/storage/docs/json_api/v1/objects/insert#request
       body = {
           'name': filename,
       }

       # If specified, create the access control objects and add them to the
       # request body
       if readers or owners:
           body['acl'] = []

       for r in readers:
           body['acl'].append({
               'entity': 'user-%s' % r,
               'role': 'READER',
               'email': r
           })
       for o in owners:
           body['acl'].append({
               'entity': 'user-%s' % o,
               'role': 'OWNER',
               'email': o
           })

       # Now insert them into the specified bucket as a media insertion.
       # http://g.co/dev/resources/api-libraries/documentation/storage/v1/python/latest/storage_v1.objects.html#insert
       with open(filename, 'rb') as f:
           req = service.objects().insert(
               bucket=bucket, body=body,
               # You can also just set media_body=filename, but # for the sake of
               # demonstration, pass in the more generic file handle, which could
               # very well be a StringIO or similar.
               media_body=http.MediaIoBaseUpload(f, 'application/octet-stream'))
           resp = req.execute()

       return resp