The ducks video seems has been chosen to be uncompressable. Software
encoders can't compress it either. When I compress at 1Mb/s it looks
awful, but at least the encoder does what I tell it to and generates
the 1Mb/s stream.
First video has q=49, second is q=40.
Output from compressing ducks...
jonsmirl@terra:/work/libav$ ./avconv -i
~/Downloads/ducks_take_off_420_720p50.y4m -vcodec h264 -b:v 1000k
-profile:v high foo.mp4
avconv version v9-2340-gcd43ca0, Copyright (c) 2000-2013 the Libav developers
built on Feb 25 2014 20:44:13 with gcc 4.8 (Ubuntu/Linaro 4.8.1-10ubuntu9)
[yuv4mpegpipe @ 0x29a07c0] Estimating duration from bitrate, this may
be inaccurate
Input #0, yuv4mpegpipe, from
'/home/jonsmirl/Downloads/ducks_take_off_420_720p50.y4m':
Duration: N/A, bitrate: N/A
Stream #0.0: Video: rawvideo, yuv420p, 1280x720, PAR 1:1 DAR 16:9,
50 fps, 50 tbn
File 'foo.mp4' already exists. Overwrite ? [y/N] y
[libx264 @ 0x29a26c0] using SAR=1/1
[libx264 @ 0x29a26c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
[libx264 @ 0x29a26c0] profile High, level 3.2
[libx264 @ 0x29a26c0] 264 - core 138 r2358 9e941d1 - H.264/MPEG-4 AVC
codec - Copyleft 2003-2013 - 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=abr
mbtree=1 bitrate=1000 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4
ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'foo.mp4':
Metadata:
encoder : Lavf55.7.0
Stream #0.0: Video: libx264, yuv420p, 1280x720 [PAR 1:1 DAR 16:9],
q=-1--1, 1000 kb/s, 50 tbn, 50 tbc
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo -> libx264)
Press ctrl-c to stop encoding
frame= 500 fps= 64 q=49.0 Lsize= 1260kB time=9.96 bitrate=1036.3kbits/s
video:1109kB audio:0kB global headers:0kB muxing overhead 13.592471%
[libx264 @ 0x29a26c0] frame I:2 Avg QP:43.57 size: 21767
[libx264 @ 0x29a26c0] frame P:256 Avg QP:48.79 size: 3829
[libx264 @ 0x29a26c0] frame B:242 Avg QP:50.46 size: 1062
[libx264 @ 0x29a26c0] consecutive B-frames: 3.2% 96.8% 0.0% 0.0%
[libx264 @ 0x29a26c0] mb I I16..4: 10.2% 73.2% 16.6%
[libx264 @ 0x29a26c0] mb P I16..4: 0.5% 0.5% 0.0% P16..4: 34.2%
2.4% 2.0% 0.0% 0.0% skip:60.5%
[libx264 @ 0x29a26c0] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 37.3%
0.0% 0.0% direct: 0.0% skip:62.6% L0:22.1% L1:77.8% BI: 0.1%
[libx264 @ 0x29a26c0] final ratefactor: 40.72
[libx264 @ 0x29a26c0] 8x8 transform intra:59.6% inter:94.9%
[libx264 @ 0x29a26c0] coded y,uvDC,uvAC intra: 39.7% 53.5% 21.7%
inter: 6.1% 6.7% 0.1%
[libx264 @ 0x29a26c0] i16 v,h,dc,p: 11% 68% 8% 13%
[libx264 @ 0x29a26c0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 3% 45% 21% 2%
3% 1% 14% 1% 10%
[libx264 @ 0x29a26c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 4% 66% 7% 2%
3% 1% 10% 0% 7%
[libx264 @ 0x29a26c0] i8c dc,h,v,p: 83% 15% 2% 0%
[libx264 @ 0x29a26c0] Weighted P-Frames: Y:1.6% UV:0.4%
[libx264 @ 0x29a26c0] ref P L0: 80.3% 2.3% 13.0% 4.2% 0.1%
[libx264 @ 0x29a26c0] ref B L0: 92.2% 7.8%
[libx264 @ 0x29a26c0] kb/s:1024.56
jonsmirl@terra:/work/libav$
This one compresses better with Allwinner. But I still get 3M/b when I
asked for 1Mb/s.
jonsmirl@terra:/work/libav$ ./avconv -i
~/Downloads/old_town_cross_420_720p50.y4m -vcodec h264 -b:v 600k
-profile:v high foo.mp4
avconv version v9-2340-gcd43ca0, Copyright (c) 2000-2013 the Libav developers
built on Feb 25 2014 20:44:13 with gcc 4.8 (Ubuntu/Linaro 4.8.1-10ubuntu9)
[yuv4mpegpipe @ 0x13817c0] Estimating duration from bitrate, this may
be inaccurate
Input #0, yuv4mpegpipe, from
'/home/jonsmirl/Downloads/old_town_cross_420_720p50.y4m':
Duration: N/A, bitrate: N/A
Stream #0.0: Video: rawvideo, yuv420p, 1280x720, PAR 1:1 DAR 16:9,
50 fps, 50 tbn
File 'foo.mp4' already exists. Overwrite ? [y/N] y
[libx264 @ 0x13836c0] using SAR=1/1
[libx264 @ 0x13836c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
[libx264 @ 0x13836c0] profile High, level 3.2
[libx264 @ 0x13836c0] 264 - core 138 r2358 9e941d1 - H.264/MPEG-4 AVC
codec - Copyleft 2003-2013 - 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=abr
mbtree=1 bitrate=600 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4
ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'foo.mp4':
Metadata:
encoder : Lavf55.7.0
Stream #0.0: Video: libx264, yuv420p, 1280x720 [PAR 1:1 DAR 16:9],
q=-1--1, 600 kb/s, 50 tbn, 50 tbc
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo -> libx264)
Press ctrl-c to stop encoding
frame= 500 fps= 79 q=40.0 Lsize= 725kB time=9.96 bitrate= 596.4kbits/s
video:638kB audio:0kB global headers:0kB muxing overhead 13.562837%
[libx264 @ 0x13836c0] frame I:2 Avg QP:38.16 size: 28322
[libx264 @ 0x13836c0] frame P:250 Avg QP:37.44 size: 2009
[libx264 @ 0x13836c0] frame B:248 Avg QP:38.40 size: 702
[libx264 @ 0x13836c0] consecutive B-frames: 0.8% 99.2% 0.0% 0.0%
[libx264 @ 0x13836c0] mb I I16..4: 27.2% 54.8% 17.9%
[libx264 @ 0x13836c0] mb P I16..4: 0.0% 0.0% 0.0% P16..4: 20.6%
1.7% 1.0% 0.0% 0.0% skip:76.7%
[libx264 @ 0x13836c0] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 26.3%
0.0% 0.0% direct: 0.0% skip:73.7% L0:35.1% L1:64.9% BI: 0.0%
[libx264 @ 0x13836c0] final ratefactor: 32.73
[libx264 @ 0x13836c0] 8x8 transform intra:52.9% inter:83.3%
[libx264 @ 0x13836c0] coded y,uvDC,uvAC intra: 41.3% 33.7% 13.4%
inter: 1.7% 1.2% 0.0%
[libx264 @ 0x13836c0] i16 v,h,dc,p: 20% 57% 10% 13%
[libx264 @ 0x13836c0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19% 22% 34% 3%
4% 3% 7% 2% 7%
[libx264 @ 0x13836c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 32% 11% 4%
5% 4% 9% 3% 6%
[libx264 @ 0x13836c0] i8c dc,h,v,p: 82% 12% 5% 1%
[libx264 @ 0x13836c0] Weighted P-Frames: Y:0.8% UV:0.0%
[libx264 @ 0x13836c0] ref P L0: 62.7% 31.5% 5.0% 0.9% 0.0%
[libx264 @ 0x13836c0] ref B L0: 96.2% 3.8%
[libx264 @ 0x13836c0] kb/s:586.35
jonsmirl@terra:/work/libav$
--
Jon Smirl
[email protected]
--
You received this message because you are subscribed to the Google Groups
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.