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

Gyan Doshi gyandoshi at gmail.com
Tue Apr 10 16:51:29 EEST 2018



On 4/10/2018 4:49 AM, Michael Niedermayer wrote:

> To implement generic "codec supported" checks, muxers would have to
> list what they support.
> There are 3 ways i know how this can be done in the current API
> 1. the audio_codec / video_codec / ... fields
> 2. the codec_tag array (this was in fact IIRC one of the intended uses of it)
> 3. the querry_format callback

These are raw single stream muxers - most only dump packets and _should_ 
accept exactly one codec_id. A couple may insert bitstream filters. Only 
one writes a trailer. So none of them have a codec_tag member or a 
query_codec callback. Personally, I agree that the current method is 
inelegant but these "muxers" are stable and these tests shouldn't need 
changes. But I can go the query_codec route if you advise it.

Regards,
Gyan


More information about the ffmpeg-devel mailing list