Recherche avancée

Médias (2)

Mot : - Tags -/media

Autres articles (111)

  • 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

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • MediaSPIP Core : La Configuration

    9 novembre 2010, par

    MediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
    Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...)

Sur d’autres sites (12848)

  • Simple mp3 audio extract from video (mp4/avi/webm etc) using Python script (moviepy)

    28 mai 2016, par Bam

    I’m trying to run this very simple python script to extract mp3 from a video.

    Here’s the code :

    import moviepy.editor as mp
    clip = mp.VideoFileClip("test.webm")
    clip.audio.write_audiofile("test.mp3")

    I’m running this on a Mac and moviepy/ffmpeg seem to be correctly installed. I get the following error :

    Traceback (most recent call last):
     File "/Users/XXXXXX/Code/python/000014 - convert mp4 to mp3.py", line 2, in <module>
       clip = mp.VideoFileClip("test.webm")
     File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/moviepy/video/io/VideoFileClip.py", line 55, in __init__
       reader = FFMPEG_VideoReader(filename, pix_fmt=pix_fmt)
     File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/moviepy/video/io/ffmpeg_reader.py", line 32, in __init__
       infos = ffmpeg_parse_infos(filename, print_infos, check_duration)
     File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/moviepy/video/io/ffmpeg_reader.py", line 250, in ffmpeg_parse_infos
       if "No such file or directory" in lines[-1]:
    IndexError: list index out of range
    </module>

    The source file is in the same directory as the code is being run in.

    The same code ran fine on a Windows pc.

    Any ideas ? thanks

  • OSError : MoviePy error : failed to read the duration of file

    3 août 2022, par ZackR

    I'm receiving the error below from a lambda deployment with a Python3.9 runtime environment and x86_64 architecture. I attempted using the both most recent ffmpeg binary snapshot snapshot and release from this link, [https://evermeet.cx/ffmpeg/][1].&#xA;I checked the file info for duration and the attribute exists with a value of 16 seconds.

    &#xA;

    What am I missing here ??

    &#xA;

    [ERROR] OSError: MoviePy error: failed to read the duration of file /tmp/lgnd-assets-public-drops---sample-video.mp4.&#xA;Here are the file infos returned by ffmpeg:&#xA;&#xA;-i: /var/task/ffmpeg: cannot execute binary file&#xA;&#xA;Traceback (most recent call last):&#xA;&#xA0;&#xA0;File "/var/task/CreateThumbnail.py", line 99, in handler&#xA;&#xA0;&#xA0;&#xA0;&#xA0;create_video_thumbnail(bucket, key, file_name, extension)&#xA;&#xA0;&#xA0;File "/var/task/CreateThumbnail.py", line 72, in create_video_thumbnail&#xA;&#xA0;&#xA0;&#xA0;&#xA0;resize_video(thumb_download_path, thumb_upload_path)&#xA;&#xA0;&#xA0;File "/var/task/CreateThumbnail.py", line 30, in resize_video&#xA;&#xA0;&#xA0;&#xA0;&#xA0;with VideoFileClip(video_path) as video:&#xA;&#xA0;&#xA0;File "/var/task/moviepy/video/io/VideoFileClip.py", line 88, in __init__&#xA;&#xA0;&#xA0;&#xA0;&#xA0;self.reader = FFMPEG_VideoReader(filename, pix_fmt=pix_fmt,&#xA;&#xA0;&#xA0;File "/var/task/moviepy/video/io/ffmpeg_reader.py", line 35, in __init__&#xA;&#xA0;&#xA0;&#xA0;&#xA0;infos = ffmpeg_parse_infos(filename, print_infos, check_duration,&#xA;&#xA0;&#xA0;File "/var/task/moviepy/video/io/ffmpeg_reader.py", line 296, in ffmpeg_parse_infos&#xA;&#xA0;&#xA0;&#xA0;&#xA0;raise IOError(("MoviePy error: failed to read the duration of file %s.\n"&#xA;

    &#xA;

    Thanks,&#xA;Zack

    &#xA;

  • rtmp : Support reading interleaved chunks.

    17 septembre 2013, par Josh Allmann
    rtmp : Support reading interleaved chunks.
    

    A given packet won’t always come in contiguously ; sometimes
    they may be broken up on chunk boundaries by packets of another
    channel.

    This support primarily involves tracking information about the
    data that’s been read, so the reader can pick up where it left
    off for a given channel.

    As a side effect, we no longer over-report the bytes read if
    (toread = MIN(size, chunk_size)) == size

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

    • [DH] libavformat/rtmppkt.c
    • [DH] libavformat/rtmppkt.h
    • [DH] libavformat/rtmpproto.c