all repos — mgba @ 3e75dae3dce0fdae8e7ea0edc73ddd20a5e0e7d4

mGBA Game Boy Advance Emulator

FFmpeg: Support lossless VP9 encoding
Vicki Pfau vi@endrift.com
Tue, 18 Sep 2018 14:24:22 -0700
commit

3e75dae3dce0fdae8e7ea0edc73ddd20a5e0e7d4

parent

bf87a1db48ef4bef657708966370a62e4b96759e

2 files changed, 5 insertions(+), 0 deletions(-)

jump to
M CHANGESCHANGES

@@ -89,6 +89,7 @@ - Qt: Allow pausing game at load (fixes mgba.io/i/1129)

- Wii: Move audio handling to callbacks (fixes mgba.io/i/803) - Qt: Clean up FPS target UI (fixes mgba.io/i/436) - Core: Remove broken option for whether rewinding restores save games + - FFmpeg: Support lossless VP9 encoding 0.6.3: (2017-04-14) Bugfixes:
M src/feature/ffmpeg/ffmpeg-encoder.csrc/feature/ffmpeg/ffmpeg-encoder.c

@@ -334,6 +334,10 @@ av_opt_set(encoder->video->priv_data, "crf", "0", 0);

encoder->video->pix_fmt = AV_PIX_FMT_YUV444P; } } + if (strcmp(vcodec->name, "libvpx-vp9") == 0 && encoder->videoBitrate == 0) { + av_opt_set(encoder->video->priv_data, "lossless", "1", 0); + encoder->video->pix_fmt = AV_PIX_FMT_YUV444P; + } avcodec_open2(encoder->video, vcodec, 0); #if LIBAVCODEC_VERSION_MAJOR >= 55