Problems with playing DVD
- Inicie sesión ou rexístrese para enviar comentarios
I often encounter problems when trying to play a DVD on my Trisquel (and earlier other distributions) computers. Everywhere I read, that this or that player will play virtually everything. So how come I still have problems?
Is there something I can do, or do I just have to realise, that 'virtually everything' means many but far from all?
Who knows? There isn't much detail to go on here other than you've got problems.
Nice comment - point taken :-)
Again I reveal my lack of knowledge (that'll probably happen again soon!).
It takes knowledge to describe a problem well.
...the problem is you! ;-)
https://youtu.be/AyAcfxLtamg
---------------------------------
--> https://en.wikipedia.org/wiki/Libdvdcss
--> https://wiki.debian.org/CDDVD#Video_DVD
--> https://en.wikipedia.org/wiki/Content_Scramble_System
And it always has been! But is it good or bad luck, that I am not too dumb to know I am?
Stupido, ergo sum
Thanks for the links. I'm beginning to learn
Have you installed libdvdcss2? From the terminal:
$ sudo /usr/share/doc/libdvdread4/install-css.sh
Yeah, I can confirm what mr Banana is saying, that package is required for encrypted DVDs to play (I assume OP is talking about this)
command not found
yet libdvdread4 is already the newest version (5.0.3-1).
and ls -l gives
/usr/share/doc/libdvdread4$ ls -l
totalt 20
-rw-r--r-- 1 root root 1176 jan 2 2014 AUTHORS
-rw-r--r-- 1 root root 1479 okt 24 2015 changelog.Debian.gz
-rw-r--r-- 1 root root 1302 aug 30 2014 copyright
-rw-r--r-- 1 755 root 2648 nov 6 2013 README
-rw-r--r-- 1 755 root 754 aug 30 2014 README.css
Does this mean, I have to follow these:
https://wiki.debian.org/CDDVD#Video_DVD
or are there other (read: easier) solutions?
Libdvdread is only a menu library to read unencrypted file structures on a DVD. You'll need libdvdcss. It's not available in any repositories. You'll have to download it from Videolan.
Are you on Trisquel 8? "libdvdread4" on Trisquel 7 only is at version 4.2.1-2ubuntu1 and it contains the script. I guess you can just download that script (attached to this post) and execute it.
Anexo | Tamaño |
---|---|
install-css.sh | 3.36 KB |
I feel pretty sure that script just doesn't work anymore. You need to install libdvdcss the other way.
It works on Trisquel 7 at least. And nothing in the script seems to be specific to Trisquel 7 or to Ubuntu 14.04.
Magic Banana's attachment throws an error:
"You don't have permission to access /files/install-css.sh
on this server."
I think executable files are not permitted as attachments unless they are buried in an archive.
Let us try with GZIP.
Anexo | Tamaño |
---|---|
install-css.sh.gz | 1.4 KB |
The archive works (extracts) alright.
# Shell script to install libdvdcss under Debian GNU Linux
# Many DVDs use css for encryption. To play these discs, a special library
# is needed to decode them, libdvdcss. Due to legal problems, Debian and most
# Linux distibutions cannot distribute libdvdcss
# Use this shell script to install the libdvdcss under DEBIAN GNU/Linux
How do I run it?
When running
sudo: ./install-css.sh
inside the folder in which I extracted the file, I get
sudo: ./install-css.sh: command not found
Should I extract it in a specific folder or is there another command I have to use?
Try this: chmod +x ./install-css.sh
And to install it ;-)
copy the full name of your package, open a terminal in the place you have downloaded it (for example : cd ~/Downloads, or simply right click in an empty space in the files manager)
then type
sudo dpkg -i PASTE HERE THE NAME OF YOUR PACKAGE
and you're done.
Next time you experience problems, check here
https://trisquel.info/en/wiki/media
and here
Download the tar, extract it and compile it. Read the INSTALL text file.
I donwloaded the libdvdcss2_1.2.13-0_amd64.deb
from https://download.videolan.org/debian/stable/
and gave it a sudo dpkg -i
It installed perfectly, i.e. I now have a /usr/share/doc/libdvdcss2
folder.
I also extracted the install-css.sh
into /usr/share/doc/libdvdread4
Yet I get:
jb@jb-x200:/usr/share/doc/libdvdread4$ ls
AUTHORS changelog.Debian.gz copyright install-css.sh README README.css
jb@jb-x200:/usr/share/doc/libdvdread4$ sudo ./install-css.sh
sudo: ./install-css.sh: Kommando ikke fundet [=command not found]
jb@jb-x200:/usr/share/doc/libdvdread4$
What am I doing wrong?
Try this
sh install-css.sh
That worked.
Thanks. But why did that work and ./install-css.sh did not?
There's an explanation here:
https://apple.stackexchange.com/questions/101170/why-do-i-need-to-put-sh-before-running-sh-files
If I got it right, any executable outside the /bin/sh folder has to be defined an executable (e.g. by chmod +x script.sh) or by using the sh command (because in this case it is a script).
Is that (about) right?
You are. However the 'sh' command calls a specific interpreter (/bin/sh). When you directly execute an executable file (e.g., made executable with 'chmod +x'), the interpreter is chosen according to the line starting with "#!" at the beginning of the script; or the shell if there is no such line (and no interpreter if the file is an executable binary). For instance, those "#!" lines (in the output of grep '^#!' /usr/bin/* on my system) launch different interpreters for different programming languages (or with different options for the same language):
#!/bin/bash
#!/bin/sed -f
#!/usr/bin/awk -f
#!/usr/bin/perl -w
#!/usr/bin/python
#!/usr/bin/python -OOt
#!/usr/bin/python3
If you precede those scripts with 'sh', they would not execute properly because they are not written in the Shell programming language (well, GNU Bash is an extension of the Bourne Shell programming language, so it will probably not entirely execute properly).
I am getting closer, but I still get this:
jb@jb-x200:~$ sudo /usr/share/doc/libdvdread4/install-css.sh
[sudo] adgangskode for jb:
sudo: /usr/share/doc/libdvdread4/install-css.sh: Kommando ikke fundet
jb@jb-x200:~$
Can I check via terminal, if css is active?
It doesn't make much sense. I think you're safe to ignore the script once you've used it to download the library.
You either have the library (libdvdcss) on your computer or not. Insert a protected disc, fire up a player like VLC, and if the player can find the library, it will be able to unscramble almost any encrypted DVD you throw at it.
About libdvdcss:
Non-technical description of libdvdcss (v2.1)
libdvdcss is a library that computer programs can use to access the
contents of a DVD.
1/ DVD zones
All DVDs and commercially distributed readers include some information
about their zone. When a DVD is put into a DVD reader, the information is
compared, in order to limit the number of countries where the DVD can be
used. The DVD zone and the reader's zone should match.
2/ CSS
CSS (Content Scrambling System) protects most commercial DVDs. Writers
of DVD reader programs obtain keys by purchasing them from the DVD CCA (DVD
Copy Control Association) which will permit them to decrypt CSS-protected
DVDs. They also get instructions on how to use CSS, which are kept secret
under a confidentiality agreement. When a program reads a DVD, it
communicates with the DVD reader all the time, in order to get the
decryption information with the help of the key.
3/ Copying DVDs
The present systems do not prevent the copying of DVDs. With the right
equipment, a perfect physical copy of the media can be made (often called a
'bit by bit') which will be possible to exploit in the same way.
Furthermore, since the media must be decrypted by the reading program in
order to appear on the screen, the decrypted content of the media will be
accessible while it is being viewed - whatever the equipment used.
4/ Weaknesses of CSS
CSS has been the subject of academic studies which have, through reverse
engineering, uncovered how it works and what encryption algorithm it uses.
These studies also show that the keys used by CSS are extremely weak from a
cryptographic (code-breaking) perspective, which has led to more effective
decryption algorithms and the discovery of keys. It is possible to obtain
a complete list of keys in a few minutes on an ordinary desktop computer.
5/ How libdvdcss works
The list of CSS keys is therefore perfectly well known, and a sample of
these keys is distributed with libdvdcss. The libdvdcss library operates
in a similar manner to a DVD reader program, by using a key to decode the
content, except that libdvdcss uses a key from the sample. If all of the
sample keys fail, then libdvdcss computes the rest of the key set and tries
each of them.
This might still not work, particularly if the DVD and the reader are
not from the same zone. As a last resort, libdvdcss will step outside of
the whole DVD/reader system and will decrypt the encoded stream directly,
exploiting weaknesses in the CSS encryption.
Thanks - sometimes finding the right place to read is the biggest issue!
also, be aware that installing the libdvdcss package in the Saudi Arabia of North America is illegal. But then again breaking unjust laws is just.
- Inicie sesión ou rexístrese para enviar comentarios