LinHES Forums
http://forum.linhes.org/

mplayer bombs
http://forum.linhes.org/viewtopic.php?f=6&t=15405
Page 1 of 2

Author:  Too Many Secrets [ Mon May 28, 2007 5:32 pm ]
Post subject:  mplayer bombs

I upgraded via the big mplayer thread back when I was running R5D1 and everything was working great! Then I upgraded to R5E50 and mplayer seemed to regress back to before I upgraded mplayer in D1. However I didn't worry too much with F1 around the bend.

Now I've been running R5F1 via upgrade for a few weeks, but I've seemed to borq mplayer real good. I've run through the upgrade a couple times and it finishes with "Error 1", but no other information. I run mplayer from the command line and I get a 'cant find mga_vid' in /dev/<something> and then bombs. I try opening .avi or .mpg but nothing.

When I run mplayer -version I get the following.

Code:
MPlayer 1.0rc1-4.1.2 (C) 2000-2006 MPlayer Team
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ (Family: 15, Model: 75, Stepping: 2)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
Unknown option on the command line: -version
Error parsing option on the command line: -version


Any suggestions are appreciated.

Author:  tjc [ Mon May 28, 2007 8:58 pm ]
Post subject: 

MPlayer 1.0rc1-4.1.2 is the native version with KnoppMyth R5F1. That's what shows up on my systems and seems to work for the various sample videos I've got. Double check to make sure you're running the one you think you are.
Code:
root@black2:~# mplayer -version
MPlayer 1.0rc1-4.1.2 (C) 2000-2006 MPlayer Team
CPU: AMD Athlon(tm) 64 Processor 3200+ (Family: 15, Model: 47, Stepping: 0)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
Unknown option on the command line: -version
Error parsing option on the command line: -version
root@black2:~# type -a mplayer
mplayer is /usr/bin/mplayer
mplayer is /usr/X11R6/bin/mplayer
root@black2:~# ls -i /usr/bin/mplayer /usr/X11R6/bin/mplayer
281601 /usr/X11R6/bin/mplayer  281601 /usr/bin/mplayer

Author:  Too Many Secrets [ Mon May 28, 2007 9:18 pm ]
Post subject: 

Thanks. This is what I get

Code:
# type -a mplayer
mplayer is /usr/bin/mplayer
mplayer is /usr/bin/X11/mplayer


ls -i /usr/bin/mplayer

Code:
53441 /usr/bin/mplayer


ls -i /usr/bin/X11/mplayer

Code:
53441 /usr/bin/X11/mplayer


What does it mean? Did I mess something up?

Author:  tjc [ Tue May 29, 2007 6:20 am ]
Post subject: 

That's normal. Sorry, I must have hit submit to soon. I meant to explain that if they have the same inode number they're the same file under different aliases. It looks like you only have one version installed and in your path.

If I understood your original message correctly and you really did do an mplayer update, it was unnecessary and may have done more harm than good. You may want to use the auto-upgrade to the same version trick to undo it.

Author:  Too Many Secrets [ Tue May 29, 2007 6:28 pm ]
Post subject: 

Still not working after upgrade. No change. Now I'm working on getting my sound/alsa back after the upgrade... What should I try next?

Author:  tjc [ Tue May 29, 2007 9:34 pm ]
Post subject: 

Going back to your original message it sounds like the mplayer config got borked. For example, given your hardware I don't know why it'd be trying to use mga video... What does your /home/mythtv/.mplayer/config file look like? Also your /etc/mplayer/mplayer.conf and finally the entries from your settings table:
Code:
root@black2:~/scripts/backup# mysql -u root mythconverg -e "select * from settings where data like '%mplayer%'"
+-----------------------+----------------------------------------------------------------------+----------+
| value                 | data                                                                 | hostname |
+-----------------------+----------------------------------------------------------------------+----------+
| TitlePlayCommand      | mplayer -dvd-device %d -fs -zoom -vo xv -dvd %t -aid %a -channels %c | black2   |
| VideoDefaultPlayer    | /usr/bin/mplayer -fs -zoom -quiet -vo xv %s                          | black2   |
| GalleryMoviePlayerCmd | mplayer -fs %s                                                       | black2   |
+-----------------------+----------------------------------------------------------------------+----------+

Author:  Too Many Secrets [ Tue May 29, 2007 9:55 pm ]
Post subject: 

Code:
root@mythtv:/# cat /home/mythtv/.mplayer/config
# Write your default config options here!


monitoraspect=1.77083333333333


Code:
root@mythtv:/# cat  /etc/mplayer/mplayer.conf
#
# MPlayer configuration file
#
# Configuration files are read system-wide from /usr/local/etc/mplayer.conf
# and per user from ~/.mplayer/config, where per-user settings override
# system-wide settings, all of which are overrriden by the command line.
#
# The configuration file settings are the same as the command line
# options without the preceding '-'.
#
# See the CONFIGURATION FILES section in the man page
# for a detailed description of the syntax.


##################
# video settings #
##################

# Specify default video driver (see -vo help for a list).
#vo=xv

# Use SDL video with the aalib subdriver by default.
#vo = sdl:aalib

# FBdev driver:
#
# mode to use (read from fb.modes)
#fbmode = 640x480-120
#
# location of the fb.modes file
#fbmodeconfig = /etc/fb.modes

# Specify your monitor timings for the vesa and fbdev video output drivers.
# See /etc/X11/XF86Config for timings. Be careful; if you specify settings
# that exceed the capabilities of your monitor, you may damage it.
#
# horizontal frequency range (k stands for 1000)
#monitor-hfreq = 31.5k-50k,70k
#
# vertical frequency range
#monitor-vfreq = 50-90
#
# dotclock (or pixelclock) range (m stands for 1000000)
#monitor-dotclock = 30M-300M

# Start in fullscreen mode by default.
#fs=yes

# Change to a different videomode when going fullscreen.
#vm=yes

# Override the autodetected color depth, may need 'vm=yes' as well.
#bpp=0

# Enable software scaling (powerful CPU needed) for video output
# drivers that do not support hardware scaling.
#zoom=yes

# standard monitor size, with square pixels
#monitoraspect=4:3

# Use this for a widescreen monitor, non-square pixels.
#monitoraspect=16:9

# Keep the player window on top of all other windows.
#ontop=yes


##################
# audio settings #
##################

# Specify default audio driver (see -ao help for a list).
ao=alsa

# Use SDL audio driver with the esd subdriver by default.
#ao = sdl:esd

# Specify the mixer device.
#mixer = /dev/mixer

# Resample the sound to 44100Hz with the lavcresample audio filter.
#af=lavcresample=44100


##################
# other settings #
##################

# Drop frames to preserve audio/video sync.
#framedrop = yes

# Specify your preferred skin here (skins are searched for in
# /usr/local/share/mplayer/skins/<name> and ~/.mplayer/skins/<name>).
#skin = Abyss

# Resample the font alphamap.
# 0     plain white fonts
# 0.75  very narrow black outline (default)
# 1     narrow black outline
# 10    bold black outline
#ffactor = 0.75

# cache settings
#
# Use 8MB input cache by default.
#cache = 8192
#
# Prefill 20% of the cache before starting playback.
#cache-min = 20.0
#
# Prefill 50% of the cache before restarting playback after the cache emptied.
#cache-seek-min = 50

# DVD: Display English subtitles if available.
#slang = en

# DVD: Play English audio tracks if available.
#alang = en

# get a default OSD font from fontconfig

fontconfig = yes
font = "Sans"
subfont-text-scale = 3

# You can also include other configuration files.
#include = /path/to/the/file/you/want/to/include


Code:
root@mythtv:/# mysql -u root mythconverg -e "select * from settings where data like '%mplayer%'"
+-----------------------+-----------------------------------------------------------------------+-----------+
| value                 | data                                                                  | hostname  |
+-----------------------+-----------------------------------------------------------------------+-----------+
| TitlePlayCommand      | mplayer dvd://%t -dvd-device %d -fs -zoom -vo xv -aid %a -channels %c | mythtv    |
| GalleryMoviePlayerCmd | mplayer -fs %s                                                        | mythtv    |
| DVDPlayerCommand      | mplayer dvd:// -dvd-device %d -fs -zoom -vo xv                        | mythfe1   |
| VCDPlayerCommand      | mplayer vcd:// -cdrom-device %d -fs -zoom -vo xv                      | mythfe1   |
| TitlePlayCommand      | mplayer dvd://%t -dvd-device %d -fs -zoom -vo xv -aid %a -channels %c | mythfe1   |
| GalleryMoviePlayerCmd | mplayer -fs %s                                                        | mythfe1   |
| VideoDefaultPlayer    | mplayer -fs -zoom -quiet -vo xv %s                                    | mythfe1   |
| VCDPlayerCommand      | mplayer vcd:// -cdrom-device %d -fs -zoom -vo xv                      | littledog |
| TitlePlayCommand      | mplayer dvd://%t -dvd-device %d -fs -zoom -vo xv -aid %a -channels %c | littledog |
| GalleryMoviePlayerCmd | mplayer -fs %s                                                        | littledog |
| VideoDefaultPlayer    | mplayer -fs -zoom -quiet -vo xv %s                                    | littledog |
+-----------------------+------

Author:  Too Many Secrets [ Fri Jun 01, 2007 7:39 pm ]
Post subject: 

OK, I've done a complete fresh install of R5F1 and still have the same mplayer problem. It hangs when I try and open an avi. I have done nothing but install. I'm still getting the above error (cant find mga_vid) and a few others now.

What would be my first step. Installing the other codecs?

Author:  neutron68 [ Fri Jun 01, 2007 9:16 pm ]
Post subject:  codec install

The codecs might do the trick.

I wrote a script to download, compile and install the mplayer codecs for me. I use this after every upgrade. I have to edit it every few months to update the filenames, but generally it saves me a lot of typing and remembering. :)

Code:
cd /usr/src/

wget http://www3.mplayerhq.hu/MPlayer/releases/codecs/essential-20061022.tar.bz2
wget http://downloads.xvid.org/downloads/xvidcore-1.1.2.tar.bz2

tar -jxvf essential-20061022.tar.bz2
tar -jxvf xvidcore-1.1.2.tar.bz2

mkdir /usr/lib/codecs
cp -r -d -p /usr/src/essential-20061022/* /usr/lib/codecs

cd /usr/src/xvidcore-1.1.2/build/generic
./configure
make
make install

Author:  Too Many Secrets [ Fri Jun 01, 2007 9:47 pm ]
Post subject: 

Thanks for the script help. I was able to DL and install very easily.

Sadly, still no go. I tried running from an xterm and this is what I get.
Code:
$ mplayer /video/Movies/RED_OCTOBER.avi
MPlayer 1.0rc1-4.1.2 (C) 2000-2006 MPlayer Team
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ (Family: 15, Model: 75, Step                   ping: 2)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 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 open config files /home/scot/.lircrc and /etc/lircrc
mplayer: No such file or directory
Failed to read LIRC config file ~/.lircrc.

Playing /video/Movies/RED_OCTOBER.avi.
AVI file format detected.
VIDEO:  [XVID]  720x544  24bpp  23.976 fps  1799.8 kbps (219.7 kbyte/s)
Clip info:
 Software: transcode-0.6.14
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
[VO_TDFXFB] This driver only supports the 3Dfx Banshee, Voodoo3 and Voodoo 5.
X connection to localhost:10.0 broken (explicit kill or server shutdown).


Now for cut&paste, this is taken from a putty instance, but from the xterm is the same with a bit more at the end.

Between this and the alsa problems I'm having, I might end up rolling back to E50... But I really don't want to do that.

Author:  bruce_s01 [ Sat Jun 02, 2007 3:40 am ]
Post subject: 

MGA, I think, usually refers to Matrox cards, what video card are you using, as I can't see one mentioned.

Bruce S.

Author:  Too Many Secrets [ Sat Jun 02, 2007 7:58 am ]
Post subject: 

using the onboard nvidia via MB. Out DVI to HDTV.

Author:  frisco [ Sun Jun 03, 2007 10:39 am ]
Post subject: 

I had some similar problems and I told it to use the internal player and all was good.l Maybe something to check on.

Author:  neutron68 [ Sun Jun 03, 2007 11:13 am ]
Post subject:  update nvidia driver?

I've got a very similar Asus motherboard with the same nvidia chipset on it.

Maybe the nvidia drivers are part of this?

I've updated to the most recent nvidia drivers. I used the procedure detailed in the WIKI:
http://knoppmythwiki.org/index.php?page ... diaDrivers

Author:  bruce_s01 [ Sun Jun 03, 2007 12:05 pm ]
Post subject: 

What appears to be happening, that it's looking for a Matrox card for some reason. Try having a look in /home/mythtv/.mplayer/config.

Bruce S.

Page 1 of 2 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/