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-14-2006, 09:55 AM   #1
nomb
Member
 
Registered: Jan 2006
Distribution: Debian Testing
Posts: 675

Rep: Reputation: 58
quick question about xine


hey guys I'm trying to play a dvd with xine and it loads and dislplays the piracy warning then it seems when it goes to switch screens it says:

The source can't be read. Maybe you don't have enough rights for this, or source doesn't contain data. (e.g: not disc is drive) (Error reading from DVD.)

then looking at the messages I see:

Unable to read plugin directory /root/.xine/plugins

last but not least in the terminal I get:

libdvdread: Encrypted DVD support unavailable.
bad_frame


Any suggestions? Thanks guys
nomb
 
Old 08-14-2006, 10:33 AM   #2
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,640

Rep: Reputation: 144Reputation: 144
Quote:
Originally Posted by nomb
Encrypted DVD support unavailable.
Do you have libdvdcss installed?
 
Old 08-14-2006, 10:38 AM   #3
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,983

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
Almost all commercial dvds are encrypted with a weak encryption. For legal reasons, almost all linux distros do not include the library necessary to decode and play commercial dvds. The library you need to install is called "libdvdcss" which is widely available on the net. How you find and install that depends on the distro you are using. Most of the majors have unofficial repos with things they can't legally distribute like libdvdcss and win32 codecs.
 
Old 08-14-2006, 11:53 PM   #4
nomb
Member
 
Registered: Jan 2006
Distribution: Debian Testing
Posts: 675

Original Poster
Rep: Reputation: 58
thanks guys that worked great now if i could just fix the amount of frames that drop.... got anything for that???
 
Old 08-15-2006, 01:56 AM   #5
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,983

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
Is dma enabled on the drive? You can check by running:

$ su
<enter root password>
# hdparm <device file for dvd drive>

On most distros you can use /dev/dvd for the device file for the drive.
 
Old 08-16-2006, 11:53 PM   #6
nomb
Member
 
Registered: Jan 2006
Distribution: Debian Testing
Posts: 675

Original Poster
Rep: Reputation: 58
Guess it isn't. This is what I got.

/dev/dvd:
IO_support = 0 (default 16-bit)
unmaskirq = 0 (off)
using_dma = 0 (off)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 256 (on)
HDIO_GETGEO failed: Inappropriate ioctl for device

altho to use, the command su doesn't work ever since i've updated my kernel. I have to use "su -". How do I enable dma and do you have any idea how I can fix the su problem?

Thanks,
nomb
 
Old 08-17-2006, 12:21 AM   #7
nomb
Member
 
Registered: Jan 2006
Distribution: Debian Testing
Posts: 675

Original Poster
Rep: Reputation: 58
well figured out the command
hdparm -d1 /dev/dvd

however i'm getting this:

/dev/dvd:
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Operation not permitted
using_dma = 0 (off)

got any ideas? I was su -

nomb
 
Old 08-17-2006, 05:52 PM   #8
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,983

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
Where is the dvd drive on the ide bus, i.e. master or slave??

This could be caused by a lot of things. Some optical drives will not allow dma to be enabled when they are in the slave posititon with another optical drive on the same ide channel. Some insist on being in the master position for dma no matter what.

A starting point is to examine and determine your whole ide configuration. The typical motherboard has two ide channels("Primary" and "Secondary" or "IDE-0" and "IDE-1") with each channel capable of connecting two drives, one in the "Master" position and the other in the "Slave" position. Note which drives are on each ide cable and what position they are in. To determine how your dvd drive is setup run:

$ ls -l /dev/dvd

/dev/dvd is just a link to the actual device file which will be hda for primary master, hdb for primary slave, hdc for secondary master and hdd for secondary slave. The above command will tell you which one /dev/dvd points to.

Also, it could be a software issue with the kernel and the motherboard hardware. In that case, you might not get dma enabled on the hard drives as well.
 
Old 08-17-2006, 11:28 PM   #9
nomb
Member
 
Registered: Jan 2006
Distribution: Debian Testing
Posts: 675

Original Poster
Rep: Reputation: 58
actually its on a laptop and the drive is sata not ide is that a problem?

nomb
 
Old 08-20-2006, 08:48 PM   #10
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,983

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
That's a huge problem. dma has no application to sata drives in general as they operate under a scsi protocol. dma is strictly for ide drives. Linux support for optical sata drives is not very good at present. This undoubtedly accounts for your poor performance. I don't know if there is much you can do about it other than try and get the most recent kernel you can and hope that ATAPI support for optical sata drives improves. These devices are so new that it will take a while for the kernel to catch up.
 
Old 08-21-2006, 11:20 PM   #11
nomb
Member
 
Registered: Jan 2006
Distribution: Debian Testing
Posts: 675

Original Poster
Rep: Reputation: 58
I was wrong... my harddrive is sata. My cddrive should be ide. How can I see where it is installed cause I really wanna get it working. Thanks,
nomb
 
Old 08-22-2006, 02:52 AM   #12
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,640

Rep: Reputation: 144Reputation: 144
As root type dmesg to view the boot messages. There should be some messages about your cdrom being recognized and given a name. If your cdrom is your only IDE drive (cdrom or harddisk) it should be named hda.
 
Old 08-22-2006, 03:27 PM   #13
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,983

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
As noted above, running:

$ ls -l /dev/dvd

will tell you what device node your drive is on. Post the output here if you are not sure how to interpret this. It is probably hda.
 
Old 08-23-2006, 12:05 AM   #14
nomb
Member
 
Registered: Jan 2006
Distribution: Debian Testing
Posts: 675

Original Poster
Rep: Reputation: 58
Here is my output:

lrwxrwxrwx 1 root root 3 Aug 22 03:55 /dev/dvd -> hdc

Thanks for helping hopefully we can get it working.

nomb
 
Old 08-23-2006, 11:33 AM   #15
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,983

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
If you haven't already done so, try changing the dma directly on /dev/hdc with hdparm:

# hdparm -d1 /dev/hdc
 
  


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
Question Concerning ISO's and one quick question. evrae Linux - Software 2 06-21-2004 03:53 AM
samba smb.config question (quick question) TheDOGG Linux - Networking 1 03-02-2004 07:19 AM
quick question akshunj Linux - Software 1 12-14-2003 02:53 PM
Quick Question XPediTioN Slackware 2 08-09-2003 12:38 AM
Quick Question SuperRye Linux - Newbie 1 02-12-2002 05:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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