Posted by: dogbix | 16 January 2010

MythVideo and Mplayer

Apart from recording and watching TV the other thing we use the MythTV box for is the MythVideo plugin to watch all the Divx movies and other movie formats. Most of the Divx films are stored on a debian server and are NFS mounted to the MythTV server.

By default MythVideo will use the internal player for playback of all film types. This turned out to be a problem, I had collected a large selection of different films in various codecs and some of them would not play at all and some played with no sound.  I knew these files played ok because they had been on my old Myth box but there I had used mplayer as the default player so under Utilities/Setup->Setup->Media Settings->Video Settings->Player Settings I changed the default video player to be  mplayer -profile vdpau.

To make sure that mplayer used the nvidia ION chipset and VDPAU for playback I created a mplayer config file in the ~/.mplayer directory of the user that the MythTV fronted runs under and created the vdpau profile.

dougal:~/.mplayer$ cat config
ao = alsa:device=hw=0.3
# Specify the mixer device.
mixer = default
mixer-channel = Master

The device number comes from the HDMI device in the aplay -l output :

dougal:~/.mplayer$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 0: ALC662 rev1 Analog [ALC662 rev1 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 1: ALC662 rev1 Digital [ALC662 rev1 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI]
Subdevices: 0/1
Subdevice #0: subdevice #0

mplayer seems to handle most codecs that you throw at it without any problems in playback and hardly use any CPU.



  1. Damn, you’re clever!

  2. I’m commenting on a >2 yo post. But hey, this is very useful for mythtv .24.x or less.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s


%d bloggers like this: