Opened 4 years ago

Closed 4 years ago

#1519 closed enhancement (fixed)

use -coder 1 by default in ffv1 encoding when needed

Reported by: dericed Owned by:
Priority: wish Component: avcodec
Version: git-master Keywords: ffv1
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

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

Change History (2)

comment:1 Changed 4 years ago by cehoyos

  • Keywords coder removed
  • Priority changed from normal to wish
  • Status changed from new to open
  • Version changed from unspecified to git-master

Patch on mailing list.

comment:2 Changed 4 years ago by cehoyos

  • Resolution set to fixed
  • Status changed from open to closed

Should be fixed.

Note: See TracTickets for help on using tickets.