LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-09-2004, 11:08 AM   #1
snooo
LQ Newbie
 
Registered: Jul 2004
Posts: 17

Rep: Reputation: 0
XV refuses to work


I am experiencing problems using XV with various media players on linux - including Xine (nothing but a blue box appears) and Mplayer (the player crashes, claiming it does not have enough resources). In an earlier thread I was asked to quote my xorg.conf. It follows:

Code:
# File generated by xf86config.

#
# Copyright (c) 2004, by the X.Org
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
# 
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
# 
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
# THE XFREE86 PROJECT BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
# OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
# 
# Except as contained in this notice, the name of X.Org shall
# not be used in advertising or otherwise to promote the sale, use or other
# dealings in this Software without prior written authorization from the
# X.Org.
#

# **********************************************************************
# Refer to the XF86Config(4/5) man page for details about the format of 
# this file.
# **********************************************************************

# **********************************************************************
# Module section -- this  section  is used to specify
# which dynamically loadable modules to load.
# **********************************************************************
#
Section "Module"

# This loads the DBE extension module.

    Load        "dbe"  	# Double buffer extension

# This loads the miscellaneous extensions module, and disables
# initialisation of the XFree86-DGA extension within that module.
    SubSection  "extmod"
      Option    "omit xfree86-dga"   # don't initialise the DGA extension
    EndSubSection

# This loads the Type1 and FreeType font modules
    Load        "type1"
    Load        "speedo"
    Load        "freetype"
#    Load        "xtt"

# This loads the GLX module
    Load       "glx"
# This loads the DRI module
#    Load       "dri"

EndSection

# **********************************************************************
# Files section.  This allows default font and rgb paths to be set
# **********************************************************************

Section "Files"

# The location of the RGB database.  Note, this is the name of the
# file minus the extension (like ".txt" or ".db").  There is normally
# no need to change the default.

    RgbPath	"/usr/X11R6/lib/X11/rgb"

# Multiple FontPath entries are allowed (which are concatenated together),
# as well as specifying multiple comma-separated entries in one FontPath
# command (or a combination of both methods)
# 
# If you don't have a floating point coprocessor and emacs, Mosaic or other
# programs take long to start up, try moving the Type1 and Speedo directory
# to the end of this list (or comment them out).
# 

    FontPath   "/usr/X11R6/lib/X11/fonts/local/"
    FontPath   "/usr/X11R6/lib/X11/fonts/misc/"
    FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
    FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
    FontPath   "/usr/X11R6/lib/X11/fonts/Speedo/"
    FontPath   "/usr/X11R6/lib/X11/fonts/Type1/"
    FontPath   "/usr/X11R6/lib/X11/fonts/TTF/"
    FontPath   "/usr/X11R6/lib/X11/fonts/cyrillic/"
    FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/"
    FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/"

# The module search path.  The default path is shown here.

#    ModulePath "/usr/X11R6/lib/modules"

EndSection

# **********************************************************************
# Server flags section.
# **********************************************************************

Section "ServerFlags"

# Uncomment this to cause a core dump at the spot where a signal is 
# received.  This may leave the console in an unusable state, but may
# provide a better stack trace in the core dump to aid in debugging

#    Option "NoTrapSignals"

# Uncomment this to disable the <Crtl><Alt><Fn> VT switch sequence
# (where n is 1 through 12).  This allows clients to receive these key
# events.

#    Option "DontVTSwitch"

# Uncomment this to disable the <Crtl><Alt><BS> server abort sequence
# This allows clients to receive this key event.

#    Option "DontZap"

# Uncomment this to disable the <Crtl><Alt><KP_+>/<KP_-> mode switching
# sequences.  This allows clients to receive these key events.

#    Option "Dont Zoom"

# Uncomment this to disable tuning with the xvidtune client. With
# it the client can still run and fetch card and monitor attributes,
# but it will not be allowed to change them. If it tries it will
# receive a protocol error.

#    Option "DisableVidModeExtension"

# Uncomment this to enable the use of a non-local xvidtune client. 

#    Option "AllowNonLocalXvidtune"

# Uncomment this to disable dynamically modifying the input device
# (mouse and keyboard) settings. 

#    Option "DisableModInDev"

# Uncomment this to enable the use of a non-local client to
# change the keyboard or mouse settings (currently only xset).

#    Option "AllowNonLocalModInDev"

EndSection

# **********************************************************************
# Input devices
# **********************************************************************

# **********************************************************************
# Core keyboard's InputDevice section
# **********************************************************************

Section "InputDevice"

    Identifier	"Keyboard1"
    Driver	"Keyboard"

# For most OSs the protocol can be omitted (it defaults to "Standard").
# When using XQUEUE (only for SVR3 and SVR4, but not Solaris),
# uncomment the following line.

#    Option     "Protocol"      "Xqueue"

    Option "AutoRepeat" "500 30"

# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
#    Option	"Xleds"      "1 2 3"

#    Option "LeftAlt"     "Meta"
#    Option "RightAlt"    "ModeShift"

# To customise the XKB settings to suit your keyboard, modify the
# lines below (which are the defaults).  For example, for a non-U.S.
# keyboard, you will probably want to use:
#    Option "XkbModel"    "pc102"
# If you have a US Microsoft Natural keyboard, you can use:
#    Option "XkbModel"    "microsoft"
#
# Then to change the language, change the Layout setting.
# For example, a german layout can be obtained with:
#    Option "XkbLayout"   "de"
# or:
#    Option "XkbLayout"   "de"
#    Option "XkbVariant"  "nodeadkeys"
#
# If you'd like to switch the positions of your capslock and
# control keys, use:
#    Option "XkbOptions"  "ctrl:swapcaps"

# These are the default XKB settings for X.Org
#    Option "XkbRules"    "__XKBDEFRULES__"
#    Option "XkbModel"    "pc101"
#    Option "XkbLayout"   "us"
#    Option "XkbVariant"  ""
#    Option "XkbOptions"  ""

#    Option "XkbDisable"

    Option "XkbRules"	"xorg"
    Option "XkbModel"	"pc101"
    Option "XkbLayout"	"gb"

EndSection


# **********************************************************************
# Core Pointer's InputDevice section
# **********************************************************************

Section "InputDevice"

# Identifier and driver

    Identifier	"Mouse1"
    Driver	"mouse"
    Option "Protocol"    "Auto"
    Option "Device"      "/dev/mouse"
    Option "ZAxisMapping" "4 5"

# Mouse-speed setting for PS/2 mouse.

#    Option "Resolution"	"256"

# When using XQUEUE, comment out the above two lines, and uncomment
# the following line.

#    Option "Protocol"	"Xqueue"

# Baudrate and SampleRate are only for some Logitech mice. In
# almost every case these lines should be omitted.

#    Option "BaudRate"	"9600"
#    Option "SampleRate"	"150"

# Emulate3Buttons is an option for 2-button Microsoft mice
# Emulate3Timeout is the timeout in milliseconds (default is 50ms)

#    Option "Emulate3Buttons"
#    Option "Emulate3Timeout"    "50"

# ChordMiddle is an option for some 3-button Logitech mice

#    Option "ChordMiddle"

EndSection


# **********************************************************************
# Other input device sections 
# this is optional and is required only if you
# are using extended input devices.  This is for example only.  Refer
# to the XF86Config man page for a description of the options.
# **********************************************************************
#
# Section "InputDevice" 
#    Identifier  "Mouse2"
#    Driver      "mouse"
#    Option      "Protocol"      "MouseMan"
#    Option      "Device"        "/dev/mouse2"
# EndSection
#
# Section "InputDevice"
#    Identifier "spaceball"
#    Driver     "magellan"
#    Option     "Device"        "/dev/cua0"
# EndSection
#
# Section "InputDevice"
#    Identifier "spaceball2"
#    Driver     "spaceorb"
#    Option     "Device"        "/dev/cua0"
# EndSection
#
# Section "InputDevice"
#    Identifier "touchscreen0"
#    Driver     "microtouch"
#    Option     "Device"        "/dev/ttyS0"
#    Option     "MinX"          "1412"
#    Option     "MaxX"          "15184"
#    Option     "MinY"          "15372"
#    Option     "MaxY"          "1230"
#    Option     "ScreenNumber"  "0"
#    Option     "ReportingMode" "Scaled"
#    Option     "ButtonNumber"  "1"
#    Option     "SendCoreEvents"
# EndSection
#
# Section "InputDevice"
#    Identifier "touchscreen1"
#    Driver     "elo2300"
#    Option     "Device"        "/dev/ttyS0"
#    Option     "MinX"          "231"
#    Option     "MaxX"          "3868"
#    Option     "MinY"          "3858"
#    Option     "MaxY"          "272"
#    Option     "ScreenNumber"  "0"
#    Option     "ReportingMode" "Scaled"
#    Option     "ButtonThreshold"       "17"
#    Option     "ButtonNumber"  "1"
#    Option     "SendCoreEvents"
# EndSection

# **********************************************************************
# Monitor section
# **********************************************************************

# Any number of monitor sections may be present

Section "Monitor"

    Identifier  "Monitor"

# HorizSync is in kHz unless units are specified.
# HorizSync may be a comma separated list of discrete values, or a
# comma separated list of ranges of values.
# NOTE: THE VALUES HERE ARE EXAMPLES ONLY.  REFER TO YOUR MONITOR'S
# USER MANUAL FOR THE CORRECT NUMBERS.

    HorizSync   31.5 - 48.5

#    HorizSync	30-64         # multisync
#    HorizSync	31.5, 35.2    # multiple fixed sync frequencies
#    HorizSync	15-25, 30-50  # multiple ranges of sync frequencies

# VertRefresh is in Hz unless units are specified.
# VertRefresh may be a comma separated list of discrete values, or a
# comma separated list of ranges of values.
# NOTE: THE VALUES HERE ARE EXAMPLES ONLY.  REFER TO YOUR MONITOR'S
# USER MANUAL FOR THE CORRECT NUMBERS.

    VertRefresh 40-150

EndSection


# **********************************************************************
# Graphics device section
# **********************************************************************

# Any number of graphics device sections may be present

# Standard VGA Device:

Section "Device"
    Identifier	"Standard VGA"
    VendorName	"Unknown"
    BoardName	"Unknown"

# The chipset line is optional in most cases.  It can be used to override
# the driver's chipset detection, and should not normally be specified.

#    Chipset	"generic"

# The Driver line must be present.  When using run-time loadable driver
# modules, this line instructs the server to load the specified driver
# module.  Even when not using loadable driver modules, this line
# indicates which driver should interpret the information in this section.

    Driver     "vga"
# The BusID line is used to specify which of possibly multiple devices
# this section is intended for.  When this line isn't present, a device
# section can only match up with the primary video device.  For PCI
# devices a line like the following could be used.  This line should not
# normally be included unless there is more than one video device
# intalled.

#    BusID      "PCI:0:10:0"

#    VideoRam	256

#    Clocks	25.2 28.3

EndSection

# Device configured by xf86config:

Section "Device"
    Identifier  "SiS6326"
    Driver      "sis"
    #VideoRam    4096
    # Option "no_accel" # Use this if acceleration is causing problems
    # Option "fifo_moderate" 
    # Option "fifo_conserv" 
    # Option "fifo_aggressive" 
    # Option "fast_vram"
    # Option "pci_burst_on"
    # Option "xaa_benchmark" # DON'T use with "ext_eng_queue" !!!
    # Option "ext_eng_queue" # Turbo-queue. This can cause drawing 
                             # errors, but gives some accel
    # Insert Clocks lines here if appropriate
EndSection


# **********************************************************************
# Screen sections
# **********************************************************************

# Any number of screen sections may be present.  Each describes
# the configuration of a single screen.  A single specific screen section
# may be specified from the X server command line with the "-screen"
# option.
Section "Screen"
    Identifier  "Screen 1"
    Device      "SiS6326"
    Monitor     "Monitor"
    DefaultDepth 24

    Subsection "Display"
        Depth       8
        Modes       "1024x768"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       16
        Modes       "1024x768"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       24
        Modes       "1024x768"
        ViewPort    0 0
    EndSubsection
EndSection

# **********************************************************************
# ServerLayout sections.
# **********************************************************************

# Any number of ServerLayout sections may be present.  Each describes
# the way multiple screens are organised.  A specific ServerLayout
# section may be specified from the X server command line with the
# "-layout" option.  In the absence of this, the first section is used.
# When now ServerLayout section is present, the first Screen section
# is used alone.

Section "ServerLayout"

# The Identifier line must be present
    Identifier  "Simple Layout"

# Each Screen line specifies a Screen section name, and optionally
# the relative position of other screens.  The four names after
# primary screen name are the screens to the top, bottom, left and right
# of the primary screen.  In this example, screen 2 is located to the
# right of screen 1.

    Screen "Screen 1"

# Each InputDevice line specifies an InputDevice section name and
# optionally some options to specify the way the device is to be
# used.  Those options include "CorePointer", "CoreKeyboard" and
# "SendCoreEvents".

    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"

EndSection

# Section "DRI"
#    Mode 0666
# EndSection
Can anyone see any solutions? I am using Slackware 10.0, with a onboard Sis 6326 graphics adaptor/peice of sh*te :-/ .

Thanks in advance.
 
Old 08-09-2004, 12:14 PM   #2
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,684

Rep: Reputation: 54
If you have dri/drm compiled into your kernel - why don't you use it?
If you have it - or could have it by recompiling the kernel (do so..) you would try to uncomment the following:

at the end of your file:

uncomment the whole DRI section

just above the files-section:

uncomment Load "dri"

restart your xserver

look at the logfiles the Xserver creates under /var/log/... (don't know the name - I run XFree86)

A listing of the errors/chash-messages you are seeing would help - start the player from a terminal to see them

run "xvinfo > logfile" - if there are errors or other hints in that logfile - please post them

Is the support for your card compiled into the kernel or as module - if module - is it loaded ("lsmod")?
 
Old 08-09-2004, 01:03 PM   #3
snooo
LQ Newbie
 
Registered: Jul 2004
Posts: 17

Original Poster
Rep: Reputation: 0
I'm still a newbie - how can you find if DRI is compiled into the kernel? I've read that DRI support is not availible for the Sis6236, although Xvideo is. Very confused - does xv require DRI?

These are the messages from mplayer - it does not crash as such at present, but merely does not play the DVD film - the fullscreen box dissapears leaving nothing.

Code:
==========================================================================
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 -vf 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))
==========================================================================
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)
[pl_volnorm] Normalizer plugin in use.
AO: [esd] latency: [server: 0.28s, net: 0.00s] (adjust 0.28s)
AO: [plugin] 44100Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
Building audio filter chain for 48000Hz/2ch/16bit -> 44100Hz/2ch/16bit...
Starting playback...
VDec: vo config request - 720 x 576 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [xv] 720x576 => 1024x576 Planar YV12
A:   0.3 V:   0.0 A-V:  0.311 ct:  0.031    1/  1   0%  0%  0.0% 0 0 0%
For some reason the player will happily use XV for avi files - but refuses to play any DVDs. It is a region 2 DVD on a region 2 DVD drive, so there shouldn't be a problem on that front. Xine point blank refuses to play anything with xv - again with no obvious error message.

I have also changed the xorg.conf settings to load the DRI modules - with no noticeable difference.

Here's the output from the xvinfo file:

Code:
X-Video Extension version 2.2
screen #0
  Adaptor #0: "SIS 5597/5598/6326/530/620 Video Overlay"
    number of ports: 1
    port base: 52
    operations supported: PutImage 
    supported visuals:
      depth 24, visualID 0x21
    number of attributes: 6
      "XV_COLORKEY" (range 0 to 16777215)
              client settable attribute
              client gettable attribute (current value is 0)
      "XV_BRIGHTNESS" (range -128 to 127)
              client settable attribute
              client gettable attribute (current value is 0)
      "XV_CONTRAST" (range 0 to 7)
              client settable attribute
              client gettable attribute (current value is 0)
      "XV_AUTOPAINT_COLORKEY" (range 0 to 1)
              client settable attribute
              client gettable attribute (current value is 1)
      "XV_SET_DEFAULTS" (range 0 to 0)
              client settable attribute
      "XV_DISABLE_GRAPHICS" (range 0 to 1)
              client settable attribute
              client gettable attribute (current value is 0)
    maximum XvImage size: 720 x 576
    Number of image formats: 6
      id: 0x32595559 (YUY2)
        guid: 59555932-0000-0010-8000-00aa00389b71
        bits per pixel: 16
        number of planes: 1
        type: YUV (packed)
      id: 0x59565955 (UYVY)
        guid: 55595659-0000-0010-8000-00aa00389b71
        bits per pixel: 16
        number of planes: 1
        type: YUV (packed)
      id: 0x32315659 (YV12)
        guid: 59563132-0000-0010-8000-00aa00389b71
        bits per pixel: 12
        number of planes: 3
        type: YUV (planar)
      id: 0x30323449 (I420)
        guid: 49343230-0000-0010-8000-00aa00389b71
        bits per pixel: 12
        number of planes: 3
        type: YUV (planar)
      id: 0x35315652 (RV15)
        guid: 52563135-0000-0000-0000-000000000000
        bits per pixel: 16
        number of planes: 1
        type: RGB (packed)
        depth: 15
        red, green, blue masks: 0x7c00, 0x3e0, 0x1f
      id: 0x36315652 (RV16)
        guid: 52563136-0000-0000-0000-000000000000
        bits per pixel: 16
        number of planes: 1
        type: RGB (packed)
        depth: 16
        red, green, blue masks: 0xf800, 0x7e0, 0x1f
Any ideas on how to solve this issue?
 
Old 08-09-2004, 03:10 PM   #4
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,684

Rep: Reputation: 54
No xv does not require dri - dri it is another way of displaying data from video-memory more quickly than by going through the X-server (to put it simple and hopefully not completely wrong...)

I just noticed, that the options to actually use this capabilities where commented out in your config-file and I was by this suggesting to turn on these capabilities - should you have them.



It appears (to me and my limited knowledge - that is) that xv is working just fine!

The output from xvinfo says that as well as the messages you get from mplayer when it starts up.
I include a similar output from my machine and mplayer. I get this, when I start playing a DVD - which I have previously ripped to my harddisk to encode it later:
(You will figure out those german messages - the english look similar)
The important point is the end of the output - where mplayer says that it is using xv - in my message as well as in yours.


Lese Disk-Struktur, bitte warten...
Es sind 5 Titel auf dieser DVD.
Es sind 14 Kapitel in diesem DVD-Titel.
Es sind 1 Kameraeinstellungen diesem DVD-Titel.
DVD erfolgreich geöffnet.
MPEG-PS-Dateiformat erkannt!
VIDEO: MPEG2 720x576 (aspect 3) 25,000 fps 7610,0 kbps (951,2 kbyte/s)
==========================================================================
Öffne Audiodecoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
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 16 and 16 bpp (":0.0" => local display)
==========================================================================
Öffne Videodecoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: VO wird versucht, auf 720 x 576 (Bevorzugter Farbraum: Mpeg PES) zu setzen.
Kann keinen passenden Farbraum finden - versuche erneut mithilfe von -vf scale...
Öffne Videofilter: [scale]
Sorry, der ausgewählte Videoausgabetreiber ist nicht kompatibel mit diesem Codec.
Initialisierung des Videodecoders fehlgeschlagen
Öffne Videodecoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.3.1
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...
Starte Wiedergabe...
VDec: VO wird versucht, auf 720 x 576 (Bevorzugter Farbraum: Planar YV12) zu setzen.
VDec: using Planar YV12 as output csp (no 0)
Seitenverhältnis ist 1,78:1 - Skaliere zur korrekten Videogröße.
VO: [xv] 720x576 => 1024x576 Planar YV12
...



Conclusion: xv is NOT the problem - neither is the player (at least - not mplayer...)
So - since I don't know the thread you where referring to: can you describe, what your problem is?
...and give the address of this thread - so I and others could read through it?

Is it slow?
Does it not work at all?

Can you post the output of: (might have to be root for some commands...)

lspci -v

lsmod

cat /proc/mtrr

cat /proc/cpuinfo

cat /proc/pci --> if you don't have lspci...

cat /proc/ide/hd?/settings --> please replace hd? with your dvd-drive

What system do you have - Distribution and version - kernel-version - CPU and motherboard - is the graphics-card onboard (shared-memory?)?

see you!
 
Old 08-09-2004, 04:16 PM   #5
snooo
LQ Newbie
 
Registered: Jul 2004
Posts: 17

Original Poster
Rep: Reputation: 0
Ok, with mplayer the picture simply dissapears - I do not get a XV window or any sound at all. On Xine, all I can get is audio - but no picture (except the overlay in the xv_colourkey which is meant to output the video).

So its not slow, its just not doing anything! :-/

Here's the output info.

lspci -v

Code:
00:00.0 Host bridge: VIA Technologies, Inc. VT8363/8365 [KT133/KM133] (rev 03)
        Flags: bus master, medium devsel, latency 8
        Memory at d0000000 (32-bit, prefetchable) [size=64M]
        Capabilities: [a0] AGP version 2.0
        Capabilities: [c0] Power Management version 2

00:01.0 PCI bridge: VIA Technologies, Inc. VT8363/8365 [KT133/KM133 AGP] (prog-if 00 [Normal decode])
        Flags: bus master, 66Mhz, medium devsel, latency 0
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
        I/O behind bridge: 0000c000-0000cfff
        Memory behind bridge: d4000000-d5ffffff
        Prefetchable memory behind bridge: d6000000-d67fffff
        Capabilities: [80] Power Management version 2

00:07.0 ISA bridge: VIA Technologies, Inc. VT82C686 [Apollo Super South] (rev 40)
        Subsystem: VIA Technologies, Inc. VT82C686/A PCI to ISA Bridge
        Flags: bus master, stepping, medium devsel, latency 0
        Capabilities: [c0] Power Management version 2

00:07.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C/VT8235 PIPC Bus Master IDE (rev 06) (prog-if 8a [Master SecP PriP])
        Flags: bus master, medium devsel, latency 32
        I/O ports at d000 [size=16]
        Capabilities: [c0] Power Management version 2

00:07.2 USB Controller: VIA Technologies, Inc. VT6202 [USB 2.0 controller] (rev 1a) (prog-if 00 [UHCI])
        Subsystem: VIA Technologies, Inc. (Wrong ID) USB Controller
        Flags: bus master, medium devsel, latency 32, IRQ 5
        I/O ports at d400 [size=32]
        Capabilities: [80] Power Management version 2

00:07.3 USB Controller: VIA Technologies, Inc. VT6202 [USB 2.0 controller] (rev 1a) (prog-if 00 [UHCI])
        Subsystem: VIA Technologies, Inc. (Wrong ID) USB Controller
        Flags: bus master, medium devsel, latency 32, IRQ 5
        I/O ports at d800 [size=32]
        Capabilities: [80] Power Management version 2

00:07.4 Host bridge: VIA Technologies, Inc. VT82C686 [Apollo Super ACPI] (rev 40)
        Flags: medium devsel, IRQ 9
        Capabilities: [68] Power Management version 2

00:07.5 Multimedia audio controller: VIA Technologies, Inc. VT82C686 AC97 Audio Controller (rev 50)
        Subsystem: Micro-Star International Co., Ltd.: Unknown device 3300
        Flags: medium devsel, IRQ 11
        I/O ports at dc00 [size=256]
        I/O ports at e000 [size=4]
        I/O ports at e400 [size=4]
        Capabilities: [c0] Power Management version 2

00:0d.0 Communication controller: Ambient Technologies Inc HaM controllerless modem (rev 02)
        Flags: medium devsel, IRQ 10
        Memory at d6800000 (32-bit, non-prefetchable) [size=4K]
        I/O ports at ec00 [size=256]
        Capabilities: [60] Power Management version 2

01:00.0 VGA compatible controller: Silicon Integrated Systems [SiS] 86C326 5598/6326 (rev 0b) (prog-if 00 [VGA])
        Subsystem: Yuan Yuan Enterprise Co., Ltd.: Unknown device 6326
        Flags: bus master, 66Mhz, medium devsel, latency 32
        Memory at d6000000 (32-bit, prefetchable) [size=8M]
        Memory at d5000000 (32-bit, non-prefetchable) [size=64K]
        I/O ports at c000 [size=128]
        Expansion ROM at <unassigned> [disabled] [size=64K]
        Capabilities: [40] Power Management version 1
        Capabilities: [50] AGP version 1.0
lsmod

Code:
Module                  Size  Used by    Not tainted
ppp_deflate             3256   0  (autoclean)
zlib_deflate           18328   0  (autoclean) [ppp_deflate]
bsd_comp                4344   0  (autoclean)
ppp_async               7392   1  (autoclean)
ppp_generic            19492   3  (autoclean) [ppp_deflate bsd_comp ppp_async]
slhc                    4976   1  (autoclean) [ppp_generic]
snd-pcm-oss            37736   0
snd-mixer-oss          12504   0  [snd-pcm-oss]
parport_pc             14788   0
parport                23336   0  [parport_pc]
uhci                   24444   0  (unused)
snd-via82xx            13124   1
gameport                1420   0  [snd-via82xx]
snd-pcm                56072   0  [snd-pcm-oss snd-via82xx]
snd-timer              13604   0  [snd-pcm]
snd-ac97-codec         49500   0  [snd-via82xx]
snd-page-alloc          6328   0  [snd-via82xx snd-pcm]
snd-mpu401-uart         3200   0  [snd-via82xx]
snd-rawmidi            12740   0  [snd-mpu401-uart]
snd-seq-device          3888   0  [snd-rawmidi]
snd                    30852   1  [snd-pcm-oss snd-mixer-oss snd-via82xx snd-pcm snd-timer snd-ac97-codec snd-mpu401-uart snd-rawmidi snd-seq-device]
soundcore               3396   5  [snd]
ntfs                   51424   2  (autoclean)
ide-scsi                9328   0
iforce                  9836   0  (unused)
serio                    956   0  [iforce]
usbcore                59308   1  [uhci iforce]
joydev                  5888   0  (unused)
input                   3200   0  [iforce joydev]
agpgart                43940   0  (unused)
apm                     9580   2
cat /proc/mtrr

Code:
reg00: base=0x00000000 (   0MB), size= 128MB: write-back, count=1
reg01: base=0xd6000000 (3424MB), size=   4MB: write-combining, count=1
reg05: base=0xd0000000 (3328MB), size=  64MB: write-combining, count=1
cat /proc/cpuinfo

Code:
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 6
model           : 7
model name      : AMD Duron(tm) processor
stepping        : 0
cpu MHz         : 999.561
cache size      : 64 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 mmx fxsr sse syscall mmxext 3dnowext 3dnow
bogomips        : 1992.29
And here is the settings for my DVD drive (cat /proc/ide/hdc/settings)

Code:
name                    value           min             max             mode
----                    -----           ---             ---             ----
breada_readahead        4               0               127             rw
current_speed           66              0               70              rw
dsc_overlap             1               0               1               rw
file_readahead          0               0               2097151         rw
init_speed              12              0               70              rw
io_32bit                1               0               3               rw
keepsettings            0               0               1               rw
max_kb_per_request      64              1               127             rw
nice1                   1               0               1               rw
number                  2               0               3               rw
pio_mode                write-only      0               255             w
slow                    0               0               1               rw
unmaskirq               1               0               1               rw
using_dma               1               0               1               rw
The original thread is here . But I was told I was too off-topic for that thread - hence me opening a new one
 
Old 08-09-2004, 06:07 PM   #6
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,684

Rep: Reputation: 54
From your post I gather:
you are using slackware 10.0 and KDE (taken from the thread you mentioned) - this tells me next to nothing, because I don't use and have never run slackware, but I suppose that the kernel you are running is a standard one and not made by yourself - probably a 2.4.x kernel

uname -r would tell this...

Processor: AMD Duron 1 GHz - has MTRR and they are available (kernel-config-option)
VIA KT133 chipset on motherboard - AGP capable
...almost the same hardware I was using till last year...

SIS6326 GraphicsCard AGP-capable with 8 MB of memory on it (?) is this correct?

your DVD-drive is using DMA all right - no speed problem there...

you said you could play avi-files all right - with both players, I suppose?

Did you follow the thead until its end?

The most obvious thing - and the first one I'd check for here too - would be to make sure if you have libdvdcss installed - it is needed to compute the keys to decrypt an encrypted DVD - and usually any DVD is encrypted - this has nothing to do with playing a region 2 DVD on a region 2 drive...
If it is some original movie-DVD - it is encrypted and you need to have libdvdcss installed, so the player can display it correctly.

One (not very direct) way to check for this is: you use mplayer to play your DVD like:

mplayer dvd://1 (...)

when it starts doing nothing - or playing...whatever: if you after this examine the directory:

~/.mplayer there should be a directory ~/.mplayer/DVDKeys in it - whith another subdirectory containig the cracked key to this movie - mplayer stores these keys once they are cracked so they need not to be computed all over again every time you play the same DVD.

-if it is not there - it is likely that you dont have libdvdcss or it is not working/not used by the player for some reason

You can search your system for it with:

find /usr -name libdvdcss* -print

If you have it - there is another thing wich should be different from what it is now:

the output of "lsmod" shows an unused agpgart module - and no module at all for your graphics-card (not a loaded one...)
If your kernel does not include support for your graphics-card - this could be the problem:

please check if you have in /lib/modules/_kernel_version_/kernel/drivers/char/drm a module for your graphics-card

if you do - try to load it

that shall be it for now - and for today - back in 12 hours approx.
 
Old 08-10-2004, 04:37 AM   #7
snooo
LQ Newbie
 
Registered: Jul 2004
Posts: 17

Original Poster
Rep: Reputation: 0
libdvdcss is already installed - i downloaded and compiled it myself . So that isnt the problem - i have managed to play encrypted DVDs with both Xine and Mplayer, but not with XV.

What you've said about my system is pretty much correct. I've found a SiS module, but for some reason it refuses to load with insmod, giving the error messages:

sis.o: unresolved symbol sis_free
sis.o: unresolved symbol sis_malloc

Can't do anything more now as I have to get ready for work :-(
 
Old 08-10-2004, 05:46 AM   #8
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
The sis6326 is a bit of a dog. I have had it working and it's currently in a box I gave to my in-laws to get rid of it

I only just my first dvd drive today, so I haven't had much to do with libdvdcss. I downloaded it and installed it on MDK10 an hour ago and it worked fine with Totem on a bought dvd.

I'm using an nvidia card here though...

I'll have to play around here and read through some of the posts.
 
Old 08-10-2004, 06:50 AM   #9
proudclod
Member
 
Registered: May 2004
Distribution: Fedora Core 2
Posts: 381

Rep: Reputation: 30
Basically this is (or looks to be a lot like) a bug with xorg and the way it loads pixmaps into memory.

Try playing back video in mplayer, but make sure all webbrowsers, xmms etc are closed.
If it works, then that's the problem isolated.

Info here: http://freedesktop.org/bugzilla/show_bug.cgi?id=474

A Workaround is putting this in your xorg.conf: Option "XaaNoOffscreenPixmaps"
 
Old 08-10-2004, 08:30 AM   #10
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,684

Rep: Reputation: 54
What proudclod suggested is worth trying - I was about to suggest that too.
But I'm almost convinced, that this is an issue with the kernel you are running (the version and how it is set up - what is compiled in and what is compiled as a loadable module)
I know that I had trouble myself with an sis-card (specifically the sis.o module gave me the same errors - on a laptop).
It was eighter the kernel-support for sis was not complete in kernels from 2.4.x or it was XFree which did not have support for sis in version 4.3.0 - I remember to have patched the kernel-source to get rid of this issue...and it worked.

The details on it where on http://www.winischhofer.net/
or http://www.winischhofer.net/linuxsisvga.shtml

I would try to recompile the kernel - possibly applying a patch from the above website to fix this issue.
This way you would probably be able to load the module needed for your graphics-card - as it is now, there is now way I know of to make that happen - and this missing module might cause the problems you are having.
I could provide you with an almost (for you) usable kernel-config-file - because I backed that laptop up and have everything on my harddisk still. I was using (a patched) kernel-2.4.24, the harware was SiS - not just the graphics-card - but this would be easy to change (easier than going through the whole setup by yourself - should you never have done it before.
 
Old 08-11-2004, 04:55 AM   #11
snooo
LQ Newbie
 
Registered: Jul 2004
Posts: 17

Original Poster
Rep: Reputation: 0
Erm, I've beat you all on this score I've managed to get Xine to work with DVDs. It appears that the 6326 doesn't particularly like the planar YU12 colour scheme very much. Info is here. I've set an option in the Xorg.conf so that it does not utilise the YU12 mode. Worked first time, with xv, and is now a lot faster :-) .

This still does not explain why mplayer refuses to play DVDs. With the new option mplayer will change colour modes, but the display window still dissapears. So, I will try the other option and see if that clears it up :-)

Cheers,
Snooo.
 
Old 08-11-2004, 05:56 AM   #12
snooo
LQ Newbie
 
Registered: Jul 2004
Posts: 17

Original Poster
Rep: Reputation: 0
Mplayer's window is still dissapearing, even with adding the workaround. Very confused - as it now refuses to work with either xv or xshm, with which it previously did not have a problem...
 
Old 08-11-2004, 05:57 AM   #13
snooo
LQ Newbie
 
Registered: Jul 2004
Posts: 17

Original Poster
Rep: Reputation: 0
As for the kernel driver - it does not support my chipset :-/
 
Old 08-11-2004, 08:16 AM   #14
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,684

Rep: Reputation: 54
...so your problem got partially fixed?! Good!

Did you compile mplayer yourself - because that is the recommended (by the authors) thing to do.
I don't believe that I can add anything valuable here to help you further with your issues - I will watch the thread to learn something from it eventually...
 
Old 08-12-2004, 06:27 AM   #15
snooo
LQ Newbie
 
Registered: Jul 2004
Posts: 17

Original Poster
Rep: Reputation: 0
Yes it is (partially) fixed

It still does not explain why mplayer behaves so strangely with DVDs on my system. I will try to compile it myself - I have been using a slack pack from linuxpackages.net
 
  


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
gimp refuses to work JeTa Linux - Software 1 06-15-2005 12:45 PM
su command refuses to work lithiumfx Slackware 16 04-16-2005 05:20 PM
Apt-get refuses to work now jon_k Linux - Software 1 03-25-2005 02:55 PM
yum refuses to work arjun_sh Linux - Newbie 4 03-19-2005 06:52 AM
Audio refuses to work :( DaBlade Linux - Hardware 47 10-10-2004 05:31 PM


All times are GMT -5. The time now is 07:52 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration