]> git.sesse.net Git - ffmpeg/commit
lavc/libopenh264enc: add default gop size and bit rate
authorLinjie Fu <linjie.fu@intel.com>
Wed, 29 Apr 2020 03:00:47 +0000 (11:00 +0800)
committerMartin Storsjö <martin@martin.st>
Wed, 29 Apr 2020 17:58:17 +0000 (20:58 +0300)
commite5f097eca78342bf34a70f4c43c61238c8ae41c2
tree4997d798c49cca58bf2980f7282584c1c60192ca
parent433ece8c8b62e092601ee9580029ba0e6e48ff58
lavc/libopenh264enc: add default gop size and bit rate

It would be 200kbps bitrate with gop size = 12 by default
which generated too many IDR frames in rather low bit rate.
The quality would be poor.

Set these default values to -1 to check whether it's specified
by user explicitly.

Use 2Mbps bitrate as nvenc sugguested, and leave gop size
untouched in libopenh264.

Signed-off-by: Linjie Fu <linjie.fu@intel.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
libavcodec/libopenh264enc.c