Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Multimedia
  • Search

playing dvds with mplayer/vlc

Help with creation, editing, or playback of sounds, images, or video. Amarok, audacious, mplayer, grip, cdparanoia and anything else that makes a sound or plays a video.
Post Reply
Advanced search
16 posts • Page 1 of 1
Author
Message
Netfeed
n00b
n00b
Posts: 19
Joined: Sat Jan 24, 2004 8:21 pm

playing dvds with mplayer/vlc

  • Quote

Post by Netfeed » Wed Jul 26, 2006 11:18 pm

hello

im trying to get my dvd player working

mplayer is emerge with what is needed(i think, cant find anything for libdvdcss2) and ive tried:

mplayer dvd://
mplayer /mnt/cdrom (mountpoint)
mplayer /dev/dvd
mplayer /dev/hdc

neither works

got one movie working with:

vlc /mnt/cdrom

but i cant recreate this now after i tried another dvd, im getting this error message:

Code: Select all

libdvdread: Attempting to use device /dev/hdc mounted on /mnt/cdrom for CSS authentication
libdvdread: Could not open /dev/hdc with libdvdcss.
libdvdread: Can't open /dev/hdc for reading
libdvdread: Device /dev/hdc inaccessible, CSS authentication not available.
libdvdnav: Can't read name block. Probably not a DVD-ROM device.
libdvdnav: Unable to find map file '/home/netfeed/.dvdnav/.map'
libdvdnav: DVD disk reports itself with Region mask 0x00f50000. Regions: 2 4
[00000223] main playlist: nothing to play
[00000223] main playlist: stopping playback
so im strating to wonder if there is something that i have missed with either my mount(mount /dev/dvd /mnt/cdrom) or there is something else that is wrong(kernel, missing some driver, wrong useflags or something simillar)

anyone that got an idea of what i can do to solve this?
tie me up, spank me hard and call me virgin mary
Top
yabbadabbadont
Advocate
Advocate
User avatar
Posts: 4791
Joined: Fri Mar 14, 2003 12:02 am
Location: 2 exits past crazy

  • Quote

Post by yabbadabbadont » Wed Jul 26, 2006 11:28 pm

When you emerged mplayer and vlc, did you have both the dvd and css USE flags enabled? If not, enable them and re-emerge them (mplayer and vlc that is).

To enable them, just edit /etc/make.conf and add them (dvd and css that is).
Bones McCracker wrote:On the other hand, regex is popular with the ladies.
Top
flysideways
Guru
Guru
Posts: 527
Joined: Sat Jan 29, 2005 1:06 pm

  • Quote

Post by flysideways » Thu Jul 27, 2006 12:46 am

First, do you have libdvdcss emerged? genlop libdvdcss That's what takes care of decryption.

Was the dvd that worked in vlc encrypted?

mplayer dvd:// works for me.

mplayer /dev/dvd or mplayer /dev/hdd (my dvd location) don't work.

Code: Select all

K8II ~ # emerge -vp mplayer

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] media-video/mplayer-1.0_pre8  USE="X alsa doc dvb dvd dvdread encode gif gtk ipv6 jpeg lirc nvidia opengl png sdl xv xvmc -aac -aalib -arts -bidi -bindist -bl -cdparanoia -cpudetection -custom-cflags -debug -dga -directfb -dts -dv -esd -fbcon -ggi -i8x0 -jack -joystick -libcaca -live -livecd -lzo -mad -matrox -musepack -nas -openal -oss -rtc -samba -speex -tga -theora -truetype -unicode -v4l -v4l2 -vorbis -x264 -xanim -xinerama -xmms -xvid"
Don't see any css flag. May have been deprecated. equery uses mplayer also doesn't show a css flag. I'd check for the libdvdcss package.

Edit: I prefer xine-ui for just watching dvds, it does menus correctly. mplayer is way cool for playing just about any other format though.
Top
repolho
n00b
n00b
Posts: 26
Joined: Fri Jun 30, 2006 3:24 pm

  • Quote

Post by repolho » Thu Jul 27, 2006 4:06 am

Telling mplayer wich device to use should be something like this:

Code: Select all

mplayer dvd://1 -dvd-device /dev/hdc
Edit:
The USE flag you should use for mplayer to have libdvdcss support is "dvdread" wich will install libdvdread wich will install libdvdcss
Top
Netfeed
n00b
n00b
Posts: 19
Joined: Sat Jan 24, 2004 8:21 pm

  • Quote

Post by Netfeed » Thu Jul 27, 2006 9:29 am

thanks for the answears

dvd and dvdread use flags is enabled

and i dont know if the dvd was encrypted or not, couldnt play the dvd the second time

mplayer dvd://1 -dvd-device /mnt/cdrom

gives this output:

Code: Select all

MPlayer 1.0pre8-3.4.6 (C) 2000-2006 MPlayer Team
CPU:         Intel(R) Pentium(R) M processor 1600MHz (Family: 6, Model: 9, Stepping: 5)
MMX2 supported but disabled
CPUflags:  MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX SSE SSE2


93 audio & 211 video codecs

Playing dvd://1.
libdvdread: Using libdvdcss version 1.2.9 for DVD access
libdvdread: Attempting to use device /dev/hdc mounted on /mnt/cdrom for CSS authentication
libdvdread: Could not open /dev/hdc with libdvdcss.
libdvdread: Can't open /dev/hdc for reading
libdvdread: Device /dev/hdc inaccessible, CSS authentication not available.
Reading disc structure, please wait...
There are 5 titles on this DVD.
There are 32 chapters in this DVD title.
There are 1 angles in this DVD title.
DVD successfully opened.


MPlayer interrupted by signal 2 in module: demux_open
last line is me ctrl+c it after looking at DVD successfully opened for 3 min

same thing with vlc didnt even give me a vlc ui to look at, but i had to kill vlc to umount the dvd

i could use xine for it but i want it to work with mplayer/vlc as it says it is possible in the man-page/help

EDIT:

ive tried xine-ui now and im getting this:

Code: Select all

libdvdread: Using libdvdcss version 1.2.9 for DVD access
libdvdread: Could not open /dev/dvd with libdvdcss.
libdvdread: Can't open /dev/dvd for reading
libdvdcss nor /dev/dvd doesnt love me
tie me up, spank me hard and call me virgin mary
Top
Bill Thompson
Tux's lil' helper
Tux's lil' helper
Posts: 139
Joined: Fri Jan 21, 2005 2:02 pm

  • Quote

Post by Bill Thompson » Thu Jul 27, 2006 1:04 pm

In xine did you link your cdrom to /dev/dvd? Such as: ln -s /dev/hdx /dev/dvd
Top
Netfeed
n00b
n00b
Posts: 19
Joined: Sat Jan 24, 2004 8:21 pm

  • Quote

Post by Netfeed » Thu Jul 27, 2006 4:50 pm

Bill Thompson wrote:In xine did you link your cdrom to /dev/dvd? Such as: ln -s /dev/hdx /dev/dvd
hmm, no where should i do this? in the dvd device field it says /dev/dvd
tie me up, spank me hard and call me virgin mary
Top
repolho
n00b
n00b
Posts: 26
Joined: Fri Jun 30, 2006 3:24 pm

  • Quote

Post by repolho » Thu Jul 27, 2006 6:27 pm

Netfeed wrote:mplayer dvd://1 -dvd-device /mnt/cdrom
You shouldn't do this.
If this is a video dvd (the one you watch on a dvd player) you don't have to mount it, just put it in the drive and open it from the device.
If this is a data dvd, you should mount it, 'cd' to the mountpoint and play the files inside with 'mplayer some_video.avi' or something, and not with 'mplayer dvd://1'.

I'm not quite sure about what's happening to libdvdread though. It says it can't open the device and then it says it opened it successfully.
Are you sure this dvd is good? have you played it somewhere else?
Netfeed wrote:hmm, no where should i do this? in the dvd device field it says /dev/dvd
Thing is /dev/dvd is not really the device, it's a link to the real device. I think Bill Thompson means that maybe xine can't open /dev/dvd because it is linking to the wrong device.
You can check with a

Code: Select all

ls -l /dev/dvd
Top
Netfeed
n00b
n00b
Posts: 19
Joined: Sat Jan 24, 2004 8:21 pm

  • Quote

Post by Netfeed » Fri Jul 28, 2006 1:12 pm

a ls -l /dev/dvd says that says that its pointed to hdc, but i think i know what it can be, not sure thougth. got this in /etc/fstab:

Code: Select all

/dev/cdroms/cdrom0      /mnt/cdrom      iso9660         noauto,ro       0 0
could it be that it must be something like:

Code: Select all

/dev/dvd      /mnt/dvd      iso9660         noauto,ro       0 0
to work properly?

EDIT:

nope, there was no change in the behavior there :(
tie me up, spank me hard and call me virgin mary
Top
cwest
n00b
n00b
User avatar
Posts: 72
Joined: Mon Jun 13, 2005 9:41 am
Location: Oslo, Norway
Contact:
Contact cwest
Website

  • Quote

Post by cwest » Fri Jul 28, 2006 2:53 pm

Nothing about fstab, as /etc/fstab is merely for mounting. You don't need to mount the DVD, it reads it directly. Methinks libdvdcss needs write permissions to the device, but not sure.

1:
Is it a permission error? (AKA test it quick n' dirty - sudo vlc dvd://)

2:
Is it a symbolic link gone bad? (IE ls -l /dev/dvd should output the /dev/hd? where the DVD's really located)
freelight wrote:Any society that can be destroyed by the free flow of information probably should be.
Top
Netfeed
n00b
n00b
Posts: 19
Joined: Sat Jan 24, 2004 8:21 pm

  • Quote

Post by Netfeed » Fri Jul 28, 2006 3:58 pm

cwest wrote:Nothing about fstab, as /etc/fstab is merely for mounting. You don't need to mount the DVD, it reads it directly. Methinks libdvdcss needs write permissions to the device, but not sure.

1:
Is it a permission error? (AKA test it quick n' dirty - sudo vlc dvd://)
result! yes, i got a result :)
but eh, it wasnt really what i expected, it started to spark(rigth word i hope) and then i got the picture in the terminal instead of in its own window

guess that its a permission error

EDIT:

yeah :)
chmod +r /dev/hdc did the works, but i lost my sound :)
tie me up, spank me hard and call me virgin mary
Top
cwest
n00b
n00b
User avatar
Posts: 72
Joined: Mon Jun 13, 2005 9:41 am
Location: Oslo, Norway
Contact:
Contact cwest
Website

  • Quote

Post by cwest » Fri Jul 28, 2006 4:10 pm

Netfeed wrote: yeah :)
chmod +r /dev/hdc did the works, but i lost my sound :)
Be sure that you've added yourself to the "cdrom" and "cdrw" groups (comma delimited in /etc/group), like this:
cdrom:x:12:foobar,netfeed
cdrw:x:13:foobar,netfeed
(Or use the command line tools if you want, or even the GUI tools if you like that the best)
freelight wrote:Any society that can be destroyed by the free flow of information probably should be.
Top
Netfeed
n00b
n00b
Posts: 19
Joined: Sat Jan 24, 2004 8:21 pm

  • Quote

Post by Netfeed » Fri Jul 28, 2006 4:57 pm

well, i cant get sound in mp3:s, movies or dvd:s

tried alsamixer and if i turn on PCM i can get some sound in avi-files and mp3:s but if i then tries to turn on a dvd there is just a noise that sounds, nothing else
i dont know if PCM was on or off before, but it gives me atleast some audio on everything except dvd:s

EDIT:

seems like the noise was only on that movie, i have to test this more before i know for sure, but i guess that this could be counted as solved
tie me up, spank me hard and call me virgin mary
Top
Growlizing
Tux's lil' helper
Tux's lil' helper
Posts: 94
Joined: Mon Jul 25, 2005 5:00 pm

  • Quote

Post by Growlizing » Sun Aug 06, 2006 11:10 pm

Got about the same problem, but I can play mp3s with sound. Here's what happen when I try to watch a DVD:

Code: Select all

artemis@artemis-laptop ~ $ mplayer dvd://

MPlayer 1.0pre8-3.4.4 (C) 2000-2006 MPlayer Team
CPU:         Intel(R) Pentium(R) M processor 1.73GHz (Family: 6, Model: 13, Stepping: 8)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2


93 audio & 211 video codecs

Playing dvd://.
libdvdread: Using libdvdcss version 1.2.9 for DVD access
Reading disc structure, please wait...
There are 22 titles on this DVD.
There are 2 chapters in this DVD title.
There are 1 angles in this DVD title.

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 0x0000014f
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_0.VOB at 0x00000222
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x000002dd
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_0.VOB at 0x0000030e
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_1.VOB at 0x00000495
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_0.VOB at 0x000004b6
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_1.VOB at 0x00000571
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_04_0.VOB at 0x0000059c
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_04_1.VOB at 0x00000712
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_05_0.VOB at 0x00000733
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_05_1.VOB at 0x0000080e
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_06_0.VOB at 0x00000825
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_06_1.VOB at 0x000008e0
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_07_0.VOB at 0x000008f6
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_07_1.VOB at 0x00000a6c
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_08_0.VOB at 0x00000ac1
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_08_1.VOB at 0x000167b0
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_09_0.VOB at 0x0022fdda
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_09_1.VOB at 0x0022fe95
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_10_0.VOB at 0x0022feb5
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_10_1.VOB at 0x0022ff70
libdvdread: Elapsed time 0
libdvdread: Found 10 VTS's
libdvdread: Elapsed time 0
DVD successfully opened.
MPEG-PS file format detected.
MPEG: No audio stream found -> no sound.
VIDEO:  MPEG2  720x480  (aspect 2)  29.970 fps  4587.2 kbps (573.4 kbyte/s)
Xlib:  extension "XFree86-VidModeExtension" missing on display ":0.0".
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 480 (preferred colorspace: 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.
Try adding the scale filter, e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
==========================================================================
Audio: no sound
Starting playback...
VDec: vo config request - 720 x 480 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [xv] 720x480 => 720x540 Planar YV12
V:   0.5   2/  2 ??% ??% ??,?% 0 0

Exiting... (End of file)
My mplayer use flags:

Code: Select all

artemis-laptop artemis # emerge -pv mplayer  

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] media-video/mplayer-1.0_pre8  USE="X alsa arts dvd encode gif gtk ipv6 jpeg mad opengl oss png sdl truetype vorbis win32codecs xmms xv -3dfx -3dnow -3dnowext -aac -aalib -bidi -bindist -bl -cdparanoia -cpudetection -custom-cflags -debug -dga -directfb -doc* -dts -dv -dvb* -dvdread* -esd -fbcon -ggi -i8x0 -jack -joystick -libcaca -lirc -live -livecd -lzo -matrox -mmx* -mmxext* -musepack -nas -nvidia -openal -real -rtc -samba -speex -sse* -sse2* -svga -tga -theora -unicode -v4l -v4l2 -x264 -xanim -xinerama -xvid* -xvmc" 0 kB

Total size of downloads: 0 kB
Anyone that can help us?

Edit:
These two lines puzzles me:

Code: Select all

MPEG-PS file format detected.
MPEG: No audio stream found -> no sound. 
Can anyone illuminate me on this?
Is this where I write something clever?
Top
repolho
n00b
n00b
Posts: 26
Joined: Fri Jun 30, 2006 3:24 pm

  • Quote

Post by repolho » Mon Aug 14, 2006 3:11 am

Well, mplayer is telling you there's no audio stream.
You could try

Code: Select all

mplayer dvd://1 -identify
then take a look at the audio stream mplayer lists.
If there is any, you can try to play them with

Code: Select all

mplayer dvd://1 -aid <stream number>
Top
osbourd2
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 91
Joined: Tue Mar 09, 2004 10:11 am
Location: Cardiff, UK

  • Quote

Post by osbourd2 » Sat Aug 19, 2006 7:46 pm

Netfeed wrote:
cwest wrote:Nothing about fstab, as /etc/fstab is merely for mounting. You don't need to mount the DVD, it reads it directly. Methinks libdvdcss needs write permissions to the device, but not sure.

1:
Is it a permission error? (AKA test it quick n' dirty - sudo vlc dvd://)
result! yes, i got a result :)
but eh, it wasnt really what i expected, it started to spark(rigth word i hope) and then i got the picture in the terminal instead of in its own window

guess that its a permission error

EDIT:

yeah :)
chmod +r /dev/hdc did the works, but i lost my sound :)
Ah, excellent. I was having the same trouble, but decided to add my users into the cdrom group, rather than give global read access to hda :)
Top
Post Reply

16 posts • Page 1 of 1

Return to “Multimedia”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic