Recherche avancée

Médias (1)

Mot : - Tags -/MediaSPIP

Autres articles (34)

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

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

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

Sur d’autres sites (3991)

  • FFMpeg SetSar value gets overriden

    8 décembre 2015, par user650922

    I have a video concatenating application where In all videos are converted to the same format .

    I am converting 640*360 video to 1080*720 with setsar=1:1 as

    ffmpeg -i C :\Users\work\Desktop\Esocializ\B.mp4 -s 1080*720 -ac 2 -vf setsar=1 :
    1 -acodec aac -strict experimental B1.mp4.

    However for some reasons its value get overridden.

    Any help would be appreciated .

    Below is my console output :

    C:\Users\work\Downloads\ffmpeg-20151130-git-7b11eea-win64-static\ffmpeg-20151130
    -git-7b11eea-win64-static\bin
    >ffmpeg -i C:\Users\work\Desktop\Esocializ\B.mp4 -s 1080*720 -ac 2 -vf setsar=1:
    1 -acodec aac -strict experimental B1.mp4
    ffmpeg version N-76957-g7b11eea Copyright (c) 2000-2015 the FFmpeg developers
     built with gcc 5.2.0 (GCC)
     configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
    isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
    le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --
    enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-l
    ibilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enab
    le-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --en
    able-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --ena
    ble-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc
    --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enabl
    e-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --
    enable-lzma --enable-decklink --enable-zlib
     libavutil      55.  9.100 / 55.  9.100
     libavcodec     57. 16.101 / 57. 16.101
     libavformat    57. 19.100 / 57. 19.100
     libavdevice    57.  0.100 / 57.  0.100
     libavfilter     6. 17.100 /  6. 17.100
     libswscale      4.  0.100 /  4.  0.100
     libswresample   2.  0.101 /  2.  0.101
     libpostproc    54.  0.100 / 54.  0.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Users\work\Desktop\Esocializ\B.mp4':

     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: isommp42
       creation_time   : 2015-02-11 06:48:50
     Duration: 00:00:35.04, start: 0.000000, bitrate: 676 kb/s
       Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yu
    v420p, 640x360 [SAR 1:1 DAR 16:9], 577 kb/s, 30 fps, 30 tbr, 30 tbn, 60 tbc (def
    ault)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, flt
    p, 95 kb/s (default)
       Metadata:
         creation_time   : 2015-02-11 06:48:50
         handler_name    : IsoMedia File Produced by Google, 5-11-2011
    [Parsed_setsar_0 @ 000000f8a4c8bf20] num:den syntax is deprecated, please use nu
    m/den or named options instead
    [libx264 @ 000000f8a4919400] using SAR=32/27
    [libx264 @ 000000f8a4919400] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
    [libx264 @ 000000f8a4919400] profile High, level 3.1
    [libx264 @ 000000f8a4919400] 264 - core 148 r2638 7599210 - H.264/MPEG-4 AVC cod
    ec - Copyleft 2003-2015 - http://www.videolan.org/x264.html - options: cabac=1 r
    ef=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_pski
    p=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 dec
    imate=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 'B1.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: isommp42
       encoder         : Lavf57.19.100
       Stream #0:0(und): Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1
    080x720 [SAR 32:27 DAR 16:9], q=-1--1, 30 fps, 15360 tbn, 30 tbc (default)
       Metadata:
         handler_name    : VideoHandler
         encoder         : Lavc57.16.101 libx264
       Stream #0:1(und): Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, stereo, flt
    p, 128 kb/s (default)
       Metadata:
         creation_time   : 2015-02-11 06:48:50
         handler_name    : IsoMedia File Produced by Google, 5-11-2011
         encoder         : Lavc57.16.101 aac
    Stream mapping:
     Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
     Stream #0:1 -> #0:1 (aac (native) -> aac (native))
    Press [q] to stop, [?] for help
    frame=   64 fps=0.0 q=29.0 size=      40kB time=00:00:01.92 bitrate= 168.9kbits/
    frame=  118 fps=115 q=29.0 size=     297kB time=00:00:03.87 bitrate= 626.4kbits/
    frame=  166 fps=109 q=29.0 size=     589kB time=00:00:05.34 bitrate= 904.1kbits/
    frame=  212 fps=104 q=29.0 size=     892kB time=00:00:06.80 bitrate=1074.1kbits/
    frame=  250 fps= 98 q=29.0 size=    1201kB time=00:00:08.26 bitrate=1190.0kbits/
    frame=  293 fps= 96 q=29.0 size=    1565kB time=00:00:09.72 bitrate=1318.0kbits/
    frame=  335 fps= 94 q=29.0 size=    1897kB time=00:00:11.19 bitrate=1388.7kbits/
    frame=  374 fps= 92 q=29.0 size=    2227kB time=00:00:12.56 bitrate=1452.5kbits/
    frame=  418 fps= 91 q=29.0 size=    2623kB time=00:00:13.93 bitrate=1542.3kbits/
    frame=  462 fps= 91 q=29.0 size=    2994kB time=00:00:15.11 bitrate=1622.5kbits/
    frame=  499 fps= 89 q=29.0 size=    3306kB time=00:00:16.55 bitrate=1635.7kbits/
    frame=  539 fps= 88 q=29.0 size=    3591kB time=00:00:18.01 bitrate=1632.5kbits/
    frame=  579 fps= 88 q=29.0 size=    3886kB time=00:00:19.27 bitrate=1651.9kbits/
    frame=  623 fps= 88 q=29.0 size=    4184kB time=00:00:20.48 bitrate=1673.4kbits/
    frame=  660 fps= 87 q=29.0 size=    4497kB time=00:00:21.91 bitrate=1680.8kbits/
    frame=  696 fps= 86 q=29.0 size=    4801kB time=00:00:23.28 bitrate=1688.8kbits/
    frame=  742 fps= 86 q=29.0 size=    5119kB time=00:00:24.84 bitrate=1687.9kbits/
    frame=  788 fps= 86 q=29.0 size=    5439kB time=00:00:26.30 bitrate=1693.7kbits/
    frame=  831 fps= 86 q=29.0 size=    5736kB time=00:00:27.77 bitrate=1692.2kbits/
    frame=  878 fps= 86 q=29.0 size=    6041kB time=00:00:29.23 bitrate=1692.7kbits/
    frame=  930 fps= 87 q=29.0 size=    6325kB time=00:00:31.18 bitrate=1661.6kbits/
    frame=  989 fps= 88 q=29.0 size=    6551kB time=00:00:32.99 bitrate=1626.4kbits/
    frame= 1043 fps= 89 q=29.0 size=    6786kB time=00:00:34.64 bitrate=1604.5kbits/
    frame= 1051 fps= 86 q=-1.0 Lsize=    7172kB time=00:00:35.03 bitrate=1676.7kbits
    /s
    video:6600kB audio:541kB subtitle:0kB other streams:0kB global headers:0kB muxin
    g overhead: 0.433214%
    [libx264 @ 000000f8a4919400] frame I:7     Avg QP:21.73  size: 19053
    [libx264 @ 000000f8a4919400] frame P:1006  Avg QP:26.11  size:  6523
    [libx264 @ 000000f8a4919400] frame B:38    Avg QP:27.27  size:  1616
    [libx264 @ 000000f8a4919400] consecutive B-frames: 93.7%  4.2%  0.6%  1.5%
    [libx264 @ 000000f8a4919400] mb I  I16..4: 10.1% 82.1%  7.8%
    [libx264 @ 000000f8a4919400] mb P  I16..4:  3.3%  5.4%  0.6%  P16..4: 22.7%  7.4
    %  2.4%  0.0%  0.0%    skip:58.2%
    [libx264 @ 000000f8a4919400] mb B  I16..4:  0.4%  0.4%  0.0%  B16..8: 19.6%  2.1
    %  0.3%  direct: 0.4%  skip:76.9%  L0:45.9% L1:48.7% BI: 5.4%
    [libx264 @ 000000f8a4919400] 8x8 transform intra:59.5% inter:77.2%
    [libx264 @ 000000f8a4919400] coded y,uvDC,uvAC intra: 34.4% 45.3% 13.7% inter: 9
    .7% 10.1% 0.3%
    [libx264 @ 000000f8a4919400] i16 v,h,dc,p: 36% 50%  3% 11%
    [libx264 @ 000000f8a4919400] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 25% 26%  3%  4%
    5%  4%  4%  4%
    [libx264 @ 000000f8a4919400] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 32% 29% 17%  2%  4%
    5%  4%  3%  2%
    [libx264 @ 000000f8a4919400] i8c dc,h,v,p: 51% 25% 18%  6%
    [libx264 @ 000000f8a4919400] Weighted P-Frames: Y:0.5% UV:0.4%
    [libx264 @ 000000f8a4919400] ref P L0: 81.7% 10.7%  5.9%  1.7%  0.0%
    [libx264 @ 000000f8a4919400] ref B L0: 92.3%  7.2%  0.5%
    [libx264 @ 000000f8a4919400] ref B L1: 98.9%  1.1%
    [libx264 @ 000000f8a4919400] kb/s:1543.06
    [aac @ 000000f8a491dec0] Qavg: 686.824

    C:\Users\work\Downloads\ffmpeg-20151130-git-7b11eea-win64-static\ffmpeg-20151130
    -git-7b11eea-win64-static\bin
    >ffmpeg -i B1.mp4
    ffmpeg version N-76957-g7b11eea Copyright (c) 2000-2015 the FFmpeg developers
     built with gcc 5.2.0 (GCC)
     configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
    isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
    le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --
    enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-l
    ibilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enab
    le-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --en
    able-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --ena
    ble-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc
    --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enabl
    e-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --
    enable-lzma --enable-decklink --enable-zlib
     libavutil      55.  9.100 / 55.  9.100
     libavcodec     57. 16.101 / 57. 16.101
     libavformat    57. 19.100 / 57. 19.100
     libavdevice    57.  0.100 / 57.  0.100
     libavfilter     6. 17.100 /  6. 17.100
     libswscale      4.  0.100 /  4.  0.100
     libswresample   2.  0.101 /  2.  0.101
     libpostproc    54.  0.100 / 54.  0.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'B1.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf57.19.100
     Duration: 00:00:35.06, start: 0.023220, bitrate: 1675 kb/s
       Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1080x720
    [SAR 32:27 DAR 16:9], 1543 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, flt
    p, 126 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
    At least one output file must be specified

    C:\Users\work\Downloads\ffmpeg-20151130-git-7b11eea-win64-static\ffmpeg-20151130
    -git-7b11eea-win64-static\bin
    >
  • Cannot play this video when converting format to .mp4

    22 décembre 2015, par user3653474

    I am converting video to .mp4 format, but when i convert video using ffmpeg using the following command :

    exec('D:\wamp\bin\ffmpeg.exe -y -i D:/wamp/www/upload_google_drive/output.flv -c:v libx264 -crf 19 -preset slow -c:a aac -strict experimental -b:a 192k -ac 2 D:/wamp/www/upload_google_drive/w3.mp4 2>&1',$output);

    in some of the devices it does not run. The message which appears is

    Cannot play this video.

    Please help to sort out my issue.

    Output :

        Array ( [0] => ffmpeg version N-77137-gff6dd58 Copyright (c) 2000-2015 the FFmpeg developers [1] => built with gcc 5.2.0 (GCC)
       [2] => configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
       [3] => libavutil 55. 10.100 / 55. 10.100
       [4] => libavcodec 57. 17.100 / 57. 17.100
       [5] => libavformat 57. 19.100 / 57. 19.100
       [6] => libavdevice 57. 0.100 / 57. 0.100
       [7] => libavfilter 6. 20.100 / 6. 20.100
       [8] => libswscale 4. 0.100 / 4. 0.100
       [9] => libswresample 2. 0.101 / 2. 0.101
       [10] => libpostproc 54. 0.100 / 54. 0.100
       [11] => Input #0, flv, from 'D:/wamp/www/upload_google_drive/output.flv':
       [12] => Metadata:
       [13] => major_brand : mp42
       [14] => minor_version : 1
       [15] => compatible_brands: mp42avc1
       [16] => encoder : Lavf57.19.100
       [17] => Duration: 00:01:00.14, start: 0.000000, bitrate: 307 kb/s
       [18] => Stream #0:0: Video: flv1, yuv420p, 480x320, 200 kb/s, 24 fps, 24 tbr, 1k tbn, 1k tbc
       [19] => Stream #0:1: Audio: aac (LC), 44100 Hz, mono, fltp, 62 kb/s
       [20] => [libx264 @ 0000000001c31860] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2

    [21] => [libx264 @ 0000000001c31860] profile Constrained Baseline, level 3.0 [22] => [libx264 @ 0000000001c31860] 264 - core 148 r2638 7599210 - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - 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=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=24 scenecut=40 intra_refresh=0 rc_lookahead=50 rc=crf mbtree=1 crf=19.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
    [23] => Output #0, mp4, to 'D:/wamp/www/upload_google_drive/w5.mp4':
    [24] => Metadata:
    [25] => major_brand : mp42
    [26] => minor_version : 1
    [27] => compatible_brands: mp42avc1
    [28] => encoder : Lavf57.19.100
    [29] => Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 480x320, q=-1--1, 24 fps, 12288 tbn, 24 tbc
    [30] => Metadata:
    [31] => encoder : Lavc57.17.100 libx264
    [32] => Stream #0:1: Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, stereo, fltp, 192 kb/s
    [33] => Metadata:
    [34] => encoder : Lavc57.17.100 aac
    [35] => Stream mapping:
    [36] => Stream #0:0 -> #0:0 (flv1 (flv) -> h264 (libx264))
    [37] => Stream #0:1 -> #0:1 (aac (native) -> aac (native))
    [38] => Press [q] to stop, [?] for help
    [39] => frame= 55 fps=0.0 q=23.0 size= 27kB time=00:00:02.22 bitrate= 98.2kbits/s frame= 96 fps= 93 q=24.0 size= 137kB time=00:00:03.92 bitrate= 285.4kbits/s frame= 161 fps=105 q=24.0 size= 317kB time=00:00:06.64 bitrate= 391.6kbits/s frame= 220 fps=108 q=24.0 size= 541kB time=00:00:09.07 bitrate= 487.8kbits/s frame= 274 fps=108 q=24.0 size= 773kB time=00:00:11.35 bitrate= 557.8kbits/s frame= 326 fps=107 q=24.0 size= 1109kB time=00:00:13.53 bitrate= 671.4kbits/s Past duration 0.607994 too large
    [40] => Last message repeated 1 times
    [41] => Past duration 0.615990 too large
    [42] => Past duration 0.607994 too large
    [43] => frame= 382 fps=108 q=24.0 size= 1439kB time=00:00:15.81 bitrate= 745.6kbits/s Past duration 0.615990 too large
    [44] => Past duration 0.607994 too large
    [45] => Past duration 0.623985 too large
    [46] => Past duration 0.615990 too large
    [47] => Past duration 0.607994 too large
    [48] => Past duration 0.623985 too large
    [49] => Past duration 0.615990 too large
    [50] => Past duration 0.631996 too large
    [51] => Past duration 0.623985 too large
    [52] => Past duration 0.615990 too large
    [53] => Past duration 0.631996 too large
    [54] => Past duration 0.623985 too large
    [55] => Past duration 0.639992 too large
    [56] => Past duration 0.631996 too large
    [57] => Past duration 0.623985 too large
    [58] => Past duration 0.639992 too large
    [59] => Past duration 0.631996 too large
    [60] => Past duration 0.647987 too large
    [61] => Past duration 0.639992 too large
    [62] => Past duration 0.631996 too large
    [63] => Past duration 0.647987 too large
    [64] => Past duration 0.639992 too large
    [65] => Past duration 0.655998 too large
    [66] => Past duration 0.647987 too large
    [67] => Past duration 0.639992 too large
    [68] => Past duration 0.655998 too large
    [69] => Past duration 0.647987 too large
    [70] => Past duration 0.663994 too large
    [71] => Past duration 0.655998 too large
    [72] => Past duration 0.647987 too large
    [73] => Past duration 0.663994 too large
    [74] => Past duration 0.655998 too large
    [75] => Past duration 0.671989 too large
    [76] => Past duration 0.663994 too large
    [77] => Past duration 0.655998 too large
    [78] => Past duration 0.671989 too large
    [79] => Past duration 0.663994 too large
    [80] => Past duration 0.679985 too large
    [81] => Past duration 0.671989 too large
    [82] => Past duration 0.663994 too large
    [83] => Past duration 0.679985 too large
    [84] => Past duration 0.671989 too large
    [85] => Past duration 0.687996 too large
    [86] => Past duration 0.679985 too large
    [87] => Past duration 0.671989 too large
    [88] => Past duration 0.687996 too large
    [89] => Past duration 0.679985 too large
    [90] => Past duration 0.695992 too large
    [91] => Past duration 0.687996 too large
    [92] => Past duration 0.679985 too large
    [93] => Past duration 0.695992 too large
    [94] => Past duration 0.687996 too large
    [95] => Past duration 0.703987 too large
    [96] => Past duration 0.695992 too large
    [97] => frame= 436 fps=108 q=24.0 size= 1732kB time=00:00:18.08 bitrate= 784.5kbits/s Past duration 0.687996 too large
    [98] => Past duration 0.703987 too large
    [99] => Past duration 0.695992 too large
    [100] => Past duration 0.711998 too large
    [101] => Past duration 0.703987 too large
    [102] => Past duration 0.695992 too large
    [103] => Past duration 0.711998 too large
    [104] => Past duration 0.703987 too large
    [105] => Past duration 0.719994 too large
    [106] => Past duration 0.711998 too large
    [107] => Past duration 0.703987 too large
    [108] => Past duration 0.719994 too large
    [109] => Past duration 0.711998 too large
    [110] => Past duration 0.727989 too large
    [111] => Past duration 0.719994 too large
    [112] => Past duration 0.711998 too large
    [113] => Past duration 0.727989 too large
    [114] => Past duration 0.719994 too large
    [115] => Past duration 0.735985 too large
    [116] => Past duration 0.727989 too large
    [117] => Past duration 0.719994 too large
    [118] => Past duration 0.735985 too large
    [119] => Past duration 0.727989 too large
    [120] => Past duration 0.743996 too large
    [121] => Past duration 0.735985 too large
    [122] => Past duration 0.727989 too large
    [123] => Past duration 0.743996 too large
    [124] => Past duration 0.735985 too large
    [125] => Past duration 0.751991 too large
    [126] => Past duration 0.743996 too large
    [127] => Past duration 0.735985 too large
    [128] => Past duration 0.751991 too large
    [129] => Past duration 0.743996 too large
    [130] => Past duration 0.759987 too large
    [131] => Past duration 0.751991 too large
    [132] => Past duration 0.743996 too large
    [133] => Past duration 0.759987 too large
    [134] => Past duration 0.751991 too large
    [135] => Past duration 0.767998 too large
    [136] => Past duration 0.759987 too large
    [137] => Past duration 0.751991 too large
    [138] => Past duration 0.767998 too large
    [139] => Past duration 0.759987 too large
    [140] => Past duration 0.775993 too large
    [141] => Past duration 0.767998 too large
    [142] => Past duration 0.759987 too large
    [143] => Past duration 0.775993 too large
    [144] => Past duration 0.767998 too large
    [145] => Past duration 0.783989 too large
    [146] => Past duration 0.775993 too large
    [147] => Past duration 0.767998 too large
    [148] => Past duration 0.783989 too large
    [149] => Past duration 0.775993 too large
    [150] => Past duration 0.792000 too large
    [151] => Past duration 0.783989 too large
    [152] => Past duration 0.775993 too large
    [153] => Past duration 0.792000 too large
    [154] => Past duration 0.783989 too large
    [155] => Past duration 0.799995 too large
    [156] => Past duration 0.792000 too large
    [157] => Past duration 0.783989 too large
    [158] => Past duration 0.799995 too large
    [159] => Past duration 0.792000 too large
    [160] => Past duration 0.807991 too large
    [161] => Past duration 0.799995 too large
    [162] => Past duration 0.792000 too large
    [163] => Past duration 0.807991 too large
    [164] => Past duration 0.799995 too large
    [165] => Past duration 0.815987 too large
    [166] => Past duration 0.807991 too large
    [167] => Past duration 0.799995 too large
    [168] => Past duration 0.815987 too large
    [169] => frame= 508 fps=112 q=24.0 size= 1953kB time=00:00:21.10 bitrate= 758.1kbits/s Past duration 0.807991 too large
    [170] => Past duration 0.823997 too large
    [171] => Past duration 0.815987 too large
    [172] => Past duration 0.807991 too large
    [173] => Past duration 0.823997 too large
    [174] => Past duration 0.815987 too large
    [175] => Past duration 0.831993 too large
    [176] => Past duration 0.823997 too large
    [177] => Past duration 0.815987 too large
    [178] => Past duration 0.831993 too large
    [179] => Past duration 0.823997 too large
    [180] => Past duration 0.839989 too large
    [181] => Past duration 0.831993 too large
    [182] => Past duration 0.823997 too large
    [183] => Past duration 0.839989 too large
    [184] => Past duration 0.831993 too large
    [185] => Past duration 0.848000 too large
    [186] => Past duration 0.839989 too large
    [187] => Past duration 0.831993 too large
    [188] => Past duration 0.848000 too large
    [189] => Past duration 0.839989 too large
    [190] => Past duration 0.855995 too large
    [191] => Past duration 0.848000 too large
    [192] => Past duration 0.839989 too large
    [193] => Past duration 0.855995 too large
    [194] => Past duration 0.848000 too large
    [195] => Past duration 0.863991 too large
    [196] => Past duration 0.855995 too large
    [197] => Past duration 0.848000 too large
    [198] => Past duration 0.863991 too large
    [199] => Past duration 0.855995 too large
    [200] => Past duration 0.871986 too large
    [201] => Past duration 0.863991 too large
    [202] => Past duration 0.855995 too large
    [203] => Past duration 0.871986 too large
    [204] => Past duration 0.863991 too large
    [205] => Past duration 0.879997 too large
    [206] => Past duration 0.871986 too large
    [207] => Past duration 0.863991 too large
    [208] => Past duration 0.879997 too large
    [209] => Past duration 0.871986 too large
    [210] => Past duration 0.887993 too large
    [211] => Past duration 0.879997 too large
    [212] => Past duration 0.871986 too large
    [213] => Past duration 0.887993 too large
    [214] => Past duration 0.879997 too large
    [215] => Past duration 0.895988 too large
    [216] => Past duration 0.887993 too large
    [217] => Past duration 0.879997 too large
    [218] => Past duration 0.895988 too large
    [219] => Past duration 0.887993 too large
    [220] => Past duration 0.903999 too large
    [221] => Past duration 0.895988 too large
    [222] => Past duration 0.887993 too large
    [223] => Past duration 0.903999 too large
    [224] => Past duration 0.895988 too large
    [225] => Past duration 0.911995 too large
    [226] => Past duration 0.903999 too large
    [227] => Past duration 0.895988 too large
    [228] => Past duration 0.911995 too large
    [229] => Past duration 0.903999 too large
    [230] => Past duration 0.919991 too large
    [231] => Past duration 0.911995 too large
    [232] => frame= 571 fps=113 q=24.0 size= 2150kB time=00:00:23.68 bitrate= 743.7kbits/s Past duration 0.903999 too large
    [233] => Past duration 0.919991 too large
    [234] => Past duration 0.911995 too large
    [235] => Past duration 0.927986 too large
    [236] => Past duration 0.919991 too large
    [237] => Past duration 0.911995 too large
    [238] => Past duration 0.927986 too large
    [239] => Past duration 0.919991 too large
    [240] => Past duration 0.935997 too large
    [241] => Past duration 0.927986 too large
    [242] => Past duration 0.919991 too large
    [243] => Past duration 0.935997 too large
    [244] => Past duration 0.927986 too large
    [245] => Past duration 0.943993 too large
    [246] => Past duration 0.935997 too large
    [247] => Past duration 0.927986 too large
    [248] => Past duration 0.943993 too large
    [249] => Past duration 0.935997 too large
    [250] => Past duration 0.951988 too large
    [251] => Past duration 0.943993 too large
    [252] => Past duration 0.935997 too large
    [253] => Past duration 0.951988 too large
    [254] => Past duration 0.943993 too large
    [255] => Past duration 0.959999 too large
    [256] => Past duration 0.951988 too large
    [257] => Past duration 0.943993 too large
    [258] => Past duration 0.959999 too large
    [259] => Past duration 0.951988 too large
    [260] => Past duration 0.967995 too large
    [261] => Past duration 0.959999 too large
    [262] => Past duration 0.951988 too large
    [263] => Past duration 0.967995 too large
    [264] => Past duration 0.959999 too large
    [265] => Past duration 0.975990 too large
    [266] => Past duration 0.967995 too large
    [267] => Past duration 0.959999 too large
    [268] => Past duration 0.975990 too large
    [269] => Past duration 0.967995 too large
    [270] => Past duration 0.983986 too large
    [271] => Past duration 0.975990 too large
    [272] => Past duration 0.967995 too large
    [273] => Past duration 0.983986 too large
    [274] => Past duration 0.975990 too large
    [275] => Past duration 0.991997 too large
    [276] => Past duration 0.983986 too large
    [277] => Past duration 0.975990 too large
    [278] => Past duration 0.991997 too large
    [279] => Past duration 0.983986 too large
    [280] => Past duration 0.999992 too large
    [281] => Past duration 0.991997 too large
    [282] => Past duration 0.983986 too large
    [283] => frame= 622 fps=112 q=24.0 size= 2328kB time=00:00:25.82 bitrate= 738.7kbits/s Past duration 0.999992 too large
    [284] => Past duration 0.991997 too large
    [285] => Past duration 0.999992 too large
    [286] => Past duration 0.991997 too large
    [287] => Past duration 0.999992 too large
    [288] => Last message repeated 1 times
    [289] => frame= 672 fps=111 q=24.0 size= 2585kB time=00:00:27.91 bitrate= 758.8kbits/s frame= 719 fps=110 q=24.0 size= 2829kB time=00:00:29.86 bitrate= 776.0kbits/s frame= 765 fps=109 q=24.0 size= 3063kB time=00:00:31.76 bitrate= 789.8kbits/s frame= 812 fps=108 q=24.0 size= 3282kB time=00:00:33.71 bitrate= 797.5kbits/s frame= 853 fps=106 q=24.0 size= 3472kB time=00:00:35.45 bitrate= 802.2kbits/s frame= 897 fps=105 q=24.0 size= 3713kB time=00:00:37.26 bitrate= 816.1kbits/s frame= 943 fps=104 q=24.0 size= 3960kB time=00:00:39.17 bitrate= 828.0kbits/s frame= 987 fps=103 q=24.0 size= 4205kB time=00:00:41.00 bitrate= 840.1kbits/s frame= 1033 fps=102 q=24.0 size= 4442kB time=00:00:42.91 bitrate= 848.1kbits/s frame= 1074 fps=101 q=24.0 size= 4627kB time=00:00:44.60 bitrate= 849.7kbits/s frame= 1123 fps=101 q=24.0 size= 4861kB time=00:00:46.67 bitrate= 853.3kbits/s frame= 1168 fps=101 q=24.0 size= 5079kB time=00:00:48.52 bitrate= 857.3kbits/s frame= 1216 fps=100 q=24.0 size= 5312kB time=00:00:50.52 bitrate= 861.3kbits/s frame= 1254 fps= 99 q=24.0 size= 5519kB time=00:00:52.10 bitrate= 867.7kbits/s frame= 1302 fps= 99 q=24.0 size= 5751kB time=00:00:54.12 bitrate= 870.5kbits/s frame= 1358 fps= 99 q=24.0 size= 6002kB time=00:00:56.47 bitrate= 870.8kbits/s dup=0 drop=1 frame= 1427 fps=101 q=24.0 size= 6243kB time=00:00:59.35 bitrate= 861.8kbits/s dup=0 drop=1 frame= 1444 fps=100 q=-1.0 Lsize= 6451kB time=00:01:00.16 bitrate= 878.3kbits/s dup=0 drop=1
    [290] => video:5008kB audio:1407kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.550038%
    [291] => [libx264 @ 0000000001c31860] frame I:10 Avg QP:13.67 size: 25967
    [292] => [libx264 @ 0000000001c31860] frame P:1434 Avg QP:18.73 size: 3395
    [293] => [libx264 @ 0000000001c31860] mb I I16..4: 36.0% 0.0% 64.0%
    [294] => [libx264 @ 0000000001c31860] mb P I16..4: 3.6% 0.0% 4.0% P16..4: 21.9% 5.5% 4.2% 0.0% 0.0% skip:60.8%
    [295] => [libx264 @ 0000000001c31860] coded y,uvDC,uvAC intra: 51.3% 62.1% 11.5% inter: 11.4% 14.4% 2.1%
    [296] => [libx264 @ 0000000001c31860] i16 v,h,dc,p: 52% 30% 16% 2%
    [297] => [libx264 @ 0000000001c31860] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 34% 25% 17% 3% 4% 4% 3% 4% 5%
    [298] => [libx264 @ 0000000001c31860] i8c dc,h,v,p: 39% 32% 25% 4%
    [299] => [libx264 @ 0000000001c31860] ref P L0: 82.2% 8.5% 4.8% 2.2% 2.3%
    [300] => [libx264 @ 0000000001c31860] kb/s:681.85 [301] => [aac @ 0000000001c322a0] Qavg: 14325.964 )
  • Video frame difference with FFMPEG

    27 décembre 2015, par StepTNT

    I need to compute the frame differences between a source video and a compressed one.
    For now I’m using OpenCV with Java, by extracting each frame and doing a simple difference, but it’s quite slow (working a 0.5 fps, meaning that a 500 frames video will take more than 15 mins) so I was thinking to move to FFMPEG.

    FFMPEG feels a lot faster (everything’s done under 1 minute) but it has one big issue that makes the results useless : when compressing the source file, done with FFMPEG too, an extra gray frame is added at the beginning and this fakes the results because different frames are compared.

    This is what I’m doing now (knowing that the extra frame messes it all) :

    ffmpeg -y -i src.avi -i compressed.avi -filter_complex "blend=all_mode=difference,hue=s=0" -c:v libx264 -crf 18 -c:a copy difference.avi

    To fix the frame issue I was trying to remove the first frame by re-encoding the compressed video with this command

    ffmpeg -y -ss 0.02 -i compressed.mpg -an -f mpeg2video compressed-cut.mpg"

    (Note that -ss is 0.02 because it’s a 50 fps video, so I did 1/FPS as suggested here)

    But I get this response

    Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)

    So, finally, the question is : since extracting all the frames and then compute differences with OpenCV is really slow, how can I use FFMPEG to produce a video containing the difference between two sources while keeping in mind that one of them has an extra frame at the beginning ?

    EDIT : I wanted to avoid posting endless console outputs but since you asked for it, here we go.

    1) Encoding

    Input

    ffmpeg -i "720p50_mobcal_ter.avi" -an -f mpeg2video -y "720p50_mobcal_ter.mpg"

    Output

    ffmpeg version N-76684-g1fe82ab Copyright (c) 2000-2015 the FFmpeg developers
     built with gcc 5.2.0 (GCC)
     configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
     libavutil      55.  6.100 / 55.  6.100
     libavcodec     57. 15.100 / 57. 15.100
     libavformat    57. 14.100 / 57. 14.100
     libavdevice    57.  0.100 / 57.  0.100
     libavfilter     6. 15.100 /  6. 15.100
     libswscale      4.  0.100 /  4.  0.100
     libswresample   2.  0.101 /  2.  0.101
     libpostproc    54.  0.100 / 54.  0.100
    Input #0, avi, from '720p50_mobcal_ter.avi':
     Metadata:
       encoder         : Lavf57.14.100
     Duration: 00:00:10.08, start: 0.000000, bitrate: 552974 kb/s
       Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 1280x720, 554059 kb/s, SAR 1:1 DAR 16:9, 50 fps, 50 tbr, 50 tbn, 50 tbc
    Output #0, mpeg2video, to '720p50_mobcal_ter.mpg':
     Metadata:
       encoder         : Lavf57.14.100
       Stream #0:0: Video: mpeg2video, yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 50 fps, 50 tbn, 50 tbc
       Metadata:
         encoder         : Lavc57.15.100 mpeg2video
    Stream mapping:
     Stream #0:0 -> #0:0 (rawvideo (native) -> mpeg2video (native))
    Press [q] to stop, [?] for help
    frame=   41 fps=0.0 q=31.0 size=     984kB time=00:00:00.78 bitrate=10330.5kbits/frame=   80 fps= 78 q=31.0 size=    1323kB time=00:00:01.56 bitrate=6948.1kbits/frame=  124 fps= 80 q=31.0 size=    1725kB time=00:00:02.44 bitrate=5790.0kbits/frame=  168 fps= 81 q=31.0 size=    2084kB time=00:00:03.32 bitrate=5142.8kbits/frame=  212 fps= 81 q=31.0 size=    2482kB time=00:00:04.20 bitrate=4841.4kbits/frame=  255 fps= 82 q=31.0 size=    2840kB time=00:00:05.06 bitrate=4597.2kbits/frame=  296 fps= 82 q=31.0 size=    3133kB time=00:00:05.88 bitrate=4364.5kbits/frame=  338 fps= 82 q=24.8 size=    3453kB time=00:00:06.72 bitrate=4209.2kbits/frame=  382 fps= 82 q=31.0 size=    3723kB time=00:00:07.60 bitrate=4013.4kbits/frame=  426 fps= 83 q=31.0 size=    4005kB time=00:00:08.48 bitrate=3869.1kbits/frame=  470 fps= 83 q=24.8 size=    4276kB time=00:00:09.36 bitrate=3742.5kbits/frame=  504 fps= 83 q=31.0 Lsize=    4469kB time=00:00:10.06 bitrate=3639.3kbits/s
    video:4469kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000%

    This adds the extra grey frame at the beginning, it just duplicates the first one

    2) Removing first frame

    Input

    ffmpeg -y -i "720p50_mobcal_ter.mpg" -an -f mpeg2video -vf select=gte(n\,1) "CUT-720p50_mobcal_ter.mpg"

    Output

    ffmpeg version N-76684-g1fe82ab Copyright (c) 2000-2015 the FFmpeg developers
     built with gcc 5.2.0 (GCC)
     configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
     libavutil      55.  6.100 / 55.  6.100
     libavcodec     57. 15.100 / 57. 15.100
     libavformat    57. 14.100 / 57. 14.100
     libavdevice    57.  0.100 / 57.  0.100
     libavfilter     6. 15.100 /  6. 15.100
     libswscale      4.  0.100 /  4.  0.100
     libswresample   2.  0.101 /  2.  0.101
     libpostproc    54.  0.100 / 54.  0.100
    Input #0, mpegvideo, from '720p50_mobcal_ter.mpg':
     Duration: N/A, bitrate: N/A
       Stream #0:0: Video: mpeg2video (Main), yuv420p(tv), 1280x720 [SAR 1:1 DAR 16:9], max. 104857 kb/s, 50 fps, 50 tbr, 1200k tbn, 100 tbc
    Output #0, mpeg2video, to 'CUT-720p50_mobcal_ter.mpg':
     Metadata:
       encoder         : Lavf57.14.100
       Stream #0:0: Video: mpeg2video, yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 50 fps, 50 tbn, 50 tbc
       Metadata:
         encoder         : Lavc57.15.100 mpeg2video
    Stream mapping:
     Stream #0:0 -> #0:0 (mpeg2video (native) -> mpeg2video (native))
    Press [q] to stop, [?] for help
    frame=  255 fps=0.0 q=31.0 size=    2781kB time=00:00:05.10 bitrate=4467.3kbits/frame=  503 fps=0.0 q=31.0 Lsize=    4415kB time=00:00:10.08 bitrate=3588.5kbits/s
    video:4415kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000%

    3) Frame difference

    Input

    ffmpeg -y -i "720p50_mobcal_ter.avi" -i "CUT-720p50_mobcal_ter.mpg" -filter_complex "blend=all_mode=difference,hue=s=0" -c:v libx264 -crf 18 -c:a copy "DIFF-720p50_mobcal_ter.mpg"

    Output

    ffmpeg version N-76684-g1fe82ab Copyright (c) 2000-2015 the FFmpeg developers
     built with gcc 5.2.0 (GCC)
     configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
     libavutil      55.  6.100 / 55.  6.100
     libavcodec     57. 15.100 / 57. 15.100
     libavformat    57. 14.100 / 57. 14.100
     libavdevice    57.  0.100 / 57.  0.100
     libavfilter     6. 15.100 /  6. 15.100
     libswscale      4.  0.100 /  4.  0.100
     libswresample   2.  0.101 /  2.  0.101
     libpostproc    54.  0.100 / 54.  0.100
    Input #0, avi, from '720p50_mobcal_ter.avi':
     Metadata:
       encoder         : Lavf57.14.100
     Duration: 00:00:10.08, start: 0.000000, bitrate: 552974 kb/s
       Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 1280x720, 554059 kb/s, SAR 1:1 DAR 16:9, 50 fps, 50 tbr, 50 tbn, 50 tbc
    Input #1, mpegvideo, from 'CUT-720p50_mobcal_ter.mpg':
     Duration: N/A, bitrate: N/A
       Stream #1:0: Video: mpeg2video (Main), yuv420p(tv), 1280x720 [SAR 1:1 DAR 16:9], max. 104857 kb/s, 50 fps, 50 tbr, 1200k tbn, 100 tbc
    [libx264 @ 000002784dbeb980] using SAR=1/1
    [libx264 @ 000002784dbeb980] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
    [libx264 @ 000002784dbeb980] profile High, level 3.2
    [mpeg @ 000002784dbeaf20] VBV buffer size not set, using default size of 130KB
    If you want the mpeg file to be compliant to some specification
    Like DVD, VCD or others, make sure you set the correct buffer size
    Output #0, mpeg, to 'D:\DOWNLOADS\TMP\Video TDI\AVI\DIFF-720p50_mobcal_ter.mpg':
     Metadata:
       encoder         : Lavf57.14.100
       Stream #0:0: Video: h264 (libx264), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 50 fps, 90k tbn, 50 tbc (default)
       Metadata:
         encoder         : Lavc57.15.100 libx264
    Stream mapping:
     Stream #0:0 (rawvideo) -> blend:top
     Stream #1:0 (mpeg2video) -> blend:bottom
     hue -> Stream #0:0 (libx264)
    Press [q] to stop, [?] for help
    frame=  504 fps= 39 q=-1.0 Lsize=   32182kB time=00:00:10.04 bitrate=26258.5kbits/s
    video:32061kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.377054%
    [libx264 @ 000002784dbeb980] frame I:30    Avg QP:19.69  size:149974
    [libx264 @ 000002784dbeb980] frame P:299   Avg QP:23.28  size: 69423
    [libx264 @ 000002784dbeb980] frame B:175   Avg QP:24.48  size: 43280
    [libx264 @ 000002784dbeb980] consecutive B-frames: 30.6% 69.4%  0.0%  0.0%
    [libx264 @ 000002784dbeb980] mb I  I16..4: 18.3% 51.4% 30.4%
    [libx264 @ 000002784dbeb980] mb P  I16..4:  0.6%  5.6%  2.4%  P16..4: 35.9% 22.9% 15.6%  0.0%  0.0%    skip:17.0%
    [libx264 @ 000002784dbeb980] mb B  I16..4:  0.2%  0.5%  0.3%  B16..8: 49.5% 12.4%  5.6%  direct:15.5%  skip:16.1%  L0:47.8% L1:42.1% BI:10.1%
    [libx264 @ 000002784dbeb980] 8x8 transform intra:57.5% inter:38.5%
    [libx264 @ 000002784dbeb980] coded y,uvDC,uvAC intra: 90.7% 0.0% 0.0% inter: 50.3% 0.0% 0.0%
    [libx264 @ 000002784dbeb980] i16 v,h,dc,p: 32% 23% 35% 10%
    [libx264 @ 000002784dbeb980] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 11% 11% 41%  7%  5%  6%  5%  6%  8%
    [libx264 @ 000002784dbeb980] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 14% 23%  8%  7%  7%  7%  7%  8%
    [libx264 @ 000002784dbeb980] i8c dc,h,v,p: 100%  0%  0%  0%
    [libx264 @ 000002784dbeb980] Weighted P-Frames: Y:33.8% UV:0.0%
    [libx264 @ 000002784dbeb980] ref P L0: 58.1% 16.3% 14.2%  9.4%  2.0%
    [libx264 @ 000002784dbeb980] ref B L0: 79.3% 20.7%
    [libx264 @ 000002784dbeb980] kb/s:26056.02

    The second command made everything work while the second one in the first part didn’t (the one with the -ss option), so I could be quite happy about it but I’m not that sure if FFMPEG duplicates the first frame for every video or if it’s just related to the one I’m using now, so it could be better to start off with a compressed video that has the same frame count of the original one.

    So let’s get to one final question : why does FFMPEG add a duplicated first frame at the beginning of the compressed video and how can I avoid that ?