[FFmpeg-user] Same output bit depth and sampling frequency as input?

Paul B Mahol onemda at gmail.com
Fri Feb 12 11:53:04 EET 2021


On Fri, Feb 12, 2021 at 12:48 AM Marco Mircoli <nuvolablux at gmail.com> wrote:

> Hello everybody,
>  wondering how to set the same output audio specs (sample rate anche bit
> depth) as input.
>
> I tried like that
>
> ffmpeg -i FILE_FROM -af dynaudnorm,loudnorm=I=-16.
> 5:TP=-1.5:LRA=7 -sample_fmt s16 -ar 44100 FILE_TO
>
>
>
> if I have a 48KHZ input, the output is 44100, so doesn't work for my needs
>
> Tried without
>
>
> ffmpeg -i FILE_FROM -af dynaudnorm,loudnorm=I=-16.
> 5:TP=-1.5:LRA=7  FILE_TO
>
> The result is: same bit depth of input file but 192Khz sample rate. (file
> input sr is 48khz)
>
> Anybody can give me a suggest?
>

Use shell scripting.

Also using those 2 filters at same time is entirely invalid and pointless.



> Thanks,
> S.
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-user mailing list