Recherche avancée

Médias (91)

Autres articles (17)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

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

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

Sur d’autres sites (7069)

  • Cannot get ffmpeg2.3.3 to work with Opencv2.4.9

    6 septembre 2014, par Siddharthan P R

    I need to open a video file in opencv2.4.9. I used the following code and I got the output :
     !!! Sorry cant find the video file !!!.

    So I figured I need to install ffmpeg first then install opencv.
    So I Uninstalled opencv and ffmpeg then tried to install ffmpeg 2.3.3 properly.
    Here are the methods i tried to install ffmpeg.

    Method 1 :
    sudo apt-get install ffmpeg.

    Method 2 :
    Download (HTTP) : http://ffmpeg.org/releases/ffmpeg-2.3.3.tar.bz2

    Then i typed the following in the terminal after cd to the extracted folder.

    sed -i 's/-lflite"/-lflite -lasound"/' configure &&

    ./configure --prefix=/usr        \
               --enable-gpl         \
               --enable-version3    \
               --enable-nonfree     \
               --disable-static     \
               --enable-shared      \
               --disable-debug      \
               --enable-libass      \
               --enable-libfdk-aac  \
               --enable-libmp3lame  \
               --enable-libtheora   \
               --enable-libvorbis   \
               --enable-libvpx      \
               --enable-libx264     \
               --enable-x11grab     &&
    make &&
    gcc tools/qt-faststart.c -o tools/qt-faststart

    Though Method 1 works fine (in just installing ffmpeg), the problem with Method 1 is that i cannot use "./configure —enable-shared" anywhere because i cannot locate the file "configure".

    The problem with method 2 is that it says

    -ERROR: libass not found, after installing libass it says

    -ERROR: libfdk-aac-0.1.3 not found, then

    -ERROR: lame-3.8 not found, then

    -ERROR: libtheora not found, here i really got tired of installing all these packages. I stopped.

    I am really confused how to pull this off : with Method 1 or Method 2 (both seem not to work ). Can i change the ./ configure using method 1 ?

    Any help would be greatly appreciated.

               #include
               #include

               int main(int argc, char** argv)
               {
                   cvNamedWindow("xample2", CV_WINDOW_AUTOSIZE);
                   CvCapture* capture = cvCreateFileCapture( "1.mp4" );
                   if (!capture)
                   {
                     std::cout << "!!! Sorry cant find the video file !!!\n";
                     return -1;
                   }

                   IplImage* frame;
                   while (1)
                   {
                       frame = cvQueryFrame(capture);
                       if(!frame)
                           break;

                       cvShowImage("xample2", frame);

                       char c = cvWaitKey(33);
                       if (c == 27)
                           break;
                   }

                   cvReleaseCapture(&capture);
                   cvDestroyWindow("xample2");
               }
  • ffmpeg itsoffset doesn't work with pcm audio and raw 264 video

    28 janvier 2019, par Danny

    I need to create an MP4 container with data from a hardware encoder. The encoder outputs PCM 16-bit signed audio and raw H.264 ES video frames.

    This ffmpeg command line I’ve got works but the audio and video are not sync’d.

    From other posts I know that itsoffset only works with video and probably doesn’t work with -v copy

    I’ve confirmed that applying an itsoffset has no effect.

    Here’s the command line. Any suggestions ?

    One post suggested itsoffset works if you re-encode the video. But doing that needs CPU power and adds latency. (And what’s the point of a hardware encoder then ?)

    ffmpeg -f s16le -ar 44.1k -ac 2      -i Audio_20190110-165736.pcm
          -fflags +genpts -itsoffset -5 -i Video_20190110-165736.264
          -c:v copy -c:a aac -b:a 128k
          -f mp4 -movflags +faststart  output.mp4

    EDIT I

    Here is a link to the audio/video input files referenced in the above command.

  • Why menconder fps rate does not work ?

    2 mars 2016, par ACR

    I’m using mencoder to create a video out of some .png files. The problem is that the frame rate doesn’t change, regardless of the -fps flag. The output video has different time lengths (in their properties), but the video’s size and speed are always the same (regardless of the FPS chosen).

    I just want to create a shorted video by using higher FPS rates. In short, a "time-lapse" of my original set of images. What am I doing wrong with mencoder ? I’m using the following command :

    mencoder mf://./IMG/images*.png -mf w=800:h=600:fps=20:type=png -ovc copy -oac copy -o video.avi