星期五, 7月 10, 2009

smplayer無法播放:mplayer意外地結束,結束代碼1

的筆電自從換上了ubuntu9.04就多災多難,一開始是觸摸板的問題(已經解決囉!),後來發現smplayer無法播放的問題。

##CONTINUE##
  問題內容如下:

mplayer -noquiet -nofs -sub-fuzziness 1 -identify -slave -zoom -nokeepaspect -input conf=/usr/share/smplayer/input.conf -stop-xscreensaver -wid 58720270 -colorkey 0x020202 -monitoraspect 1.6 -subfont-autoscale 1 -subfont-text-scale 5 -subcp ISO-8859-1 -subpos 100 -contrast 0 -brightness 0 -hue 0 -saturation 0 -nocache -osdlevel 0 -vf-add expand=osd=1 -noslices -vf-add screenshot -channels 2 -af scaletempo /home/nguyen/Desktop/phim/freakyfriday.divx

MPlayer 2:1.0~rc1-0ubuntu13.1 (C) 2000-2006 MPlayer Team
CPU: Genuine Intel(R) CPU T2080 @ 1.73GHz (Family: 6, Model: 14, Stepping: 12)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
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.
Terminal type `unknown' is not defined.

Playing /home/nguyen/Desktop/phim/freakyfriday.divx.
AVI file format detected.
ID_VIDEO_ID=0
ID_AUDIO_ID=1
VIDEO: [DX50] 720x480 24bpp 23.976 fps 780.2 kbps (95.2 kbyte/s)
ID_FILENAME=/home/nguyen/Desktop/phim/freakyfriday.divx
ID_DEMUXER=avi
ID_VIDEO_FORMAT=DX50
ID_VIDEO_BITRATE=780184
ID_VIDEO_WIDTH=720
ID_VIDEO_HEIGHT=480
ID_VIDEO_FPS=23.976
ID_VIDEO_ASPECT=0.0000
ID_AUDIO_FORMAT=85
ID_AUDIO_BITRATE=192000
ID_AUDIO_RATE=0
ID_AUDIO_NCH=0
ID_LENGTH=5678.39
xscreensaver_disable: Could not find XScreenSaver window.
GNOME screensaver disabled
Opening video filter: [screenshot]
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
================================================== ========================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
================================================== ========================
ID_VIDEO_CODEC=ffodivx
================================================== ========================
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)
ID_AUDIO_BITRATE=192000
ID_AUDIO_RATE=44100
ID_AUDIO_NCH=2
Selected audio codec: [mad] afm: libmad (libMAD MPEG layer 1-2-3)
================================================== ========================
Couldn't find audio filter 'scaletempo'
[libaf] Couldn't create or open audio filter 'scaletempo'
Error at audio filter chain pre-init!

Exiting... (Fatal error)


  
  因此今天利用的一些時間google一下,用ubuntu9.04的好處就是,會讓人養成主動查資料的習慣(XD),終於在這篇SMPlayer Feisty deb packages and how to build them的page16看到了解決方法


Fortunately this is a problem very easy to fix. SMPlayer is trying to use an audio filter (scaletempo) which is not available in mplayer 1.0rc1.

Go to Preferences->General->Audio and select No for the option "High speed playback without altering the pitch".

You can also consider to use the new packages for smplayer and mplayer you can find in the smplayer site.


  
  So....That's it.

沒有留言: