Recherche avancée

Médias (91)

Autres articles (31)

  • Librairies et binaires spécifiques au traitement vidéo et sonore

    31 janvier 2010, par

    Les logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
    Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
    Binaires complémentaires et facultatifs flvtool2 : (...)

  • 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 (...)

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

Sur d’autres sites (5175)

  • ffmpeg-php to create thumbnail of video

    8 novembre 2014, par Wazzzy

    I am trying to use this script to create thumbnail of a video using ffmpeg. At first I used phpinfo(); and I found ffmpeg is installed on my server.

    Then I copied ffmpeg-php onto my server and run the test file

    I got to know that many function are working on my server

    I got output like this

    Output :-

    Functions available in /usr/lib/php/extensions/no-debug-non-zts-20060613/ffmpeg.so extension:

    Methods available in class ffmpeg_movie:
    __construct
    getduration
    getframecount
    getframerate
    getfilename
    getcomment
    gettitle
    getauthor
    getartist
    getcopyright
    getalbum
    getgenre
    getyear
    gettracknumber
    getframewidth
    getframeheight
    getframenumber
    getpixelformat
    getbitrate
    hasaudio
    hasvideo
    getnextkeyframe
    getframe
    getvideocodec
    getaudiocodec
    getvideostreamid
    getaudiostreamid
    getaudiochannels
    getaudiosamplerate
    getaudiobitrate
    getvideobitrate
    getpixelaspectratio
    getpixelaspectratio
    getvideobitrate
    getaudiobitrate
    getaudiosamplerate
    getaudiochannels
    getaudiostreamid
    getvideostreamid
    getaudiocodec
    getvideocodec
    getframe
    getnextkeyframe
    hasvideo
    hasaudio
    getbitrate
    getpixelformat
    getframenumber
    getframeheight
    getframewidth
    gettracknumber
    getyear
    getgenre
    getalbum
    getcopyright
    getartist
    getauthor
    gettitle
    getcomment
    getfilename
    getframerate
    getframecount
    getduration
    __construct

    I wrote this code and tried any possible path to assign $ffmpeg;

    <?php

       $thumb_stdout;
       $retval=0;
       $ffmpeg = '/home/lib/ffmpeg';

    // change "demo.mpg" to your mpg file name!
    $video  = dirname(__FILE__) . 'demo.mpg';

    // change "demo.jpg" to whichever name you like or don't
    // for this example, the name of the output jpg file does not matter
    $image  = dirname(__FILE__) . 'demo.jpg';

    $second = 1;

    $cmd = "$ffmpeg -i $video 2>&1";
    if (preg_match('/Duration: ((\d+):(\d+):(\d+))/s', '$cmd', $time)) {
       $total = ($time[2] * 3600) + ($time[3] * 60) + $time[4];
       $second = rand(1, ($total - 1));
    }

    //$cmd = "$ffmpeg -i $video -deinterlace -an -ss $second -t 00:00:01 -r 1 -y -vcodec mjpeg -f mjpeg $image 2>&1";
    $cmd = "$ffmpeg -i $video -r 1 -ss 00:00:05 -t 00:00:01 -s 250x250 -f image2 $image";
    echo $cmd;
    exec($cmd);
    //$return = '$cmd';

    echo '<br />done!';
    ?>
  • Writing Live-Multimedia-Application using OpenGL & Co. saving output to disc [closed]

    21 janvier 2013, par user1997286

    I want to write an application that does the following thing :

    • Getting Commands via ArtNET (DMX over Ethernet, a Control Protocol) for each object (called Layer)
    • each Layer could be one of the following : Live Camera Stream, Movie, Image
    • each layer could be translated, rotated or stretched
    • on each layer I can set filters (Like a Kaleidoscope Effect, Blur, Color Correction, etc.)
    • the rsulting video-stream is in the 3d-space
    • I want to display each part of the image on one Projector (in total up to 3 ones) using a TripleHead2GO (3 Projectors display a different region of my DVI-Output). Each Projecector-Image should have own Soft-Edge and Keystone parameters.
    • the resulting image will also be shown on a Preview-Screen with some Information overlay.

    I think all that should be possible with opengl and openal (for the movie audio)

    I think I'll use C++, OpenGL for Graphics, OpenAL for Audio, if needed ffmpeg for Video conversion, Ubuntu/Debian as OS.

    The software is used to do Multimedia-Shows on Concerts including Cameras & Co.

    All that should happen Live (On a FullHD output), Having i7 3770, GLX 670 and 16GB of Ram for at least 8 Layers. (4 Live-Images at once + Some Overlays like the Actors Name and some Logos)

    But now comes the question.

    Is it also Posible to do the following with that setting :

    • Writing the output Image with all the 3d translations to a Movie File (To Master a DVD later) with Audio
    • Mixing Audio from different Inputs & Files (Ambience Mics, Signal from the Sound Mixer, Playbacks from my own application) to more than one Mix (eg. one Mix for the Recording, one Mix for Live)
    • Stream that Output Complete or in Parts (e.g. the left Part of the Image) over the Network (For example, Projector 1 is near the Server, so I connect it using DVI, Projector 2+3 is connected to a Computer that receives the streams for that two projectors (with soft edge on each stream) and Screen 4 is outside the Concert Hall and shows the complete Live-Stream.
    • What GUI-Framework should I use for that ?
    • is it perhaps event performant enough to use Java for that ?
    • is it posible to use that mechanism for just rendering (eg. I have stored the cut points on Disc and saved every single camera stream to change some errors later or cut out some parts)
  • ffmpeg seeking to I-frame

    7 octobre 2014, par user3398748

    Is it possible to seek to a I-Frame using the av_seek_frame() function.
    The problem I am facing is that if I seek in a AVC file I get a lot of noise if I dont flush the buffer. And if I flush the buffer the decoder dose not return a frame until it comes across a I-Frame which causes problem in the calculation of total frames at the end of file if I am seeking.

    Thank you