LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 04-21-2013, 10:37 PM   #1
Nutria
Member
 
Registered: Nov 2007
Location: New Orleans, LA, USA
Distribution: Xubuntu
Posts: 65

Rep: Reputation: 6
Question dd of a DVD fails unless I first view it with VLC


Hi,

When I buy a DVD, I immediately rip it to an ISO, then transcode the movie or episodes because that's faster than having HandBrake read directly from DVD.

The problem is that dd quickly barfs with an IO error when reading protected DVDs except when I first view (even for just a few seconds) the DVD with vlc. Then dd works perfectly. Presumably this has something to do with reading the CSS keys.

So, does anyone know of a CLI tool that will read the CSS keys and place the results in ~/dvdcss ?

Thanks.
 
Old 04-22-2013, 02:13 AM   #2
ozanbaba
Member
 
Registered: May 2003
Location: Tengiz
Distribution: Slackware64 14.1
Posts: 671

Rep: Reputation: 94
how about cvlc? It's CLI to vlc.
 
Old 04-22-2013, 02:38 AM   #3
Nutria
Member
 
Registered: Nov 2007
Location: New Orleans, LA, USA
Distribution: Xubuntu
Posts: 65

Original Poster
Rep: Reputation: 6
Thumbs up

Quote:
Originally Posted by ozanbaba View Post
how about cvlc? It's CLI to vlc.
Excellent!

This is what my ripping script now looks like:
Code:
#!/bin/bash

cvlc :start-time=1 --stop-time=4 dvd:///dev/sr0 vlc://quit 

BS=$(isoinfo -d -i /dev/sr0 | grep "^Logical block size is:" | awk '{print $5}')
VS=$(isoinfo -d -i /dev/sr0 | grep "^Volume size is:" | awk '{print $4}')
VSID=$(isoinfo -d -i /dev/sr0 | grep "Volume set id: " | awk '{print $4}')
VID=$(isoinfo -d -i /dev/sr0 | grep "^Volume id: " | awk '{print $3}')

if [ -z $1 ]; then 
    if [ -z $VSID ] || [ "$VSID" == "UNDEFINED" ] || [ "$VSID" == "NOT_SET" ] || [ $VID == $VSID ] ; then
        OF=${VID}
    else
        OF=${VID}_${VSID}
    fi
else
    OF=$(basename $1 .iso) # just in case I accidentally pasted in a name with .iso
fi

echo $OF
echo $BS
echo $VS

pv /dev/sr0 | dd conv=noerror bs=$BS count=$VS of=$OF.iso

sleep 3
eject /dev/sr0
 
1 members found this post helpful.
  


Reply

Tags
css, dd, rip, vlc


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Burning dual layer dvd (DVD DL +R) fails using k3b, Nero 4 Linux, Gnome CD/DVD Creat skyxn3t Linux - General 1 09-03-2010 09:26 PM
VLC ctrl+H minimal view shortcut is not working wanas Linux - Software 0 08-11-2009 02:21 AM
VLC Fails To Play DVD - Freezes ! taurusx5 Linux - Software 2 09-22-2008 05:23 PM
Install vlc player but not able to view movies in avi format vitalstrike82 Suse/Novell 5 04-27-2008 03:58 AM
Cannot view video in vlc 00yahoo Linux - Software 1 10-20-2006 01:24 PM


All times are GMT -5. The time now is 06:01 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration