[FFmpeg-trac] #1519(avcodec:new): use -coder 1 by default in ffv1 encoding when needed
FFmpeg
trac at avcodec.org
Mon Jul 9 19:37:22 CEST 2012
#1519: use -coder 1 by default in ffv1 encoding when needed
-------------------------------------+-------------------------------------
Reporter: dericed | Type:
Status: new | enhancement
Component: avcodec | Priority: normal
Keywords: coder,ffv1 | Version:
Blocking: | unspecified
Analyzed by developer: 0 | Blocked By:
| Reproduced by developer: 0
-------------------------------------+-------------------------------------
Summary of the bug:
When I encode yuv422p10le video (or any >8 bit video) to ffv1 I get the
warning:
{{{
[ffv1 @ 0x7fb29b050a00] bits_per_raw_sample of more than 8 needs -coder 1
currently
}}}
I can then add '-coder 1' and it will work but this performance seems
inconsistent with ffmpeg. Can't '-coder 1' be the default with >8 bit
video rather than requiring that it be explicitly stated.
How to reproduce:
{{{
ffmpeg -y -f lavfi -t 1 -i testsrc -pix_fmt yuv422p10le -codec:video ffv1
out.mov
ffmpeg version 0.11.1.git Copyright (c) 2000-2012 the FFmpeg developers
built on Jul 5 2012 11:22:03 with gcc 4.2.1 (Apple Inc. build 5666)
(dot 3)
configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD --enable-shared
--enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables
--enable-libfreetype --cc=/usr/bin/gcc-4.2 --enable-libx264 --enable-
libfaac --enable-libmp3lame --enable-librtmp --enable-libtheora --enable-
libvorbis --enable-libvpx --enable-libxvid --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libass --enable-libvo-aacenc
libavutil 51. 64.100 / 51. 64.100
libavcodec 54. 33.100 / 54. 33.100
libavformat 54. 15.100 / 54. 15.100
libavdevice 54. 1.100 / 54. 1.100
libavfilter 3. 0.101 / 3. 0.101
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
[Parsed_testsrc_0 @ 0x7fb29ac18400] size:320x240 rate:25/1
duration:-1.000000 sar:1/1
[out @ 0x7fb29ac18920] No opaque field provided
[lavfi @ 0x7fb29b03d800] Estimating duration from bitrate, this may be
inaccurate
Input #0, lavfi, from 'testsrc':
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: rawvideo (RGB[24] / 0x18424752), rgb24, 320x240
[SAR 1:1 DAR 4:3], 25 tbr, 25 tbn, 25 tbc
-t is not an input option, keeping it for the next output; consider fixing
your command line.
[graph 0 input from stream 0:0 @ 0x7fb29ac19ac0] w:320 h:240 pixfmt:rgb24
tb:1/25 fr:25/1 sar:1/1 sws_param:flags=2
[output stream 0:0 @ 0x7fb29ac19ca0] No opaque field provided
[auto-inserted scaler 0 @ 0x7fb29ac1a420] w:320 h:240 fmt:rgb24 sar:1/1 ->
w:320 h:240 fmt:yuv422p10le sar:1/1 flags:0x4
[ffv1 @ 0x7fb29b050a00] bits_per_raw_sample of more than 8 needs -coder 1
currently
Output #0, mov, to 'out.mov':
Stream #0:0: Video: ffv1, yuv422p10le, 320x240 [SAR 1:1 DAR 4:3],
q=2-31, 200 kb/s, 90k tbn, 25 tbc
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo -> ffv1)
Error while opening encoder for output stream #0:0 - maybe incorrect
parameters such as bit_rate, rate, width or height
}}}
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1519>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list