[FFmpeg-devel] [PATCH 4/5] lavf/matroskaenc: enable PGS merge auto bsf

John Stebbins jstebbins at jetheaddev.com
Fri May 8 17:11:27 EEST 2020


PGS segments must be merged to one packet for muxing to mkv
---
 libavformat/matroskaenc.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c
index 99b549ecc4..7f2cda41b9 100644
--- a/libavformat/matroskaenc.c
+++ b/libavformat/matroskaenc.c
@@ -2735,6 +2735,8 @@ static int mkv_check_bitstream(struct AVFormatContext *s, const AVPacket *pkt)
             ret = ff_stream_add_bitstream_filter(st, "aac_adtstoasc", NULL);
     } else if (st->codecpar->codec_id == AV_CODEC_ID_VP9) {
         ret = ff_stream_add_bitstream_filter(st, "vp9_superframe", NULL);
+    } else if (st->codecpar->codec_id == AV_CODEC_ID_HDMV_PGS_SUBTITLE) {
+        ret = ff_stream_add_bitstream_filter(st, "pgs_frame_merge", NULL);
     }
 
     return ret;
-- 
2.25.4



More information about the ffmpeg-devel mailing list