[FFmpeg-devel] [PATCH] avformat/rawenc: check stream type

Carl Eugen Hoyos ceffmpeg at gmail.com
Sat Apr 7 22:49:59 EEST 2018

2018-04-07 13:32 GMT+02:00, Gyan Doshi <gyandoshi at gmail.com>:
> On 4/7/2018 4:35 PM, Carl Eugen Hoyos wrote:
>> 2018-04-04 12:23 GMT+02:00, Gyan Doshi <gyandoshi at gmail.com>:
>>> Validate codec of stream to be muxed except for data muxer.
>> What issue does your patch fix?
> Had an user on SE sometime back extract a video stream to a .h264 (in
> order to retime PTS).

Does this work at all?

> The retiming didn't work since the stream was
> actually mpeg4 but the muxer hasn't complained. Might have been fine but
> ffmpeg's format probe settled on h264 so user couldn't proceed until we
> examined the source.

A warning would be sufficient.

Carl Eugen

More information about the ffmpeg-devel mailing list