[FFmpeg-devel] [PATCH] lavdevice: Add VideoToolbox output device.

Nicolas George george at nsup.org
Mon Jun 8 17:27:14 EEST 2020


Thilo Borgmann (12020-06-08):
> How do you avoid the auto-scaler to be scaling to alsa's default
> format of pcm_s16 on the command line?

We cannot, not with your original version, not with how alsa_enc does
and the new version.

Because they are not sample formats, they are codecs, and converting
from a codec to another is more complex than just a resampler. And even
if in these particular cases they are trivial codecs, they could easily
not be: ALSA supports S/PDIF, so it could be AC3 or something.

The solution to have format negotiation would be to make sure all output
devices have a matching lavfi sink. Unfortunately, for now, I am not
sure lavfi's scheduling work with non-buffer sinks. And it has other
drawbacks, including preventing S/PDIF.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20200608/af035de3/attachment.sig>


More information about the ffmpeg-devel mailing list