Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/writeffmpeg.c
| Show First 20 Lines • Show All 600 Lines • ▼ Show 20 Lines | else { | ||||
| c->time_base.den = (int)DENUM_MAX; | c->time_base.den = (int)DENUM_MAX; | ||||
| c->time_base.num = (int)num; | c->time_base.num = (int)num; | ||||
| } | } | ||||
| c->gop_size = context->ffmpeg_gop_size; | c->gop_size = context->ffmpeg_gop_size; | ||||
| c->max_b_frames = context->ffmpeg_max_b_frames; | 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); | ffmpeg_dict_set_int(&opts, "crf", context->ffmpeg_crf); | ||||
| } | } | ||||
| else { | else { | ||||
| c->bit_rate = context->ffmpeg_video_bitrate * 1000; | c->bit_rate = context->ffmpeg_video_bitrate * 1000; | ||||
| c->rc_max_rate = rd->ffcodecdata.rc_max_rate * 1000; | c->rc_max_rate = rd->ffcodecdata.rc_max_rate * 1000; | ||||
| c->rc_min_rate = rd->ffcodecdata.rc_min_rate * 1000; | c->rc_min_rate = rd->ffcodecdata.rc_min_rate * 1000; | ||||
| c->rc_buffer_size = rd->ffcodecdata.rc_buffer_size * 1024; | c->rc_buffer_size = rd->ffcodecdata.rc_buffer_size * 1024; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 1,281 Lines • Show Last 20 Lines | |||||