]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
[transcode]: max_b_frames - should be good
authorlekma <lekmalek@gmail.com>
Mon, 12 Sep 2016 13:58:57 +0000 (15:58 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 28 Aug 2017 13:32:48 +0000 (15:32 +0200)
src/transcoding/codec/codecs/libs/libx26x.c
src/transcoding/codec/codecs/mpeg2video.c
src/transcoding/codec/profile_video_class.c
src/transcoding/transcode/video.c

index 4dade839d3d9b00255d99db7b19a8700ec8772d8..19f72316b775b78beb4ba4458d98758224d1c6c9 100644 (file)
@@ -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);
     }
index becb792db8988c510e72c69d93f5e923631cf8c9..d78f8d42618017aa0334466f51866fa8f7a50941 100644 (file)
@@ -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;
 }
 
index 8c6f877cca2ae46daeb1af6b4339a4176db2a1c8..9f781c3665d73cd7cc737eb7702823283f12e4dc 100644 (file)
@@ -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;
 }
 
index 73a59730842e4490afe03a94bcf918c9f570ad7d..a3cf6feec7b473debf773bf1fda8b9501988d358 100644 (file)
@@ -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;
     }