History

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.

Gyan Doshi committed 6 years ago

Commit f0b3b551 parent c75f2461 file · +2 −0Browse files

Unified · Split

libavformat/mpegtsenc.c+2−0
@@ -382,6 +382,8 @@ static int mpegts_write_pmt(AVFormatContext *s, MpegTSService *service) · 381 unmodified lines
382 stream_type = STREAM_TYPE_METADATA;382 stream_type = STREAM_TYPE_METADATA;
383 break;383 break;
384 default:384 default:
385 av_log(s, AV_LOG_WARNING, "Stream %d, codec %s, is muxed as a private data stream "
386 "and may not be recognized upon reading.\n", i, avcodec_get_name(st->codecpar->codec_id));
385 stream_type = STREAM_TYPE_PRIVATE_DATA;387 stream_type = STREAM_TYPE_PRIVATE_DATA;
386 break;388 break;
387 }389 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t