View Full Version : ripping a dvd or bluray under linux?
Carpo
18th December 2011, 09:52
Normally i would use DVDfab under wine (i know about the issues some people have with the author/program/code, but it worked) but seems latest version(s) seem to have a bit of an issue under wine now, and in my drive to use native programs i thought i would ask here.
I have seen the links and read a few of them but am going to ask for advice on them, not which are best or what not, but which are stable, easy to use, and would suit a beginner to Linux
All advice welcome :)
cord-factor
18th December 2011, 10:40
DVD. Dump stream first.
$ mplayer dvd:// -dumpstream -dumpfile file.mpg
After that, you can encode this file as you want (ffmpeg/mencoder/avidemux/...etc).
BD. It's easier. Find the biggest *.m2ts file in the BD structure. That will be it. Next is the same, encode this file as you want (ffmpeg/mencoder/avidemux/...etc).
Carpo
18th December 2011, 10:42
how would that work for episode discs ? and im guessing the bluray would be same command ?
edit: after using the above command all i get is a 30KB mpeg file, i guess i am doing something wrong, or something is not installed that should be
mplayer dvd://4 -dumpstream -dumpfile file.mpg
MPlayer SVN-r34445-4.6.2 (C) 2000-2011 MPlayer Team
Playing dvd://4.
libdvdread: Using libdvdcss version 1.2.11 for DVD access
There are 99 titles on this DVD.
There are 1 angles in this DVD title.
libdvdread: Attempting to retrieve all CSS keys
libdvdread: This can take a _long_ time, please be patient
libdvdread: Get key for /VIDEO_TS/VIDEO_TS.VOB at 0x000001de
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_0.VOB at 0x000019f4
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x00001a09
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_1.VOB at 0x00001a29
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_0.VOB at 0x00002576
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_1.VOB at 0x0000257b
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_04_0.VOB at 0x00002796
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_04_1.VOB at 0x00018df2
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_05_0.VOB at 0x00002796
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_05_1.VOB at 0x00018df2
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_06_0.VOB at 0x00002796
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_06_1.VOB at 0x00018df2
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_07_0.VOB at 0x00002796
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_07_1.VOB at 0x00018df2
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_08_0.VOB at 0x00002796
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_08_1.VOB at 0x00018df2
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_09_0.VOB at 0x00002796
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_09_1.VOB at 0x00018df2
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_10_0.VOB at 0x00002796
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_10_1.VOB at 0x00018df2
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_11_0.VOB at 0x00002796
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_11_1.VOB at 0x00018df2
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_12_0.VOB at 0x00002796
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_12_1.VOB at 0x00018df2
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_13_0.VOB at 0x00002796
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_13_1.VOB at 0x00018df2
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_14_0.VOB at 0x00002796
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_14_1.VOB at 0x00018df2
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_15_1.VOB at 0x0023e33f
libdvdread: Elapsed time 0
libdvdread: Found 15 VTS's
libdvdread: Elapsed time 0
number of audio channels on disk: 0.
number of subtitles on disk: 0
dump: 38912 bytes written to 'file.mpg'.
Core dumped ;)
Exiting... (End of file)
cord-factor
18th December 2011, 11:26
There are 99 titles on this DVD.
Oh!
Cool, you have to determine which title is the "full movie".
$ mplayer dvd://1
$ mplayer dvd://2
$ mplayer dvd://3
$ mplayer dvd://4
..
Carpo
18th December 2011, 11:27
they all look the same :( been going through them one by one, damn ripguard :(
edit: found it!!!! titles 4 to 13 gave strange libdvdcss errors 14 hit the spot :) , now just to see if its in sync.
Back to my previous question, how would i do this, if its an episodic disc with the episode all in on title?
cord-factor
18th December 2011, 11:31
You can also try to play this DVD on player with DVD menu support. And see there the appropriate title number.
nm
18th December 2011, 13:25
they all look the same :( been going through them one by one, damn ripguard :(
dvdnav://N instead of dvd://N might work better on such discs.
Back to my previous question, how would i do this, if its an episodic disc with the episode all in on title?
I guess you need to use -chapter to specify the start and end point, and rip each episode separately. See the manual page for more info.
Carpo
18th December 2011, 15:21
dvdnav://N instead of dvd://N might work better on such discs.
I guess you need to use -chapter to specify the start and end point, and rip each episode separately. See the manual page for more info.
sounds like a ball ache :(
nm
18th December 2011, 15:44
sounds like a ball ache :(
I've never seen a disc with all episodes in one title. How do you separate them in DVD ripping programs?
Ghitulescu
18th December 2011, 15:52
I've never seen a disc with all episodes in one title.
How do you separate them in DVD ripping programs?
Try an anime DVD :).
By chapters :)
nm
18th December 2011, 15:59
But do those programs show the chapters where each episode starts and ends, or how do they make it easier?
Carpo
18th December 2011, 16:08
normally i would use dvdfab, it shows you the different eps
Here is how it looks in explorer (looks same in linux)
http://img267.imageshack.us/img267/2376/vtsq.th.jpg (http://imageshack.us/photo/my-images/267/vtsq.jpg/)
and here is how it looks under main movie in dvdfab (again would look the same under Linux/wine, if it was working)
http://img842.imageshack.us/img842/7867/epsh.th.jpg (http://imageshack.us/photo/my-images/842/epsh.jpg/)
cord-factor
18th December 2011, 16:09
Carpo, what kind of content is on this DVD? It's movie, serial (like TV series), custom DVD or what?
Carpo
18th December 2011, 16:10
DVD of a tv-sicom - 6 eps on the disc
Ghitulescu
18th December 2011, 16:24
But do those programs show the chapters where each episode starts and ends, or how do they make it easier?
Generally 1 chapter per episode, to allow a direct call of an episode, like it works for a mainstream movie (jump to chapter).
cord-factor
18th December 2011, 16:54
sounds like a ball ache :(
Write script:
#!/bin/bash
mplayer dvd://1 -dumpstream -dumpfile 01.mpg
mplayer dvd://2 -dumpstream -dumpfile 02.mpg
mplayer dvd://3 -dumpstream -dumpfile 03.mpg
mplayer dvd://4 -dumpstream -dumpfile 04.mpg
mplayer dvd://5 -dumpstream -dumpfile 05.mpg
mplayer dvd://6 -dumpstream -dumpfile 06.mpg
mplayer dvd://7 -dumpstream -dumpfile 07.mpg
mplayer dvd://8 -dumpstream -dumpfile 08.mpg
mplayer dvd://9 -dumpstream -dumpfile 09.mpg
mplayer dvd://10 -dumpstream -dumpfile 10.mpg
mplayer dvd://11 -dumpstream -dumpfile 11.mpg
mplayer dvd://12 -dumpstream -dumpfile 12.mpg
mplayer dvd://13 -dumpstream -dumpfile 13.mpg
mplayer dvd://14 -dumpstream -dumpfile 14.mpg
mplayer dvd://15 -dumpstream -dumpfile 15.mpg
mplayer dvd://16 -dumpstream -dumpfile 16.mpg
mplayer dvd://17 -dumpstream -dumpfile 17.mpg
mplayer dvd://18 -dumpstream -dumpfile 18.mpg
mplayer dvd://19 -dumpstream -dumpfile 19.mpg
mplayer dvd://20 -dumpstream -dumpfile 20.mpg
mplayer dvd://21 -dumpstream -dumpfile 21.mpg
mplayer dvd://22 -dumpstream -dumpfile 22.mpg
mplayer dvd://23 -dumpstream -dumpfile 23.mpg
mplayer dvd://24 -dumpstream -dumpfile 24.mpg
mplayer dvd://25 -dumpstream -dumpfile 25.mpg
mplayer dvd://26 -dumpstream -dumpfile 26.mpg
mplayer dvd://27 -dumpstream -dumpfile 27.mpg
mplayer dvd://28 -dumpstream -dumpfile 28.mpg
mplayer dvd://29 -dumpstream -dumpfile 29.mpg
mplayer dvd://30 -dumpstream -dumpfile 30.mpg
mplayer dvd://31 -dumpstream -dumpfile 31.mpg
mplayer dvd://32 -dumpstream -dumpfile 32.mpg
mplayer dvd://33 -dumpstream -dumpfile 33.mpg
mplayer dvd://34 -dumpstream -dumpfile 34.mpg
mplayer dvd://35 -dumpstream -dumpfile 35.mpg
mplayer dvd://36 -dumpstream -dumpfile 36.mpg
mplayer dvd://37 -dumpstream -dumpfile 37.mpg
mplayer dvd://38 -dumpstream -dumpfile 38.mpg
mplayer dvd://39 -dumpstream -dumpfile 39.mpg
mplayer dvd://40 -dumpstream -dumpfile 40.mpg
mplayer dvd://41 -dumpstream -dumpfile 41.mpg
mplayer dvd://42 -dumpstream -dumpfile 42.mpg
mplayer dvd://43 -dumpstream -dumpfile 43.mpg
mplayer dvd://44 -dumpstream -dumpfile 44.mpg
mplayer dvd://45 -dumpstream -dumpfile 45.mpg
mplayer dvd://46 -dumpstream -dumpfile 46.mpg
mplayer dvd://47 -dumpstream -dumpfile 47.mpg
mplayer dvd://48 -dumpstream -dumpfile 48.mpg
mplayer dvd://49 -dumpstream -dumpfile 49.mpg
mplayer dvd://50 -dumpstream -dumpfile 50.mpg
mplayer dvd://51 -dumpstream -dumpfile 51.mpg
mplayer dvd://52 -dumpstream -dumpfile 52.mpg
mplayer dvd://53 -dumpstream -dumpfile 53.mpg
mplayer dvd://54 -dumpstream -dumpfile 54.mpg
mplayer dvd://55 -dumpstream -dumpfile 55.mpg
mplayer dvd://56 -dumpstream -dumpfile 56.mpg
mplayer dvd://57 -dumpstream -dumpfile 57.mpg
mplayer dvd://58 -dumpstream -dumpfile 58.mpg
mplayer dvd://59 -dumpstream -dumpfile 59.mpg
mplayer dvd://60 -dumpstream -dumpfile 60.mpg
mplayer dvd://61 -dumpstream -dumpfile 61.mpg
mplayer dvd://62 -dumpstream -dumpfile 62.mpg
mplayer dvd://63 -dumpstream -dumpfile 63.mpg
mplayer dvd://64 -dumpstream -dumpfile 64.mpg
mplayer dvd://65 -dumpstream -dumpfile 65.mpg
mplayer dvd://66 -dumpstream -dumpfile 66.mpg
mplayer dvd://67 -dumpstream -dumpfile 67.mpg
mplayer dvd://68 -dumpstream -dumpfile 68.mpg
mplayer dvd://69 -dumpstream -dumpfile 69.mpg
mplayer dvd://70 -dumpstream -dumpfile 70.mpg
mplayer dvd://71 -dumpstream -dumpfile 71.mpg
mplayer dvd://72 -dumpstream -dumpfile 72.mpg
mplayer dvd://73 -dumpstream -dumpfile 73.mpg
mplayer dvd://74 -dumpstream -dumpfile 74.mpg
mplayer dvd://75 -dumpstream -dumpfile 75.mpg
mplayer dvd://76 -dumpstream -dumpfile 76.mpg
mplayer dvd://77 -dumpstream -dumpfile 77.mpg
mplayer dvd://78 -dumpstream -dumpfile 78.mpg
mplayer dvd://79 -dumpstream -dumpfile 79.mpg
mplayer dvd://80 -dumpstream -dumpfile 80.mpg
mplayer dvd://81 -dumpstream -dumpfile 81.mpg
mplayer dvd://82 -dumpstream -dumpfile 82.mpg
mplayer dvd://83 -dumpstream -dumpfile 83.mpg
mplayer dvd://84 -dumpstream -dumpfile 84.mpg
mplayer dvd://85 -dumpstream -dumpfile 85.mpg
mplayer dvd://86 -dumpstream -dumpfile 86.mpg
mplayer dvd://87 -dumpstream -dumpfile 87.mpg
mplayer dvd://88 -dumpstream -dumpfile 88.mpg
mplayer dvd://89 -dumpstream -dumpfile 89.mpg
mplayer dvd://90 -dumpstream -dumpfile 90.mpg
mplayer dvd://91 -dumpstream -dumpfile 91.mpg
mplayer dvd://92 -dumpstream -dumpfile 92.mpg
mplayer dvd://93 -dumpstream -dumpfile 93.mpg
mplayer dvd://94 -dumpstream -dumpfile 94.mpg
mplayer dvd://95 -dumpstream -dumpfile 95.mpg
mplayer dvd://96 -dumpstream -dumpfile 96.mpg
mplayer dvd://97 -dumpstream -dumpfile 97.mpg
mplayer dvd://98 -dumpstream -dumpfile 98.mpg
mplayer dvd://99 -dumpstream -dumpfile 99.mpg
After that you wiil have 99 files. According to their size can be assumed that there is.
Carpo
18th December 2011, 16:57
that output message is a lie, the disc i was testing on only had 16 VTS's on it, guess it was part of the ripguard crap, i was just asking in general how you would do this with an episode disc that had all the episodes in one VTS, thats what the images above are for and were aimed at nm's question, sorry for the mis-confusion
cord-factor
18th December 2011, 17:03
You asked for linux solution, didn't you?
I don't use wine.
Carpo
18th December 2011, 17:07
yes and your solution works for main movie, how would your solution work for episodes within a set of vts's? eg vts_01_1.vob VTS_01_2.vob - VTS_01_7 etc etc, if i do it your way i have the extra work of having to find them and cut them up, join them, unless as nm says you can do it by chapters, havent had time to test that yet
nm
18th December 2011, 18:42
and here is how it looks under main movie in dvdfab (again would look the same under Linux/wine, if it was working)
http://img842.imageshack.us/img842/7867/epsh.th.jpg (http://imageshack.us/photo/my-images/842/epsh.jpg/)
In that screenshot each episode seems to be accessible as a separate title. Are those titles just something that dvdfab creates for your convenience and they can't be accessed through dvdnav://N in MPlayer?
Carpo
18th December 2011, 18:44
i havent tried under mplayer yet, bit busy with other things, but its on the list of things to do, as to dvdfab, cant say to be honest will have a better idea once i have had a bit of time to play around with it
sl1pkn07
18th December 2011, 20:09
makemkv with backup option
Carpo
18th December 2011, 20:10
isnt that going payware?
nm
18th December 2011, 22:27
isnt that going payware?
MakeMKV is currently freeware, but requires you to input a new beta key from the forum (http://www.makemkv.com/forum2/viewtopic.php?f=5&t=1053) every now and then unless you pay for the software. MakeMKV's website also says that "Functionality to open DVD discs is free and will always stay free".
Carpo
18th December 2011, 22:28
cool, will look into it when i have some time off work, more than likely sometime next week :)
Darksoul71
19th January 2012, 19:16
Hi all,
hopefully you excuse me for "highjacking" this thread ! :)
I simplified the script of cord-factor a bit with a simple loop:
#!/bin/bash
# This script "ripps" all titles of a DVD automagically into separate mpg-files.
# Doing this for encrypted DVDs of course relies on a mplayer compiled with libdcss support
for count in {1..99}
do
if [ $count -lt 10 ]; then
file_count="0$count"
else
file_count="$count"
fi
mplayer dvd://$count -dumpstream -dumpfile $file_count.mpg
done
Vob-files are drop in the identical scheme: XX.mpg
Edit: Over at gentoo there is a thread in regard to watching / ripping blueray under Linux:
http://forums.gentoo.org/viewtopic-t-691564.html
HTH,
D$
cord-factor
21st January 2012, 10:10
I simplified the script of cord-factor a bit with a simple loop:
Yes, this is more practical.
Darksoul71
21st January 2012, 14:20
BTW: The resulting ripped MPEG/VOB-files seem to have no MPEG index. This makes scrolling a bit cumbersome. is there a simple way to fix this ?
For example doing a stream copy with mencoder and force idx (or something like this) ?
cord-factor
21st January 2012, 17:37
BTW: The resulting ripped MPEG/VOB-files seem to have no MPEG index. This makes scrolling a bit cumbersome. is there a simple way to fix this ?
For example doing a stream copy with mencoder and force idx (or something like this) ?
Maybe... but I know only radical solution
$ projectx file.ts -demux
$ mplex -f 8 file.video file.audio -o muxed.mpg
ps
http://project-x.sourceforge.net/
http://mjpeg.sourceforge.net/
nm
21st January 2012, 18:11
BTW: The resulting ripped MPEG/VOB-files seem to have no MPEG index.
MPEG-PS doesn't have a built-in index. On DVDs the index is stored in separate IFO files.
For GOP indexing, mux the program streams to a container such as MKV. Chapter information needs to be transferred with other tools, if you need a higher level index.
snherbst
26th January 2012, 23:35
I had the same problem. When ripping DVD. I used VLC to play the movie and this results normally in a correct DVD title beeing played then check in VLC which title is being played. This title I ripped using handbreake and only this title, volia everythis is ripped correctly. Worked with diffrent DVD.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.