LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-27-2007, 06:05 AM   #1
dark*
Member
 
Registered: Jan 2006
Distribution: slackware 12.0
Posts: 42

Rep: Reputation: 15
How to get xv working for mplayer fullscreen


Hi,
I just installed latest mplayer from source but I cannot get the fullscreen view of the videos. I researched a bit and came to the conclusion that the video output driver (ie vo) should be xv but It looks like i dont have xv. When I run xvinfo i get :

X-Video Extension version 2.2
screen #0
no adaptors present

So I used vo x11 but it has the fullscreen problem. I know the quick solution to this is to use -zoom option *but* its *not* the same. You get fullscreen but its software zoom, by xv you get hardware zoom and its very easy to tell the difference.

What I want is a method to enable/install xv for my X window. Do I need a latest version of X (X11R7 or something) ?
I have Intel D945GCL chipset with pentium D (still I have to suffer with the bad video quality )

Thanks
 
Old 02-27-2007, 07:43 AM   #2
duryodhan
Senior Member
 
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Rep: Reputation: 46
Have you got DRI working on your box?
 
Old 02-27-2007, 07:45 AM   #3
dark*
Member
 
Registered: Jan 2006
Distribution: slackware 12.0
Posts: 42

Original Poster
Rep: Reputation: 15
yeah, I have Load "dri" on my xorg.conf file.
 
Old 02-27-2007, 10:36 AM   #4
duryodhan
Senior Member
 
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Rep: Reputation: 46
but is it working ? wat do you get output on "#glxinfo | grep dri"

if so maybe you could enable hw accelertion in mplayer options( read mplayer manuel) and it might work.
 
Old 02-27-2007, 11:13 AM   #5
dark*
Member
 
Registered: Jan 2006
Distribution: slackware 12.0
Posts: 42

Original Poster
Rep: Reputation: 15
hi,
I think it isn't working. The first few lines of glxinfo :

name of display: :0.0
display: :0 screen: 0
direct rendering: No

But is it related to xv? How to enable dri, if thats gonna solve the problem?

Thanks.
 
Old 02-27-2007, 11:36 AM   #6
simcox1
Member
 
Registered: Mar 2005
Location: UK
Distribution: Slackware
Posts: 794
Blog Entries: 2

Rep: Reputation: 30
The sticky on 3d graphics might help. There's info on dri and the intel chipset.
 
Old 02-27-2007, 01:42 PM   #7
dark*
Member
 
Registered: Jan 2006
Distribution: slackware 12.0
Posts: 42

Original Poster
Rep: Reputation: 15
Its really a pain to get dri working. I tried and failed. First I installed the kernel module drm.ko (direct rendering manager reqd by dri), then I saw on dri.freedesktop.org (http://dri.freedesktop.org/wiki/Building) that dri can be available with mesa3d, then I went to mesa and downloaded it, it said you need libdrm to compile . Then I installed libdrm. Back to mesa I tried 'make linux-dri-x86' and 'make install' It successfully compiled and installed mesa libs and dri modules in x11 directories.
After that , I made /sbin/modprobe drm entry in rc.modules. REBOOT

Everything works as it was before. NO EFFECT of all that jazz. glxinfo shows direct rendering: No

I dont know how all these thing are related
DRM DRI MESA XV GL X11

Plz direct me through this mess.
 
Old 02-27-2007, 02:32 PM   #8
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Well, it would be great if you could get dri running, so you've tried this guide and it didn't work ?

http://www.linuxquestions.org/questi...d.php?t=402003

If so, what part failed. There have been issues in the past with that card and the framebuffer. Just in case, I would change the 'vga=' line in '/etc/lilo.conf' to 'vga=normal'.

Here is a decent explanation:
http://dri.sourceforge.net/doc/DRIintro.html

And what my take on this:
* Mesa is slow, indirect, software 3D rendering (if you're card doesn't support OpenGL very well (maybe because of drivers), this is what you gotta use)
* GL is fast, direct, hardware 3D rendering (if you are lucky and have a good card and drivers)
* DRI is "direct rendering infrastructure", which allows 3D direct rendering
Quote:
This driver essentially converts OpenGL command sequences into hardware commands. It then uses the kernel module to transmit the commands to the hardware. The 3D driver and kernel module basically implement the entire OpenGL rendering pipeline. The 3D driver implements as much of it as possible in user space while the kernel module does whatever is needed in kernel space.
* DRM is just the direct rendering (kernel) module
* XV is an X video extention that allows for 2D hardware direct rendering (not 3D)
Quote:
Under XFree86 4.0.2 or newer, you can use your card's hardware YUV routines using the XVideo extension. This is what the option -vo xv uses. Also, this driver supports adjusting brightness/contrast/hue/etc. (unless you use the old, slow DirectShow DivX codec, which supports it everywhere), see the man page.
http://www.mplayerhq.hu/DOCS/HTML-si...Player.html#xv
* X11
Quote:
Outputs to X11 (uses shared memory extension), with no hardware acceleration at all. Supports (MMX/3DNow/SSE accelerated, but still slow) software scaling
http://www.mplayerhq.hu/DOCS/HTML-si...layer.html#x11

Last edited by H_TeXMeX_H; 02-27-2007 at 02:34 PM.
 
Old 02-27-2007, 02:57 PM   #9
dark*
Member
 
Registered: Jan 2006
Distribution: slackware 12.0
Posts: 42

Original Poster
Rep: Reputation: 15
First of all, thanks for this interesting information. I really needed some picture of whats happening.

>Well, it would be great if you could get dri running, so you've tried this guide and >it didn't work ?

>http://www.linuxquestions.org/questi...d.php?t=402003

>If so, what part failed.

Well actually nothing failed. Here is a sequence of what I did
1. Install drm modules in kernel modules directory
2. added /sbin/modprobe drm to rc.modules
3. Installed libdrm (reqd by mesa3d)
4. Install mesa3d by make linux-dri-x86 and make install (this *will* enable dri in mesa as per their docs)
5. thats all .. i think

Everything worked. Still I dont understand how mesa3d is related to xv? And ofcourse glxinfo says direct rendering: No

May be I an not able to tell(?) X to use the new mesa libs.
Also I found out my graphics card Intel GMA950 has got problem using xv according to this guy.

What do you think?

Last edited by dark*; 02-27-2007 at 03:02 PM.
 
Old 02-27-2007, 03:57 PM   #10
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Might wanna try the guide ... verbatim. I don't see anything in there about messing with mesa.
 
Old 02-27-2007, 09:38 PM   #11
duryodhan
Senior Member
 
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Rep: Reputation: 46
Try the sticky at the top on the Slackware forum ... "A guide enabling 3d acceleration..." by cwwilson .. it will surely get your 3d output working.

And please show us your xorg.conf.
 
Old 02-28-2007, 05:03 AM   #12
duryodhan
Senior Member
 
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Rep: Reputation: 46
by the way i also have an intel 915 GMA and i have dri enabled.In default settings mplayer works fine with me but when i append -vo x11 in the command i get the same problem as yours, that is it does not go into fullscreen mode.Just a note.
 
Old 02-28-2007, 11:32 AM   #13
dark*
Member
 
Registered: Jan 2006
Distribution: slackware 12.0
Posts: 42

Original Poster
Rep: Reputation: 15
here is my xorg.conf

Code:
Section "ServerLayout"
	Identifier     "X.org Configured"
	Screen      0  "Screen0" 0 0
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
	RgbPath      "/usr/X11R6/lib/X11/rgb"
	ModulePath   "/usr/X11R6/lib/modules"
	FontPath     "/usr/X11R6/lib/X11/fonts/misc/"
	FontPath     "/usr/X11R6/lib/X11/fonts/TTF/"
	FontPath     "/usr/X11R6/lib/X11/fonts/Type1/"
	FontPath     "/usr/X11R6/lib/X11/fonts/CID/"
	FontPath     "/usr/X11R6/lib/X11/fonts/75dpi/"
	FontPath     "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection

Section "Module"
	Load  "record"
	Load  "extmod"
	Load  "dbe"
	Load  "dri"
	Load  "glx"
	Load  "xtrap"
	Load  "freetype"
	Load  "type1"
EndSection

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "kbd"
EndSection

Section "InputDevice"
	Identifier  "Mouse0"
	Driver      "mouse"
	Option	    "Protocol" "auto"
	Option	    "Device" "/dev/mouse"
	Option	    "Buttons" "5"
	Option      "ZAxisMapping" "4 5"
EndSection

Section "Monitor"
	Identifier   "Monitor0"
	VendorName   "Monitor Vendor"
	ModelName    "Monitor Model"
	HorizSync    30.0 - 55.0
	VertRefresh  50.0 - 120.0
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "ShadowFB"           	# [<bool>]
        #Option     "DefaultRefresh"     	# [<bool>]
	Identifier  "Card0"
	Driver      "vesa"
	VendorName  "Intel Corp."
	BoardName   "Unknown Board"
	BusID       "PCI:0:2:0"
EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Card0"
	Monitor    "Monitor0"
DefaultDepth 24
	SubSection "Display"
		Viewport   0 0
		Depth     1
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     4
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     8
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     15
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     16
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     24
	EndSubSection
EndSection
Also some parts of Xorg.0.log in which it shows loading dri and drm modules

Code:
(II) LoadModule: "dri"
(II) Loading /usr/X11R6/lib/modules/extensions/libdri.a
(II) Module dri: vendor="X.Org Foundation"
	compiled for 6.8.2, module version = 1.0.0
	ABI class: X.Org Server Extension, version 0.2
(II) Loading sub module "drm"
(II) LoadModule: "drm"
(II) Loading /usr/X11R6/lib/modules/linux/libdrm.a
(II) Module drm: vendor="X.Org Foundation"
	compiled for 6.8.2, module version = 1.0.0
	ABI class: X.Org Server Extension, version 0.2
(II) Loading extension XFree86-DRI
(II) LoadModule: "glx"
(II) Loading /usr/X11R6/lib/modules/extensions/libglx.a
(II) Module glx: vendor="X.Org Foundation"
	compiled for 6.8.2, module version = 1.0.0
	ABI class: X.Org Server Extension, version 0.2
(II) Loading sub module "GLcore"
(II) LoadModule: "GLcore"
(II) Loading /usr/X11R6/lib/modules/extensions/libGLcore.a
(II) Module GLcore: vendor="X.Org Foundation"
	compiled for 6.8.2, module version = 1.0.0
	ABI class: X.Org Server Extension, version 0.2
(II) Loading extension GLX
(II) LoadModule: "xtrap"
(II) Loading /usr/X11R6/lib/modules/extensions/libxtrap.a
(II) Module xtrap: vendor="X.Org Foundation"
	compiled for 6.8.2, module version = 1.0.0
	Module class: X.Org Server Extension
	ABI class: X.Org Server Extension, version 0.2
 
Old 02-28-2007, 02:34 PM   #14
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Quote:
Driver "vesa"
That's what I'm talking about ... you didn't follow the guide:

http://www.linuxquestions.org/questi...d.php?t=402003
 
Old 02-28-2007, 03:30 PM   #15
dark*
Member
 
Registered: Jan 2006
Distribution: slackware 12.0
Posts: 42

Original Poster
Rep: Reputation: 15
Are you referring to berxwedan; the guy who changed from vesa to i810 drivers and solved the xv problem?

here from > man i810
Supported Hardware
i810 supports the i810, i810-DC100, i810e, i815, 830M, 845G, 852GM,
855GM, 865G and 915G chipsets.

I have intel 945G which is *not* supported.

I tried it but it says device not detected.

I went to http://intellinuxgraphics.org/download.html for 945G drivers but they are pointing to mesa git repos which i already did.

Last edited by dark*; 02-28-2007 at 03:42 PM.
 
  


Reply



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 no fullscreen powadha Linux - Software 8 11-15-2012 03:19 PM
Mplayer Fullscreen????? Lier Linux - Software 12 02-03-2005 04:10 PM
Mplayer fullscreen problem GTBlackwell Linux - Software 13 01-13-2005 05:44 PM
mplayer and fullscreen? dslboy Linux - Newbie 10 03-12-2004 08:23 PM
Mplayer -- Scaled Fullscreen d33pdream Linux - Software 5 02-03-2003 01:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:54 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration