筆記-用mplayer播放單聲道的方法

mplayer -af channels=nch[:nr:from1:to1:from2:to2:from3:to3:...] file.mpg
<nr>
number of routes (1-6)
<from1:to1:from2:to2:from3:to3:...>
Pairs of numbers between 0 and 5 that define where to
route each channel.

第一個nr先輸入總共有幾個聲道,接著是第幾個聲道的
如果做左右聲道對調的話可以下

mplayer -af channels=2:0:1:1:0 file.mpg

另一個是pan混音功能
mplayer -af pan==n[:L00:L01:L02:...L10:L11:L12:...Ln0:Ln1:Ln2:...] file.mpg
<n>
number of output channels (1-6)
<lij>
How much of input channel i is mixed into output channel
j (0-1). So in principle you first have n numbers say‐
ing what to do with the first input channel, then n num‐
bers that act on the second input channel etc. If you
do not specify any numbers for some input channels, 0 is
assumed.

這邊是輸入倍數的,例如
mplayer -af pan=2:3:1:1:2 file.mpg
這是指 左聲道的聲音變成 3倍的第一聲道 加上 1倍的第二聲道
右聲道的聲音變成1倍的左聲道加上2倍的右聲道

如果要只聽一個mtv, 左聲道為導唱,右聲道為純音樂
想聽左聲道就好:
mplayer -af pan:1:1:0 file.mpg

留言

這個網誌中的熱門文章

[Linux] 如何 hex 字串 與 文字互轉

記下 openssh 中 sftp的log

[linux]用指令來做音量控制