You are not logged in.

#1 2014-07-12 21:52:41

leonixyz
Member
Registered: 2014-07-12
Posts: 62

Could not open DVD with libdvdcss

I installed vlc, xine-lib, xine-ui, mplayer, libdvdcss, libdvdnav, libdvdread.

I also installed "codecs" with packer.

I'm trying to play two different DVDs and the following is what I get (even putting the disk into /dev/sr0 or using another DVD won't change):

$ vlc /dev/sr1
VLC media player 2.1.5 Rincewind (revision 2.1.4-49-gdab6cb5)
[0x95b1220] pulse audio output error: PulseAudio server connection failure: Connection refused
[0x952a8f8] main libvlc: VLC wird mit dem Standard-Interface ausgeführt. Benutzen Sie 'cvlc', um VLC ohne Interface zu verwenden.
libdvdnav: Using dvdnav version 4.2.1
libdvdread: Could not open /dev/sr1 with libdvdcss.
libdvdread: Can't open /dev/sr1 for reading
libdvdnav: vm: failed to open/read the DVD
[0xb20a5e48] filesystem access error: read error: Input/output error
[0xb39a6e10] main stream error: cannot pre fill buffer
libdvdnav: Using dvdnav version 4.2.1
libdvdread: Could not open /dev/sr1 with libdvdcss.
libdvdread: Can't open /dev/sr1 for reading
libdvdnav: vm: failed to open/read the DVD
libdvdread: Could not open /dev/sr1 with libdvdcss.
libdvdread: Can't open /dev/sr1 for reading
[0xb1abe3f8] dvdread demux error: DVDRead cannot open source: /dev/sr1
[0xb5a03700] main input error: open of `dvd:///dev/sr1' failed
$ mplayer /dev/sr1
MPlayer SVN-r37224 (C) 2000-2014 MPlayer Team
210 audio & 441 video codecs

Playing /dev/sr1.
File not found: '/dev/sr1'
Failed to open /dev/sr1.


Exiting... (End of file)
$ xine /dev/sr1
Dies ist xine (X11 gui) - Ein freier Video-Player v0.99.8-[DEBUG].
(c) 2000-2010 The xine Team.
videowin: display is using xinerama with 1 screens
videowin: going to assume we are using the first screen.
videowin: size of the first screen is 1024x768.
videowin: Xinerama fullscreen parameters: X_origin=0 Y_origin=0 Width=1024 Height=768
pixel_aspect: 0.997627
Failed to open VDPAU backend libvdpau_nouveau_vieux.so: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden
vo_vdpau: Can't create vdp device : No vdpau implementation.
xv_set_property: property=1, value=0
xine: could not connect to socket
xine: Datei oder Verzeichnis nicht gefunden

this is my video card

01:00.0 VGA compatible controller: NVIDIA Corporation NV11 [GeForce2 MX200] (rev b2) (prog-if 00 [VGA controller])
	Subsystem: CardExpert Technology Device 0001
	Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 16
	Memory at d6000000 (32-bit, non-prefetchable) [size=16M]
	Memory at d8000000 (32-bit, prefetchable) [size=128M]
	Expansion ROM at d7ff0000 [disabled] [size=64K]
	Capabilities: [60] Power Management version 2
	Capabilities: [44] AGP version 2.0
	Kernel driver in use: nouveau
	Kernel modules: nouveau

these commands were asked me on freenode's #archlinux channel:

$ stat /dev/sr0
  Datei: „/dev/sr0“
  Größe: 0         	Blöcke: 0          EA Block: 4096   blockorientierte Spezialdatei
Gerät: 5h/5d	Inode: 6351        Verknüpfungen: 1     Gerätetyp: b,0
Zugriff: (0660/brw-rw----)  Uid: (    0/    root)   Gid: (   93/ optical)
Zugriff    : 2014-07-12 22:52:20.959057344 +0200
Modifiziert: 2014-07-12 22:52:20.959057344 +0200
Geändert   : 2014-07-12 22:52:20.959057344 +0200
 Geburt    : -
$ getfacl /dev/sr0
# file: dev/sr0
# owner: root
# group: optical
user::rw-
user:christian:rw-
group::rw-
mask::rw-
other::---
$ loginctl show-session $XDG_SESSION_ID -p Active
Active=yes

I feel like some other driver is missing...

Last edited by leonixyz (2014-07-12 21:58:01)

Offline

#2 2014-07-13 02:44:15

dodo3773
Member
Registered: 2011-03-17
Posts: 801

Re: Could not open DVD with libdvdcss

Can you test a regular video file and it works fine in vlc?  "codecs" package is not an optional or regular dependency for vlc as far as I know (you can look at this with "pacman -Qi vlc").  Have you tried going into vlc and trying a different video driver to see if that works? I ask this because of this from what you posted:

Failed to open VDPAU backend libvdpau_nouveau_vieux.so: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden
vo_vdpau: Can't create vdp device : No vdpau implementation.

Also, do you get any output from this command?:

dmesg | grep CD

For example on my machine that spits out:

[    2.310528] ata3.00: ATAPI: TSSTcorp CDDVDW TS-L633F, TM00, max UDMA/100
[    2.325219] scsi 2:0:0:0: CD-ROM            TSSTcorp CDDVDW TS-L633F  TM00 PQ: 0 ANSI: 5
[    2.677864] cdrom: Uniform CD-ROM driver Revision: 3.20
[    2.678199] sr 2:0:0:0: Attached scsi CD-ROM sr0

So that way I know it is "/dev/sr0". Aside from checking those two things I have no idea.

Offline

#3 2014-07-13 12:59:42

leonixyz
Member
Registered: 2014-07-12
Posts: 62

Re: Could not open DVD with libdvdcss

dodo3773 wrote:

Can you test a regular video file and it works fine in vlc?

ok, one step toward the solution:
I've scp-ed an .mp4 and an .mpg from my laptop, chmod 777 them and finally I can play them

dodo3773 wrote:

Also, do you get any output from this command?:

dmesg | grep CD
$ dmesg | grep CD
[    1.227637] scsi 0:0:0:0: CD-ROM            HL-DT-ST CD-RW GCE-8320B  1.02 PQ: 0 ANSI: 5
[    1.238061] scsi 0:0:1:0: CD-ROM            LG       DVD-ROM DRD8160B 1.01 PQ: 0 ANSI: 5
[    1.458996] cdrom: Uniform CD-ROM driver Revision: 3.20
[    1.459461] sr 0:0:0:0: Attached scsi CD-ROM sr0
[    1.471069] sr 0:0:1:0: Attached scsi CD-ROM sr1
[ 1286.396790] sr 0:0:1:0: [sr1] CDB: 
[ 1286.426850] sr 0:0:1:0: [sr1] CDB: 
$ pacman -Qi vlc
Name           : vlc
Version              : 2.1.5-1
Beschreibung         : A multi-platform MPEG, VCD/DVD, and DivX player
Architektur          : i686
URL                  : http://www.videolan.org/vlc/
Lizenzen             : LGPL2.1  GPL2
Gruppen              : Nichts
Stellt bereit        : Nichts
Hängt ab von         : a52dec  libdvbpsi  libxpm  libdca  qt4  libproxy  sdl_image  libdvdnav  libtiger
                       lua  libmatroska  zvbi  taglib  libmpcdec  ffmpeg  faad2  libupnp  libshout  libmad
                       libmpeg2  xcb-util-keysyms  libtar  libxinerama
Optionale Abhängigkeiten: avahi: for service discovery using bonjour protocol[Installiert]
                          libnotify: for notification plugin[Installiert]
                          ncurses: for ncurses interface support[Installiert]
                          libdvdcss: for decoding encrypted DVDs[Installiert]
                          lirc-utils: for lirc plugin[Installiert]
                          libavc1394: for devices using the 1394ta AV/C
                          libdc1394: for IEEE 1394 plugin
                          kdelibs: KDE Solid hardware integration
                          libva-vdpau-driver: vdpau back-end for nvidia[Installiert]
                          libva-intel-driver: back-end for intel cards
                          libbluray: for Blu-Ray support[Installiert]
                          flac: for Free Lossless Audio Codec plugin[Installiert]
                          portaudio: for portaudio support
                          twolame: for TwoLAME mpeg2 encoder plugin
                          projectm: for ProjectM visualisation plugin
                          libcaca: for colored ASCII art video output[Installiert]
                          libgme: for libgme plugin
                          librsvg: for SVG plugin[Installiert]
                          gnome-vfs: for GNOME Virtual File System support
                          libgoom2: for libgoom plugin
                          vcdimager: navigate VCD with libvcdinfo
                          aalib: for ASCII art plugin[Installiert]
                          libmtp: for MTP devices support
                          smbclient: for SMB access plugin[Installiert]
                          libcdio: for audio CD playback support[Installiert]
                          ttf-freefont: for subtitle font 
                          ttf-dejavu: for subtitle font
                          opus: for opus support[Installiert]
                          libssh2: for sftp support[Installiert]
                          lua-socket: for http interface
Benötigt von         : Nichts
Optional für: Nichts
Konflikt mit         : vlc-plugin
Ersetzt              : vlc-plugin
Installationsgröße:  44319,00 KiB
Packer               : Giovanni Scafora <giovanni@archlinux.org>
Erstellt am          : Mi 09 Jul 2014 15:14:36 CEST
Installiert am       : Sa 12 Jul 2014 21:15:04 CEST
Installationsgrund   : Ausdrücklich installiert
Installations-Skript : Ja
Verifiziert durch: Signatur

Offline

#4 2014-07-13 21:06:31

dodo3773
Member
Registered: 2011-03-17
Posts: 801

Re: Could not open DVD with libdvdcss

So you have two disk drives one is cd only and one is dvd? I guess this is a desktop? Put the disk in the LG one "/dev/sr1" and try to use a generic video driver and see if it plays.

Edit: Also, what about a burnt dvd? Have any of those you could try (as in unencrypted but still in dvd format on a disk)?

Last edited by dodo3773 (2014-07-13 21:07:20)

Offline

#5 2014-07-13 23:09:35

ConnorBehan
Package Maintainer (PM)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,359
Website

Re: Could not open DVD with libdvdcss

Calling mplayer on the device node isn't supposed to work. I do

ln -s /dev/sr1 /dev/dvd
mplayer dvdnav://

6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.

Offline

#6 2014-07-29 17:01:07

leonixyz
Member
Registered: 2014-07-12
Posts: 62

Re: Could not open DVD with libdvdcss

ConnorBehan wrote:

Calling mplayer on the device node isn't supposed to work. I do

ln -s /dev/sr1 /dev/dvd
mplayer dvdnav://

I symlinked /dev/dvd to /dev/sr1, but...

$ mplayer dvdnav://
MPlayer SVN-r37224 (C) 2000-2014 MPlayer Team
210 audio & 441 video codecs

Playing dvdnav://.
libdvdnav: Using dvdnav version MPlayer-custom
libdvdread: Could not open /dev/dvd with libdvdcss.
libdvdread: Can't open /dev/dvd for reading
libdvdnav: vm: failed to open/read the DVD
Couldn't open DVD device: /dev/dvd (No medium found)
No stream found to handle url dvdnav://


Exiting... (End of file)
dodo3773 wrote:

So you have two disk drives one is cd only and one is dvd? I guess this is a desktop? Put the disk in the LG one "/dev/sr1" and try to use a generic video driver and see if it plays.

Edit: Also, what about a burnt dvd? Have any of those you could try (as in unencrypted but still in dvd format on a disk)?

Unfortunately I have no unencrypted dvd, as far as I know: I have a few original Disney movies, and some other movies that were shipped together with a magazine called "TV sorrisi e canzoni", nothing written by myself. They are all DVDs, I'm sure of that.

However, how do I choose which video driver to use? vlc -V x11 /dev/sr1 for example? (That doesn't work, gives the same error)

Last edited by leonixyz (2014-07-29 17:12:43)

Offline

#7 2014-07-29 17:45:42

dodo3773
Member
Registered: 2011-03-17
Posts: 801

Re: Could not open DVD with libdvdcss

However, how do I choose which video driver to use? vlc -V x11 /dev/sr1 for example? (That doesn't work, gives the same error)

Should be settings in vlc gui I think. I use smplayer so not realy sure.

Offline

#8 2014-07-30 17:26:33

teckk
Member
Registered: 2013-02-21
Posts: 518

Re: Could not open DVD with libdvdcss

Find out which title on the DVD you want, something like

lsdvd /dev/sr1

How about

mplayer -dvd-device /dev/sr1 dvd://1

or

mplayer -dvd-device /dev/sr1 dvdnav://

You can also set that in ~/.mplayer/config
such as:

dvd-device = /dev/sr0
vf=eq=10
nosub = 1
vo = xv

Last edited by teckk (2014-07-30 17:30:19)

Offline

#9 2014-08-03 15:02:20

leonixyz
Member
Registered: 2014-07-12
Posts: 62

Re: Could not open DVD with libdvdcss

teckk wrote:

Find out which title on the DVD you want, something like

lsdvd /dev/sr1
$ lsdvd /dev/sr1
libdvdread: Could not open /dev/sr1 with libdvdcss.
libdvdread: Can't open /dev/sr1 for reading
Can't open disc /dev/sr1!




teckk wrote:

How about

mplayer -dvd-device /dev/sr1 dvd://1
$ mplayer -dvd-device /dev/sr1 dvd://1
MPlayer SVN-r37224 (C) 2000-2014 MPlayer Team
210 audio & 441 video codecs

Playing dvd://1.
libdvdread: Could not open /dev/sr1 with libdvdcss.
libdvdread: Can't open /dev/sr1 for reading
Couldn't open DVD device: /dev/sr1 (No medium found)
No stream found to handle url dvd://1


Exiting... (End of file)





teckk wrote:

or

mplayer -dvd-device /dev/sr1 dvdnav://
$ mplayer -dvd-device /dev/sr1 dvdnav://
MPlayer SVN-r37224 (C) 2000-2014 MPlayer Team
210 audio & 441 video codecs

Playing dvdnav://.
libdvdnav: Using dvdnav version MPlayer-custom
libdvdread: Could not open /dev/sr1 with libdvdcss.
libdvdread: Can't open /dev/sr1 for reading
libdvdnav: vm: failed to open/read the DVD
Couldn't open DVD device: /dev/sr1 (No medium found)
No stream found to handle url dvdnav://


Exiting... (End of file)

Offline

#10 2014-08-03 18:51:02

teckk
Member
Registered: 2013-02-21
Posts: 518

Re: Could not open DVD with libdvdcss

$ lsdvd /dev/sr1
libdvdread: Could not open /dev/sr1 with libdvdcss.
libdvdread: Can't open /dev/sr1 for reading
Can't open disc /dev/sr1!

That would be what you need to solve, what device your DVD drive is.

A few thoughts. Forgive the dumb questions.
Are you sure they are DVD and not Bluray?
Same DVD region as your drive?
That is a DVD drive?
Are you up to date with pacman -Syu? No partial updates?
Rebooted since kernel update?

lsdvd says that it can't read the disk. It will do that on an empty drive or with a bluray disk.
What is the output of pacman -Ss libdvdcss. Looks like 1.2.13-3 is latest.

https://wiki.archlinux.org/index.php/Op … VD_playing

If you can find out any more info, post it. I can't tell other than. the disk is no good, the drive is no good, wrong kind of disk or drive, mismatched dvdcss and player..

Most DVD drives will play CD also. You have an audio CD? Will it play?

mplayer cdda://1

Offline

Board footer

Powered by FluxBB