mplayer(通过控制台)并不总是显示音频文件持续时间 - 如何更改行为?

mplayer(通过控制台)并不总是显示音频文件持续时间 - 如何更改行为?

我主要使用 mplayer 从 Linux 控制台播放音频文件。大多数时候,mplayer 很高兴地向我显示文件的持续时间和到目前为止的运行时间(注意:我暂停了两个播放只是为了让我复制/粘贴输出):

jim@brisbane /public/podcasts/AmateurRadio/Linux in the Ham Shack $ mplayer lhs150.ogg 
MPlayer 1.2.1 (Debian), built with gcc-5.3.1 (C) 2000-2016 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing lhs150.ogg.
libavformat version 56.40.101 (external)
libavformat file format detected.
[lavf] stream 0: audio (vorbis), -aid 0, LHS Episode #150: The Sesquicentennial
Load subtitles in ./
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
libavcodec version 56.60.100 (external)
AUDIO: 44100 Hz, 1 ch, floatle, 80.0 kbit/5.67% (ratio: 10000->176400)
Selected audio codec: [ffvorbis] afm: ffmpeg (FFmpeg Vorbis)
==========================================================================
AO: [pulse] 44100Hz 1ch floatle (4 bytes per sample)
Video: no video
  =====  PAUSE  =====
A:  16.4 (16.3) of 5404.9 ( 1:30:04.9)  0.4% 

您可以在上面看到,在 5404.9 秒中,我的时间为 16.4 秒,但更重要的是,我可以看到本例中播客的持续时间为 1:30:04.9。

jim@brisbane ~/hobart/server/podcasts/MUSIC/PODCASTS/Linux in the Ham Shack $ mp lhs203.ogg 
MPlayer 1.2.1 (Debian), built with gcc-5.3.1 (C) 2000-2016 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing lhs203.ogg.
libavformat version 56.40.101 (external)
libavformat file format detected.
[mjpeg @ 0x7f6a2fda03c0]Changeing bps to 8
[lavf] stream 0: audio (vorbis), -aid 0, LHS Episode #203: Choosing Your Linux Distribution
[lavf] stream 1: video (mjpeg), -vid 0
VIDEO:  [MJPG]  300x300  0bpp  90000.000 fps    0.0 kbps ( 0.0 kbyte/s)
Load subtitles in ./
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 56.60.100 (external)
Selected video codec: [ffmjpeg] vfm: ffmpeg (FFmpeg MJPEG)
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 1 ch, floatle, 80.0 kbit/5.67% (ratio: 10000->176400)
Selected audio codec: [ffvorbis] afm: ffmpeg (FFmpeg Vorbis)
==========================================================================
AO: [pulse] 44100Hz 1ch floatle (4 bytes per sample)
Starting playback...
[mjpeg @ 0x7f6a2fda03c0]Changeing bps to 8
Movie-Aspect is 1.00:1 - prescaling to correct movie aspect.
VO: [vdpau] 300x300 => 300x300 Planar YV12 
Movie-Aspect is 1.00:1 - prescaling to correct movie aspect.
VO: [vdpau] 300x300 => 300x300 Planar YV12 
No pts value from demuxer to use for frame!
pts after filters MISSING
A:3615.6 V:  53.8 A-V:3561.850 ct:  0.025   0/  0  0%  0%  2.4% 0 0 1.50x 
  =====  PAUSE  =====

这一集的不同之处在于弹出一个带有播客徽标的小窗口(Linux in the Ham Shack),因此 mplayer 似乎将其视为某种视频文件而不是普通的音频文件。但还要注意,输出确实不是不再显示文件的持续时间。事实上,文本显示完全不同。

我不需要文本显示完全相同,但我确实想查看剩余时间。有什么方法可以强制实现这一点吗?

如果您想要示例音频文件,我在 Ham Shack 第 150 集和第 203 集中使用了 Linux。 (除了作为听众之外,我与这个播客没有任何关系。)

我运行的是 Debian/Ubuntu/Mint,但操作系统似乎与此关系不大。

建议?谢谢!

答案1

只需禁用视频输出:

mplayer-novideo lhs243.ogg

相关内容