Recherche avancée

Médias (0)

Mot : - Tags -/alertes

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

Autres articles (40)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

  • Taille des images et des logos définissables

    9 février 2011, par

    Dans beaucoup d’endroits du site, logos et images sont redimensionnées pour correspondre aux emplacements définis par les thèmes. L’ensemble des ces tailles pouvant changer d’un thème à un autre peuvent être définies directement dans le thème et éviter ainsi à l’utilisateur de devoir les configurer manuellement après avoir changé l’apparence de son site.
    Ces tailles d’images sont également disponibles dans la configuration spécifique de MediaSPIP Core. La taille maximale du logo du site en pixels, on permet (...)

  • Gestion de la ferme

    2 mars 2010, par

    La ferme est gérée dans son ensemble par des "super admins".
    Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
    Dans un premier temps il utilise le plugin "Gestion de mutualisation"

Sur d’autres sites (4844)

  • Applying multiple filters at once with FFMPEG

    9 mars 2017, par Parziphal

    I have the need to apply fadein and overlay filters to a video. Is it possible to apply 2 filters at once ?

    I got :

    ffmpeg -i input.mpg -vf "movie=watermark.png [logo]; [in][logo] overlay=W-w-10:H-h-10 [out]" output.mpg

    I’m trying to add fade=in:0:20, but if I add a new -vf parameter, it will overwrite the preceding one, and if I add :

    -vf "fade=in:0:20; movie=......"

    it won’t work.

    Is this possible or do I have to run FFmpeg twice ?

  • PHP - FFMPEG - Unable to apply multiple regular expressions on media output

    9 avril 2012, par Parth G

    I am writing a php script (I have to use php) to cycle through a dir of media files and displaying media information in a chart.

    Right now, I'm trying to do it on 1 file.

    I can successfully do so. I currently can parse the output (using regular expressions) to obtain information such as file name, duration, resolution, etc

    I was told that I can combine the regular expressions to make it more efficient.

    When I do however, I am unable to parse the ffmpeg output correctly.

    Consequently, I've tried copying the output to a string and parsing that using multiple expressions and it works just fine.

    Any help is appreciated.

    Thanks.


    Working code

    $media_info = "'test.mkv': Metadata: creation_time : 2011-03-12 09:04:18 Duration: 00:21:44.10, start: 0.000000, bitrate: 500 kb/s Chapter #0.0: start 0.097000, end 1304.107000 Metadata: title : 00:00:00.097 Stream #0:0: Video: h264 (High), yuv420p, 720x400 [SAR 80:81 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default) Stream #0:1: Audio: aac, 48000 Hz, stereo, s16 (default) At least one output file must be specified";


    $file = array();
    $file_test = preg_match_all("/'([a-zA-Z0-9\._]*\.[a-zA-Z0-9]*)'.* Duration: ([0-9]{2,}:[0-9]{2}:[0-9]{2}\.[0-9]*)/", $media_info, $file);;
    var_dump($file)

    Not Working Code

    ob_start();
    passthru("C:\\wamp\\www\\ffmpeg\\bin\\ffmpeg.exe -i \"{$videofile}\" 2>&1");
    $raw_data = ob_get_contents();
    ob_end_clean();


    $ffmpeg_info =  explode("from", $raw_data);


    $media_info = $ffmpeg_info[1];

    $file = array();
    $file_test = preg_match_all("/'([a-zA-Z0-9\._]*\.[a-zA-Z0-9]*)'.* Duration: ([0-9]{2,}:[0-9]{2}:[0-9]{2}\.[0-9]*)/", $media_info, $file);;
    var_dump($file)

    New Code

    I tried using the ffmpeg-php extension and the following works (except for printing the bit rate)

    $movie = new ffmpeg_movie($video_file);

    echo $movie->getFilename();
    echo "<br />" ;
    echo $movie->getDuration();
    echo "<br />" ;
    echo $movie->getFrameWidth();
    echo "x";
    echo $movie->getFrameHeight();
    echo "<br />" ;
    echo $movie->getBitRate();
    echo "<br />" ;
    echo $movie->getVideoBitRate();
    echo "<br />" ;
    echo $movie->getAudioBitRate();
    echo "<br />" ;
    echo $movie->getVideoCodec();
    echo "<br />" ;
    echo $movie->getAudioCodec();
    ?>
  • FFMpeg-example of encoding, decoding and playing frames of MPEG4-video continiously ?

    28 mars 2012, par Anders Branderud

    I am looking for an example-code for FFMPEG, which does the following :

    1. Encodes a file using the MPEG4-codec frame by frame, putting the size of the different frames in an array, and putting the frames in an array [here called 'output-buffer'] - one frame per index of the array. Do this until the file reaches it

    Until the end of the output-buffer :
    Take the first 25 frames.
    [When 25 frames are reached, in my code, in my code the frames will be divided into equal-sized packets ; with a small header giving some information about the frames and their frame size ; and Forward Error Erasure-correction code will be added ; and then the packets will be sent continiously.]

    1. [This will in my code take place on the receiving UDP-socket. It receives the frames continiously. It decodes each Forward Error Erasure-session block. It then reassembles the frames ; and puts them into an array - one frame per index of the array.]
      It does this for 25 frames at a time of the output-buffer :
      It decodes the encoded data - frame by frame - from the output-buffer.
      Add necessary additional information to this 25-frames-segment that is required in order for it to be playable.
      Play the 25 frames/put them in a queue to be played.

    I am aware of the decoding_encoding.c-example (in /doc/examples of the FFMPEG-library) and wonder which changes that are needed to be made in order to accomplish the above specified functionality ? I am requesting some example-code for this to be done ; including how play the movie and how to feed it with new frames continiously at the same time as previous frames of the movie are played.

    This code 'http://cekirdek.pardus.org.tr/~ismail/ffmpeg-docs/api-example_8c-source.html' ; could be used as a base. I want it to read in from a real mpg-file, instead of creating dummy images and encoding the dummy images.

    Thanks in advance !