![mplayer 将 ogg 文件视为空文件](https://linux22.com/image/1073952/mplayer%20%E5%B0%86%20ogg%20%E6%96%87%E4%BB%B6%E8%A7%86%E4%B8%BA%E7%A9%BA%E6%96%87%E4%BB%B6.png)
当我尝试使用 mplayer 播放 .ogg 文件时,什么也没有发生。mplayer 在我的终端中留下以下输出:
jcast@jcast-Galago-Pro:~$ mplayer '/home/jcast/Music/Wade Bowen/The Given/Saturday Night.ogg'
MPlayer 1.5+svn38423-2build1 (Debian)
do_connect: could not connect to socket
connect: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing /home/jcast/Music/Wade Bowen/The Given/Saturday Night.ogg.
libavformat version 60.3.100 (external)
libavformat file format detected.
[lavf] stream 0: audio (vorbis), -aid 0, Saturday Night
Load subtitles in /home/jcast/Music/Wade Bowen/The Given/
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
libavcodec version 60.3.100 (external)
AUDIO: 44100 Hz, 2 ch, floatle, 160.0 kbit/5.67% (ratio: 20000->352800)
Selected audio codec: [ffvorbis] afm: ffmpeg (FFmpeg Vorbis)
==========================================================================
AO: [pulse] 44100Hz 2ch floatle (4 bytes per sample)
Video: no video
Starting playback...
A: 209.7 (03:29.6) of 209.7 (03:29.6) ??,?%
Exiting... (End of file)
但它几乎立即退出,没有播放任何音频。
我测试过的所有 .ogg 文件都发生这种情况,但我还没有测试音乐库中的每个 .ogg 文件。
使用 ogg123 时,相同的文件确实能产生很好的输出。
如果这种情况发生了一段时间而我却没有注意到,我会感到惊讶(我有 1345 个 .mp3 文件和 1411 个 .ogg 文件),但我不记得最近发生了什么变化而影响了它。
我能找到的相关软件包版本是:
$ dpkg -l mplayer
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-======================-============-==================================
ii mplayer 2:1.5+svn38423-2build1 amd64 movie player for Unix-like systems
$ dpkg -l '*vorbis*'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-====================-===================-============-==========================================================
ii libvorbis0a:amd64 1.3.7-1build2 amd64 decoder library for Vorbis General Audio Compression Codec
ii libvorbis0a:i386 1.3.7-1build2 i386 decoder library for Vorbis General Audio Compression Codec
ii libvorbisenc2:amd64 1.3.7-1build2 amd64 encoder library for Vorbis General Audio Compression Codec
ii libvorbisenc2:i386 1.3.7-1build2 i386 encoder library for Vorbis General Audio Compression Codec
ii libvorbisfile3:amd64 1.3.7-1build2 amd64 high-level API for Vorbis General Audio Compression Codec
ii libvorbisidec1:amd64 1.2.1+git20180316-7 amd64 Integer-only Ogg Vorbis decoder, AKA "tremor"
ii vorbis-tools 1.4.2-1build2 amd64 several Ogg Vorbis tools