Recherche avancée

Médias (91)

Autres articles (65)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (9446)

  • Running cmd in python (ffmpeg)

    29 mars 2017, par Coolcrab

    Atm I have this as my code, the first line seems to work well but the 2nd gives errrors.

    os.chdir('C://Users/Alex/Dropbox/code stuff/test')
    subprocess.call(['ffmpeg', '-i', 'test%d0.png', 'output.avi'])

    error :

    Traceback (most recent call last):
     File "C:\Users\Alex\Dropbox\code stuff\solarsystem.py", line 56, in <module>
       subprocess.call(['ffmpeg', '-i', 'test%d0.png', 'output.avi'])
     File "C:\Python27\lib\subprocess.py", line 524, in call
       return Popen(*popenargs, **kwargs).wait()
     File "C:\Python27\lib\subprocess.py", line 711, in __init__
       errread, errwrite)
     File "C:\Python27\lib\subprocess.py", line 948, in _execute_child
       startupinfo)
    WindowsError: [Error 2] The system cannot find the file specified
    </module>
  • avi encoded to streaming mp4 or webmnot playing in html5 player

    30 mai 2013, par Vprnl

    [EDIT]

    I'm trying to get ffmpeg to encode various AVI files to mp4 for streaming purposes

    I use this nodejs to start FFMPEG.

    When I try this (webm) (some settings are wrapped by the node module but produce the default FFMPEG command) with this command :

           .withVideoCodec(&#39;libvpx&#39;)
           .addOptions([&#39;-bf 8&#39;,&#39;-bt 240k&#39;,&#39;-preset fast&#39;,&#39;-strict -2&#39;,&#39;-b:v 320K&#39;,&#39;-bufsize 62000&#39;, &#39;-maxrate 620k&#39;,&#39;-movflags +empty_moov&#39;,&#39;-y&#39;])
           .withAudioBitrate(&#39;192k&#39;)
           .withAudioCodec(&#39;libvorbis&#39;)
           .toFormat(&#39;webm&#39;)

    The video get's streamed properly to the client but the duration isn't passed on. So the video has a duration of 'infinite'.

    So I tried to encode with H264. Which also works (I see the duration being set in the client) but no picture sadly.

    For H264 I use :

      .addOptions([&#39;-y&#39;,&#39;-vcodec libx264&#39;,&#39;-bf 8&#39;,&#39;-bt 240k&#39;,&#39;-preset fast&#39;,&#39;-strict -2&#39;,&#39;-b:v 320K&#39;,&#39;-bufsize 62000&#39;, &#39;-maxrate 620k&#39;,&#39;-acodec aac&#39;,&#39;-ab 128k&#39;,&#39;-movflags +empty_moov&#39;])
      .toFormat(&#39;mp4&#39;)

    I get this log :

    enter image description here

    I hope someone can point me in the right direction. Thanks !

    The client just gives an undefined error.
    I hope someone can point me in the right direction.

    Thanks

  • A random pixel on a frame. (ffmpeg)

    4 juin 2013, par Chris Russo

    Hello folks of SO !

    We're trying to do some very small and simple code in PHP to generate a variation of a video, using always the same file.

    The script would have to make a small pixel mark, on random or specific frame of the video file, and this would have to be streamed in real time.

    Here's some pseudo code to explain my idea :

    $frame = $_GET[frame];
    $videofile = &#39;video.avi&#39;;

    make_random_red_pixel_mark($videofile, $frame);

    Does anyone know if this is possible using ffmpeg ? As well, it is of extreamly importance for us, to execute this procedure as fast as possible.

    A solution that would imply reprocessing the whole video, won't be useful for our purposes. It should be something like a closed caption, or a quick image / overlay filter that could be applied without an entire video reprocessing. As well, we can't put the overlay using Javascript nor any HTML approach, since the actual manipulation has to be on the video file itself.

    The quality, and framerate of the original video, should be kept intact. Perhaps some other PHP module or software that could be execute from PHP using an exec() ?

    Any recommendation ?

    Thanks in advance !!
    Chris C. Russo