[FFmpeg-devel] Official status of FFv1?
Baptiste Coudurier
baptiste.coudurier
Mon Mar 22 22:07:31 CET 2010
On 03/22/2010 01:11 PM, Jason Garrett-Glaser wrote:
> Here's some benches for you, Baptiste. Source: standard foreman CIF.
>
> $ ffmpeg -i videos/foreman_cif.y4m -vcodec ffv1 -coder 1 output.avi
> frame= 300 fps= 48 q=0.0 Lsize= 19017kB time=10.01 bitrate=15563.4kbits/s
> ----------+ 1 Jason None 19473662 Mar 22 13:07 output.avi
>
> $ ffmpeg -i videos/foreman_cif.y4m -vcodec ffv1 -coder 0 output.avi
> frame= 300 fps= 98 q=0.0 Lsize= 19270kB time=10.01 bitrate=15770.5kbits/s
> ----------+ 1 Jason None 19732838 Mar 22 13:10 output.avi
>
> $ ./x264 videos/foreman_cif.y4m --preset veryfast --qp 0 -o test.h264
> --threads 1
> encoded 300 frames, 75.17 fps, 13583.06 kb/s
> ----------+ 1 Jason None 16995802 Mar 22 13:07 test.h264
>
> $ ./x264 videos/foreman_cif.y4m --preset veryfast --qp 0 -o test.h264
> --threads 1 --no-cabac;ls -l test.h264
> encoded 300 frames, 161.38 fps, 15550.08 kb/s
> ----------+ 1 Jason None 19457036 Mar 22 13:09 test.h264
>
> Note of course in practice you would use multiple threads with x264,
> which would put it well ahead speed-wise (since FFV1 cannot be
> frame-multithreaded in the typical way).
Well, it seems to really depend on the input file:
Input #0, yuv4mpegpipe, from 'source.y4m':
Duration: N/A, bitrate: N/A
Stream #0.0(und): Video: rawvideo, yuv420p, 1280x720, tbc N/A, PAR
1:1 DAR 16:9, fps 23.976
-coder 1 -context 1:
frame= 300 fps= 24 q=0.0 Lsize= 72006kB time=12.51
bitrate=47143.0kbits/s
video:72006kB audio:0kB global headers:0kB muxing overhead 0.000000%
ffmpeg -i source.y4m -vcodec ffv1 -coder 1 -context 1 -f rawvideo
11.89s user 0.40s system 91% cpu 13.365 total
-- 1 baptiste users 73734634 2010-03-22 13:58 coder1_context1.ffv1
Using veryfast:
x264 [info]: i16 v,h,dc,p: 82% 17% 1% 0%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 47% 39% 7% 1% 1% 1% 1%
1% 1%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 34% 27% 6% 5% 8% 5% 5%
5% 4%
x264 [info]: kb/s:53067.61
encoded 300 frames, 19.05 fps, 53067.61 kb/s
-- 1 baptiste users 83001054 2010-03-22 13:57 test.h264
Using default preset:
x264 --qp 0 -o test.h264 source.y4m --threads 1
x264 [info]: Weighted P-Frames: Y:7.9%
x264 [info]: ref P L0: 55.6% 18.6% 16.4% 9.0% 0.3%
x264 [info]: kb/s:51284.57
encoded 300 frames, 5.46 fps, 51284.57 kb/s
-- 1 baptiste users 80212270 2010-03-22 14:04 test.h264
To me it is quite a big difference. Though yes, the multithreading makes
a quite big speed difference.
--
Baptiste COUDURIER
Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
FFmpeg maintainer http://www.ffmpeg.org
More information about the ffmpeg-devel
mailing list