免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1404 | 回复: 0
打印 上一主题 下一主题

mplayer选择声道 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-02-09 16:04 |只看该作者 |倒序浏览
使用smplayer播放一个rmvb文件时出现了中韩2种声音,工具栏上面有个stereo mode改了之后还是没有反应。查了网上,有人说用mplayer -stereo 2/1/0 也不行,可能这种方法只适用与mkv文件。
后来发现用一下方法解决:
左声道:
mplayer -af channels=1:1:1右声道:
mplayer -af channels=1:1
看了下man,还真是复杂:
  channels=nch[:nr:from1:to1:from2:to2:from3:to3:...]
              Can be used for adding, removing, routing and copying audio
              channels.  If only  is given the default routing is used,
              it works as follows: If the number of output channels is bigger
              than the number of input channels empty channels are inserted
              (except mixing from mono to stereo, then the mono channel is re‐\n              peated in both of the output channels).  If the number of output
              channels is smaller than the number of input channels the ex‐\n              ceeding channels are truncated.
                 
                      number of output channels (1-6)
                 
                      number of routes (1-6)
                 
                      Pairs of numbers between 0 and 5 that define where to
                      route each channel.
              EXAMPLE:
                 mplayer -af channels=4:4:0:1:1:0:2:2:3:3 media.avi
                      Would change the number of channels to 4 and set up 4
                      routes that swap channel 0 and channel 1 and leave chan‐\n                      nel 2 and 3 intact.  Observe that if media containing
                      two channels was played back, channels 2 and 3 would
                      contain silence but 0 and 1 would still be swapped.
                 mplayer -af channels=6:4:0:0:0:1:0:2:0:3 media.avi
                      Would change the number of channels to 6 and set up 4
                      routes that copy channel 0 to channels 0 to 3.  Channel
                      4 and 5 will contain silence.
反正我是没看懂,太专业了。暂且先用着吧


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/37472/showart_1820738.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP