[FFmpeg-user] ffmpeg producing garbled output / problems
Ray Larsen
rayfreeagent at yahoo.com
Sat Dec 22 00:17:11 CET 2012
OK, so I am trying to distill this down into as simple a case as I can for debugging.
I've created a 15-second MOV clip in Final Cut Pro 7 from a TIFF image. The clip is encoded with ProRes and it has two silent audio tracks.
If I try to encode the clip directly to H.264 MP4 I get garbled output.
Command line:
ffmpeg -i keynes.mov -c:v libx264 -preset slow -b:v 10800k -c:a libfaac -b:a 48k -pix_fmt yuv420p keynes.mp4
Output below...
What it is supposed to look like:
http://postimage.org/image/6tb0xa5dj/
What it looks like:
http://postimage.org/image/nte2fjy0z/
NOTE: I tried playing around with command line options and I found that when I removed the -b:v and -b:a options the resulting file was fine. This won't work for me, however, as I need to control bit rate.
This works, but you can't control the bit rate:
ffmpeg -i keynes.mov -c:v libx264 -preset slow -c:a libfaac -pix_fmt yuv420p keynes.mp4
$ ffmpeg -i keynes.mov -c:v libx264 -preset slow -b:v 10800k -c:a libfaac -b:a 48k -pix_fmt yuv420p keynes.mp4
ffmpeg version 1.0.1 Copyright (c) 2000-2012 the FFmpeg developers
built on Dec 16 2012 11:09:15 with gcc 4.2.1 (GCC) (Apple Inc. build 5666) (dot 3)
configuration: --enable-nonfree --enable-gpl --enable-version3 --enable-postproc --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libfaac --enable-libxvid --enable-libx264 --enable-libvpx --enable-hardcoded-tables --enable-shared --enable-pthreads --disable-indevs
libavutil 51. 73.101 / 51. 73.101
libavcodec 54. 59.100 / 54. 59.100
libavformat 54. 29.104 / 54. 29.104
libavdevice 54. 2.101 / 54. 2.101
libavfilter 3. 17.100 / 3. 17.100
libswscale 2. 1.101 / 2. 1.101
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
Guessed Channel Layout for Input Stream #0.1 : stereo
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'keynes.mov':
Metadata:
major_brand : qt
minor_version : 537199360
compatible_brands: qt
creation_time : 2012-12-21 22:54:12
Duration: 00:00:15.04, start: 0.000000, bitrate: 48547 kb/s
Stream #0:0(eng): Video: prores (apcn / 0x6E637061), yuv422p10le, 1920x1080, 46997 kb/s, SAR 1:1 DAR 16:9, 29.97 fps, 29.97 tbr, 2997 tbn, 2997 tbc
Metadata:
creation_time : 2012-12-21 22:54:12
handler_name : Apple Alias Data Handler
timecode : 01:00:00;00
Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 1536 kb/s
Metadata:
creation_time : 2012-12-21 22:54:12
handler_name : Apple Alias Data Handler
Stream #0:2(eng): Data: none (tmcd / 0x64636D74)
Metadata:
creation_time : 2012-12-21 22:54:15
handler_name : Apple Alias Data Handler
timecode : 01:00:00;00
[libx264 @ 0x1020b5000] using SAR=1/1
[libx264 @ 0x1020b5000] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64
[libx264 @ 0x1020b5000] profile High, level 5.0
[libx264 @ 0x1020b5000] 264 - core 129 - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=1 ref=5 deblock=1:0:0 analyse=0x3:0x113 me=umh subme=8 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=2 b_bias=0 direct=3 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=50 rc=abr mbtree=1 bitrate=10800 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'keynes.mp4':
Metadata:
major_brand : qt
minor_version : 537199360
compatible_brands: qt
encoder : Lavf54.29.104
Stream #0:0(eng): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 10800 kb/s, 2997 tbn, 29.97 tbc
Metadata:
creation_time : 2012-12-21 22:54:12
handler_name : Apple Alias Data Handler
timecode : 01:00:00;00
Stream #0:1(eng): Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, stereo, s16, 48 kb/s
Metadata:
creation_time : 2012-12-21 22:54:12
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= 451 fps= 33 q=32766.0 Lsize= 1198kB time=00:00:15.06 bitrate= 651.4kbits/s
video:1174kB audio:6kB subtitle:0 global headers:0kB muxing overhead 1.474305%
[libx264 @ 0x1020b5000] frame I:2 Avg QP: 2.32 size: 97382
[libx264 @ 0x1020b5000] frame P:117 Avg QP: 0.49 size: 5063
[libx264 @ 0x1020b5000] frame B:332 Avg QP: 0.47 size: 1248
[libx264 @ 0x1020b5000] consecutive B-frames: 0.9% 0.9% 6.0% 92.2%
[libx264 @ 0x1020b5000] mb I I16..4: 95.3% 0.1% 4.6%
[libx264 @ 0x1020b5000] mb P I16..4: 0.1% 0.0% 0.0% P16..4: 1.5% 0.0% 0.1% 0.0% 0.0% skip:98.3%
[libx264 @ 0x1020b5000] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 0.2% 0.0% 0.0% direct: 0.3% skip:99.4% L0: 1.4% L1:25.9% BI:72.7%
[libx264 @ 0x1020b5000] final ratefactor: -21.49
[libx264 @ 0x1020b5000] 8x8 transform intra:1.0% inter:44.9%
[libx264 @ 0x1020b5000] direct mvs spatial:69.9% temporal:30.1%
[libx264 @ 0x1020b5000] coded y,uvDC,uvAC intra: 7.4% 93.1% 93.1% inter: 0.5% 0.1% 0.1%
[libx264 @ 0x1020b5000] i16 v,h,dc,p: 97% 1% 2% 0%
[libx264 @ 0x1020b5000] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 31% 13% 22% 3% 8% 6% 6% 4% 7%
[libx264 @ 0x1020b5000] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 11% 25% 5% 6% 7% 6% 7% 8%
[libx264 @ 0x1020b5000] i8c dc,h,v,p: 18% 75% 6% 1%
[libx264 @ 0x1020b5000] Weighted P-Frames: Y:15.4% UV:13.7%
[libx264 @ 0x1020b5000] ref P L0: 99.0% 0.0% 0.5% 0.1% 0.0% 0.4% 0.0%
[libx264 @ 0x1020b5000] ref B L0: 98.6% 1.4%
[libx264 @ 0x1020b5000] ref B L1: 100.0% 0.0%
[libx264 @ 0x1020b5000] kb/s:638.75
More information about the ffmpeg-user
mailing list