aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGyan Doshi <ffmpeg@gyani.pro>2019-12-20 16:39:32 +0530
committerGyan Doshi <ffmpeg@gyani.pro>2019-12-23 21:06:37 +0530
commitf0b3b55002b7ad024ef94f005cd718a14d85e485 (patch)
tree8e0a4149ffb4ffcf2b2661e805a1f358a4cd543d
parentc75f246a3c077fa552af5dc84abf1d89e9c7d397 (diff)
downloadffmpeg-f0b3b55002b7ad024ef94f005cd718a14d85e485.tar.gz
avformat/mpegtsenc: warn users if codec isn't supported
The MPEG-TS muxer will mux streams with unsupported codec id as a private data stream; this usually makes the stream not recognizable by ffmpeg and likely other tools.
-rw-r--r--libavformat/mpegtsenc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c
index 5b4694bfd1..ccb631d746 100644
--- a/libavformat/mpegtsenc.c
+++ b/libavformat/mpegtsenc.c
@@ -382,6 +382,8 @@ static int mpegts_write_pmt(AVFormatContext *s, MpegTSService *service)
stream_type = STREAM_TYPE_METADATA;
break;
default:
+ av_log(s, AV_LOG_WARNING, "Stream %d, codec %s, is muxed as a private data stream "
+ "and may not be recognized upon reading.\n", i, avcodec_get_name(st->codecpar->codec_id));
stream_type = STREAM_TYPE_PRIVATE_DATA;
break;
}