Le primidi 21 thermidor, an CCXXIV, Carl Eugen Hoyos a écrit : > I considered that acceptable but if better solutions exist (that are > also acceptable), I am happy.
As I already pointed twice: /** * Enable or disable automatic format conversion inside the graph. * * Note that format conversion can still happen inside explicitly inserted * scale and aresample filters. * * @param flags any of the AVFILTER_AUTO_CONVERT_* constants */ void avfilter_graph_set_auto_convert(AVFilterGraph *graph, unsigned flags); enum { AVFILTER_AUTO_CONVERT_ALL = 0, /**< all automatic conversions enabled */ AVFILTER_AUTO_CONVERT_NONE = -1, /**< all automatic conversions disabled */ }; Right now, with the command-line ffmpeg tool, it is only accessible through this: -pix_fmt[:stream_specifier] format (input/output,per-stream) the encoder. If pix_fmt is prefixed by a "+", ffmpeg will exit with an error if the requested pixel format can not be selected, and automatic conversions inside filtergraphs are disabled. If pix_fmt is a single "+", ffmpeg selects the same pixel format as the input (or graph output) and automatic conversions are disabled. Implementing it the same way for audio should be rather straightforward. Also, I notice that the code for taking this flag into account have been lost some time ago during merges from the fork. Restoring it would be easy, though. I added it to my TODO, but anybody can do it earlier. Regards, -- Nicolas George
signature.asc
Description: Digital signature
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel