|
发表于 2008-3-2 10:56:30
|
显示全部楼层
ok,多谢你提醒我哈。可以重定向的。把标准输出重定向到一个文件中就ok了
thunder@thunder:~/shellprogram$ mplayer aaa.mp3 [color="Red"]1>mplayer.log
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.[color="Red"]-----》按q键
thunder@thunder:~/shellprogram$[color="Red"] cat mplayer.log
MPlayer 1.0rc2-4.1.2 (C) 2000-2007 MPlayer Team
CPU: AMD Sempron(tm) Processor 2500+ (Family: 15, Model: 44, Stepping: 2)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
Playing aaa.mp3.
Audio file file format detected.
==========================================================================
Forced audio codec: mad
Opening audio decoder: [libmad] libmad mpeg audio decoder
AUDIO: 44100 Hz, 2 ch, s16le, 192.0 kbit/13.61% (ratio: 24000->176400)
Selected audio codec: [mad] afm: libmad (libMAD MPEG layer 1-2-3)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: 14.7 (14.7) of 269.0 (04:29.0) 2.9%
Exiting... (Quit)[color="Red"]-----》想要的结果,ok可以用其他方法来提取了! |
|