[FFmpeg-user] Can ffmpeg's filter_compex and audio filtering (-af) be used simultaneously?
Micael Silva
micaelsilva at gmail.com
Sun Sep 13 23:45:07 EEST 2020
On Sun, Sep 13, 2020 at 4:14 PM Dennis Mungai <dmngaie at gmail.com> wrote:
> Hello there,
>
> Can a standard complex filter graph (initialized via -filter_complex) be
> used with an audio filter (inserted via -af) in the same command?
>
> Take this rudimentary example snippet:
>
> ffmpeg -fflags +genpts -vsync 1 \
> -threads 1 -dn \
> -i
> 127.0.0.1:12500?fifo_size=524288&buffer_size=15400960&timeout=6000000'
> -filter_complex \
> "[0:v:0]yadif=0:-1:0,split=6[s0][s1][s2][s3][s4][s5]; \
> [s0]scale=w=1920:h=1080,split=2[v0][v1]; \
> [s1]scale=w=1280:h=720,split=2[v2][v3]; \
> [s2]scalep=w=960:h=540[v4]; \
> [s3]scale=w=768:h=432,split=2[v5][v6]; \
> [s4]scale=w=640:h=360[v7]; \
> [s5]scale=w=416:h=234[v8]" \
> -af "aresample=async=1000:min_hard_comp=0.100000".....
>
> Which shows such a setup in use.
>
> Are there any (known) issues with initializing separate audio filters
> outside a complex filter?
>
> Warm regards,
>
> Dennis.
>
In your case using an audio filter graph inside filter_complex isn't very
complicated, just change it to:
(...) [s5]scale=w=416:h=234[v8]; \
[0:a]aresample=async=1000:min_hard_comp=0.100000"
More information about the ffmpeg-user
mailing list