Fix T74443: No render in VP9 lossless mode
We define Lossless as CRF 0 (which is usually the best quality and is working fine with other codecs afaict), but since WebM only allows for CRF values between 2-32 and actually has a dedicated "lossless" mode, I suggest using that (it produces large files though, so double-checking would be welcome). https://trac.ffmpeg.org/wiki/Encode/VP9#LosslessVP9 Maniphest Tasks: T74443 Differential Revision: https://developer.blender.org/D7800
This commit is contained in:
parent
a76e804309
commit
98689f51c0
Notes:
blender-bot
2023-02-14 05:22:18 +01:00
Referenced by issue #74443, No render in VP9 lossless mode
|
@ -606,7 +606,10 @@ static AVStream *alloc_video_stream(FFMpegContext *context,
|
|||
c->gop_size = context->ffmpeg_gop_size;
|
||||
c->max_b_frames = context->ffmpeg_max_b_frames;
|
||||
|
||||
if (context->ffmpeg_crf >= 0) {
|
||||
if (context->ffmpeg_type == FFMPEG_WEBM && context->ffmpeg_crf == 0) {
|
||||
ffmpeg_dict_set_int(&opts, "lossless", 1);
|
||||
}
|
||||
else if (context->ffmpeg_crf >= 0) {
|
||||
ffmpeg_dict_set_int(&opts, "crf", context->ffmpeg_crf);
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in New Issue