[PATCH] lavf/mpegtsenc: add special case for handling timed ID3 packets
Set the stream_id to 0xbd (private_stream_id_1). Tools seem to assume that value, and this is consistent with MPEG TS (ITU-T H.222.0) section 2.12.3. --- libavformat/mpegtsenc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c index 4b9e71b..0e1e55f 100644 --- a/libavformat/mpegtsenc.c +++ b/libavformat/mpegtsenc.c @@ -1240,6 +1240,9 @@ static void mpegts_write_pes(AVFormatContext *s, AVStream *st, st->codecpar->codec_id == AV_CODEC_ID_AC3 && ts->m2ts_mode) { *q++ = 0xfd; + } else if (st->codecpar->codec_type == AVMEDIA_TYPE_DATA && + st->codecpar->codec_id == AV_CODEC_ID_TIMED_ID3) { + *q++ = 0xbd; } else if (st->codecpar->codec_type == AVMEDIA_TYPE_DATA) { *q++ = stream_id != -1 ? stream_id : 0xfc; -- 1.9.1
On Thu, May 19, 2016 at 06:45:41PM +0200, Stefano Sabatini wrote:
Set the stream_id to 0xbd (private_stream_id_1). Tools seem to assume that value, and this is consistent with MPEG TS (ITU-T H.222.0) section 2.12.3. --- libavformat/mpegtsenc.c | 3 +++ 1 file changed, 3 insertions(+)
should be ok [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB The bravest are surely those who have the clearest vision of what is before them, glory and danger alike, and yet notwithstanding go out to meet it. -- Thucydides
On Thu, May 19, 2016 at 1:23 PM Michael Niedermayer <michael@niedermayer.cc> wrote:
On Thu, May 19, 2016 at 06:45:41PM +0200, Stefano Sabatini wrote:
Set the stream_id to 0xbd (private_stream_id_1). Tools seem to assume that value, and this is consistent with MPEG TS (ITU-T H.222.0) section 2.12.3. --- libavformat/mpegtsenc.c | 3 +++ 1 file changed, 3 insertions(+)
should be ok
Any reason why this was held back? Timothy
On 7/28/2016 3:44 PM, Timothy Gu wrote:
On Thu, May 19, 2016 at 1:23 PM Michael Niedermayer <michael@niedermayer.cc> wrote:
On Thu, May 19, 2016 at 06:45:41PM +0200, Stefano Sabatini wrote:
Set the stream_id to 0xbd (private_stream_id_1). Tools seem to assume that value, and this is consistent with MPEG TS (ITU-T H.222.0) section 2.12.3. --- libavformat/mpegtsenc.c | 3 +++ 1 file changed, 3 insertions(+)
should be ok
Any reason why this was held back?
Timothy
Stefano apparently forgot to push it.
On date Thursday 2016-05-19 22:20:41 +0200, Michael Niedermayer encoded:
On Thu, May 19, 2016 at 06:45:41PM +0200, Stefano Sabatini wrote:
Set the stream_id to 0xbd (private_stream_id_1). Tools seem to assume that value, and this is consistent with MPEG TS (ITU-T H.222.0) section 2.12.3. --- libavformat/mpegtsenc.c | 3 +++ 1 file changed, 3 insertions(+)
should be ok
Finally applied, thanks. -- FFmpeg = Friendly Fostering Majestic Powered Ecumenical Governor
participants (4)
-
James Almer -
Michael Niedermayer -
Stefano Sabatini -
Timothy Gu