[FFmpeg-devel] [PATCHv2] af_hdcd: Don't warn if converting from AV_SAMPLE_FMT_S16P

Nicolas George 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);

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

       -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.


  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160807/7cb51432/attachment.sig>

More information about the ffmpeg-devel mailing list