How to Rip CSS Protected DVDs

Share your own howto's etc. Not for support questions!

How to Rip CSS Protected DVDs

Postby Issyer » 2009-07-09 18:46

A lot of DVDs from the DVD device fail to rip with the error "libdvdread: Can't seek to block".
It means that libdvdread can't read the DVD disk. But it doesn't mean that if the content of the DVD is already on your hard drive, libdvdread will be involved again.

The solution to that can be the following. Copy the content of this DVD to your hard drive into the folder 'movie', for example.

Make sure acidrip is installed: apt-get install acidrip
from multimedia: http://debian-multimedia.org/dists/unst ... cidrip.php

Then just specify the path to the 'movie' folder instead of the DVD device in acidrip.
Alternatively you can use just mencoder. It comes with mplayer:

Code: Select all
mencoder dvd://2 -dvd-device /home/alex/movie  -alang English \
-info srcform="DVD ripped by Alex Thegreat" -oac mp3lame -lameopts abr:br=128 \
-ovc lavc -lavcopts vcodec=mpeg4:vhq:v4mv:vqmin=2:vbitrate=10000 -vf pp=de,scale=800:450  \
-o "/home/alex/movie.avi"


dvd://2 - means Track 2 to rip
-dvd-device /home/alex/movie - the folder you put the content of the DVD in
vbitrate=10000 - for the quality of the video
scale=800:450 - how to scale, here is 16:9 aspect ratio


If due to some reason you cannot copy the content of the DVD with your Dolphin or mc or whatever file manager you use there, do it with dd:
Code: Select all
dd if=/dev/dvd of=/home/alex/movie/movie.iso


When the ISO is created, mount it:
Code: Select all
mount -t iso9660 -o ro,loop=/dev/loop0 movie/movie.iso /media/cdrom

Note: create "/media/cdrom" folder, if it doesn't exist. It will be the mount point.

Then copy the content of the mounted ISO to your "movie" folder or even don't copy, if you don't want, but use the "/media/cdrom" folder which should contain everything you need.

If dd fails with the error: "reading `/dev/dvd': Input/output error", try dvdbackup.
Make sure it is installed:
Code: Select all
apt-get install dvdbackup


Then run:
Code: Select all
dvdbackup -i /dev/dvd -M -o movie


Remeber: the idea is to get the content of the DVD to your hard drive and rip it from there.

Run acidrip or mencoder as described above.



Enjoy!
Last edited by Issyer on 2009-08-15 02:26, edited 3 times in total.
User avatar
Issyer
 
Posts: 3055
Joined: 2007-05-23 02:59
Location: Khakassia

Re: How to Rip CSS Protected DVDs

Postby Issyer » 2009-07-12 21:44

up
Last edited by Issyer on 2009-07-13 01:24, edited 1 time in total.
User avatar
Issyer
 
Posts: 3055
Joined: 2007-05-23 02:59
Location: Khakassia

Re: How to Rip CSS Protected DVDs

Postby craigevil » 2009-07-12 22:14

You might try using DeVeDe.
DeVeDe is a program to create video DVDs and CDs (VCD, sVCD or CVD), suitables for home players, from any number of video files, in any of the formats supported by Mplayer. The big advantage over other utilites is that it only needs Mplayer, Mencoder, DVDAuthor, VCDImager and MKisofs (well, and Python, PyGTK and PyGlade), so its dependencies are really small.

or Acidrip
AcidRip is a Gtk::Perl application for ripping and encoding DVD's. It
neatly wraps MPlayer and MEncoder, which I think is pretty handy, seeing as
MPlayer is by far the best bit of video playing kit around for Linux. As
well as creating a simple Graphical Interface for those scared of getting
down and dirty with MEncoders command line interface, It also automates the
process in a number of ways.
Homepage: http://untrepid.com/acidrip/
Debian Sid KDE Kernel 3.17 Thinkpad R40 Intel M 1.3 CPU 2GB RAM Radeon Mobility 7500
Debian - "If you can't apt-get something, it isn't useful or doesn't exist"
Debian upgrade script smxi | sysinfo script inxi
User avatar
craigevil
 
Posts: 5192
Joined: 2006-09-17 03:17
Location: Oz

Re: How to Rip CSS Protected DVDs

Postby Issyer » 2009-07-13 01:20

craigevil wrote:AcidRip is a Gtk::Perl application for ripping and encoding DVD's.

Incorrect. AcidRip is just a graphical front-end for mencoder and nothing else. Why they wrote that, I don't know.

Acidrip is fundamentally a wrapper application. This means that is is written in order to provide an easy and logical method to use another more complicated applciation, i.e. MEncoder


It has nothing to do with either reading DVDs or encrypting them. Libdvdread reads DVDs. Libdvdread only reads DVDs but doesn't decrypt (or maybe just a little bit). Libdvdcss2 decrypts DVDs on the fly. But quite often both Libdvdread and libdvdcss2 don't cope. When that happens, I offer to try fetching the contents of the DVDs to the hard drive and ripping them from there, from the hard drive, not from the DVD device. And finally, if that fetching with regular file managers fails, I suggest to use dd or dvdbackup to copy everything from the DVD device to the hard drive.

Obviously you didn't read what I wrote above.
User avatar
Issyer
 
Posts: 3055
Joined: 2007-05-23 02:59
Location: Khakassia

Re: How to Rip CSS Protected DVDs

Postby milomak » 2009-08-07 20:09

k9copy (if you are a KDE person) used to be quite good. I haven't used it in close to a year I reckon so can't totally vouch for it now.
iMac - MacOS and Windows 10 (Bootcamp)/ Debian Sid (External SSD)
Laptop (64-bit) - Debian Sid, Win10,
Kodi Box - Debian Sid
milomak
 
Posts: 1671
Joined: 2009-06-09 22:20

Re: How to Rip CSS Protected DVDs

Postby esp7 » 2017-05-11 13:41

I recently ripped some of my own copy protected DVD movies myself and couldn't find any relevant help and info on this forum. So will activate this old topic to share the solution I was able to find during the last 2 weeks for helping others in the future :D


Almost all copy protected movies can be played via VLC media player with working DVD menus after installing Videolan's libdvdcss library which is not in the default Debian repositories, although it respects free software rules. After installing the libary via Videolan's repository you can decrypt on-the-fly css protected movies: http://www.videolan.org/developers/libdvdcss.html

repository to be added in /etc/apt/sources.list and key to be added:
Code: Select all
deb http://download.videolan.org/pub/debian/stable/ /

Code: Select all
wget -O - http://download.videolan.org/pub/debian/videolan-apt.asc | sudo apt-key add -



To make 1:1 DVD9 rips of the video and audiostreams the one and only respectable application is MakeMKV. Also this one is not in the debian reposistories as the source of the binary to decrypt Bluray streams is not published obviously to avoid blacklisting of the Bluray decryption keys. However, the applaction itself is open sourced and should be compiled yourself: http://www.makemkv.com/download/

Download both packages (binary and source):
http://www.makemkv.com/download/makemkv ... 0.5.tar.gz
http://www.makemkv.com/download/makemkv ... 0.5.tar.gz

Required tools to compile and install debian packaged MakeMKV:
Code: Select all
sudo apt-get install build-essential pkg-config libc6-dev libssl-dev libexpat1-dev libavcodec-dev libgl1-mesa-dev libqt4-dev checkinstall


Compile makemkv-oss:
Code: Select all
./configure
make
sudo checkinstall


Compile makemkv-bin:
Code: Select all
make
sudo checkinstall


It works like a champ and you literally rip a DVD9 in 5minutes as a clean MKV with 1:1 audio and video streams which you afterwards easily can encode with HandBrake. Please only use this to make legal backups of your own purchased movies. Please do not support piracy. The disk media age is rapidly going extinct like the dinosaurs, at least now we can backup easily our movies :D

I really wanted to share this information here as there is so much crap posted on multiple forums on the internet that the good information is barely accessible and all above suggestions did not allow me to rip my dvd movies with the recent css protections. Enjoy!
Software is like sex: it's better when it's free © Linus Torvalds
User avatar
esp7
 
Posts: 123
Joined: 2013-06-23 20:31

Re: How to Rip CSS Protected DVDs

Postby dasein » 2017-05-11 14:14

esp7 wrote:Almost all copy protected movies can be played... after installing Videolan's libdvdcss library which is...

...which is illegal even to possess in the USA. (Just sayin')
User avatar
dasein
 
Posts: 7775
Joined: 2011-03-04 01:06
Location: Terra Incantationum

Re: How to Rip CSS Protected DVDs

Postby debiman » 2017-05-11 14:48

^ https://www.videolan.org/legal.html

"allows circumvention in some cases" ... hmmm...
User avatar
debiman
 
Posts: 1164
Joined: 2013-03-12 07:18

Re: How to Rip CSS Protected DVDs

Postby RU55EL » 2017-05-11 15:17

dasein wrote:
esp7 wrote:Almost all copy protected movies can be played... after installing Videolan's libdvdcss library which is...

...which is illegal even to possess in the USA. (Just sayin')


The software?

https://www.copyright.gov/1201/

The Digital Millennium Copyright Act (“DMCA”), codified in part in 17 U.S.C. § 1201, makes it illegal to circumvent technological measures used to prevent unauthorized access to copyrighted works, including copyrighted books, movies, videos, video games, computer programs.


Isn't circumventing technological measures on a DVD you purchased considered authorized fair use?
User avatar
RU55EL
 
Posts: 254
Joined: 2014-04-07 03:42
Location: /home/russel

Re: How to Rip CSS Protected DVDs

Postby dasein » 2017-05-11 15:22

debiman wrote:^ https://www.videolan.org/legal.html

"allows circumvention in some cases" ... hmmm...

Circumvention is not the issue. Under 17 U.S.C. § 1201(a)(2), mere possession of libdvdcss is illegal in the US, even if one never uses it.

viewtopic.php?f=6&t=116911#p550982
User avatar
dasein
 
Posts: 7775
Joined: 2011-03-04 01:06
Location: Terra Incantationum

Re: How to Rip CSS Protected DVDs

Postby phenest » 2017-05-11 15:23

dasein wrote:
esp7 wrote:Almost all copy protected movies can be played... after installing Videolan's libdvdcss library which is...

...which is illegal even to possess in the USA. (Just sayin')

I don't know if that library is illegal in the UK for playing DVD's, but it is illegal to makes copies in the UK, even for personal use.
NEC Spirit 550 P4 3.8GHz HT - 2GB RAM - nVidia 7600GT - Pioneer BDR-209DBK
ASUS Sabertooth P67 i7 3770K - 32GB RAM - 2x nVidia 660GTX SLI'd
User avatar
phenest
 
Posts: 1571
Joined: 2010-03-09 09:38
Location: The Matrix

Re: How to Rip CSS Protected DVDs

Postby dasein » 2017-05-11 15:29

phenest wrote:
dasein wrote:
esp7 wrote:Almost all copy protected movies can be played... after installing Videolan's libdvdcss library which is...

...which is illegal even to possess in the USA. (Just sayin')

I don't know if that library is illegal in the UK for playing DVD's...

IANAL, and certainly don't know UK IP law, but in the US, what's illegal is circumventing copy protection, or possessing a technology that allows you to do so. So yes, playing a DVD in Linux is criminal in the US--not for the action itself, but for merely having the technology required to do it.
User avatar
dasein
 
Posts: 7775
Joined: 2011-03-04 01:06
Location: Terra Incantationum

Re: How to Rip CSS Protected DVDs

Postby dasein » 2017-05-11 15:41

RU55EL wrote:
dasein wrote:
esp7 wrote:Almost all copy protected movies can be played... after installing Videolan's libdvdcss library which is...

...which is illegal even to possess in the USA. (Just sayin')


The software?

https://www.copyright.gov/1201/

The Digital Millennium Copyright Act (“DMCA”), codified in part in 17 U.S.C. § 1201, makes it illegal to circumvent technological measures used to prevent unauthorized access to copyrighted works, including copyrighted books, movies, videos, video games, computer programs.


Isn't circumventing technological measures on a DVD you purchased considered authorized fair use?

Why do I suddenly feel like I am in the middle of a systemd debate?

Gentlemen:

1) Go read the law, not someone's interpretation of it.

2) "Read the law" means read the WHOLE law. Pay special attention to subsection (a)(2) while asking yourself precisely how you would acquire libdvdcss at all without, by definition, "trafficking" in it.

3) For the last damn time, circumvention is not the (only) issue; possession is. One need not murder someone, nor even to fire so much as a single shot, to be found guilty of gun possession in a venue where such possession is in and of itself illegal.
User avatar
dasein
 
Posts: 7775
Joined: 2011-03-04 01:06
Location: Terra Incantationum

Re: How to Rip CSS Protected DVDs

Postby phenest » 2017-05-11 15:51

In the UK, law was changed in October 2014 to allow copying for personal use (fair use). In July 2015, it changed to prevent that.

Looking further into this, in the UK, it doesn't apply to DRM. It applies to music, videos and e-books, DRM or not. But it only seems to apply to copying and not playing.

To summarise, in the UK, it's not about circumvention or possession. It's about copying. It's clearly somewhat harsher in the US.
NEC Spirit 550 P4 3.8GHz HT - 2GB RAM - nVidia 7600GT - Pioneer BDR-209DBK
ASUS Sabertooth P67 i7 3770K - 32GB RAM - 2x nVidia 660GTX SLI'd
User avatar
phenest
 
Posts: 1571
Joined: 2010-03-09 09:38
Location: The Matrix

Re: How to Rip CSS Protected DVDs

Postby dasein » 2017-05-11 17:04

phenest wrote:It's clearly somewhat harsher in the US.

What a delightfully charitable characterization. I'd be more inclined to call it "draconian."

But hey, at least the copyright on Mickey Mouse was extended. (Sorry, obscure anti-DMCA reference. Gawd, but I hate that law. )
User avatar
dasein
 
Posts: 7775
Joined: 2011-03-04 01:06
Location: Terra Incantationum

Next

Return to Docs, Howtos, Tips & Tricks

Who is online

Users browsing this forum: No registered users and 7 guests

fashionable