Recherche avancée

Médias (1)

Mot : - Tags -/karaoke

Autres articles (95)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

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

  • ffmpeg overlay not showing on first frame

    5 mai 2016, par Nic Wilson

    I’m trying to use ffmpeg to overlay a 720x720 video (previd.mp4) onto a background image (bg.jpg). I have it working except that the first frame of the video that is created shows the background only for a frame before the overlay video is shown on top of it.

    This is what I’m using to create the video and overlay :

    ffmpeg -loop 1 -i bg.jpg -i previd.mp4 -filter_complex "[1:v]scale=-1:1080[a]; [0:v][a]overlay=(main_w/2)-(overlay_w/2):0:shortest=1[video]" -map "[video]" -map 1:a -codec:a copy vid.mp4

    ffmpeg version 3.0.2-tessus Copyright (c) 2000-2016 the FFmpeg developers
     built with Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
     configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg --as=yasm --extra-version=tessus --enable-avisynth --enable-fontconfig --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopus --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzmq --enable-version3 --disable-ffplay --disable-indev=qtkit --disable-indev=x11grab_xcb
     libavutil      55. 17.103 / 55. 17.103
     libavcodec     57. 24.102 / 57. 24.102
     libavformat    57. 25.100 / 57. 25.100
     libavdevice    57.  0.101 / 57.  0.101
     libavfilter     6. 31.100 /  6. 31.100
     libswscale      4.  0.100 /  4.  0.100
     libswresample   2.  0.101 /  2.  0.101
     libpostproc    54.  0.100 / 54.  0.100
    [mjpeg @ 0x7fa934808600] Changing bps to 8
    Input #0, image2, from 'bg.jpg':
     Duration: 00:00:00.04, start: 0.000000, bitrate: 16835 kb/s
       Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 25 tbn, 25 tbc
    Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'previd_2_0.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf57.25.100
     Duration: 00:00:06.57, start: 0.023220, bitrate: 1395 kb/s
       Stream #1:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 720x720, 1261 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #1:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 131 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
    [swscaler @ 0x7fa93400b000] deprecated pixel format used, make sure you did set range correctly
    [libx264 @ 0x7fa934001200] using SAR=1/1
    [libx264 @ 0x7fa934001200] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
    [libx264 @ 0x7fa934001200] profile High, level 4.0
    [libx264 @ 0x7fa934001200] 264 - core 148 - H.264/MPEG-4 AVC codec - Copyleft 2003-2016 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
    Output #0, mp4, to 'vid0.mp4':
     Metadata:
       encoder         : Lavf57.25.100
       Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 25 fps, 12800 tbn, 25 tbc (default)
       Metadata:
         encoder         : Lavc57.24.102 libx264
       Side data:
         unknown side data type 10 (24 bytes)
       Stream #0:1(und): Audio: aac (LC) ([64][0][0][0] / 0x0040), 44100 Hz, stereo, 131 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
    Stream mapping:
     Stream #0:0 (mjpeg) -> overlay:main
     Stream #1:0 (h264) -> scale
     overlay -> Stream #0:0 (libx264)
     Stream #1:1 -> #0:1 (copy)
    Press [q] to stop, [?] for help
    frame=   26 fps=0.0 q=0.0 size=       0kB time=00:00:01.32 bitrate=   0.3kbits/sframe=   49 fps= 48 q=0.0 size=       0kB time=00:00:02.20 bitrate=   0.2kbits/sframe=   69 fps= 45 q=28.0 size=     146kB time=00:00:03.01 bitrate= 396.3kbits/frame=   92 fps= 45 q=28.0 size=     315kB time=00:00:03.94 bitrate= 654.7kbits/frame=  115 fps= 45 q=28.0 size=     514kB time=00:00:04.87 bitrate= 863.3kbits/frame=  137 fps= 45 q=28.0 size=     677kB time=00:00:05.73 bitrate= 966.9kbits/frame=  155 fps= 43 q=28.0 size=     831kB time=00:00:06.50 bitrate=1046.8kbits/frame=  164 fps= 34 q=-1.0 Lsize=    1812kB time=00:00:06.57 bitrate=2259.0kbits/s speed=1.35x    
    video:1700kB audio:106kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.344859%
    [libx264 @ 0x7fa934001200] frame I:1     Avg QP:20.13  size: 36046
    [libx264 @ 0x7fa934001200] frame P:91    Avg QP:24.37  size: 15003
    [libx264 @ 0x7fa934001200] frame B:72    Avg QP:24.43  size:  4709
    [libx264 @ 0x7fa934001200] consecutive B-frames: 38.4%  8.5%  1.8% 51.2%
    [libx264 @ 0x7fa934001200] mb I  I16..4: 30.2% 67.1%  2.7%
    [libx264 @ 0x7fa934001200] mb P  I16..4:  8.6% 17.6%  0.8%  P16..4: 16.6%  3.1%  0.9%  0.0%  0.0%    skip:52.3%
    [libx264 @ 0x7fa934001200] mb B  I16..4:  0.7%  1.3%  0.1%  B16..8: 21.3%  1.2%  0.1%  direct: 0.7%  skip:74.7%  L0:44.5% L1:54.2% BI: 1.4%
    [libx264 @ 0x7fa934001200] 8x8 transform intra:65.0% inter:93.5%
    [libx264 @ 0x7fa934001200] coded y,uvDC,uvAC intra: 32.3% 45.6% 4.6% inter: 4.3% 8.5% 0.0%
    [libx264 @ 0x7fa934001200] i16 v,h,dc,p: 30% 30%  5% 35%
    [libx264 @ 0x7fa934001200] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 32% 25% 14%  4%  5%  5%  5%  5%  4%
    [libx264 @ 0x7fa934001200] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 36% 27% 11%  3%  7%  5%  5%  3%  2%
    [libx264 @ 0x7fa934001200] i8c dc,h,v,p: 52% 20% 22%  6%
    [libx264 @ 0x7fa934001200] Weighted P-Frames: Y:0.0% UV:0.0%
    [libx264 @ 0x7fa934001200] ref P L0: 74.9%  8.3% 12.6%  4.2%
    [libx264 @ 0x7fa934001200] ref B L0: 92.4%  6.8%  0.9%
    [libx264 @ 0x7fa934001200] ref B L1: 97.5%  2.5%
    [libx264 @ 0x7fa934001200] kb/s:2122.37
  • ffmpeg options for playing in iPad WebView with tag

    19 septembre 2013, par Waynn Lue

    I'm trying to convert a video to be played in a tag in a WebView in iOS. I've tried the options at this link but it still doesn't seem to play. I've found videos that do successfully play, though, so I'm sure it's possible, I just can't seem to get any working. Here's the ffmpeg -i output for something that works.

    Here's what I tried from the wiki :

    ffmpeg -i {filename} -acodec aac -ac 2 -strict experimental -ab 160k -vcodec libx264 -preset slow -profile:v baseline -level 30 -maxrate 10000000 -bufsize 10000000 -b 1200k -f mp4 -threads 0 {filename}.ipad.mp4

    But the file doesn't play in the WebView.

    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video.m4v' :
      Metadata :
        major_brand : M4V 
        minor_version : 1
        compatible_brands : M4V M4A mp42isom
        creation_time : 2005-12-20 20:20:15
      Duration : 00:01:25.50, start : 0.000000, bitrate : 209 kb/s
        Stream #0:0(eng) : Audio : aac (mp4a / 0x6134706D), 44100 Hz, stereo, s16, 115 kb/s
        Metadata :
          creation_time : 2005-12-20 20:20:15
          handler_name : Apple Sound Media Handler
        Stream #0:1(eng) : Video : h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 320x240, 90 kb/s, 10 fps, 10 tbr, 1k tbn, 2k tbc
        Metadata :
          creation_time : 2005-12-20 20:20:15
          handler_name : Apple Video Media Handler
    

    And here's the output for my input file :

    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'cheerfulness.mov' :
      Metadata :
        major_brand : qt  
        minor_version : 537199360
        compatible_brands : qt  
        creation_time : 2013-07-31 00:47:22
      Duration : 00:00:06.00, start : 0.000000, bitrate : 120849 kb/s
        Stream #0:0(eng) : Video : h264 (Main) (avc1 / 0x31637661), yuv420p, 1200x1920, 120823 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 60k tbc
        Metadata :
          creation_time : 2013-07-31 00:48:33
          handler_name : Apple Alias Data Handler
    

    edit : Here's the full output of the command :

    wlue :$ ffmpeg -i cheerfulness.mov -acodec aac -ac 2 -strict experimental -ab 160k -vcodec libx264 -preset slow -profile:v baseline -level 30 -maxrate 10000000 -bufsize 10000000 -b 1200k -f mp4 -threads 0 output.ipad.mp4
    ffmpeg version 1.2.1 Copyright (c) 2000-2013 the FFmpeg developers
      built on Sep 18 2013 18:44:15 with Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn)
      configuration : —prefix=/usr/local/Cellar/ffmpeg/1.2.1 —enable-shared —enable-pthreads —enable-gpl —enable-version3 —enable-nonfree —enable-hardcoded-tables —enable-avresample —enable-vda —cc=cc —host-cflags= —host-ldflags= —enable-libx264 —enable-libfaac —enable-libmp3lame —enable-libxvid
      libavutil      52. 18.100 / 52. 18.100
      libavcodec     54. 92.100 / 54. 92.100
      libavformat    54. 63.104 / 54. 63.104
      libavdevice    54.  3.103 / 54.  3.103
      libavfilter     3. 42.103 /  3. 42.103
      libswscale      2.  2.100 /  2.  2.100
      libswresample   0. 17.102 /  0. 17.102
      libpostproc    52.  2.100 / 52.  2.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'cheerfulness.mov' :
      Metadata :
        major_brand : qt  
        minor_version : 537199360
        compatible_brands : qt  
        creation_time : 2013-07-31 00:47:22
      Duration : 00:00:06.01, start : 0.000000, bitrate : 120849 kb/s
        Stream #0:0(eng) : Video : h264 (Main) (avc1 / 0x31637661), yuv420p, 1200x1920, 120823 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 60k tbc
        Metadata :
          creation_time : 2013-07-31 00:48:33
          handler_name : Apple Alias Data Handler
    Please use -b:a or -b:v, -b is ambiguous
    [libx264 @ 0x7fa67401fa00] frame MB size (75x120) > level limit (1620)
    [libx264 @ 0x7fa67401fa00] DPB size (5 frames, 17280000 bytes) > level limit (0 frames, 3110400 bytes)
    [libx264 @ 0x7fa67401fa00] MB rate (269730) > level limit (40500)
    [libx264 @ 0x7fa67401fa00] using cpu capabilities : MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 AVX
    [libx264 @ 0x7fa67401fa00] profile Constrained Baseline, level 3.0
    [libx264 @ 0x7fa67401fa00] 264 - core 125 - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - http://www.videolan.org/x264.html - options : cabac=0 ref=5 deblock=1:0:0 analyse=0x1:0x111 me=umh subme=8 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=50 rc=abr mbtree=1 bitrate=1200 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=10000 vbv_bufsize=10000 nal_hrd=none ip_ratio=1.40 aq=1:1.00
    Output #0, mp4, to 'output.ipad.mp4' :
      Metadata :
        major_brand : qt  
        minor_version : 537199360
        compatible_brands : qt  
        encoder : Lavf54.63.104
        Stream #0:0(eng) : Video : h264 ([33][0][0][0] / 0x0021), yuv420p, 1200x1920, q=-1—1, 1200 kb/s, 30k tbn, 29.97 tbc
        Metadata :
          creation_time : 2013-07-31 00:48:33
          handler_name : Apple Alias Data Handler
    Stream mapping :
      Stream #0:0 -> #0:0 (h264 -> libx264)
    Press [q] to stop, [?] for help
    frame=  180 fps= 16 q=-1.0 Lsize=     828kB time=00:00:06.00 bitrate=1129.2kbits/s    
    video:826kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.177851%
    [libx264 @ 0x7fa67401fa00] frame I:2     Avg QP:32.23  size : 20942
    [libx264 @ 0x7fa67401fa00] frame P:178   Avg QP:41.03  size :  4515
    [libx264 @ 0x7fa67401fa00] mb I  I16..4 : 90.1%  0.0%  9.9%
    [libx264 @ 0x7fa67401fa00] mb P  I16..4 :  6.8%  0.0%  0.0%  P16..4 : 16.8%  0.6%  0.2%  0.0%  0.0%    skip:75.5%
    [libx264 @ 0x7fa67401fa00] final ratefactor : 37.56
    [libx264 @ 0x7fa67401fa00] coded y,uvDC,uvAC intra : 1.2% 16.4% 2.1% inter : 0.1% 3.4% 0.1%
    [libx264 @ 0x7fa67401fa00] i16 v,h,dc,p : 49% 23%  4% 24%
    [libx264 @ 0x7fa67401fa00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu : 13%  8% 36%  8% 12%  9%  8%  4%  2%
    [libx264 @ 0x7fa67401fa00] i8c dc,h,v,p : 88%  6%  5%  1%
    [libx264 @ 0x7fa67401fa00] ref P L0 : 47.7% 22.0% 16.7%  5.7%  7.9%
    [libx264 @ 0x7fa67401fa00] kb/s:1126.21
    
  • FFmpeg : Invalid buffer size when streaming to Twitch

    1er décembre 2020, par user1965074

    I am streaming a 2560x1440 @ 24FPS to Twitch with this command :

    


    ffmpeg \
>     -f rawvideo \
>     -vcodec rawvideo \
>     -s 2560x1440 \
>     -pix_fmt bgr24 \
>     -r "24" \
>     -i 20200818-074700.mp4 \
>     -f flv \
>     -vcodec libx264 \
>     -profile:v main \
>     -g 48 \
>     -keyint_min 24 \
>     -b:v 4500k \
>     -minrate 4500k \
>     -maxrate 4500k \
>     -pix_fmt yuv420p \
>     -preset ultrafast \
>     -tune zerolatency \
>     -threads 0 \
>     -bufsize 4500k \
>     rtmp://live-arn.twitch.tv/app/{KEY}


    


    It fails with message Invalid buffer size, packet size 9137374 < expected frame_size 11059200. Given the error message, I have tried decreasing and increasing the 4500k in all places of the command as explained in this answer but it does not help.

    


    Here is the full log

    


    ffmpeg version 2.8.17-0ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.12) 20160609
  configuration: --prefix=/usr --extra-version=0ubuntu0.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv
  libavutil      54. 31.100 / 54. 31.100
  libavcodec     56. 60.100 / 56. 60.100
  libavformat    56. 40.101 / 56. 40.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 40.101 /  5. 40.101
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
  libpostproc    53.  3.100 / 53.  3.100
[rawvideo @ 0xfb3120] Estimating duration from bitrate, this may be inaccurate
Input #0, rawvideo, from '20200818-074700.mp4':
  Duration: 00:00:02.96, start: 0.000000, bitrate: 2118169 kb/s
    Stream #0:0: Video: rawvideo (BGR[24] / 0x18524742), bgr24, 2560x1440, 2123366 kb/s, 24 tbr, 24 tbn, 24 tbc
[libx264 @ 0xfbdfc0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
[libx264 @ 0xfbdfc0] profile Constrained Baseline, level 5.0
[libx264 @ 0xfbdfc0] 264 - core 148 r2643 5c65704 - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=22 lookahead_threads=16 sliced_threads=1 slices=22 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=48 keyint_min=24 scenecut=0 intra_refresh=0 rc_lookahead=0 rc=cbr mbtree=0 bitrate=4500 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=4500 vbv_bufsize=4500 nal_hrd=none filler=0 ip_ratio=1.40 aq=0
Output #0, flv, to 'rtmp://live-arn.twitch.tv/app/{KEY}':
  Metadata:
    encoder         : Lavf56.40.101
    Stream #0:0: Video: h264 (libx264) ([7][0][0][0] / 0x0007), yuv420p, 2560x1440, q=-1--1, 4500 kb/s, 24 fps, 1k tbn, 24 tbc
    Metadata:
      encoder         : Lavc56.60.100 libx264
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[libx264 @ 0xfbdfc0] VBV underflow (frame 0, -1827312 bits)
Truncating packet of size 11059200 to 9137375me=00:00:02.33 bitrate=6051.7kbits/s    
[rawvideo @ 0xfbca80] Invalid buffer size, packet size 9137374 < expected frame_size 11059200
Error while decoding stream #0:0: Invalid argument
[flv @ 0xfbd020] Failed to update header with correct duration.
[flv @ 0xfbd020] Failed to update header with correct filesize.
frame=   70 fps= 54 q=52.0 Lsize=    2029kB time=00:00:02.91 bitrate=5698.4kbits/s    
video:2026kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.152412%
[libx264 @ 0xfbdfc0] frame I:2     Avg QP:47.09  size:381468
[libx264 @ 0xfbdfc0] frame P:68    Avg QP:51.00  size: 19279
[libx264 @ 0xfbdfc0] mb I  I16..4: 100.0%  0.0%  0.0%
[libx264 @ 0xfbdfc0] mb P  I16..4: 14.1%  0.0%  0.0%  P16..4:  2.7%  0.0%  0.0%  0.0%  0.0%    skip:83.2%
[libx264 @ 0xfbdfc0] coded y,uvDC,uvAC intra: 8.2% 94.6% 83.0% inter: 0.0% 3.2% 0.7%
[libx264 @ 0xfbdfc0] i16 v,h,dc,p: 87%  1% 12%  0%
[libx264 @ 0xfbdfc0] i8c dc,h,v,p: 98%  1%  2%  0%
[libx264 @ 0xfbdfc0] kb/s:5688.52