moc—music on console 网址 http://moc.daper.net/ 这个音乐播放软件支持多种格

Totem,mplayer,sopcast,realplayer,bmp
回复
liaochen
帖子: 8
注册时间: 2009-07-27 14:51

moc—music on console 网址 http://moc.daper.net/ 这个音乐播放软件支持多种格

#1

帖子 liaochen » 2009-07-29 22:03

moc—music on console

网址
http://moc.daper.net/
这个音乐播放软件支持多种格式,功能非常强大。安好后在命令行中输入mocp,按q退出时音乐并不停止。支持快捷键播放,创建playlist更是拿手好戏。

如果想安装简单的音频服务程序
sudo apt-get install moc moc-ffmpeg-plugin
安装以后使用很简单,但是这个版本好像支持的格式不是很多,除了mp3,好想支持wma,我没有试过.

我们也可以到官网上下载源代码,自己编译,这样可以获得更多的支持。但是moc-2.4.4的依赖关系特别复杂,我配置了很长时间才配置好。

--------------------------------------------------------------------------------
What software is required to compile it?
--------------------------------------------------------------------------------
- UNIX system with POSIX threads (eg.. Linux or FreeBSD)
- ncurses (probably already installed in your system)
- C and C++ compilers (MOC is written in C, but libtool requires a C++
compiler).
To support audio formats you need:
- Ogg Vorbis - libvorbis (http://www.xiph.org/ogg/vorbis/download/)
- mp3 - libmad with libid3tag (ftp://ftp.mars.org/pub/mpeg/)
- FLAC - (http://flac.sourceforge.net/)
- WAVE, AU, AIFF, SVX, SPH, IRC, VOC - libsndfile
(http://www.mega-nerd.com/libsndfile/)
- Speex - libspeex (http://www.speex.org/)
- Musepack (mpc) - libmpcdec (http://www.musepack.net/) and taglib
(http://developer.kde.org/~wheeler/taglib.html)
- WMA, ReadAudio, (.ra), AAC, MP4 - FFmpeg
(http://ffmpeg.sourceforge.net/index.php)
For network streams:
- libcurl 7.12.0 or newer (http://curl.haxx.se)
For resampling (playing files with sample rate not supported by your hardware):
- libresamplerate 0.1.2 or newer (http://www.mega-nerd.com/SRC/index.html)
For JACK (low-latency audio server):
- http://jackit.sourceforge.net/
For librcc (fixes encoding in broken mp3 tags).
- http://rusxmms.sourceforge.net/
其中有些网址根本不能用,必须自己搜索。

下载moc2.4.4(moc2.5.0-alpha3版本我在make阶段编译不过去,哪位知道为什么告诉我一声)
当上面的库安装全了以后,在命令行输入mocp后,会有错误
Can't load plugin libffmpeg_decoder: file not found
类似的还有把libffmpeg_decoder换成libmp3_decoder等等,这是由于librcc库的相关软件安装不全造成的。说实话,这点我不是特别清除,我去moc官网论坛找到这个错误解释,可能是少了librcc库,这个库确定是装过了,所以我在http://packages.debian.org/squeeze/libdevel/上面把librcc相关软件都下载安装,比如librcc-dev和它的依赖文件等等,不多,我就安了4,5个。然后再重启mocp,不必重新编译源代码,
Can't load plugin libffmpeg_decoder: file not found依然存在,但是
Can't load plugin libmp3_decoder: file not found没有了。这就证明了 libmp3_decoder的无法识别与librcc相关库有关。事实上,:/usr/lib/moc/decoder_plugins/里我各种decoder俱在,只是有的无法识别。

但是Can't load plugin libffmpeg_decoder: file not found依然存在,这也是moc官方forum上最热的问题(这里好像是有一个bug,moc2.5.0-alpha3版本好像修正了)。我想起来,我刚开始用moc的时候(就是上面提到的简单的moc配置)是可以放mp3的,现在却不行了。注意,上面除了下载moc以外还有moc-ffmpeg-plugin,而找不到的decoder恰巧是ffmpeg。我在安装moc前从INSTALL(还是README)里下载了ffmpeg并自行安装,问题可能出在这里。于是我想重新安装moc-ffmpeg-plugin ,命令行给出如下提示:

liaochen@Newinsten:/tmp/moc-2.5.0-alpha3$ sudo apt-get install moc-ffmpeg-plugin
[sudo] password for liaochen:
Reading package lists... Done
Building dependency tree
Reading state information... Done
moc-ffmpeg-plugin is already the newest version.
The following packages were automatically installed and are no longer required:
linux-headers-2.6.27-7 linux-headers-2.6.27-7-generic
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
问题就出在了这个1 not upgraded上。然后我输入
liaochen@Newinsten:/tmp/moc-2.5.0-alpha3$ sudo apt-get upgrade moc-ffmpeg-plugin

然后重启mocp -SDF(debug模式),

liaochen@Newinsten:/tmp/moc-2.5.0-alpha3$ mocp -SDF
Loading plugins from /usr/lib/moc/decoder_plugins...
Loading plugin libffmpeg_decoder...
OK
Loading plugin libflac_decoder...
OK
Loading plugin libmodplug_decoder...
OK
Loading plugin libmp3_decoder...
OK
Loading plugin libmusepack_decoder...
OK
Loading plugin libsidplay2_decoder...
OK
Loading plugin libsndfile_formats_decoder...
OK
Loading plugin libspeex_decoder...
OK
Loading plugin libvorbis_decoder...
OK
Loading plugin libwavpack_decoder...
OK
事情就解决了。不过还有两点疑问:
1.我没有试所有的格式文件,不敢说我的配置是最终的解决方案。
2.moc中tag中文乱码我还不知道怎么办,麻烦谁知道的话告诉我一声,谢啦。

有问题欢迎邮件交流liaochen1988@gmail.com
owlsky
帖子: 22
注册时间: 2008-10-15 20:48
系统: ubuntu 12.10

Re: moc—music on console 网址 http://moc.daper.net/ 这个音乐播放软件支持多种格

#2

帖子 owlsky » 2009-10-07 15:17

不错,喜欢这个~
头像
yilan198711
帖子: 1635
注册时间: 2008-06-22 13:38
来自: 武汉

Re: moc—music on console 网址 http://moc.daper.net/ 这个音乐播放软件支持多种格

#3

帖子 yilan198711 » 2009-10-07 15:20

支持一个


我比较喜欢直接在控制台下mplayer
mint+gnome
头像
greatgarlic
帖子: 1794
注册时间: 2007-07-11 12:31
来自: neverland
联系:

Re: moc—music on console 网址 http://moc.daper.net/ 这个音乐播放软件支持多种格

#4

帖子 greatgarlic » 2009-10-07 15:25

moc不错~~
To be is to do--Nietzsche
To do is to be--Kant
Do be do be do---Frank Sinatra
http://ggarlic.org
头像
yhlfh
帖子: 579
注册时间: 2006-09-02 20:42
来自: 东海明珠

Re: moc—music on console 网址 http://moc.daper.net/ 这个音乐播放软件支持多种格

#5

帖子 yhlfh » 2009-10-08 21:02

中文显示不出来
Life is like a box of chocolates, you never know what you're going to get.
回复