Changeset View
Changeset View
Standalone View
Standalone View
source/blender/imbuf/intern/indexer.c
| Show First 20 Lines • Show All 494 Lines • ▼ Show 20 Lines | static struct proxy_output_ctx *alloc_proxy_output_ffmpeg( | ||||
| rv->st = avformat_new_stream(rv->of, NULL); | rv->st = avformat_new_stream(rv->of, NULL); | ||||
| rv->st->id = 0; | rv->st->id = 0; | ||||
| rv->c = rv->st->codec; | rv->c = rv->st->codec; | ||||
| rv->c->codec_type = AVMEDIA_TYPE_VIDEO; | rv->c->codec_type = AVMEDIA_TYPE_VIDEO; | ||||
| rv->c->codec_id = AV_CODEC_ID_H264; | rv->c->codec_id = AV_CODEC_ID_H264; | ||||
| rv->c->width = width; | rv->c->width = width; | ||||
| rv->c->height = height; | rv->c->height = height; | ||||
| rv->c->gop_size = 2; | rv->c->gop_size = 10; | ||||
| rv->c->max_b_frames = 0; | rv->c->max_b_frames = 0; | ||||
| /* Correct wrong default ffmpeg param which crash x264. */ | /* Correct wrong default ffmpeg param which crash x264. */ | ||||
| rv->c->qmin = 10; | rv->c->qmin = 10; | ||||
| rv->c->qmax = 51; | rv->c->qmax = 51; | ||||
| rv->of->oformat->video_codec = rv->c->codec_id; | rv->of->oformat->video_codec = rv->c->codec_id; | ||||
| rv->codec = avcodec_find_encoder(rv->c->codec_id); | rv->codec = avcodec_find_encoder(rv->c->codec_id); | ||||
| ▲ Show 20 Lines • Show All 900 Lines • Show Last 20 Lines | |||||