我电脑里的所有视频文件都可以播放ffplay
,vlc不能播放,是扼杀视频文件。
这是我的一些 vlc 配置。
我的电脑上的vlc在打开视频文件时会自动退出,这是怎么回事?是否有包裹丢失?
如何检查呢?
dpkg -l | grep vlc
ii browser-plugin-vlc 2.0.6-4 amd64 multimedia plugin for web browsers based on VLC
ii libvlc-dev 2.2.6-1~deb8u1 amd64 development files for libvlc
ii libvlc5 2.2.6-1~deb8u1 amd64 multimedia player and streamer library
ii libvlccore-dev 2.2.6-1~deb8u1 amd64 development files for libvlccore
ii libvlccore8 2.2.6-1~deb8u1 amd64 base library for VLC and its modules
ii vlc 2.2.6-1~deb8u1 amd64 multimedia player and streamer
ii vlc-data 2.2.6-1~deb8u1 all Common data for VLC
ii vlc-nox 2.2.6-1~deb8u1 amd64 multimedia player and streamer (without X support)
ii vlc-plugin-notify 2.2.6-1~deb8u1 amd64 LibNotify plugin for VLC
ii vlc-plugin-pulse 2.2.6-1~deb8u1 all transitional dummy package for vlc
ii vlc-plugin-samba 2.2.6-1~deb8u1 amd64 Samba plugin for VLC
cvlc test.mp4
VLC media player 2.2.6 Umbrella (revision 2.2.6-0-g1aae78981c)
[00000000025bbb08] dummy interface: using the dummy interface module...
Segmentation fault
uname -a
Linux MiWiFi 3.16.0-4-amd64 #1 SMP Debian 3.16.43-2+deb8u2 (2017-06-26) x86_64 GNU/Linux
在我的电脑上执行以下三个命令没有用。
sudo /usr/lib/vlc/vlc-cache-gen -f usr/lib/vlc/plugins
sudo apt-get update
sudo apt-get install --reinstall vlc
smplayer也安装了,两者都不能播放视频,当播放视频时,smplayer输出错误如下。
MPlayer2 2.0-728-g2c378c7-4+b1 (C) 2000-2012 MPlayer 团队终端类型“未知”未定义。
Playing /home/debian8/test.mp4.
Cache size set to 2048 KiB
Cache fill: 0.00% (0 bytes)
Detected file format: QuickTime / MOV (libavformat)
MPlayer interrupted by signal 11 in module: demux_open
ID_SIGNAL=11
- MPlayer crashed by bad usage of CPU/FPU/RAM.
Recompile MPlayer with --enable-debug and make a 'gdb' backtrace and
disassembly. Details in DOCS/HTML/en/bugreports_what.html#bugreports_crash.
- MPlayer crashed. This shouldn't happen.
It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
gcc version. If you think it's MPlayer's fault, please read
DOCS/HTML/en/bugreports.html and follow the instructions there. We can't and
won't help unless you provide this information when reporting a possible bug.
答案1
这个问题让我想起了一些可能导致此问题的问题:
1)vlc 中是否启用了视频?
- 工具 -> 首选项 -> 视频选项卡
- 查看启用视频框是否被选中,如果没有则启用它。
- 查看Windowdecorations是否勾选,如果没有勾选则。
- 将输出下拉菜单设置为 X11 视频输出 (XCB)。
2)从torrent下载视频文件时,有时可能会显示错误的100%下载,并且文件已损坏且无法播放。
3)如果mplayer也无法播放该视频,请检查其他视频文件。
4)重新安装vlc有时会弄乱事情,我建议这样做:
sudo apt-get update
sudo apt-get remove --purge vlc
sudo apt-get install vlc
5) 工具 -> 首选项 -> Codecs 下的输入/编解码器,如果“硬件加速解码”为“禁用”,请将其编辑为“自动”。