LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-21-2004, 10:28 PM   #1
MustangCSA
Member
 
Registered: Feb 2004
Location: Seattle, WA
Distribution: Debian Sid
Posts: 85

Rep: Reputation: 15
Angry Mplayer won't play video files!


Hi, first off I would like to apologize if this question has been asked before but I search as good as I could and couldn't find a solution to my problem. When I try to open a video file by typing mplayer /path/to/file I get this error:

MPlayer 1.0pre5-3.3.3 (C) 2000-2004 MPlayer Team

CPU: Intel Celeron 2/Pentium III Tualatin 1303 MHz (Family: 6, Stepping: 1)
Detected cache-line size is 32 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 SSE

Reading config file /usr/local/etc/mplayer/mplayer.conf: No such file or directory
Reading config file /home/adam/.mplayer/config
Reading /home/adam/.mplayer/codecs.conf: Can't open '/home/adam/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: Can't open '/usr/local/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
font: can't open file: /home/adam/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Failed to open /dev/rtc: No such device (it should be readable by the user.)
Using usleep() timing
Can't open input config file /home/adam/.mplayer/input.conf: No such file or directory
Can't open input config file /usr/local/etc/mplayer/input.conf: No such file or directory
Falling back on default (hardcoded) input config

Playing /home/music/Recently_Downloaded/Jib-Jab Bush Vs. Kerry This Land Is Your Land.avi.
AVI file format detected.
VIDEO: [DIV3] 720x480 24bpp 29.970 fps 816.8 kbps (99.7 kbyte/s)
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 32000 Hz, 2 ch, 16 bit (0x10), ratio: 128000->128000 (1024.0 kbit)
Selected audio codec: [pcm] afmcm (Uncompressed PCM)
==========================================================================
open: No such device or address
vo_mga: Couldn't open /dev/mga_vid
open: No such device or address
vo_mga: Couldn't open /dev/mga_vid
vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0" => local display)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffdivx] vfm:ffmpeg (FFmpeg DivX ;-) (MS MPEG-4 v3))
==========================================================================
Checking audio filter chain for 32000Hz/2ch/16bit -> 32000Hz/2ch/16bit...
AF_pre: af format: 2 bps, 2 ch, 32000 hz, little endian signed int
AF_pre: 32000Hz 2ch Signed 16-bit (Little-Endian)
audio_setup: Can't open audio device /dev/dsp: Device or resource busy
alsa-init: got device=0, subdevice=0
alsa-init: 1 soundcard found, using: default
alsa: 32000 Hz/2 channels/4 bpf/65536 bytes buffer/Signed 16 bit Little Endian
AO: [alsa] 32000Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
Building audio filter chain for 32000Hz/2ch/16bit -> 32000Hz/2ch/16bit...
Starting playback...
VDec: vo config request - 720 x 480 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 720x480 => 720x480 Planar YV12
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
X11 error: BadAlloc (insufficient resources for operation)


MPlayer interrupted by signal 6 in module: flip_page
- MPlayer crashed. This shouldn't happen.
It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
gcc version. If you think it's MPlayer's fault, please read
DOCS/HTML/en/bugreports.html and follow the instructions there. We can't and
won't help unless you provide this information when reporting a possible bug.
Xlib: unexpected async reply (sequence 0x5a)!
alsa-uninit: pcm closed

I see the screen open for a second but then it immediately crashes. I have found posts with similar error messages but none with a solution that worked for me. My computer is a HP pavilion 511n with a Celeron 1.3ghz and 512mb of ram. I have tried different versions of mplayer and I still get the same error. I would like to get this working as I like mplayer better then any of the other media programs. It used to work for me but I'm not sure what happened that broke it. Just one day I got this error and keep getting it ever since. For a while I thought that maybe it had something to do with to many other programs being open at once cause if I closed EVERYTHING and then tried it, it would work but now it doesn't work no matter what.. So if anyone has any idea on how to fix this and get it working again please let me know. A response is greatly appreciated.

-Adam
 
Old 10-22-2004, 05:01 AM   #2
legolin
Member
 
Registered: Dec 2003
Location: munich
Distribution: Fedora Core 4
Posts: 141

Rep: Reputation: 15
hey, i had the same problem on the computer from a friend. so, it seems you don't have the config files:
mplayer.conf
codecs.conf
...
and some others...

try to get this files, maybe from any initial instalation or something like that.. maybe there are located somewhere else and mplayer can't find them.

have a while,

leg
 
Old 10-22-2004, 09:40 PM   #3
MustangCSA
Member
 
Registered: Feb 2004
Location: Seattle, WA
Distribution: Debian Sid
Posts: 85

Original Poster
Rep: Reputation: 15
Hi, thank you very much for the reply. I found the config files in etc/ in the source directory and I put them in home/adam/.mplayer but I am still getting a similiar error:

MPlayer 1.0pre5-3.3.3 (C) 2000-2004 MPlayer Team

CPU: Intel Celeron 2/Pentium III Tualatin 1303 MHz (Family: 6, Stepping: 1)
Detected cache-line size is 32 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 SSE

Reading config file /usr/local/etc/mplayer/mplayer.conf: No such file or directory
Reading config file /home/adam/.mplayer/config
Reading /home/adam/.mplayer/codecs.conf: 73 audio & 180 video codecs
font: can't open file: /home/adam/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Failed to open /dev/rtc: No such device (it should be readable by the user.)
Using usleep() timing
Input config file /home/adam/.mplayer/input.conf parsed: 53 binds

Playing /home/music/Recently_Downloaded/Jib-Jab Bush Vs. Kerry This Land Is Your Land.avi.
Cache fill: 4.10% (344064 bytes) AVI file format detected.
VIDEO: [DIV3] 720x480 24bpp 29.970 fps 816.8 kbps (99.7 kbyte/s)
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 32000 Hz, 2 ch, 16 bit (0x10), ratio: 128000->128000 (1024.0 kbit)
Selected audio codec: [pcm] afmcm (Uncompressed PCM)
==========================================================================
vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0.0" => local display)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffdivx] vfm:ffmpeg (FFmpeg DivX ;-) (MS MPEG-4 v3))
==========================================================================
Checking audio filter chain for 32000Hz/2ch/16bit -> 32000Hz/2ch/16bit...
AF_pre: af format: 2 bps, 2 ch, 32000 hz, little endian signed int
AF_pre: 32000Hz 2ch Signed 16-bit (Little-Endian)
audio_setup: Can't open audio device /dev/dsp: Device or resource busy
alsa-init: got device=0, subdevice=0
alsa-init: 1 soundcard found, using: default
alsa: 32000 Hz/2 channels/4 bpf/65536 bytes buffer/Signed 16 bit Little Endian
AO: [alsa] 32000Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
Building audio filter chain for 32000Hz/2ch/16bit -> 32000Hz/2ch/16bit...
Starting playback...
VDec: vo config request - 720 x 480 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 720x480 => 720x480 Planar YV12
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
X11 error: BadAlloc (insufficient resources for operation)


MPlayer interrupted by signal 6 in module: flip_page
- MPlayer crashed. This shouldn't happen.
It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
gcc version. If you think it's MPlayer's fault, please read
DOCS/HTML/en/bugreports.html and follow the instructions there. We can't and
won't help unless you provide this information when reporting a possible bug.
Xlib: unexpected async reply (sequence 0x5a)!
alsa-uninit: pcm closed

Did this fix your problem? Any other ideas? I'm sure it's something little I'm overlooking but I'm starting to get desperate.
 
Old 10-22-2004, 10:26 PM   #4
UsualTuxpect
Member
 
Registered: Aug 2004
Location: New York
Distribution: --------- Gentoo-2004.2 [2.6.8] Redhat-9 [2.6.6]
Posts: 545

Rep: Reputation: 31
Try opening any other avi file...

I think ur trying to open an xvid[avi] file without having the xvid codec...
 
Old 10-22-2004, 11:20 PM   #5
MustangCSA
Member
 
Registered: Feb 2004
Location: Seattle, WA
Distribution: Debian Sid
Posts: 85

Original Poster
Rep: Reputation: 15
Hey other ones do work thanks. I have just been trying to get that one to work and I didn't even try anything else. Thanks, like I said it was probably something simple I was overlooking. Now what codec do I need to get to play that file? And how come I did get it to work a couple times? Thanks again.
 
Old 10-22-2004, 11:51 PM   #6
UsualTuxpect
Member
 
Registered: Aug 2004
Location: New York
Distribution: --------- Gentoo-2004.2 [2.6.8] Redhat-9 [2.6.6]
Posts: 545

Rep: Reputation: 31
I think ur trying to open an xvid[avi] file without having the xvid codec or the file has too many frame errors.. i mean not encoded properly .. or corruption ...

these day there are a lotta encoding schemes mpeg2 , mpeg3 , mpeg4 its a jungle out there...

Try getting as many codecs as possible.. lol

http://www.mplayerhq.hu/MPlayer/releases/codecs/
 
Old 10-23-2004, 12:54 AM   #7
Electro
Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Are you playing any sound because the error below keeps comming up.

audio_setup: Can't open audio device /dev/dsp: Device or resource busy

I suggest setting mplayer to use oss during troubleshooting mplayer.

Try re-compiling but first rename the mplayer directory as oldmplayer. This makes sure if you re-compile mplayer, the original mplayer will not get effected.

You can try shutdown your computer for a few minutes and turn it back on if you leave your computer on for weeks.

What sound card and video card do you have?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mplayer does not play video files in FC4 chirayan Linux - Newbie 2 08-01-2005 12:36 AM
video files dont play on mplayer mayasedai Linux - Software 4 01-17-2005 10:30 AM
MPLAYER fail to play video file. hanbin Linux - Software 1 11-20-2004 10:08 AM
can use mplayer to play video, but not gmplayer.... sirpelidor Linux - Software 3 11-23-2003 06:02 AM
mplayer trying to play streaming video illtbagu Linux - Newbie 3 01-30-2003 07:40 PM


All times are GMT -5. The time now is 01:06 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration