Cannot get DVD playback to work

evening all, im not managing to get DVD playback to work. I’ve installed libdvdcss2 from dvd repository. I have also installed libdvdnav4, libdvdread4 and libdvdplay0. Im using VLC to try to play. VLC outputs error as follows.

matt@linux-3o78:~> vlcVLC media player 2.2.4 Weatherwax (revision 2.2.4)
[00000000021360b8] core libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
libdvdnav: Using dvdnav version 5.0.3
libdvdread: Could not open /dev/sr0 with libdvdcss.
libdvdread: Can't open /dev/sr0 for reading
libdvdnav: vm: failed to open/read the DVD
libdvdread: Could not open /dev/sr0 with libdvdcss.
libdvdread: Can't open /dev/sr0 for reading
[00007fdde0000e28] dvdread demux error: DVDRead cannot open source: /dev/sr0
[00007fdde80009b8] core input error: open of `dvd:///dev/sr0' failed



I’m stuck and cant seem to find much experience of others problems. Any help appreciated.

libdvdcss is not the only thing needed for multimedia to work, you need the restricted codecs, where did you get vlc from, do you have and have you done a full vendor change to the packman repo?
post your repo list

zypper lr -d

matt@linux-3o78:~> zypper lr -d
#  | Alias                           | Name                                    | Enabled | GPG Check | Refresh | Priority | Type   | URI                                                                          | Service
---+---------------------------------+-----------------------------------------+---------+-----------+---------+----------+--------+------------------------------------------------------------------------------+--------
 1 | benchmark                       | Benchmarks (openSUSE_Leap_42.1)         | Yes     | (r ) Yes  | No      |   99     | rpm-md | http://download.opensuse.org/repositories/benchmark/openSUSE_Leap_42.1/      |        
 2 | deadpoint                       | deadpoint                               | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/home:/deadpoint/openSUSE_Leap_42.1 |        
 3 | download.nvidia.com-leap        | nVidia Graphics Drivers                 | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.nvidia.com/opensuse/leap/42.1                                |        
 4 | download.opensuse.org-non-oss   | Main Repository (NON-OSS)               | Yes     | (r ) Yes  | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/leap/42.1/repo/non-oss/            |        
 5 | download.opensuse.org-non-oss_1 | Update Repository (Non-Oss)             | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/42.1/non-oss/                       |        
 6 | download.opensuse.org-oss       | Main Repository (OSS)                   | Yes     | (r ) Yes  | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/leap/42.1/repo/oss/                |        
 7 | download.opensuse.org-oss_1     | Main Update Repository                  | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/42.1/oss                            |        
 8 | ftp.gwdg.de-suse                | Packman Repository                      | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://ftp.gwdg.de/pub/linux/packman/suse/openSUSE_Leap_42.1/                |        
 9 | libdvdcss                       | libdvdcss                               | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://opensuse-guide.org/repo/openSUSE_Leap_42.1/                           |        
10 | linuxdownload.adobe.com-linux   | Adobe Flash Plugin                      | Yes     | ( p) Yes  | Yes     |   99     | rpm-md | http://linuxdownload.adobe.com/linux/x86_64/                                 |        
11 | opensuse-guide.org-repo         | Libdvdcss Repository                    | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://opensuse-guide.org/repo/openSUSE_Leap_42.1/                           |        
12 | packman                         | packman                                 | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://packman.inode.at/suse/openSUSE_Leap_42.1/                             |        
13 | repo-debug                      | openSUSE-Leap-42.1-Debug                | No      | ----      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/distribution/leap/42.1/repo/oss/          |        
14 | repo-debug-non-oss              | openSUSE-Leap-42.1-Debug-Non-Oss        | No      | ----      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/distribution/leap/42.1/repo/non-oss/      |        
15 | repo-debug-update               | openSUSE-Leap-42.1-Update-Debug         | No      | ----      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/update/leap/42.1/oss                      |        
16 | repo-debug-update-non-oss       | openSUSE-Leap-42.1-Update-Debug-Non-Oss | No      | ----      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/update/leap/42.1/non-oss/                 |        
17 | repo-source                     | openSUSE-Leap-42.1-Source               | No      | ----      | Yes     |   99     | NONE   | http://download.opensuse.org/source/distribution/leap/42.1/repo/oss/         |        
18 | repo-update                     | openSUSE-Leap-42.1-Update               | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/42.1/oss/                           |


followed guide as on http://opensuse-guide.org/codecs.php, did vendor change packman, after which I had no working codecs in totem etc either. I’ve resorted to fluendo codecs for other formats which are now working.
VLC installed via zypper.


matt@linux-3o78:~> zypper info vlc
Loading repository data...
Reading installed packages...




Information for package vlc:
----------------------------
Repository: Packman Repository
Name: vlc
Version: 2.2.4-2.1
Arch: x86_64
Vendor: http://packman.links2linux.de
Installed: Yes
Status: up-to-date
Installed Size: 398.6 KiB
Summary: Video Lan Client multimedia player
Description: 
  VLC media player is a highly portable multimedia player for various
  audio and video formats (MPEG-1, MPEG-2, MPEG-4, DivX, mp3, ogg, ...)
  as well as DVDs, VCDs, and various streaming protocols.
  It can also be used as a server to stream in unicast or multicast
  in IPv4 or IPv6 on a high-bandwidth network.


it’s not just vlc it’s a lot of packages
try this
first remove the adobe repo as packman carries a signed version of flash, adobe’s is signed but it’s repo is not signed so it may cause bugs, also adobe’s flash has a different name so you may end up with conflicts, adobe carries flash-plugin while packman flash-player they provide the same package

zypper rr 10
zypper rm flash-plugin
zypper in flash-player

then do a full vendor change with packman

zypper dup --from 8

thanks for the help, its appreciated.
completed as you suggested, new repo list is as follows, I also cleaned up duplicated libdvdcss repo;


#  | Alias                           | Name                                    | Enabled | GPG Check | Refresh | Priority | Type   | URI                                                                          | Service
---+---------------------------------+-----------------------------------------+---------+-----------+---------+----------+--------+------------------------------------------------------------------------------+--------
 1 | benchmark                       | Benchmarks (openSUSE_Leap_42.1)         | Yes     | (r ) Yes  | No      |   99     | rpm-md | http://download.opensuse.org/repositories/benchmark/openSUSE_Leap_42.1/      |        
 2 | deadpoint                       | deadpoint                               | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/home:/deadpoint/openSUSE_Leap_42.1 |        
 3 | download.nvidia.com-leap        | nVidia Graphics Drivers                 | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.nvidia.com/opensuse/leap/42.1                                |        
 4 | download.opensuse.org-non-oss   | Main Repository (NON-OSS)               | Yes     | (r ) Yes  | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/leap/42.1/repo/non-oss/            |        
 5 | download.opensuse.org-non-oss_1 | Update Repository (Non-Oss)             | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/42.1/non-oss/                       |        
 6 | download.opensuse.org-oss       | Main Repository (OSS)                   | Yes     | (r ) Yes  | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/leap/42.1/repo/oss/                |        
 7 | download.opensuse.org-oss_1     | Main Update Repository                  | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/42.1/oss                            |        
 8 | ftp.gwdg.de-suse                | Packman Repository                      | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://ftp.gwdg.de/pub/linux/packman/suse/openSUSE_Leap_42.1/                |        
 9 | opensuse-guide.org-repo         | Libdvdcss Repository                    | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://opensuse-guide.org/repo/openSUSE_Leap_42.1/                           |        
10 | repo-debug                      | openSUSE-Leap-42.1-Debug                | No      | ----      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/distribution/leap/42.1/repo/oss/          |        
11 | repo-debug-non-oss              | openSUSE-Leap-42.1-Debug-Non-Oss        | No      | ----      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/distribution/leap/42.1/repo/non-oss/      |        
12 | repo-debug-update               | openSUSE-Leap-42.1-Update-Debug         | No      | ----      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/update/leap/42.1/oss                      |        
13 | repo-debug-update-non-oss       | openSUSE-Leap-42.1-Update-Debug-Non-Oss | No      | ----      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/update/leap/42.1/non-oss/                 |        
14 | repo-source                     | openSUSE-Leap-42.1-Source               | No      | ----      | Yes     |   99     | NONE   | http://download.opensuse.org/source/distribution/leap/42.1/repo/oss/         |        
15 | repo-update                     | openSUSE-Leap-42.1-Update               | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/42.1/oss/                           |

after each zypper dup for packman and libdvdcss zypper returned nothing to be done.
any thoughts?

Can you open your dvd in dolphin and see the files (kde/plasma)? (or any other file manager)

i’ve got gnome flavour running,
tried with data dvd and loads fine. can access via disks to mount and nautilus to browse.
when trying an encrypted video dvd nothing loads and view of discs utility is this,

https://ibin.co/2lPe3I8483ok.png

Can you see any interesting when inserting disk, if you run

dmesg

nothing interesting in dmesg as such, but on trying to stimulate something it has started working. I unplugged driver and replugged, then ejected disk and replaced and started to spin up properly. after which notification to launch VLC was displayed.


  355.885813] usb 3-1: new high-speed USB device number 2 using xhci_hcd
  356.089646] usb 4-1: USB disconnect, device number 2
  371.789153] usb 4-1: new SuperSpeed USB device number 3 using xhci_hcd
  371.811814] usb 4-1: New USB device found, idVendor=13fd, idProduct=3609
  371.811821] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
  371.811826] usb 4-1: Product: USB3.0 DEVICE
  371.811829] usb 4-1: Manufacturer: Generic
  371.811833] usb 4-1: SerialNumber: 41443030303030303030303030303030
  371.814433] usb-storage 4-1:1.0: USB Mass Storage device detected
  371.815018] scsi host5: usb-storage 4-1:1.0
  372.815916] scsi 5:0:0:0: CD-ROM            MATSHITA BD-CMB UJ130AS   1.01 PQ: 0 ANSI: 0
  372.822379] sr 5:0:0:0: [sr0] scsi3-mmc drive: 62x/62x writer dvd-ram cd/rw xa/form2 cdda tray
  372.822535] sr 5:0:0:0: Attached scsi CD-ROM sr0
  372.822591] sr 5:0:0:0: Attached scsi generic sg2 type 5
  430.549791] sr 5:0:0:0: [sr0] FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
  430.549793] sr 5:0:0:0: [sr0] Sense Key : Illegal Request [current] 
  430.549794] sr 5:0:0:0: [sr0] Add. Sense: Read of scrambled sector without authentication
  430.549795] sr 5:0:0:0: [sr0] CDB: Read(10) 28 00 00 00 04 00 00 00 02 00
  430.549796] blk_update_request: I/O error, dev sr0, sector 4096
  430.551235] sr 5:0:0:0: [sr0] FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
  430.551237] sr 5:0:0:0: [sr0] Sense Key : Illegal Request [current] 
  430.551238] sr 5:0:0:0: [sr0] Add. Sense: Read of scrambled sector without authentication
  430.551239] sr 5:0:0:0: [sr0] CDB: Read(10) 28 00 00 00 04 00 00 00 02 00
  430.551240] blk_update_request: I/O error, dev sr0, sector 4096
  430.551241] Buffer I/O error on dev sr0, logical block 512, async page read


I had already changed from the packman repo and installed all required packages from the VLC repo (libdvdcss2, libdvdread etc). however this had no effect until I tried the drive, then unplugged/ejected etc and tried again.

Solved I suppose, but I dont know why

I haven’t played a DVD in years I will try and find a DVD so I can test vlc but in the mean time see if your user is a member of the video group (and maybe cdrom)
me as a user I am not a member of those groups, it could be a permission issue
let me find a DVD and I’ll get back to you

vlc works fine for me
plays dvd’s without an issue
here’s a few screenshots
http://i.imgur.com/FmuC2EM.png

http://i.imgur.com/CtHjACq.png

all I can say is do another dup with packman

zypper dup --from 8

your error seams to be libdvdcss2 related, although Linux uses DVD’s differently then windows maybe your DVD drive is set to a different region?
try reinstalling libdvdcss2

zypper in -f libdvdcss2

The following URL deals with the US American licensing issues around DVD playback; please be aware that these issues also apply to other countries on the planet Earth:<http://www.howtogeek.com/138969/why-watching-dvds-on-linux-is-illegal-in-the-usa/>

The legal alternative is to buy a DVD Player Linux application such as the one offered by the Fluendo folks in Spain.
I haven’t (yet) found out under which conditions openSUSE supports the ‘regionset’ CLI command (it’s not in any of the “normal” packages).
[HR][/HR]Yes, Open Source: “free” only in the sense of licensing; but, there are some things where the people who have studied law have managed to form legal text which is counter-productive for businesses such as the Music and Media industries – the Music and Media industries want to sell their products (Music and Video) to EVERYONE – they have overlooked the fact that not EVERYONE uses particular operating system software . . .

libdvdcss is legal in Europe and most of the world
from

Are libdvdcss and libaacs legal? libdvdcss libdvdcss is a library that can find and guess keys from a DVD in order to decrypt it.
This method is authorized by a French law decision CE 10e et 9e sous­sect., 16 juillet 2008, n° 301843 on interoperability.

NB: In the USA, you should check out the US Copyright Office decision that allows circumvention in some cases.
VideoLAN is NOT a US-based organization and is therefore outside US jurisdiction.

I’m thinking maybe vlc has issues with libdvdcss library from http://opensuse-guide.org/repo/openSUSE_Leap_42.1
so try and install this one
http://download.videolan.org/pub/SuSE/Leap_42.1/x86_64/libdvdcss2-1.4.0-1.1.x86_64.rpm

zypper in -f http://download.videolan.org/pub/SuSE/Leap_42.1/x86_64/libdvdcss2-1.4.0-1.1.x86_64.rpm

I just checked the version of libdvdcss2 http://opensuse-guide.org/repo/openSUSE_Leap_42.1/ has

linux:~ # zypper info libdvdcss2                                                                                                                                            
Loading repository data...                                                                                                                                                  
Reading installed packages...                                                                                                                                               
                                                                                                                                                                            
                                                                                                                                                                            
Information for package libdvdcss2:                                                                                                                                         
-----------------------------------                                                                                                                                         
Repository: libdvdcss                                                                                                                                                       
Name: libdvdcss2                                                                                                                                                            
Version: **1.2.13-5.1**                                                                                                                                                         
Arch: x86_64                                                                                                                                                                
Vendor: VideoLAN Project (http://www.videolan.org)                                                                                                                          
Installed: No                                                                                                                                                               
Status: not installed                                                                                                                                                       
Installed Size: 132.7 KiB                                                                                                                                                   
Summary: A library designed for accessing encrypted DVDs                                                                                                                    
Description:                                                                                                                                                                
  libdvdcss is a simple library designed for accessing DVDs like a block device without having to bother about the decryption.                                              
linux:~ #                                                                                                                                                                   

it’s extreamly old, get version 1.4 from vlc
http://download.videolan.org/pub/SuSE/Leap_42.1/x86_64/libdvdcss2-1.4.0-1.1.x86_64.rpm
maybe someone should contact the opensuse-guide.org maintainer and ask for an update as the library they have is more then 3 years old, in the meantime installing only the library from the vlc repo should be sufficient (you should get the rest of vlc from packman!)

zypper in -f http://download.videolan.org/pub/SuSE/Leap_42.1/x86_64/libdvdcss2-1.4.0-1.1.x86_64.rpm

<https://de.wikipedia.org/wiki/Libdvdcss&gt;

*In Deutschland und weiteren Ländern ist es verboten, Programme zu schreiben oder zu vertreiben, die Kopierschutzmaßnahmen umgehen.
Würde ein deutsches Gericht CSS in letzter Instanz für eine „wirksame technische Maßnahme“ erklären (§ 95a Urheberrechtsgesetz, in der durch Artikel 1 des Gesetzes vom 10. September 2003 geänderten Fassung[6]), so wäre die Benutzung dieser Bibliothek in Deutschland nicht gestattet. So ein Gerichtsurteil gibt es zur Zeit nicht.

I haven’t extracted the all the German text but, the bottom line is, if a German lawyer takes a German citizen to court to “prove the case”, that German lawyer would almost certainly win [current legal situation in Germany].
[HR][/HR]Therefore, the advice to German citizens is: “No risk, no fun!” is OK but, please understand the risk, take your democratic choice and possibly consider consider purchasing a legal DVD Player application.

thanks for the suggestions, i’ve now changed over the VLC repo for all packages inc. libdvdcss2. things now seem to be working fine. with regard to the legality of dvd encryption/access, im certain the world has other priorities to address. I’ve had success with fluendo etc for their codec pack, but i want libdvdcss2 working so I can use handbrake to port my old dvd’s to more modern formats.

thanks
Matt

no don’t change all the packages to the vlc repo, only get the css package
the vlc packages work but as they don’t provide gstreamer support you’ll break something that uses gstreamer (like phonon on plasma 5 or firefox or a lot of other packages)
do NOT add the vlc repo only install the libdvdcss2 from there!
I’m not sure why packman doesn’t hoist libdvdcss maybe cos they’re in Germany and the German courts haven’t had a ruling regarding libdvdcss, packman gets it’s vlc packages from vlc but packman also has gstreamer and a ton of other multimedia packages that are interdependent mixing repo’s creates a real chance of borking your system.

I still find it funny that the windows version of vlc which includes libcvccss is hosted on tons of sites (a lot of them in the US) and nobody has a problem with it, but the Linux version is a scary thing

Hi
There is no gstreamer in the vlc repo…

I use the OP’s setup, vlc, libdvdcss (from VideoLan) and fluendo codecs as well as handbrake for conversion… I use VLC from VideoLan and is used across multiple devices (android, iOS, osX and linux) with tvheadend to watch free to air tv :wink: