Recherche avancée

Médias (0)

Mot : - Tags -/utilisateurs

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

Autres articles (70)

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

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Changer son thème graphique

    22 février 2011, par

    Le thème graphique ne touche pas à la disposition à proprement dite des éléments dans la page. Il ne fait que modifier l’apparence des éléments.
    Le placement peut être modifié effectivement, mais cette modification n’est que visuelle et non pas au niveau de la représentation sémantique de la page.
    Modifier le thème graphique utilisé
    Pour modifier le thème graphique utilisé, il est nécessaire que le plugin zen-garden soit activé sur le site.
    Il suffit ensuite de se rendre dans l’espace de configuration du (...)

Sur d’autres sites (13327)

  • FFMpeg : Webcam capture not fast enough. Ffmpeg dies half way (Linux)

    19 août 2013, par user763410

    I am trying to capture webcam output in liux/ubuntu. I have a chico webcam (lenovo laptop). I am running inside a VMWARE virtual machine. The capture is not proceeding beyond 10 seconds. can you please help.

    The command I used is :

    $ ffmpeg -y  -f video4linux2 -r 20 -s 160x120 -i /dev/video0 -acodec libfaac -ab 128k  /tmp/web.avi

    The most important message I am getting is :

    [video4linux2,v4l2 @ 0x9e43fa0] The v4l2 frame is 46448 bytes, but 153600 bytes are expected

    Complete message from ffmpeg :

    ffmpeg version N-55159-gf118b41 Copyright (c) 2000-2013 the FFmpeg developers
     built on Aug 18 2013 09:09:13 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
     configuration: --enable-libass --prefix=/opt/ffmpeg --enable-debug --enable-libfreetype
     libavutil      52. 40.100 / 52. 40.100
     libavcodec     55. 19.100 / 55. 19.100
     libavformat    55. 12.102 / 55. 12.102
     libavdevice    55.  3.100 / 55.  3.100
     libavfilter     3. 82.100 /  3. 82.100
     libswscale      2.  4.100 /  2.  4.100
     libswresample   0. 17.103 /  0. 17.103
    [video4linux2,v4l2 @ 0x9e43fa0] The V4L2 driver changed the video from 160x120 to 320x240
    [video4linux2,v4l2 @ 0x9e43fa0] The driver changed the time per frame from 1/20 to 1/15
    Input #0, video4linux2,v4l2, from '/dev/video0':
     Duration: N/A, start: 6424.338678, bitrate: 18432 kb/s
       Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 320x240, 18432 kb/s, 15 fps, 15 tbr, 1000k tbn, 1000k tbc
    Codec AVOption ab (set bitrate (in bits/s)) specified for output file #0 (/tmp/web.avi) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream.
    Output #0, avi, to '/tmp/web.avi':
     Metadata:
       ISFT            : Lavf55.12.102
       Stream #0:0: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 320x240, q=2-31, 200 kb/s, 20 tbn, 20 tbc
    Stream mapping:
     Stream #0:0 -> #0:0 (rawvideo -> mpeg4)
    Press [q] to stop, [?] for help
    [video4linux2,v4l2 @ 0x9e43fa0] The v4l2 frame is 46448 bytes, but 153600 bytes are expected
    /dev/video0: Invalid data found when processing input
    frame=   29 fps= 14 q=3.5 Lsize=      87kB time=00:00:01.45 bitrate= 490.0kbits/s    
    video:80kB audio:0kB subtitle:0 global headers:0kB muxing overhead 7.760075%
    [video4linux2,v4l2 @ 0x9e43fa0] Some buffers are still owned by the caller on close.
  • php ming flash slideshow to mp4/avi

    19 août 2013, par Stefan

    After hours of searching and trying i finally got a nice script together that generates a good looking Flash .swf file with a nice transaction in between de images.
    It works great if you access the swf file directly in a browser, depending on the amount of images the flash created takes anywhere between 10 and 60 seconds.
    But when uploading to Youtube the movie created flashed by in one second.
    Because swf isnt really a accepted fileformat for Youtube we decided to convert the flash file to mp4 or avi using ffmpeg.
    Unfortunally that didnt work, it had the same effect as the youtube movie.
    We had a old version of ffmpeg and updated that to a recent version and tried to convert again with the same result.
    The main thing i see is that ffmpeg cant see the swf file duration and bitrate, they are both 'N/A' while were do set them in the php script.

    Now i have to admit i havent really tested with the new version because the commandline options are a little different but ill work on that after i post this.
    In the previous version we tried setting the framerate of the source swf file, but that didnt work either.

    Anyone here that can has a idea ? it would be greatly appriciated.

    PHP Ming Script :

         $fps = 30;
            foreach($objects as $objectId => $images){
                   // START FLASH MOVIE
                   $m = new SWFMovie();
                   $m->setDimension($width, $height);
                   $m->setBackground(0, 0, 0);
                   $m->setRate($fps);
                   $m->setFrames(count($images)*202); //count(images)* 2 breaks *($fps*$breakTime)+22(fadeOut))

                   $i = 0;
                   foreach($images as $image){

                       // REMOVE THE BACKGROUND IMAGE
                       if($behind){
                           $m->remove($behind);
                       }
                       // # REMOVE

                       // LOAD NEW IMAGE
                       $img = new SWFBitmap(fopen($image,"rb"));
                       $pic = $m->add($img);
                       $pic->setdepth(3);
                       // # LOAD

                       // BREAK TIME
                       for($j=1;$j<=($fps*$breakTime);$j++){
                           $m->nextFrame();
                       }
                       $m->remove($pic);
                       // # BREAK

                       // LOAD THE NEXT IMAGE AS BACKGROUND, IF LAST IMAGE, LOAD FIRST
                       $nextBackgrondImage =($images[$i+1]) ? $images[$i+1] : $images[0] ;
                       $img = new SWFBitmap(fopen($nextBackgrondImage,"rb"));
                       $behind = $m->add($img);
                       $behind->setdepth(2);
                       // # LOAD

                       // AND FADE OUT AGAIN
                       $img = fadeOut($image, $width, $height);
                       $pic = $m->add($img);
                       $pic->setdepth(3);
                       // # FADE OUT

                       // BREAK TIME
                       for($j=1;$j<=($fps*$breakTime);$j++){
                           $m->nextFrame();
                       }
                       $m->remove($pic);
                       # BREAK
                       $i++;
                   }      
                   $m->save('./flash/'.$nvmId.'_'.$objectId.'.swf');  
               unset($m);
               }
    }

    FFMPEG version :

    root@server:~# ffmpeg -version
    \FFmpeg version SVN-r26402, Copyright (c) 2000-2011 the FFmpeg developers
     built on Aug 15 2013 20:43:21 with gcc 4.4.5
     configuration: --enable-libmp3lame --enable-libtheora --enable-libx264
     --enable-libgsm --enable-postproc --enable-libxvid --enable-libfaac --enable-pthreads
     --enable-libvorbis --enable-gpl --enable-x11grab --enable-nonfree
     libavutil     50.36. 0 / 50.36. 0
     libavcore      0.16. 1 /  0.16. 1
     libavcodec    52.108. 0 / 52.108. 0
     libavformat   52.93. 0 / 52.93. 0
     libavdevice   52. 2. 3 / 52. 2. 3
     libavfilter    1.74. 0 /  1.74. 0
     libswscale     0.12. 0 /  0.12. 0
     libpostproc   51. 2. 0 / 51. 2. 0
    FFmpeg SVN-r26402
    libavutil     50.36. 0 / 50.36. 0
    libavcore      0.16. 1 /  0.16. 1
    libavcodec    52.108. 0 / 52.108. 0
    libavformat   52.93. 0 / 52.93. 0
    libavdevice   52. 2. 3 / 52. 2. 3
    libavfilter    1.74. 0 /  1.74. 0
    libswscale     0.12. 0 /  0.12. 0
    libpostproc   51. 2. 0 / 51. 2. 0

    FFMPEG command

    root@server:~# ffmpeg -r 30  -i '/pathTo/public_html/flash/73003_8962011.swf' -vcodec libx264 /pathTo/public_html/flash/out.mp4

    [swf @ 0x16c2510] Estimating duration from bitrate, this may be inaccurate
    Input #0, swf, from '/pathTo/public_html/flash/73003_8962011.swf':
     Duration: N/A, bitrate: N/A
       Stream #0.0: Video: mjpeg, yuvj420p, 360x480, 30 fps, 30 tbr, 30 tbn, 30 tbc
    [buffer @ 0x16d5850] w:360 h:480 pixfmt:yuvj420p
    [libx264 @ 0x16d4d80] broken ffmpeg default settings detected
    [libx264 @ 0x16d4d80] use an encoding preset (e.g. -vpre medium)
    [libx264 @ 0x16d4d80] preset usage: -vpre <speed> -vpre <profile>
    [libx264 @ 0x16d4d80] speed presets are listed in x264 --help
    [libx264 @ 0x16d4d80] profile is optional; x264 defaults to high
    Output #0, mp4, to &#39;/pathTo/public_html/out.mp4&#39;:
       Stream #0.0: Video: libx264, yuvj420p, 360x480, q=2-31, 200 kb/s, 90k tbn, 30 tbc
    Stream mapping:
     Stream #0.0 -> #0.0
    Error while opening encoder for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height
    </profile></speed>
  • Invalid and inefficient vfw-avi packed B frames detected

    16 août 2015, par seyong

    I got message Invalid and inefficient vfw-avi packed B frames detected while video was converted.

    After converting the video, I checked pixel values in video. Values are different from original video. Why values change after converting ?

    and I use lossless intra-frame video codec ’ffv1’

    command :
    ffmpeg
    -i input_video -vcodec ffv1 -acodec pcm_s16le output_video

    ffmpeg version 1.1.1 Copyright (c) 2000-2013 the FFmpeg developers  
    built on Jan 20 2013 23:05:28 with gcc 4.7.2 (GCC)   configuration:
    --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib   libavutil      52. 13.100 / 52. 13.100   libavcodec     54. 86.100 / 54. 86.100   libavformat    54. 59.106 / 54. 59.106   libavdevice    54.  3.102 / 54.  3.102   libavfilter     3. 32.100 /  3. 32.100   libswscale      2.  1.103 /
    2.  1.103   libswresample   0. 17.102 /  0. 17.102   libpostproc    52.  2.100 / 52.  2.100 [mpeg4 @ 02e218c0] Invalid and inefficient vfw-avi packed B frames detected Input #0, avi, from
    'D:\video_output\avi\1.avi':   Metadata:
       encoder         : Lavf54.59.106   Duration: 00:04:25.52, start: 0.000000, bitrate: 2744 kb/s
       Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (DX50 / 0x30355844), yuv420p, 720x544 [SAR 1:1 DAR 45:34], 25 tbr, 25 tbn, 25
    tbc
       Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, stereo, fltp, 192 kb/s Output #0, matroska, to 'D:\video_output\avi\1_2.mkv':
    Metadata:
       encoder         : Lavf54.59.106
       Stream #0:0: Video: ffv1 (FFV1 / 0x31564646), yuv420p, 720x544 [SAR 1:1 DAR 45:34], q=2-31, 200 kb/s, 1k tbn, 25 tbc
       Stream #0:1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s Stream mapping:   Stream #0:0 -> #0:0 (mpeg4 -> ffv1)   Stream #0:1 ->
    #0:1 (ac3 -> pcm_s16le) Press [q] to stop, [?] for help [mpeg4 @ 02e27920] Invalid and inefficient vfw-avi packed B frames detected
    frame=   36 fps=0.0 q=0.0 size=    1916kB time=00:00:01.56
    bitrate=10008.5kbits/s
    ...
    frame= 6565 fps= 46 q=0.0 size=  862611kB time=00:04:22.72
    bitrate=26897.5kbits/s     frame= 6594 fps= 46 q=0.0 size=  864799kB
    time=00:04:23.87 bitrate=26848.0kbits/s     frame CRC mismatch frame=
    6629 fps= 46 q=0.0 size=  866407kB time=00:04:25.20
    bitrate=26763.2kbits/s     frame= 6638 fps= 46 q=0.0 Lsize=  866521kB
    time=00:04:25.56 bitrate=26730.5kbits/s    

    video:816725kB audio:49668kB subtitle:0 global headers:0kB muxing
    overhead 0.014713%

    c++ code

    void ProcessVideo::processFrame1(string fileName1, string fileName2) {
    this->capture.open(fileName1);
    if (!this->capture.isOpened())
       cout&lt;&lt;"video1 error";

    get_videoInfo();

    set_videoInfo();

    this->capture1.open(fileName2);
    if (!this->capture1.isOpened())
       cout&lt;&lt;"video2 error";

    cv::Mat frame; // current video frame
    cv::Mat frame1; // current video frame

    cv::namedWindow("image1");
    cv::namedWindow("image2");

    int count = 0;
    int count1 = 0;

    while (1) {
       capture >> frame;
       capture1 >> frame1;

       if (frame.empty()) {
           //break;
           cout&lt;&lt;"Frame1 Empty"&lt;::iterator it=frame.begin();
       cv::Mat_::iterator itend=frame.end();

       if (frame1.empty()) {
           //break;
           cout&lt;&lt;"Frame2 Empty"&lt;::iterator it1=frame1.begin();
       cv::Mat_::iterator itend1=frame1.end();

       if(frame.empty() &amp;&amp; frame1.empty()) {
           break;
       }

       count1++;

       int i=0,j=0,k=0;

       while(it!=itend &amp;&amp; it1!=itend1) {
           ++it;
           ++it1;

           count++;

           if((*it)[0] != (*it1)[0]){
               i++;
           }
           else if((*it)[1] != (*it1)[1]){
               j++;
           }
           else if((*it)[2] != (*it1)[2]){
               k++;
           }
       }
       cout&lt;&lt;"count diffrent pixel : "&lt;capture.release();
    this->capture1.release();

    }