<div dir="ltr">Hi all!<div><br></div><div>I'm working on a DSL backend for ffmpeg/libav that allows users to build streams using generic programming language primitives and am now integrating support for stream copy using AVPackets.</div><div><br></div><div>The way the language is structured, sources decode files whose content is then passed packet by packet down to the encoders.</div><div><br></div><div>My problem is that, once I have started the streaming loop with one file, I need a way to know if the next file in the playlist will be compatible with the output stream as configured. </div><div><br></div><div>Since stream copies are using AVCodecParameters for their initialization, I suppose that the way to do it is to check on the AVCodecParameters from the next file as returned by the library.</div><div><br></div><div>However, AVCodecParameters structure has a lot of entries, some seemingly codec-specific and etc.</div><div><br></div><div>Apart from doing the usual suspect sanity checks, sample/frame format, sample/frame rate, etc, is there any kind of generic utility that can be used to check if two given AVCodecParameters are mutually compatible to mux in the same output stream? I have looked at the API but haven't found one such..</div><div><br></div><div>Thanks for y'all help!</div><div>Romain</div></div>