[FFmpeg-user] White frames at the end

Jaume Lopez glueball at gmail.com
Fri May 25 16:20:07 CEST 2012


Greetings,

I've been trying to use ffmpeg to do a mov to mov conversion (with
different size and bitrate in the output, otherwise it'd be useless of
course).

However, the output file has some white frames at the end. Running ffmpeg
-i on both the original file and the resulting file, so I can see the
details of the codification, reveals that the latter is 0.03 seconds longer
(pasting raw output below).

By googling I found this (http://forums.creativecow.net/thread/291/681).
But using the -shortest parameter doesn't change anything, same results.

Could any of you, please, give me a clue or point me to a resource to
diagnose the problem? Many thanks in advance.

Here you have raw ffmpeg output:

-
Compile

$ ffmpeg -y -shortest -i (input file).mov -ar 44100 -b 1500000 -f mov -r 25
-s 640x360  (output file).mov
ffmpeg version 0.10.2 Copyright (c) 2000-2012 the FFmpeg developers
  built on Apr 25 2012 10:56:47 with gcc 4.4.5
  configuration: --enable-version3 --enable-libvpx --enable-libfaac
--enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264
--enable-shared --enable-gpl --enable-postproc --enable-nonfree
--enable-avfilter --extra-cflags=-fPIC --enable-librtmp
--enable-libopencore-amrnb --enable-libopencore-amrwb --disable-pthreads
  libavutil      51. 35.100 / 51. 35.100
  libavcodec     53. 61.100 / 53. 61.100
  libavformat    53. 32.100 / 53. 32.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 61.100 /  2. 61.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  6.100 /  0.  6.100
  libpostproc    52.  0.100 / 52.  0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '(input file).mov':
  Metadata:
    major_brand     : qt
    minor_version   : 537199360
    compatible_brands: qt
    creation_time   : 2012-05-23 15:30:08
  Duration: 00:00:33.96, start: 0.000000, bitrate: 89954 kb/s
    Stream #0:0(eng): Video: prores (apch / 0x68637061), yuv422p10le,
1280x720, 88398 kb/s, SAR 1:1 DAR 16:9, 25 fps, 25 tbr, 25 tbn, 25 tbc
    Metadata:
      creation_time   : 2012-05-23 15:30:08
      handler_name    : ?Apple Alias Data Handler
    Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, 2
channels, s16, 1536 kb/s
    Metadata:
      creation_time   : 2012-05-23 15:30:08
      handler_name    : ?Apple Alias Data Handler
    Stream #0:2(eng): Data: none (tmcd / 0x64636D74)
    Metadata:
      creation_time   : 2012-05-23 15:30:21
      handler_name    : ?Apple Alias Data Handler
      timecode        : 01:01:21:21
Please use -b:a or -b:v, -b is ambiguous
Incompatible pixel format 'yuv422p10le' for codec 'libx264', auto-selecting
format 'yuv420p'
[buffer @ 0x96e8e0] w:1280 h:720 pixfmt:yuv422p10le tb:1/1000000 sar:1/1
sws_param:
[scale @ 0x96ef40] w:1280 h:720 fmt:yuv422p10le -> w:640 h:360 fmt:yuv420p
flags:0x4
[libx264 @ 0x99bb80] using SAR=1/1
[libx264 @ 0x99bb80] using cpu capabilities: MMX2 SSE2Fast SSSE3
FastShuffle SSE4.1 Cache64
[libx264 @ 0x99bb80] profile High, level 3.0
[libx264 @ 0x99bb80] 264 - core 122 - H.264/MPEG-4 AVC codec - Copyleft
2003-2012 - 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=6 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=abr mbtree=1
bitrate=1500 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40
aq=1:1.00
Output #0, mov, to '(output file).mov':
  Metadata:
    major_brand     : qt
    minor_version   : 537199360
    compatible_brands: qt
    creation_time   : 2012-05-23 15:30:08
    encoder         : Lavf53.32.100
    Stream #0:0(eng): Video: h264 (avc1 / 0x31637661), yuv420p, 640x360
[SAR 1:1 DAR 16:9], q=-1--1, 1500 kb/s, 25 tbn, 25 tbc
    Metadata:
      creation_time   : 2012-05-23 15:30:08
      handler_name    : ?Apple Alias Data Handler
    Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, 2 channels,
s16, 128 kb/s
    Metadata:
      creation_time   : 2012-05-23 15:30:08
      handler_name    : ?Apple Alias Data Handler
Stream mapping:
  Stream #0:0 -> #0:0 (prores -> libx264)
  Stream #0:1 -> #0:1 (pcm_s16le -> libfaac)
Press [q] to stop, [?] for help
frame=  849 fps= 30 q=16.0 Lsize=    5806kB time=00:00:33.88
bitrate=1404.0kbits/s
video:5263kB audio:516kB global headers:0kB muxing overhead 0.487038%
[libx264 @ 0x99bb80] frame I:24    Avg QP:14.36  size: 34964
[libx264 @ 0x99bb80] frame P:383   Avg QP:17.47  size: 10063
[libx264 @ 0x99bb80] frame B:442   Avg QP:21.80  size:  1572
[libx264 @ 0x99bb80] consecutive B-frames: 20.6% 25.9% 12.0% 41.5%
[libx264 @ 0x99bb80] mb I  I16..4: 18.2% 58.0% 23.9%
[libx264 @ 0x99bb80] mb P  I16..4:  1.4%  4.6%  2.0%  P16..4: 33.9% 16.7%
11.5%  0.0%  0.0%    skip:30.1%
[libx264 @ 0x99bb80] mb B  I16..4:  0.0%  0.3%  0.1%  B16..8: 20.9%  2.7%
1.1%  direct: 2.5%  skip:72.5%  L0:34.6% L1:51.9% BI:13.5%
[libx264 @ 0x99bb80] final ratefactor: 15.13
[libx264 @ 0x99bb80] 8x8 transform intra:58.1% inter:65.2%
[libx264 @ 0x99bb80] coded y,uvDC,uvAC intra: 83.9% 84.5% 66.2% inter:
19.4% 15.2% 5.4%
[libx264 @ 0x99bb80] i16 v,h,dc,p: 17% 12% 18% 53%
[libx264 @ 0x99bb80] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 14% 21% 28%  5%  6%
4%  8%  5%  9%
[libx264 @ 0x99bb80] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 21% 19%  7%  7%
6%  8%  6%  9%
[libx264 @ 0x99bb80] i8c dc,h,v,p: 54% 26% 12%  8%
[libx264 @ 0x99bb80] Weighted P-Frames: Y:9.7% UV:5.2%
[libx264 @ 0x99bb80] ref P L0: 60.2% 13.8% 17.4%  7.6%  1.0%
[libx264 @ 0x99bb80] ref B L0: 84.4% 14.0%  1.6%
[libx264 @ 0x99bb80] ref B L1: 93.0%  7.0%
[libx264 @ 0x99bb80] kb/s:1269.30




- Input file Info
$ ffmpeg -i (input file).mov
ffmpeg version 0.10.2 Copyright (c) 2000-2012 the FFmpeg developers
  built on Apr 25 2012 10:56:47 with gcc 4.4.5
  configuration: --enable-version3 --enable-libvpx --enable-libfaac
--enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264
--enable-shared --enable-gpl --enable-postproc --enable-nonfree
--enable-avfilter --extra-cflags=-fPIC --enable-librtmp
--enable-libopencore-amrnb --enable-libopencore-amrwb --disable-pthreads
  libavutil      51. 35.100 / 51. 35.100
  libavcodec     53. 61.100 / 53. 61.100
  libavformat    53. 32.100 / 53. 32.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 61.100 /  2. 61.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  6.100 /  0.  6.100
  libpostproc    52.  0.100 / 52.  0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '(input
file)':

  Metadata:
    major_brand     : qt
    minor_version   : 537199360
    compatible_brands: qt
    creation_time   : 2012-05-23 15:30:08
  Duration: 00:00:33.96, start: 0.000000, bitrate: 89954 kb/s
    Stream #0:0(eng): Video: prores (apch / 0x68637061), yuv422p10le,
1280x720, 88398 kb/s, SAR 1:1 DAR 16:9, 25 fps, 25 tbr, 25 tbn, 25 tbc
    Metadata:
      creation_time   : 2012-05-23 15:30:08
      handler_name    : ?Apple Alias Data Handler
    Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, 2
channels, s16, 1536 kb/s
    Metadata:
      creation_time   : 2012-05-23 15:30:08
      handler_name    : ?Apple Alias Data Handler
    Stream #0:2(eng): Data: none (tmcd / 0x64636D74)
    Metadata:
      creation_time   : 2012-05-23 15:30:21
      handler_name    : ?Apple Alias Data Handler
      timecode        : 01:01:21:21
At least one output file must be specified





- Output file info
$ ffmpeg -i  (output file).mov
ffmpeg version 0.10.2 Copyright (c) 2000-2012 the FFmpeg developers
  built on Apr 25 2012 10:56:47 with gcc 4.4.5
  configuration: --enable-version3 --enable-libvpx --enable-libfaac
--enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264
--enable-shared --enable-gpl --enable-postproc --enable-nonfree
--enable-avfilter --extra-cflags=-fPIC --enable-librtmp
--enable-libopencore-amrnb --enable-libopencore-amrwb --disable-pthreads
  libavutil      51. 35.100 / 51. 35.100
  libavcodec     53. 61.100 / 53. 61.100
  libavformat    53. 32.100 / 53. 32.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 61.100 /  2. 61.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  6.100 /  0.  6.100
  libpostproc    52.  0.100 / 52.  0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '(output
file).mov':

  Metadata:
    major_brand     : qt
    minor_version   : 512
    compatible_brands: qt
    creation_time   : 2012-05-23 15:30:08
    encoder         : Lavf53.32.100
  Duration: 00:00:33.99, start: 0.000000, bitrate: 1399 kb/s
    Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
640x360 [SAR 1:1 DAR 16:9], 1269 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc
    Metadata:
      creation_time   : 2012-05-23 15:30:08
      handler_name    :
                        DataHandler
    Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo,
s16, 124 kb/s
    Metadata:
      creation_time   : 2012-05-23 15:30:08
      handler_name    :
                        DataHandler


More information about the ffmpeg-user mailing list