LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-02-2003, 09:35 AM   #1
dibblethewrecke
Member
 
Registered: Nov 2003
Location: UK
Distribution: Arch Linux
Posts: 210

Rep: Reputation: 30
Unhappy how to use neo_driver.patch


I'm trying to use xv output in mplayer on a dell laptop with a neomagic graphic card. I have xfree 4.3 but most people seem to have had success after using the patch. The mplayer docs give this info:

Quote:
These cards can be found in many laptops. You must use XFree86 4.3.0 or above, or else use Stefan Seyfried's Xv-capable drivers. Just choose the one that applies to your version of XFree86.

XFree86 4.3.0 includes Xv support, yet Bohdan Horst sent a small patch against the XFree86 sources that speeds up framebuffer operations (so XVideo) up to four times. The patch has been included in XFree86 CVS and should be in the next release after 4.3.0.

To allow playback of DVD sized content change your XF86Config like this:

Section "Device"
[...]
Driver "neomagic"
Option "OverlayMem" "829440"
[...]
EndSection
I need help with two things:

a) I have downloaded the patch but can't find how to use it
b) i don't know how to edit (or which of the many) XF86Config
 
Old 12-03-2003, 09:05 AM   #2
dibblethewrecke
Member
 
Registered: Nov 2003
Location: UK
Distribution: Arch Linux
Posts: 210

Original Poster
Rep: Reputation: 30
Bump
 
Old 12-03-2003, 10:19 AM   #3
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
a) The patch is to be applied to plain vanilla (just downloaded and unpacked) XFree86 source. Then you have to rebuild XFree86, which will take a loooong time and will probably be quite troublesome if you're new to compiling stuff from source. I suggest you don't.

b) The config gile that is used is most probably the /etc/XF86Config-4.


Håkan
 
Old 12-03-2003, 04:48 PM   #4
dibblethewrecke
Member
 
Registered: Nov 2003
Location: UK
Distribution: Arch Linux
Posts: 210

Original Poster
Rep: Reputation: 30
seems there is a patch and driver available...

i have a file called neomagic_drv.so.4.2 i think. I have tried to swap this with the neomagic_drv.so in usr/x11/lib/modules/drivers but i don;t know what else to do and it doesn't seem to have worked...
 
Old 12-04-2003, 05:01 AM   #5
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
I did the same thing and came back here to post the results but you beat me to it.

Mplayer says "VDecoder failed" but it works and I can scale the video window without any problems. I don't know if the performance is any better with this driver than with the stock one (I am using Debian Testing which currently uses XFree86 4.2.1).
Code:
vo: X11 running at 1024x768 with depth 16 and 16 bpp (":0.0" => local display)
Disabling DPMS
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 352 x 240 (preferred csp: Mpeg PES)
Could not find matching colorspace - retrying with -vop scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.3.1
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))
Håkan

Last edited by hw-tph; 12-04-2003 at 05:03 AM.
 
Old 12-04-2003, 09:08 AM   #6
dibblethewrecke
Member
 
Registered: Nov 2003
Location: UK
Distribution: Arch Linux
Posts: 210

Original Poster
Rep: Reputation: 30
So have i replaced the driver correctly? How do i know if it's working?

I seem to be generally having trouble with XV. I can't get it to work in VLC either.

In mplayer I get this error:

[root@localhost dib]# mplayer -dvd 2 -vo xv -ao oss
MPlayer 0.92-3.2.2 (C) 2000-2003 MPlayer Team
CPU: Intel Celeron A Mendocino/Pentium II Dixon (Family: 6, Stepping: 10)
Detected cache-line size is 32 bytes
CPUflags: MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX

Reading config file /usr/local/etc/mplayer/mplayer.conf: No such file or directory
Reading config file /root/.mplayer/config
Reading /root/.mplayer/codecs.conf: can't open '/root/.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: /root/.mplayer/font/font.desc
Font /usr/local/share/mplayer/font/font.desc loaded successfully! (206 chars)
Using Linux hardware RTC timing (1024Hz).
Can't open input config file /root/.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 DVD title 2
Reading disc structure, please wait...
There are 9 titles on this DVD.
There are 7 chapters in this DVD title.
There are 1 angles in this DVD title.
DVD successfully opened.
MPEG-PS file format detected.
VIDEO: MPEG2 720x576 (aspect 2) 25.00 fps 8400.0 kbps (1050.0 kbyte/s)
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
No accelerated IMDCT transform found
AC3: 5.1 (3f+2r+lfe) 48000 Hz 448.0 kbit/s
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 56000->192000 (448.0 kbit)
Selected audio codec: [a52] afm:liba52 (AC3-liba52)
==========================================================================
vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0.0" => local display)
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 576 (preferred csp: Mpeg PES)
Could not find matching colorspace - retrying with -vop scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
VDecoder init failed
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder v2.0
libmpeg2: Using MMX for IDCT transform
libmpeg2: Using MMX for motion compensation
VDec: vo config request - 720 x 576 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [xv] 720x576 => 768x576 Planar YV12
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))
==========================================================================
Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
AF_pre: af format: 2 bps, 2 ch, 48000 hz, little endian signed int
AF_pre: 48000Hz 2ch Signed 16-bit (Little-Endian)
AO: [oss] 48000Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
Starting playback...
X11 error: BadAlloc (insufficient resources for operation) 0.0% 0 0 0%


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/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 0x57)!


In VLC I get this error:

VideoLAN Client 0.6.2 Trevelyan
[00000154] main input: playlist item `dvd:/dev/dvd@0:1'
libdvdread: Using libdvdcss version 1.2.8 for DVD access

libdvdread: Attempting to retrieve all CSS keys
libdvdread: This can take a _long_ time, please be patient

libdvdread: Get key for /VIDEO_TS/VIDEO_TS.VOB at 0x0000012a
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_0.VOB at 0x00000195
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x0000a927
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_0.VOB at 0x0000a9b1
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_1.VOB at 0x0000a9fe
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_0.VOB at 0x0020f4d6
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_1.VOB at 0x0020f523
libdvdread: Elapsed time 0
libdvdread: Found 3 VTS's
libdvdread: Elapsed time 0
Audio Stream NumberSub-picture Stream Number[00000161] freetype video output error: user didn't specify a font
The program '' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadAlloc (insufficient resources for operation)'.
(Details: serial 75 error_code 11 request_code 141 minor_code 19)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
Segmentation fault


It's the 'BadAlloc (insufficient resources for operation)' in both i think. What am I going to do! Give up?
 
Old 12-04-2003, 12:07 PM   #7
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
Did you add the OverlayMem part to your XF86Config-4? I have no DVD reader so I can't really help you with DVD-specific stuff - sorry.

Håkan
 
Old 12-04-2003, 01:06 PM   #8
tcaptain
LQ Addict
 
Registered: Jul 2002
Location: Montreal
Distribution: Gentoo 2004 from stage 1 baby!
Posts: 1,403

Rep: Reputation: 45
Reading this thread (and on another one) got me interested in xv again.

With the OverlayMem option added, xv does work with 4.3

but is anyone else getting a weirdly wrapped around image?

ie:

image should be

xxooyy
xxooyy
xxooyy

but comes out as:

xooyyx
xooyyx
xooyyx

very weird.
 
Old 12-04-2003, 03:50 PM   #9
dibblethewrecke
Member
 
Registered: Nov 2003
Location: UK
Distribution: Arch Linux
Posts: 210

Original Poster
Rep: Reputation: 30
i added that line to my xfree config the one in etc/x11 (i think that's where it is) i still can't get it to work!

It kind of works in VLC and mplayer, the window comes up, then dies and it quits out with the errors i showed above.

if i can get to where tcaptain is i'd be happy!

can either of you paste your xfree config here so i can have a look?

and can you confirm i have actually added the driver correctly? surely it's not just a case of swapping it and it working?

If i have done these things correctly i see no reason why it shouldn't be working

I said in another thread that i was using

mplayer -vo x11 -so oss -framedrop

for my best results - what are you using tcaptain? totally understand your explanation of your prob by the way - you've made it pretty clear - just in case you were wondering if you were explaining it ok :-)
 
Old 12-04-2003, 04:22 PM   #10
tcaptain
LQ Addict
 
Registered: Jul 2002
Location: Montreal
Distribution: Gentoo 2004 from stage 1 baby!
Posts: 1,403

Rep: Reputation: 45
Well right now I'm not using -vo xv because of what I described, while the picture is crisp and the performance totally good...it makes a movie unwatchable...

I'm just using plain old -vo x11 and -ao OSS

Since I upgraded to 9.2 the quality is ok using the default settings in gmplayer...

However, in 9.1 I used to use:

-vo x11 -ao oss -aid 128 -framedrop -cache 65536

those were the settings that made it watchable...I also used -vo dga with -vm and that worked ok (as long as it was fullscreen)
 
Old 12-05-2003, 03:00 PM   #11
dibblethewrecke
Member
 
Registered: Nov 2003
Location: UK
Distribution: Arch Linux
Posts: 210

Original Poster
Rep: Reputation: 30
I've started to get somewhere.

I found this RPM

http://rpmfind.rediris.es/rpm2html/s...0-19.i586.html

That has the new driver built into it (doubt I can use this with Mandrake but I wonder if anyone knows of something similar?)

and this page which explains more about the patch and Xfree config change:

http://ltswww.epfl.ch/~dsanta/resources/linux

thing is i did both of these already and still no joy - will check i have done it right and with this version of driver too...
 
Old 12-09-2003, 05:27 PM   #12
dibblethewrecke
Member
 
Registered: Nov 2003
Location: UK
Distribution: Arch Linux
Posts: 210

Original Poster
Rep: Reputation: 30
Unhappy Failed and admitted defeat...

Was able to check and I had done it ok...but then my whole installation went to the wall, it was like critical mass, it just died.

I reinstalled Man 9.1 but in the process of trying to ressurrect my old user space etc it started to die again so i have given up totally for the time being, will come back after X 4.4 and Kde 3.2...

IMPORTANT

If you came here looking to solve a similar probelm i think i made a glaring mistake - i was actually patching a different driver to the one i was using all along (i think) I reckon i should have been using the xfree 4. neomagic driver that you can select in xfree config or at installation (right at the bottom of the list) - rather than the driver suggested at autodetect - not sure if they are actually different but it was something i was going to look into...
 
Old 03-27-2004, 07:23 PM   #13
dibblethewrecke
Member
 
Registered: Nov 2003
Location: UK
Distribution: Arch Linux
Posts: 210

Original Poster
Rep: Reputation: 30
xfree 4.4 is out and should have that patch for neomagic cards i mentioned built in - anyone still watching this thread? i am ready to have another go!
 
  


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
Unable to patch 2.6.11.7 kernel with Reiser4 mm patch SlackwareInAZ Slackware 9 04-26-2005 07:33 AM
patch -p1 x.diff but no patch command!? pyenos Linux - Hardware 1 03-04-2005 04:10 PM
How to Install patch-o-matic(a iptables patch) on redhat 9? itebooks Linux - Security 1 07-23-2004 09:51 AM
debian-patch-debianlogo w/2.6.5 kernel-patch-lpp Outabux Debian 11 05-20-2004 02:21 PM
How to Apply patch for Mass Storage device to work? (uss725-2.4.20-rc2.patch) cevjr Linux - Hardware 3 04-21-2004 12:14 AM


All times are GMT -5. The time now is 11:00 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration