Hello,
I am looking for a generic method to detect if specific codec-container
combination would "work".
I tested this approach:
Prepare writing to memory buffer and execute just avformat_write_header
and av_write_trailer (no actual packets).
If neither function returns an error, assume the formats are compatible.

This seems to solve great part of the problem, but there are exceptions:
pcm in mp4 is successful (no errors reported), but results in unreadable
audio (I can handle this case otherwise if it is unique).
In some cases the reason for error is something else, like "framerate 1:1
is not supported".

Thanks for any ideas.
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to