You are not logged in.

#1 2007-01-12 20:01:14

stmok
Member
From: Sydney, Australia
Registered: 2006-11-19
Posts: 72

Quick question about MPlayer [resolved]

I realise, by default, MPlayer isn't compiled like it is in other distros.

If I wanted support for dxr3 output (for my Sigma Designs card) and XvMC support, etc...

Do I just download the PKGBUILD file, modify the options after ./configure, let the ABS do its thing, and then install by pacman -U foobar.pkg.tar.gz?

Is that right?
(I have been reading the wiki entry for ABS, but I'm not 100% sure).


The most important thing the hacker community does is write better code. Our deeds are the best propaganda we have. -Eric S. Raymond

Offline

#2 2007-01-12 20:07:03

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: Quick question about MPlayer [resolved]

Precisely.

(as there are more build files than just PKGBUILD for mplayer, your best call is to execute "abs; cd /var/abs/extra/multimedia/mplayer", change the PKGBUILD, execute "makepkg" and pacman -U the package)

Offline

#3 2007-01-12 20:10:13

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Quick question about MPlayer [resolved]

That's exactly it, stmok. If you enable any options that require additional libs, make sure you install those first.

Offline

#4 2007-01-12 20:40:56

iBertus
Member
From: Greenville, NC
Registered: 2004-11-04
Posts: 2,228

Re: Quick question about MPlayer [resolved]

tomk wrote:

That's exactly it, stmok. If you enable any options that require additional libs, make sure you install those first.

I would make sure to add those extra libs to the DEPENDS array just so that you don't forget later on.

Offline

#5 2007-01-13 06:52:45

stmok
Member
From: Sydney, Australia
Registered: 2006-11-19
Posts: 72

Re: Quick question about MPlayer [resolved]

Thanks folks.

I needed cvsup unzip and libcaca for things to work.

I modified the PKGBUILD file:
added libxvmc in depends section
and
added --enable-xvmc in ./configure part.

Compiled, packaged, and installed...

Verified that the option is there: gmplayer -vo help

You should see this as one of the entries:

xvmc    XVideo Motion Compensation

Be sure to install the Nvidia drivers! big_smile

Now let's see if it works! smile


The most important thing the hacker community does is write better code. Our deeds are the best propaganda we have. -Eric S. Raymond

Offline

#6 2007-01-13 07:41:50

stmok
Member
From: Sydney, Australia
Registered: 2006-11-19
Posts: 72

Re: Quick question about MPlayer [resolved]

To get xvmc to work, you need to create a file...
vim /etc/X11/XvMCConfig

In this file, add this...
libXvMCNVIDIA_dynamic.so.1
(This is actually part of the proprietary Nvidia driver package)

Save it...
type => :wq

Test it with a video clip...
mplayer -vo xvmc -vc ffmpeg12mc foobar.mpeg
(This works for me).

The problem is, I can't seem to get MPlayer to work with xvmc in KDE. I created a link for it and pointed to gmplayer

I keep getting a "Fatal error!" popup, showing this message. sad
=> FATAL: Could not initialize video filters (-vf) or video output (-vo)


Here's a good reference...
http://www.penlug.org/twiki/bin/view/Ma … Nvidia5200


The most important thing the hacker community does is write better code. Our deeds are the best propaganda we have. -Eric S. Raymond

Offline

#7 2007-01-13 09:16:12

iBertus
Member
From: Greenville, NC
Registered: 2004-11-04
Posts: 2,228

Re: Quick question about MPlayer [resolved]

If this is not there already, you should think about making an Xvmc wiki entry.

Offline

#8 2007-01-13 15:19:54

stmok
Member
From: Sydney, Australia
Registered: 2006-11-19
Posts: 72

Re: Quick question about MPlayer [resolved]

I plan to. smile

But, I am not adding things to the wiki if it doesn't work 100%. Its poor form to do that.

Its just when I use MPlayer via GUI way in KDE, it doesn't work right with xvmc.

I must be missing something...*Goes to search in Google*


The most important thing the hacker community does is write better code. Our deeds are the best propaganda we have. -Eric S. Raymond

Offline

#9 2007-01-13 16:38:47

stmok
Member
From: Sydney, Australia
Registered: 2006-11-19
Posts: 72

Re: Quick question about MPlayer [resolved]

Just an update...xvmc won't work with MPlayer that is started from a desktop link. Such as gmplayer

It appears you must load from command line. sad
source: http://www.murga-linux.com/puppy/viewtopic.php?t=13216

EXAMPLE:
This line loads up the video file foobar.mpeg with XvMC.
gmplayer -vo xvmc -vc ffmpeg12mc -fs foobar.mpeg

gmplayer => Loads up the GUI, where as mplayer does NOT. You can load either, depending on your needs.

-vo => video output.
We tell MPlayer to use xmvc

-vc => video codec.
We tell MPlayer to use ffmpeg12mc

-fs => Fullscreen mode

For more options, just type mplayer -vo help in a terminal window. (command line window).

PLEASE NOTE: The current implementation of XvMC for Nvidia cards does NOT support anything other than MPEG1/2 standard. ffmpeg12mc is the only codec you can use with XvMC.

NOTE: This thread is an informal guide to getting XvMC working with Nvidia video cards. A formal entry will be created shortly in the Arch Linux Wiki. XvMC is known to work with Intel i8x0 and VIA chipsets that have MPEG2 support, such as the Unichrome.


The most important thing the hacker community does is write better code. Our deeds are the best propaganda we have. -Eric S. Raymond

Offline

#10 2007-01-13 19:01:55

stmok
Member
From: Sydney, Australia
Registered: 2006-11-19
Posts: 72

Re: Quick question about MPlayer [resolved]

Ladies and Gentlemen, here's the wiki entry I've written for setting up XvMC support for MPlayer.

Enable XvMC for Nvidia video cards
http://wiki.archlinux.org/index.php/Ena … ideo_cards

That's my contribution to the Arch Linux project for today. I'm going to sleep!


The most important thing the hacker community does is write better code. Our deeds are the best propaganda we have. -Eric S. Raymond

Offline

Board footer

Powered by FluxBB