[FFmpeg-user] h264 looks bad in Flash Player
wtfux
wtfux.dev at googlemail.com
Tue Apr 3 13:31:04 CEST 2012
> Is the problem also reproducible if you use x264 (the executable) instead of
> FFmpeg? Did you try the reference decoder?
I didn't try this but the input file is created with x264, too, but
they didn't use ffmpeg. It's much larger (1 886 Kbps, 350mb) but when
embedded using Flash it got the exact same problems.
I tried different players. VLC and MPC show the video correct but
Quicktime shows the video wrong, just like Flash.
> Just a guess, I remember an issue with a huge number of reference frames in
> flash (and media info reports : ReFrames : 9 frames)
I already tried encoding with "-refs 1". MedaInfo then reports
Reframes: 5 frames but that doesn't resolve this issue.
Here's the full console output:
ffmpeg -i ~/file.mp4 -codec:a libfaac -b:a 150k -codec:v libx264
-preset slow -profile:v high -tune:v animation -level:v 4.1 -refs:v 1
-crf:v 21 -threads 8 -f mp4 ~/test.mp4
ffmpeg version git-2012-02-03-d77294c Copyright (c) 2000-2012 the
FFmpeg developers
built on Apr 2 2012 03:13:34 with gcc 4.4.5
configuration: --enable-gpl --enable-libfaac --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libtheora --enable-libvorbis --enable-libx264
--enable-nonfree --enable-version3 --enable-x11grab --enable-avfilter
--enable-libass --enable-libvpx --enable-libfreetype
libavutil 51. 37.100 / 51. 37.100
libavcodec 54. 0.102 / 54. 0.102
libavformat 54. 0.100 / 54. 0.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 '/root/file.mp4':
Metadata:
major_brand : isom
minor_version : 1
compatible_brands: isomavc1
creation_time : 2012-02-16 12:22:26
Duration: 00:23:51.12, start: 0.000000, bitrate: 2051 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
1280x720 [SAR 1:1 DAR 16:9], 1885 kb/s, 23.98 fps, 23.98 tbr, 96k tbn,
47.95 tbc
Metadata:
creation_time : 2012-02-16 12:22:26
handler_name :
Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz,
stereo, s16, 162 kb/s
Metadata:
creation_time : 2012-02-16 12:22:29
handler_name : GPAC ISO Audio Handler
File '/root/test.mp4' already exists. Overwrite ? [y/N] y
w:1280 h:720 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param:
[libx264 @ 0x1b67440] using SAR=1/1
[libx264 @ 0x1b67440] using cpu capabilities: MMX2 SSE2 SSE3 Cache64
[libx264 @ 0x1b67440] profile High, level 4.1
[libx264 @ 0x1b67440] 264 - core 120 r2146 bcd41db - H.264/MPEG-4 AVC
codec - Copyleft 2003-2011 - http://www.videolan.org/x264.html -
options: cabac=1 ref=1 deblock=1:1:1 analyse=0x3:0x113 me=umh subme=8
psy=1 psy_rd=0.40:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=1
8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2
threads=8 sliced_threads=0 nr=0 decimate=1 interlaced=0
bluray_compat=0 constrained_intra=0 bframes=5 b_pyramid=2 b_adapt=2
b_bias=0 direct=3 weightb=1 open_gop=0 weightp=2 keyint=250
keyint_min=23 scenecut=40 intra_refresh=0 rc_lookahead=50 rc=crf
mbtree=1 crf=21.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40
aq=1:0.60
Output #0, mp4, to '/root/test.mp4':
Metadata:
major_brand : isom
minor_version : 1
compatible_brands: isomavc1
creation_time : 2012-02-16 12:22:26
encoder : Lavf54.0.100
Stream #0:0(und): Video: h264 (![0][0][0] / 0x0021), yuv420p,
1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 24k tbn, 23.98 tbc
Metadata:
creation_time : 2012-02-16 12:22:26
handler_name :
Stream #0:1(und): Audio: aac (@[0][0][0] / 0x0040), 48000 Hz,
stereo, s16, 150 kb/s
Metadata:
creation_time : 2012-02-16 12:22:29
handler_name : GPAC ISO Audio Handler
Stream mapping:
Stream #0:0 -> #0:0 (h264 -> libx264)
Stream #0:1 -> #0:1 (aac -> libfaac)
Press [q] to stop, [?] for help
frame=34313 fps= 37 q=-1.0 Lsize= 227365kB time=00:23:51.05
bitrate=1301.5kbits/s dup=2 drop=0
video:200233kB audio:26184kB global headers:0kB muxing overhead 0.418960%
[libx264 @ 0x1b67440] frame I:296 Avg QP:15.03 size:120534
[libx264 @ 0x1b67440] frame P:9942 Avg QP:18.42 size: 12732
[libx264 @ 0x1b67440] frame B:24075 Avg QP:23.93 size: 1777
[libx264 @ 0x1b67440] consecutive B-frames: 5.4% 6.6% 5.6% 63.6% 6.5% 12.3%
[libx264 @ 0x1b67440] mb I I16..4: 19.0% 49.2% 31.8%
[libx264 @ 0x1b67440] mb P I16..4: 5.3% 5.5% 2.2% P16..4: 24.1%
6.3% 3.1% 0.0% 0.0% skip:53.5%
[libx264 @ 0x1b67440] mb B I16..4: 0.3% 0.3% 0.1% B16..8: 13.8%
1.1% 0.4% direct: 0.6% skip:83.4% L0:38.6% L1:58.7% BI: 2.8%
[libx264 @ 0x1b67440] 8x8 transform intra:43.5% inter:71.7%
[libx264 @ 0x1b67440] direct mvs spatial:100.0% temporal:0.0%
[libx264 @ 0x1b67440] coded y,uvDC,uvAC intra: 44.4% 68.8% 37.6%
inter: 4.5% 7.9% 0.9%
[libx264 @ 0x1b67440] i16 v,h,dc,p: 45% 27% 10% 18%
[libx264 @ 0x1b67440] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 15% 23% 6%
6% 7% 8% 8% 10%
[libx264 @ 0x1b67440] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 14% 17% 7%
8% 8% 6% 8% 8%
[libx264 @ 0x1b67440] i8c dc,h,v,p: 44% 25% 22% 9%
[libx264 @ 0x1b67440] Weighted P-Frames: Y:0.8% UV:0.5%
[libx264 @ 0x1b67440] kb/s:1146.15
More information about the ffmpeg-user
mailing list