LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 09:37 PM   #1
Nutria
Member
 
Registered: Nov 2007
Location: New Orleans, LA, USA
Distribution: Xubuntu
Posts: 67

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, 01:13 AM   #2
ozanbaba
Member
 
Registered: May 2003
Location: İzmir
Distribution: Slackware64 15.0 Multilib
Posts: 778

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

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



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 08:26 PM
VLC ctrl+H minimal view shortcut is not working wanas Linux - Software 0 08-11-2009 01:21 AM
VLC Fails To Play DVD - Freezes ! taurusx5 Linux - Software 2 09-22-2008 04:23 PM
Install vlc player but not able to view movies in avi format vitalstrike82 SUSE / openSUSE 5 04-27-2008 02:58 AM
Cannot view video in vlc 00yahoo Linux - Software 1 10-20-2006 12:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 07:46 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration