From: lekma Date: Mon, 12 Sep 2016 13:58:57 +0000 (+0200) Subject: [transcode]: max_b_frames - should be good X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a10cb3ffa6f91a0345ec68466c0c779d8e1f1132;p=thirdparty%2Ftvheadend.git [transcode]: max_b_frames - should be good --- diff --git a/src/transcoding/codec/codecs/libs/libx26x.c b/src/transcoding/codec/codecs/libs/libx26x.c index 4dade839d..19f72316b 100644 --- a/src/transcoding/codec/codecs/libs/libx26x.c +++ b/src/transcoding/codec/codecs/libs/libx26x.c @@ -126,6 +126,7 @@ tvh_codec_profile_libx264_open(tvh_codec_profile_libx26x_t *self, else { AV_DICT_SET_CRF(opts, self->crf, 15); } + // params if (self->params && strlen(self->params)) { AV_DICT_SET(opts, "x264-params", self->params, 0); } @@ -223,6 +224,7 @@ tvh_codec_profile_libx265_open(tvh_codec_profile_libx26x_t *self, else { AV_DICT_SET_CRF(opts, self->crf, 18); } + // params if (self->params && strlen(self->params)) { AV_DICT_SET(opts, "x265-params", self->params, 0); } diff --git a/src/transcoding/codec/codecs/mpeg2video.c b/src/transcoding/codec/codecs/mpeg2video.c index becb792db..d78f8d426 100644 --- a/src/transcoding/codec/codecs/mpeg2video.c +++ b/src/transcoding/codec/codecs/mpeg2video.c @@ -33,8 +33,6 @@ tvh_codec_profile_mpeg2video_open(TVHCodecProfile *self, AVDictionary **opts) else { AV_DICT_SET_GLOBAL_QUALITY(opts, self->qscale, 5); } - // max_b_frames - AV_DICT_SET_INT(opts, "bf", 3, 0); return 0; } diff --git a/src/transcoding/codec/profile_video_class.c b/src/transcoding/codec/profile_video_class.c index 8c6f877cc..9f781c366 100644 --- a/src/transcoding/codec/profile_video_class.c +++ b/src/transcoding/codec/profile_video_class.c @@ -93,6 +93,8 @@ tvh_codec_profile_video_open(TVHVideoCodecProfile *self, AVDictionary **opts) } // pix_fmt AV_DICT_SET_PIX_FMT(opts, self->pix_fmt, AV_PIX_FMT_YUV420P); + // max_b_frames + AV_DICT_SET_INT(opts, "bf", 3, AV_DICT_DONT_OVERWRITE); return 0; } diff --git a/src/transcoding/transcode/video.c b/src/transcoding/transcode/video.c index 73a597308..a3cf6feec 100644 --- a/src/transcoding/transcode/video.c +++ b/src/transcoding/transcode/video.c @@ -267,7 +267,7 @@ tvh_video_context_wrap(TVHContext *self, AVPacket *avpkt, th_pkt_t *pkt) pkt->v.pkt_frametype = PKT_B_FRAME; break; default: - tvh_context_log(self, LOG_ERR, "unknown picture type: %d", + tvh_context_log(self, LOG_DEBUG, "unknown picture type: %d", pict_type); break; }