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

Thilo Borgmann thilo.borgmann at mail.de
Mon Jun 8 02:24:02 EEST 2020


Am 08.06.20 um 00:35 schrieb Nicolas George:
> Thilo Borgmann (12020-06-08):
>> Not sure if you don't mix it with Video.... screw me...
> 
> Oh, that's why you re-sent the patch. I could not spot the difference.
> 
>> For Audio, I cannot find another device handling more than one format in one device.
>> I'd appreciate a better way to do it than having N-devices...
> 
> alsa_enc.c, at least:
> 
> Output #0, alsa, to 'default':
>   Metadata:
>     encoder         : Lavf58.42.100
>     Stream #0:0: Audio: pcm_u8, 44100 Hz, mono, u8, 352 kb/s (default)
> 
> Output #0, alsa, to 'default':
>   Metadata:
>     encoder         : Lavf58.42.100
>     Stream #0:0: Audio: pcm_s16le, 44100 Hz, mono, s16, 705 kb/s (default)
> 
> Output #0, alsa, to 'default':
>   Metadata:
>     encoder         : Lavf58.42.100
>     Stream #0:0: Audio: pcm_f32le, 44100 Hz, mono, flt, 1411 kb/s (default)

I guess I see how it does that.
How do you avoid the auto-scaler to be scaling to alsa's default format of pcm_s16 on the command line?

-Thilo


More information about the ffmpeg-devel mailing list