[FFmpeg-devel] [PATCH 2/4] lavf/matroskaenc: add PGS merge to auto bsf list

Andreas Rheinhardt andreas.rheinhardt at gmail.com
Sat May 2 23:40:36 EEST 2020


John Stebbins:
> 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 d3256d8f5d..bccf8b11d2 100644
> --- a/libavformat/matroskaenc.c
> +++ b/libavformat/matroskaenc.c
> @@ -2655,6 +2655,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;
> 
1128aa875367f66ac11adc30364d5652919a2591 removed the auto bsf list (no
muxer added more than one bsf for the same stream), so your commit
message needs to be updated.

- Andreas


More information about the ffmpeg-devel mailing list