![Xubuntu 16.04 中的 Mplayer 在 Intel HD 530 上没有视频或音频](https://linux22.com/image/883563/Xubuntu%2016.04%20%E4%B8%AD%E7%9A%84%20Mplayer%20%E5%9C%A8%20Intel%20HD%20530%20%E4%B8%8A%E6%B2%A1%E6%9C%89%E8%A7%86%E9%A2%91%E6%88%96%E9%9F%B3%E9%A2%91.png)
我有一台运行 Xubuntu 16.04 的 Intel i3-6100 处理器。我想让 Mplayer 正常工作。
我尝试了一些解决方法。例如,VLC 可以工作,特别是当我启用X11显示。但是我需要使用 Mplayer 来播放某些视频(MPEG 传输流不是从良好边界开始的),而且我相信 DVBcut 也使用它。
当我尝试使用 Mplayer 播放任何视频(例如 MPEG2 视频)时,会出现一个没有视频、没有音频的窗口,并出现以下错误:
libavformat version 56.40.101 (internal)
MPEG-PS file format detected.
VIDEO: MPEG2 704x480 (aspect 2) 29.970 fps 9500.0 kbps (1187.5 kbyte/s)
Load subtitles in ./
Can't open /dev/fb0: Permission denied
[fbdev2] Can't open /dev/fb0: Permission denied
VO: [v4l2] No such file or directory
vo_cvidix: No vidix driver name provided, probing available ones (-v option for details)!
[cyberblade] Error occurred during pci scan: Operation not permitted
[mach64] Error occurred during pci scan: Operation not permitted
[mga] Error occurred during pci scan: Operation not permitted
[mga] Error occurred during pci scan: Operation not permitted
[nvidia_vid] Error occurred during pci scan: Operation not permitted
[pm3] Error occurred during pci scan: Operation not permitted
[radeon] Error occurred during pci scan: Operation not permitted
[rage128] Error occurred during pci scan: Operation not permitted
[s3_vid] Error occurred during pci scan: Operation not permitted
[SiS] Error occurred during pci scan: Operation not permitted
[unichrome] Error occurred during pci scan: Operation not permitted
[VO_SUB_VIDIX] Couldn't find working VIDIX driver.
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 56.60.100 (internal)
Selected video codec: [ffmpeg2] vfm: ffmpeg (FFmpeg MPEG-2)
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
[ac3 @ 0x55b6aab0b9e0]frame sync error
AUDIO: 48000 Hz, 2 ch, floatle, 192.0 kbit/6.25% (ratio: 24000->384000)
Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
DVB card number must be between 1 and 4
AO: [null] 48000Hz 2ch floatle (4 bytes per sample)
Starting playback...
[ac3 @ 0x55b6aab0b9e0]incomplete frame
Movie-Aspect is undefined - no prescaling applied.
VO: [null] 704x480 => 704x480 Planar YV12
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [null] 704x480 => 704x528 Planar YV12
A: 0.3 V: 0.3 A-V: 0.016 ct: 0.003 4/ 4 ??% ??% ??,?% 0 0
[VD_FFMPEG] DRI failure.
A: 0.5 V: 0.9 A-V: -0.443 ct: -0.035 22/ 22 8% 0% 0.2% 0 0
[ac3 @ 0x55b6aab0b9e0]frame sync error
A: 1.9 V: 1.9 A-V: 0.006 ct: 0.027 51/ 51 8% 0% 0.8% 0 0
有人建议尝试 sudo 以解决此类错误。因此我尝试了 sudo。
libavformat version 56.40.101 (internal)
MPEG-PS file format detected.
VIDEO: MPEG2 704x480 (aspect 2) 29.970 fps 9500.0 kbps (1187.5 kbyte/s)
Load subtitles in ./
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 56.60.100 (internal)
Selected video codec: [ffmpeg2] vfm: ffmpeg (FFmpeg MPEG-2)
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
[ac3 @ 0x55c88c19e9e0]frame sync error
AUDIO: 48000 Hz, 2 ch, floatle, 192.0 kbit/6.25% (ratio: 24000->384000)
Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
DVB card number must be between 1 and 4
AO: [null] 48000Hz 2ch floatle (4 bytes per sample)
Starting playback...
[ac3 @ 0x55c88c19e9e0]incomplete frame
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
Movie-Aspect is undefined - no prescaling applied.
[swscaler @ 0x55c88c1b2360]bicubic scaler, from yuv420p to bgra using MMXEXT
[swscaler @ 0x55c88c1b2360]using unscaled yuv420p -> bgra special converter
VO: [fbdev] 704x480 => 704x480 BGRA
Can't put VSCREENINFO: Invalid argument
FATAL: Cannot initialize video driver.
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [fbdev] 704x480 => 704x528 BGRA
Can't put VSCREENINFO: Invalid argument
FATAL: Cannot initialize video driver.
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [fbdev] 704x480 => 704x528 BGRA
Can't put VSCREENINFO: Invalid argument
FATAL: Cannot initialize video driver.
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [fbdev] 704x480 => 704x528 BGRA
Can't put VSCREENINFO: Invalid argument
FATAL: Cannot initialize video driver.
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [fbdev] 704x480 => 704x528 BGRA
Can't put VSCREENINFO: Invalid argument
FATAL: Cannot initialize video driver.
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [fbdev] 704x480 => 704x528 BGRA
Can't put VSCREENINFO: Invalid argument
FATAL: Cannot initialize video driver.
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [fbdev] 704x480 => 704x528 BGRA
Can't put VSCREENINFO: Invalid argument
FATAL: Cannot initialize video driver.
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [fbdev] 704x480 => 704x528 BGRA
Can't put VSCREENINFO: Invalid argument
FATAL: Cannot initialize video driver.
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [fbdev] 704x480 => 704x528 BGRA
Can't put VSCREENINFO: Invalid argument
FATAL: Cannot initialize video driver.
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [fbdev] 704x480 => 704x528 BGRA
Can't put VSCREENINFO: Invalid argument
FATAL: Cannot initialize video driver.
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [fbdev] 704x480 => 704x528 BGRA
Can't put VSCREENINFO: Invalid argument
FATAL: Cannot initialize video driver.
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [fbdev] 704x480 => 704x528 BGRA
Can't put VSCREENINFO: Invalid argument
FATAL: Cannot initialize video driver.
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [fbdev] 704x480 => 704x528 BGRA
Can't put VSCREENINFO: Invalid argument
FATAL: Cannot initialize video driver.
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [fbdev] 704x480 => 704x528 BGRA
Can't put VSCREENINFO: Invalid argument
FATAL: Cannot initialize video driver.
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [fbdev] 704x480 => 704x528 BGRA
Can't put VSCREENINFO: Invalid argument
FATAL: Cannot initialize video driver.
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [fbdev] 704x480 => 704x528 BGRA
Can't put VSCREENINFO: Invalid argument
FATAL: Cannot initialize video driver.
FATAL: Could not initialize video filters (-vf) or video output (-vo).
Exiting... (End of file)
这次甚至没有出现一个空的 Mplayer 窗口。
如果需要,可以从 inxi -b 获取系统信息:
System: Host: Serial-Peacemaker Kernel: 4.4.0-24-generic x86_64 (64 bit)
Desktop: Xfce 4.12.3 Distro: Ubuntu 16.04 xenial
Machine: System: Gigabyte product: N/A
Mobo: Gigabyte model: Z170N-WIFI-CF v: x.x
Bios: American Megatrends v: F4 date: 09/04/2015
CPU: Dual core Intel Core i3-6100 (-HT-MCP-) speed/max: 799/3700 MHz
Graphics: Card: Intel Sky Lake Integrated Graphics
Display Server: X.Org 1.18.3 drivers: intel (unloaded: fbdev,vesa)
Resolution: [email protected]
GLX Renderer: Mesa DRI Intel HD Graphics 530 (Skylake GT2)
GLX Version: 3.0 Mesa 11.2.0
Network: Card-1: Intel Ethernet Connection (2) I219-V driver: e1000e
Card-2: Intel I211 Gigabit Network Connection driver: igb
Card-3: Intel Wireless 8260 driver: iwlwifi
Drives: HDD Total Size: 5501.1GB (18.4% used)
Info: Processes: 248 Uptime: 5 days Memory: 3598.4/32056.5MB
Client: Shell (bash) inxi: 2.2.35
那么,我遗漏了什么?还是说目前在 Intel HD 530 上无法使用 Mplayer?
答案1
搜寻音频问题的解决方案终于提供了一个解决方案。我的系统上有两个 mplayer 二进制文件!/usr/local/bin/mplayer 是默认的。但是当我尝试 /usr/bin/mplayer 时,一切正常。(DVBCut 音频除外。)
所以,我摆脱了 /usr/local/bin/mplayer, sudo gzip /usr/local/bin/mplayer
以防我再次需要它。