Discussion:
[LAU] mpv af channelmap help
Jeanette C.
2018-09-05 22:21:10 UTC
Permalink
Hey hey,
I've been trying to insert an audiofilter in mpv, through the commandline and
failed miserably. Can you help? the only thing I wished to do is reverse the
stereo channels, because my amp is actually plugged in the wrong way round and
I can't change it. From my understanding of the help I typed:
mpv --af channelmap:map="0,1,1,0":channeml_layout=2 file.wav
The channelmap can't be parsed. Whatever I do. I can get a mono output with
just one number. I also get some output with two numbers seperated by a dash
"-", but no more. I also tried just giving two comma seperated numbers, i.e.
only the new order of the input channels. I'd be grateful for a working
example. My shell is bash.

Best wishes,

Jeanette

--------
* Website: http://juliencoder.de - for summer is a state of sound
* SoundCloud: https://soundcloud.com/jeanette_c
* Youtube: https://www.youtube.com/channel/UCMS4rfGrTwz8W7jhC1Jnv7g
* GitHub: https://github.com/jeanette-c
* Twitter: https://twitter.com/jeanette_c_s

Cinderella's got to go <3
(Britney Spears)
Christopher Arndt
2018-09-05 22:37:57 UTC
Permalink
Post by Jeanette C.
mpv --af channelmap:map="0,1,1,0":channeml_layout=2 file.wav
The channelmap can't be parsed.
This does the trick:

mpv "-af=channelmap=0-1|1-0|" <inputfile>

Here is the reference for the syntax (since channelmap is a libavfilter
filter):

https://ffmpeg.org/ffmpeg-filters.html#channelmap

which is linked from the manpage in PDF format found here:

https://github.com/mpv-player/mpv/wiki


HTH, Chris
Jeanette C.
2018-09-05 22:46:14 UTC
Permalink
Sep 6 2018, Christopher Arndt has written:
...
Post by Christopher Arndt
mpv "-af=channelmap=0-1|1-0|" <inputfile>
...
Thanks Chris, that does it!

Best wishes,

Jeanette

--------
* Website: http://juliencoder.de - for summer is a state of sound
* SoundCloud: https://soundcloud.com/jeanette_c
* Youtube: https://www.youtube.com/channel/UCMS4rfGrTwz8W7jhC1Jnv7g
* GitHub: https://github.com/jeanette-c
* Twitter: https://twitter.com/jeanette_c_s

Cinderella's got to go <3
(Britney Spears)

Loading...