[FFmpeg-devel] [PATCH 1/2] avformat/mpegtsenc: fix muxing pcm-bluray
Paul B Mahol
onemda at gmail.com
Sun Feb 27 22:45:00 EET 2022
On Sun, Feb 27, 2022 at 6:56 PM Marton Balint <cus at passwd.hu> wrote:
>
>
> On Sun, 27 Feb 2022, Paul B Mahol wrote:
>
> > On Sun, Feb 27, 2022 at 6:47 PM Marton Balint <cus at passwd.hu> wrote:
> >
> >>
> >>
> >> On Sat, 26 Feb 2022, Paul B Mahol wrote:
> >>
> >>> Signed-off-by: Paul B Mahol <onemda at gmail.com>
> >>> ---
> >>> libavformat/mpegtsenc.c | 4 ++++
> >>> 1 file changed, 4 insertions(+)
> >>>
> >>> diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c
> >>> index 971b3f55d8..48cd54c770 100644
> >>> --- a/libavformat/mpegtsenc.c
> >>> +++ b/libavformat/mpegtsenc.c
> >>> @@ -2097,6 +2097,10 @@ static int
> >> mpegts_write_packet_internal(AVFormatContext *s, AVPacket *pkt)
> >>> ts_st->dvb_ac3_desc = dvb_ac3_desc;
> >>> }
> >>> av_free(hdr);
> >>> + } else if (st->codecpar->codec_id == AV_CODEC_ID_PCM_BLURAY) {
> >>> + mpegts_write_pes(s, st, buf, size, pts, dts,
> >>> + pkt->flags & AV_PKT_FLAG_KEY, stream_id);
> >>> + return 0;
> >>> }
> >>
> >> This fixes what exactly?
> >>
> >
> > -c copy for .m2ts file that have pcm_bluray audio codec.
>
> Ok, but what happens without the patch?
>
>
All pcm_bluray frames are concatenated together in one big payload, I
thought at first that it may need own parser...
Thanks,
> Marton
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".
>
More information about the ffmpeg-devel
mailing list