Re: correct syntax for combining filters
Dave Woodfall <[email protected]> Fri, 16 Apr 2021 04:08:48 +0100
| Newsgroups | gmane.comp.video.mplayer.user |
|---|---|
| Message-ID | <20210416030848.GR5008@localhost> |
Christian <[email protected]> put forth the proposition: > Hi all, > I´m looking for the right way to combine filters in *mplayer*. > I want to achieve the following: > I´d like to play a .wav-file with the *equalizer*-option set and the > *higher-speed*-option (plus: *not altering the pitch* when playing > faster). > Man-pages say: > -af <filter1[=parameter1:parameter2:...],filter2,...> > Setup a chain of audio filters. > Seems that´s what I´m looking for. > This command however doesn´t work: > mplayer -af scaletempo=scale=1.2:speed=pitch -srate 44100 -af > lavcresample=44100 -af equalizer=0:0:0:0:0:0:0:0:7:7 test.wav > I.e.: the equalizer option does work (audio is much crisper) but it´s all > played back at normal speed (not with the factor of "1.2"). Take a look at the other -af-* related flags, like -af-add -af-del etc., because, as someone already pointed out, I think each -af overrides the last, which explains why only the eq seems to be having any effect. If you keep the first filter as -af and then use -af-add for the following ones it might do want you want. Normally filters are separated by commas, and options by colons. I tend to use -vf more often than -af, but the formula is the same, e.g.: -vf dsize=640:-2,scale,expand=-8:-40:4:40,... -- Dave _______________________________________________ MPlayer-users mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users