LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-05-2021, 12:53 PM   #31
GPGAgent
Senior Member
 
Registered: Oct 2018
Location: Surrey UK
Distribution: Mint 20 xfce 64bit
Posts: 1,026

Original Poster
Blog Entries: 3

Rep: Reputation: 133Reputation: 133

Quote:
Originally Posted by jefro View Post
I was trying to suggest that various flaws in a disc either by design or some mechanical or software issue tend to be ignored in standalone drives for tv. The computer drives seem to be much more strict.
Pity this van't be emulated on computer drives. Maybe extraction one from a cheap dvd player and using it on a computer may work :-) Who's going to try?
 
Old 09-05-2021, 03:17 PM   #32
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,020

Rep: Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630
There are hdmi copiers that may allow one to copy protected hdmi.
 
Old 09-05-2021, 05:24 PM   #33
GPGAgent
Senior Member
 
Registered: Oct 2018
Location: Surrey UK
Distribution: Mint 20 xfce 64bit
Posts: 1,026

Original Poster
Blog Entries: 3

Rep: Reputation: 133Reputation: 133
Quote:
Originally Posted by jefro View Post
There are hdmi copiers that may allow one to copy protected hdmi.
Not sure what you mean by protected hdmi, maybe you meant to say HDCP - High-bandwidth Digital Content Protection


More here https://en.wikipedia.org/wiki/High-b...ent_Protection


This is getting a bit beyond me now, thanks anyway
 
Old 09-05-2021, 06:52 PM   #34
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Glad you are able to make it work. Yes, there is a difference in the encryption used for DVD (css) and for HD DVD (AACS). That explains why handbrake choked on it since the AACS library is not readily available to us as was libdvdcss for the standard DVDs.

I apologize for not noting you mentioned that set of DVDs, but you have been saying DVDs as in-general. I must stress that you have been saying you were unable to rip DVDs and not once have you mentioned HD DVDs were the ones with the issue. I only found that link by happenstance in searching about DVD encryption changes (which I did just to verify my memory about DVD encryption was not faulty.) I posted it as a "perhaps?"

Last edited by computersavvy; 09-05-2021 at 07:15 PM.
 
2 members found this post helpful.
Old 09-06-2021, 12:16 AM   #35
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
It saddens me that people prefer to use closed-source software for something that is so well covered by some of our best FOSS projects (graphical or not).
Probably because it's "easier to use".
It's almost like some people care about Linux only because it's "free as in beer".

PS: and don't bother explaining to me how MakeMKV is great and reliable software.
 
Old 09-06-2021, 07:14 AM   #36
GPGAgent
Senior Member
 
Registered: Oct 2018
Location: Surrey UK
Distribution: Mint 20 xfce 64bit
Posts: 1,026

Original Poster
Blog Entries: 3

Rep: Reputation: 133Reputation: 133
Talking

Quote:
Originally Posted by ondoho View Post
It saddens me that people prefer to use closed-source software for something that is so well covered by some of our best FOSS projects (graphical or not).
Probably because it's "easier to use".
It's almost like some people care about Linux only because it's "free as in beer".

PS: and don't bother explaining to me how MakeMKV is great and reliable software.
I agree, makeMKV isn't great - it works sort of. I would rather use aCLi approach, but sofar no luck, any CLI you could suggest would be great.


I've tried, HandBrakeCLI, ,dvdbackup, vobcopy so far. Any other suggestions would be good.
 
Old 09-07-2021, 05:24 PM   #37
GPGAgent
Senior Member
 
Registered: Oct 2018
Location: Surrey UK
Distribution: Mint 20 xfce 64bit
Posts: 1,026

Original Poster
Blog Entries: 3

Rep: Reputation: 133Reputation: 133
DVD Ripping - Update

Update, I've got HandBrakeCLI to work on the Bewitched dvd boxset - how I hear you ask. Well, all you good people who joined in this thread made me aware of AACS encryption and after a bit of digging around I found that you could install libaacs
Code:
sudo apt-get install libaacs
or install libaacs0 with the Synaptic Package Manager, free-and-libre implementation of AACS

Then you can use lsdvd to find the titles to rip, and you could use vobcopy to extract the vob's, or as I di this script to use handBrakeCLI
Code:
echo "progress P.txt" > P.txt; T=11;for tt in {1..8}; do echo "Progress Title: $tt - $T" >> P.txt; HandBrakeCLI -i /dev/sr1 -t $tt -r 25 -e x264 --encoder-preset veryfast  -5 -q 24 -2 -o Season-05-Disc-02-Title-0$T-$tt.mp4 ;T=$(($T+1)); done
Progress is eported in P.txt. Variable T allows you to use an alternate title number to reflect the series of progtram, and t is the dvd title number.

So far I've ripped five disks with out a problem, on my twin Xeon machine takes about 4-5 mins per 25 minute title.

Altho' makeMKV does extract a copy of each title, and i could easily handBrakeCLI them to my preffered mp4 format, it would take longer.

Hope that helps
 
Old 09-07-2021, 05:49 PM   #38
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,020

Rep: Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630
Thanks for the update.
 
Old 09-11-2021, 08:43 AM   #39
GPGAgent
Senior Member
 
Registered: Oct 2018
Location: Surrey UK
Distribution: Mint 20 xfce 64bit
Posts: 1,026

Original Poster
Blog Entries: 3

Rep: Reputation: 133Reputation: 133
DVD Ripping - Further Update

I've found if I play the disc with VLC, just open it, get the dvd menu up then close vlc I can dd the disk.
I've written this script - DVDdd.sh
Code:
#!/bin/bash
renice 19 -p $$
LOGFILE="DVDdd.txt"
echot() {
            echo “$*” | tee -a ${LOGFILE}
}

titles_report(){
    SRC="$1.iso"
    now=$(date +"%T")
    echot "$now - Generating the $1.txt report"          
    echo "Generating the $1.txt report" > "$1.txt"         
    echo "HandBrakeCLI -i ${SRC} -t 0 2>&1 | grep -E \"title.+ chapter\"" >> "$1.txt"
    HandBrakeCLI -i ${SRC} -t 0 2>&1 | grep -E "title.+ chapter" >> "$1.txt"
    echo "========== alternate =========================" >> "$1.txt"
    HandBrakeCLI -i ${SRC} -t 0 2>&1 | egrep  '+ title' | egrep -v 'scanning|decoding|preview|angle|subtitle|hb_scan|bluray|^\+ title' >> "$1.txt"
    echo "========== alternate =========================" >> "$1.txt"
    lsdvd ${SRC} | awk '{print $1,$2,$3,$4}' >> "$1.txt"
    echo "========== finished ==========================" >> "$1.txt"
    now=$(date +"%T")
    echot "$now - Completed $1 report - see $1.txt"
}

if [[ $# -eq 0 ]]; then
    echo "==========================================================="
    echo "Please enter the iso filename to output to, ABC for example"
    echo "==========================================================="
    exit 1
fi

VS=$(isoinfo -d -i /dev/sr0|grep 'Volume size is:'|awk '{print  $4}')
echo "Blocks in $1.iso: $VS      Total Size is: $(( $VS * 2048 ))"  # 2048
echo "$(( $VS * 2048 ))"  # 2048
dd if=/dev/sr0 of="$1.iso" bs=2048 count=$VS status=progress  #8192
eject /dev/sr0
titles_report $1
which works just fine and produced this - before using VLC to open the dvd
Code:
$ DVDdd.sh Bewitched-S7D1
5464 (process ID) old priority 0, new priority 19
Blocks in Bewitched-S7D1.iso: 3815616      Total Size is: 7814381568
7814381568
dd: error reading '/dev/sr0': Input/output error
550+0 records in
550+0 records out
1126400 bytes (1.1 MB, 1.1 MiB) copied, 1.0547 s, 1.1 MB/s
“14:14:56 - Generating the Bewitched-S7D1.txt report”
libdvdread: Invalid IFO for title 2 (VTS_02_0.BUP).
libdvdread: Invalid IFO for title 3 (VTS_03_0.BUP).

libdvdread: Invalid IFO for title 22 (VTS_22_0.BUP).
libdvdread: Invalid IFO for title 23 (VTS_23_0.BUP).
libdvdread: Invalid IFO for title 24 (VTS_24_0.BUP).
“14:14:57 - Completed Bewitched-S7D1 report - see Bewitched-S7D1.txt”
$
It fails
Open dvd with vlc
Code:
$ DVDdd.sh Bewitched-S7D1
5609 (process ID) old priority 0, new priority 19
Blocks in Bewitched-S7D1.iso: 3815616      Total Size is: 7814381568
7814381568
7812147200 bytes (7.8 GB, 7.3 GiB) copied, 783 s, 10.0 MB/s
3815616+0 records in
3815616+0 records out
7814381568 bytes (7.8 GB, 7.3 GiB) copied, 783.313 s, 10.0 MB/s
“14:29:24 - Generating the Bewitched-S7D1.txt report”
“14:29:35 - Completed Bewitched-S7D1 report - see Bewitched-S7D1.txt”
$
success!
And the report it generates is this
Code:
Generating the Bewitched-S7D1.txt report
HandBrakeCLI -i Bewitched-S7D1.iso -t 0 2>&1 | grep -E "title.+ chapter"
[14:29:25] scan: title 1 has 6 chapters
[14:29:25] scan: title 2 has 6 chapters
[14:29:25] scan: title 3 has 6 chapters
[14:29:25] scan: title 4 has 6 chapters
[14:29:25] scan: title 5 has 6 chapters
[14:29:25] scan: title 6 has 6 chapters
[14:29:25] scan: title 7 has 6 chapters
[14:29:25] scan: title 8 has 2 chapters
[14:29:25] scan: title 9 has 1 chapters
[14:29:25] scan: title 10 has 1 chapters
[14:29:25] scan: title 11 has 1 chapters
[14:29:25] scan: title 12 has 1 chapters
[14:29:25] scan: title 13 has 1 chapters
[14:29:25] scan: title 14 has 1 chapters
[14:29:25] scan: title 15 has 1 chapters
[14:29:25] scan: title 16 has 2 chapters
[14:29:25] scan: title 17 has 1 chapters
========== alternate =========================
[14:29:33] scan: DVD has 24 title(s)
[14:29:33] scan: title 1 has 6 chapters
[14:29:33] scan: title 2 has 6 chapters
[14:29:33] scan: title 3 has 6 chapters
[14:29:33] scan: title 4 has 6 chapters
[14:29:33] scan: title 5 has 6 chapters
[14:29:33] scan: title 6 has 6 chapters
[14:29:33] scan: title 7 has 6 chapters
[14:29:33] scan: title 8 has 2 chapters
[14:29:33] scan: title 9 has 1 chapters
[14:29:33] scan: title 10 has 1 chapters
[14:29:33] scan: title 11 has 1 chapters
[14:29:33] scan: title 12 has 1 chapters
[14:29:33] scan: title 13 has 1 chapters
[14:29:33] scan: title 14 has 1 chapters
[14:29:33] scan: title 15 has 1 chapters
[14:29:33] scan: title 16 has 2 chapters
[14:29:33] scan: title 17 has 1 chapters
[14:29:33] scan: ignoring title (too short)
[14:29:33] scan: ignoring title (too short)
[14:29:33] scan: ignoring title (too short)
[14:29:33] scan: ignoring title (too short)
[14:29:33] scan: ignoring title (too short)
[14:29:33] scan: ignoring title (too short)
[14:29:33] scan: ignoring title (too short)
[14:29:35] libhb: scan thread found 17 valid title(s)
========== alternate =========================
Disc Title: BEWITCHED_SEASON_7_DISC_1 
Title: 01, Length: 00:24:24.600
Title: 02, Length: 00:24:23.400
Title: 03, Length: 00:24:25.680
Title: 04, Length: 00:24:25.400
Title: 05, Length: 00:24:24.200
Title: 06, Length: 00:24:27.600
Title: 07, Length: 00:24:26.680
Title: 08, Length: 00:00:14.360
Title: 09, Length: 00:00:10.400
Title: 10, Length: 00:00:10.400
Title: 11, Length: 00:00:19.000
Title: 12, Length: 00:00:40.320
Title: 13, Length: 00:00:10.400
Title: 14, Length: 00:00:12.400
Title: 15, Length: 00:00:10.000
Title: 16, Length: 00:00:45.000
Title: 17, Length: 00:00:11.800
Title: 18, Length: 00:00:07.400
Title: 19, Length: 00:00:07.400
Title: 20, Length: 00:00:07.400
Title: 21, Length: 00:00:07.400
Title: 22, Length: 00:00:07.400
Title: 23, Length: 00:00:07.400
Title: 24, Length: 00:00:06.920
Longest track: 06 
========== finished ==========================
cool isn't it!

Now I can use the .iso file to extract and re-encode any title I like, like this
Code:
HandBrakeCLI -i test.iso -t 5 -r 25 -e x264 --encoder-preset veryfast  -5 -q 24 -2 -o Season-02-Title-5-32.mp4
This will process title 5
 
Old 09-20-2021, 08:43 PM   #40
watchingu
Member
 
Registered: Oct 2017
Location: USA
Distribution: Arch Linux, Debian Stable, Debian Unstable
Posts: 73

Rep: Reputation: 17
When I used Windows, I used a program by Slysoft called AnyDVD that always worked flawlessly when ripping DVDs. AnyDVD was dead simple to use as well. Slysoft went away, but some of the developers continued the work under another company name called RedFox. There's chatter of a possible Linux version at some point in the future, but no ETA. I'd buy AnyDVD in a heartbeat if it became available for Linux.
 
Old 11-05-2021, 07:28 AM   #41
GPGAgent
Senior Member
 
Registered: Oct 2018
Location: Surrey UK
Distribution: Mint 20 xfce 64bit
Posts: 1,026

Original Poster
Blog Entries: 3

Rep: Reputation: 133Reputation: 133
Cool DVD Ripping - Update

Update - I've added a vlc command line to my DVDdd.sh script
Code:
.....
..
.......
if [[ $# -eq 0 ]]; then
    echo "==========================================================="
    echo "Please enter the iso filename to output to, ABC for example"
    echo "==========================================================="
    exit 1
fi
             #
qvlc dvd://  # added this to open the dvd - when it's got to the menu screen close it to start the dd process
             #
VS=$(isoinfo -d -i /dev/sr0|grep 'Volume size is:'|awk '{print  $4}')
echo "Blocks in $1.iso: $VS      Total Size is: $(( $VS * 2048 ))"  # 2048
echo "$(( $VS * 2048 ))"  # 2048
dd if=/dev/sr0 of="$1.iso" bs=2048 count=$VS status=progress  #8192
eject /dev/sr0
titles_report $1
.....
..
.....
This opens the dvd with vlc, you let it do it's decrypting, once the dvd menu displays just close the vlc screen and the script begins the dd process, sweet!
 
  


Reply



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
DVD ripping in linux? Kage Linux - Newbie 7 02-01-2004 10:24 PM
DVD-R, DVD+RW, DVD-RW and DVD+R zetsui Linux - Hardware 5 09-12-2003 06:15 PM
DVD Player, and DVD/MP3 ripping Roy-Svork Linux - Software 8 05-28-2003 09:32 AM
DVD-ripping question gwroy20 Linux - Software 12 05-16-2003 03:52 AM
automatic DVD ripping script.... Try it! acid_kewpie Linux - Software 20 10-04-2002 05:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:03 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