推荐VLC多媒体播放器和安装方法

Totem,mplayer,sopcast,realplayer,bmp
头像
kofshower
帖子: 1343
注册时间: 2007-03-13 11:23
联系:

推荐VLC多媒体播放器和安装方法

#1

帖子 kofshower » 2008-07-02 16:36

apt安装
sudo apt-get install vlc vlc-plugin-esd mozilla-plugin-vlc vlc-plugin-alsa vlc-plugin-pulse vlc-plugin-sdl


编译安装
1、sudo apt-get install build-essential gcc make autoconf automake libtool gdb g++ libavcodec-dev libpostproc-dev libmpeg2-4-dev libmad0-dev libwxgtk2.8-dev libavformat-dev libmad0-dev ffmpeg
如果编译firefox插件还需要Mozilla的开发包
如果编译portableaudio还需要其开发包
2、wget http://download.videolan.org/pub/vlc/0. ... 6h.tar.bz2 && tar jvxf vlc-0.8.6h.tar*
3、cd vlc* && ./configure --enable-wxwindows --enable-optimize-memory --enable-release --enable-real --enable-realrtsp --enable-flac --enable-snapshot --enable-esd
4、make
5、sudo make install

安装方式:编译安装的话对本机有一定优化,相对速度快些。
强烈推荐VLC,可是不能只从一方面说事,支持的话用VLC更好咯。可是不perfect啊,一些HD的,RMVB,一些APE的话还是mplayer了。可是郁闷的是mplayer也不完美啊,默认没有libdts的库,播6声道CD有问题啊,而gmplayer的默认界面我觉得就是一个累赘,还不如cli方便。
:em06 :em06 :em06 不完美啊
需要打成deb包的话:
To build a Debian package, you need to get the packaging info
svn co svn://svn.videolan.org/pkg-multimedia/unstable/vlc/debian debian
and then
dpkg-buildpackage -rfakeroot -us -uc
附件
Screenshot.png
上次由 kofshower 在 2008-07-03 3:30,总共编辑 2 次。
"We are all in the mud, but some of us are looking at the stars." (Oscar Wilde)
We are not born for ourselves.
人生天地间,并非为自己
Homepage:http://sites.google.com/site/polarisnotme/
头像
kofshower
帖子: 1343
注册时间: 2007-03-13 11:23
联系:

#2

帖子 kofshower » 2008-07-02 16:47

不知道为什么我抓图没有抓到vlc中的媒体,可能是显卡驱动的问题吧。补个vlc的抓图,默认抓图文件夹在~/.vlc.
可以用http://forum.ubuntu.org.cn/viewtopic.php?t=109855上面的地址收看网络电视,测了一下速度很快
附件
vlcsnap-3178842.png
"We are all in the mud, but some of us are looking at the stars." (Oscar Wilde)
We are not born for ourselves.
人生天地间,并非为自己
Homepage:http://sites.google.com/site/polarisnotme/
头像
weive
帖子: 3236
注册时间: 2007-10-21 18:36
来自: 汕头/广东/中国

#3

帖子 weive » 2008-07-02 17:26

LZ试试播放个FLAC音频看看。
老子的哲学是“”,庄子的哲学是“
人有一技在身,则逍遥游而无不为
头像
kofshower
帖子: 1343
注册时间: 2007-03-13 11:23
联系:

#4

帖子 kofshower » 2008-07-02 17:48

weive 写了:LZ试试播放个FLAC音频看看。
测试了没有问题,我把那个编进去了阿,看我的config,我把认为需要打开而默认没有打开的编译开关加上了。
这是官方的支持格式清单:http://www.videolan.org/vlc/features.html
上次由 kofshower 在 2008-07-02 23:59,总共编辑 1 次。
"We are all in the mud, but some of us are looking at the stars." (Oscar Wilde)
We are not born for ourselves.
人生天地间,并非为自己
Homepage:http://sites.google.com/site/polarisnotme/
头像
woaiwojia
帖子: 1355
注册时间: 2007-09-10 20:20
系统: Debian
来自: 南京

#5

帖子 woaiwojia » 2008-07-02 22:42

试一下,听说播放高清好些
头像
kofshower
帖子: 1343
注册时间: 2007-03-13 11:23
联系:

#6

帖子 kofshower » 2008-07-02 22:52

woaiwojia 写了:试一下,听说播放高清好些
其实播高清的话我还是建议使用打了补丁的mplayer,不过前提必须是svn版本的mplayer。CPU占用率在我的本本上from 86%下降到了5X%。其中解码器是图中那个dshowserver的。
我试了一下我机子上面唯一的一部高清《云于山之彼端,约定的地方》下面是控制台输出:
MPlayer dev-SVN-r27184-4.2.3 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Pentium(R) M processor 1.73GHz (Family: 6, Model: 13, Stepping: 8)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
编译时针对 x86 CPU 扩展指令集优化: MMX MMX2 SSE SSE2
115 音频和 238 视频编解码器
mplayer: could not connect to socket
mplayer: No such file or directory
开启 LIRC 支持失败。你将无法使用你的遥控器。

正在播放 /media/free/[IFS][BDRip][kumo_no_mukou_yakusoku_no_basho][AVC_AAC][CRC_b42050d6].mkv。
[mkv] 轨迹 ID 1: video (V_MPEG4/ISO/AVC) "x264", -vid 0
[mkv] 轨迹 ID 2: audio (A_AAC) "AAC 2.0", -aid 0, -alang jpn
[mkv] 轨迹 ID 3: audio (A_AAC) "AAC 5.1", -aid 1, -alang jpn
[mkv] 轨迹 ID 4: subtitles (S_TEXT/ASS) "简体中文", -sid 0, -slang chi
[mkv] 轨迹 ID 5: subtitles (S_TEXT/ASS) "繁體中文", -sid 1, -slang chi
[mkv] 轨迹 ID 6: subtitles (S_TEXT/ASS) "日本語", -sid 2, -slang jpn
[mkv] 将播放视频轨迹 1。
检测到 Matroska 文件格式。
VIDEO: [avc1] 1920x1080 24bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
==========================================================================
打开视频解码器: [dshowserver] DirectShowServer video codecs
shm:/dshow_shm.b6b18740
sem1:/dshow_sem1.b6b18740
sem2:/dshow_sem2.b6b18740
Opening device
Called unk_IsDebuggerPresent
len: 992
ProductVersion: 1.7.0
Decoder supports the following YUV formats: YUY2 UYVY YV12 I420
Decoder is capable of YUV output (flags 0x2b)
Setting fmt
Starting
Initialization is complete
VDec: vo 配置请求 - 1920 x 1080 (色彩空间首选项: Packed YUY2)
[PP] 使用编解码器的后处理过滤器, max q = 4。
VDec: 使用 Planar YV12 作为输出 csp (没有 0)
电影宽高比为 1.78:1 - 预放大到正确的电影宽高比。
VO: [xv] 1920x1080 => 1920x1080 Planar YV12
[ASPECT] 警告: 无法找到新的合适的分辨率!
[ASPECT] 警告: 无法找到新的合适的分辨率!
[ASPECT] 警告: 无法找到新的合适的分辨率!
Found DirectShow filter已选视频编解码器: [coreserve] vfm: dshowserver (CoreAVC DShow H264 decoder 1.3 for x86 - http://corecodec.org/)
==========================================================================
==========================================================================
打开音频解码器: [faad] AAC (MPEG2/4 Advanced Audio Coding)
FAAD: compressed input bitrate missing, assuming 128kbit/s!
AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000)
已选音频编解码器: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio) decoder)
==========================================================================
AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
开始播放...
pts value <= previous: 0.279 ct: 0.000 0/ 0 ??% ??% ??,?% 0 0
A: 14.5 V: 13.4 A-V: 1.067 ct: -0.021 0/ 0 63% 10% 6.9% 50 0
注意:
必须只能有且只能用SVN版本的
附件
Screenshot.png
上次由 kofshower 在 2008-07-03 2:04,总共编辑 1 次。
"We are all in the mud, but some of us are looking at the stars." (Oscar Wilde)
We are not born for ourselves.
人生天地间,并非为自己
Homepage:http://sites.google.com/site/polarisnotme/
头像
kofshower
帖子: 1343
注册时间: 2007-03-13 11:23
联系:

#7

帖子 kofshower » 2008-07-02 23:25

不过界面明显是vlc的优点。上面是vlc的。下面是mplayer的。
附件
Screenshot-1.png
"We are all in the mud, but some of us are looking at the stars." (Oscar Wilde)
We are not born for ourselves.
人生天地间,并非为自己
Homepage:http://sites.google.com/site/polarisnotme/
头像
kofshower
帖子: 1343
注册时间: 2007-03-13 11:23
联系:

#8

帖子 kofshower » 2008-07-02 23:30

同样 mplayer有些皮肤也是相当精美,可是那只是皮肤不是图形界面。和上面比较:
vlc的皮肤是有单独的可编程接口的。所以这个wmp的皮肤里面有类似wmp的文件管理的要素。比如每部片有缩略图,文件列表也相对好些。
mplayer这个也很精美,可是就是图片。还不如键盘来的快一些。
附件
Screenshot-3.png
"We are all in the mud, but some of us are looking at the stars." (Oscar Wilde)
We are not born for ourselves.
人生天地间,并非为自己
Homepage:http://sites.google.com/site/polarisnotme/
头像
zhuqin_83
帖子: 10606
注册时间: 2006-05-13 4:02
联系:

#9

帖子 zhuqin_83 » 2008-07-03 6:23

放高清还是mplayer最好,vlc除了好看,网络功能强大外并没有出彩的地方。虽说x264是vlc开发的,可惜播放效率效果支持格式还不如mplayer,所以至今只能排在第二。
HP Pavilion DV6-2064CA: AMD Turion II Ultra Dual-Core Mobile M640, HD4650, 2GBx2 DDR2-800, Seagate 500GB 7200RPM SATA, BD-ROM
DELL UltraSharp 2209WA
Arch64, Testing repo
头像
kofshower
帖子: 1343
注册时间: 2007-03-13 11:23
联系:

#10

帖子 kofshower » 2008-07-05 7:06

源里的版本到0.9.0-git20080512-1ubuntu1,有很大改进,亏我前天去编译git clone的时候 改了半天的make文件
附件
window.png
"We are all in the mud, but some of us are looking at the stars." (Oscar Wilde)
We are not born for ourselves.
人生天地间,并非为自己
Homepage:http://sites.google.com/site/polarisnotme/
qqh4636931
帖子: 46
注册时间: 2008-06-27 20:54

[问题]

#11

帖子 qqh4636931 » 2008-07-05 15:54

我的系统是ubuntu
在系统安装vlc
以后播放AVI格式的影片发放出声音非常刺耳,是怎么回事???
头像
kofshower
帖子: 1343
注册时间: 2007-03-13 11:23
联系:

Re: [问题]

#12

帖子 kofshower » 2008-07-06 3:13

qqh4636931 写了:我的系统是ubuntu
在系统安装vlc
以后播放AVI格式的影片发放出声音非常刺耳,是怎么回事???
有版本信息和Debug输出之类的信息么。
换个声音输出试一试。
我从来没有见过这种问题 :oops:
"We are all in the mud, but some of us are looking at the stars." (Oscar Wilde)
We are not born for ourselves.
人生天地间,并非为自己
Homepage:http://sites.google.com/site/polarisnotme/
头像
kofshower
帖子: 1343
注册时间: 2007-03-13 11:23
联系:

#13

帖子 kofshower » 2008-07-06 7:25

如果还是刺耳的话可以编译安装。
或是我再给一个选择吧:这是我从mplayer源码树中取的最新的mplayer可以用这个包安装。
优点:已经打了补丁可以直接挂coreavc的解码器放高清。这个解码器坛子有下载。
可以和最新的smplayer一起用。不过注意是32bit x86 hardy的安装包
先把mplayer合并:cat mplayercheckout.tar.*|tar jx
附件
mplayercheckout.tar.1.bz2
(2 MiB) 已下载 95 次
mplayercheckout.tar.2.bz2
(2 MiB) 已下载 91 次
mplayercheckout.tar.3.bz2
(2 MiB) 已下载 107 次
mplayercheckout.tar.4.bz2
(1.18 MiB) 已下载 97 次
smplayer_0.6.0final_i386.deb
(1.86 MiB) 已下载 94 次
上次由 kofshower 在 2008-07-06 23:14,总共编辑 1 次。
"We are all in the mud, but some of us are looking at the stars." (Oscar Wilde)
We are not born for ourselves.
人生天地间,并非为自己
Homepage:http://sites.google.com/site/polarisnotme/
头像
kofshower
帖子: 1343
注册时间: 2007-03-13 11:23
联系:

#14

帖子 kofshower » 2008-07-06 7:56

现在Linux的桌面环境有好多软件转向QT4,smplayer vlc默认都编译qt4进去的,哎,早知道就用KDE了,什么时候把LXDE给换一换 :em11
"We are all in the mud, but some of us are looking at the stars." (Oscar Wilde)
We are not born for ourselves.
人生天地间,并非为自己
Homepage:http://sites.google.com/site/polarisnotme/
abjls
帖子: 18
注册时间: 2005-10-06 13:55

#15

帖子 abjls » 2008-07-14 19:18

我用smplayer看一个1080的秒速5,听不见声音的
这个秒5的mkv里有两条flac音轨,2声道和4声道
我猜测mplayer分不清两个声道,造成使用4声道的音轨,手动切换也没用
而用vlc就听到了,也可以切换音轨
但搞不定vlc的字幕
回复