[FFmpeg-devel] [PATCHv2] af_hdcd: Don't warn if converting from AV_SAMPLE_FMT_S16P
george at nsup.org
Mon Aug 8 00:50:45 EEST 2016
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);
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
-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.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 819 bytes
Desc: Digital signature
More information about the ffmpeg-devel