Recherche avancée

Médias (0)

Mot : - Tags -/clipboard

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (43)

Sur d’autres sites (8557)

  • Anomalie #2442 : Insertion de vidéo dans un article

    5 décembre 2011, par cy_altern -

    oups ! fausse alerte : la config du SPIP testé n’avait pas les document associés autorisés avec les articles... (ceci dit c’est beta qu’elle ne le soit pas par défaut lorsque l’on crée le SPIP...)

  • Querying an audio/video file for information

    4 juin 2013, par TRiG

    I want a PHP function which receives the path to a file and returns an array of information about it. The PHP file can call FFmpeg.

    Returned data should be something like

    Array(
       [mime]          => video/ogg
       [container]     => Ogg
       [video]         => Theora
       [audio]         => Vorbis
       [duration]      => 20.3 // in seconds
    )

    Array(
       [mime]          => audio/ogg
       [container]     => Ogg
       [video]         =>
       [audio]         => FLAC
       [duration]      => 3
    )

    Array(
       [mime]          => image/gif
       [container]     => GIF
       [video]         => Animated GIF
       [audio]         =>
       [duration]      => 2
    )

    Array(
       [mime]          => video/webm
       [container]     => WebM
       [video]         => VP8
       [audio]         => Vorbis
       [duration]      => 900.7
    )

    false // not a media file

    I've never worked with FFmpeg or with PHP's shell_exec() function, but it seems that FFmpeg will give information about videos (or audio files) in a fairly hard-to-parse format. I assume that something like this is possible, though.

  • How to convert video to `m4v` with `ffmpeg` ?

    9 mai 2016, par Silver Light

    I’m trying to encode a video to m4v, so I can play it using jplayer on my website, but having troubles while specifieng correct parameter to ffmpeg. Here is the command I use :

    ffmpeg -i 1.avi -vcodec mpeg4 -f m4v -qmax 8 1.m4v 2>&1

    The video I get with this command won’t play in jplayer and even in Totem Movie Player (on ubuntu). But if I try the demo video from jplayer website evrything works fine.

    Can anyone give me a hint on what parameters I need to specify to ffmpeg to get a working m4v video, like the one with a bunny ?