Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > General > Linux, Mac OS X, & Co

Reply
 
Thread Tools Search this Thread Display Modes
Old 18th December 2011, 09:52   #1  |  Link
Carpo
Registered User
 
Carpo's Avatar
 
Join Date: Dec 2002
Location: /dev/null
Posts: 1,369
ripping a dvd or bluray under linux?

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
__________________
The Internet: where men are men, women are men, and children are FBI Agents
Carpo is offline   Reply With Quote
Old 18th December 2011, 10:40   #2  |  Link
cord-factor
Registered User
 
Join Date: Jan 2008
Location: Kharkov, UA
Posts: 105
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).
__________________
Gentoo linux
cord-factor is offline   Reply With Quote
Old 18th December 2011, 10:42   #3  |  Link
Carpo
Registered User
 
Carpo's Avatar
 
Join Date: Dec 2002
Location: /dev/null
Posts: 1,369
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


Code:
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)
__________________
The Internet: where men are men, women are men, and children are FBI Agents

Last edited by Carpo; 18th December 2011 at 11:17.
Carpo is offline   Reply With Quote
Old 18th December 2011, 11:26   #4  |  Link
cord-factor
Registered User
 
Join Date: Jan 2008
Location: Kharkov, UA
Posts: 105
Quote:
There are 99 titles on this DVD.
Oh!
Cool, you have to determine which title is the "full movie".

Code:
$ mplayer dvd://1
$ mplayer dvd://2
$ mplayer dvd://3
$ mplayer dvd://4
..
__________________
Gentoo linux
cord-factor is offline   Reply With Quote
Old 18th December 2011, 11:27   #5  |  Link
Carpo
Registered User
 
Carpo's Avatar
 
Join Date: Dec 2002
Location: /dev/null
Posts: 1,369
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?
__________________
The Internet: where men are men, women are men, and children are FBI Agents

Last edited by Carpo; 18th December 2011 at 11:31.
Carpo is offline   Reply With Quote
Old 18th December 2011, 11:31   #6  |  Link
cord-factor
Registered User
 
Join Date: Jan 2008
Location: Kharkov, UA
Posts: 105
You can also try to play this DVD on player with DVD menu support. And see there the appropriate title number.
__________________
Gentoo linux
cord-factor is offline   Reply With Quote
Old 18th December 2011, 13:25   #7  |  Link
nm
Registered User
 
Join Date: Mar 2005
Location: Finland
Posts: 2,643
Quote:
Originally Posted by Carpo View Post
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.

Quote:
Originally Posted by Carpo View Post
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.
nm is offline   Reply With Quote
Old 18th December 2011, 15:21   #8  |  Link
Carpo
Registered User
 
Carpo's Avatar
 
Join Date: Dec 2002
Location: /dev/null
Posts: 1,369
Quote:
Originally Posted by nm View Post
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
__________________
The Internet: where men are men, women are men, and children are FBI Agents
Carpo is offline   Reply With Quote
Old 18th December 2011, 15:44   #9  |  Link
nm
Registered User
 
Join Date: Mar 2005
Location: Finland
Posts: 2,643
Quote:
Originally Posted by Carpo View Post
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?
nm is offline   Reply With Quote
Old 18th December 2011, 15:52   #10  |  Link
Ghitulescu
Registered User
 
Ghitulescu's Avatar
 
Join Date: Mar 2009
Location: Germany
Posts: 5,679
Quote:
Originally Posted by nm View Post
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
__________________
Born in the USB (not USA)
Ghitulescu is offline   Reply With Quote
Old 18th December 2011, 15:59   #11  |  Link
nm
Registered User
 
Join Date: Mar 2005
Location: Finland
Posts: 2,643
But do those programs show the chapters where each episode starts and ends, or how do they make it easier?
nm is offline   Reply With Quote
Old 18th December 2011, 16:08   #12  |  Link
Carpo
Registered User
 
Carpo's Avatar
 
Join Date: Dec 2002
Location: /dev/null
Posts: 1,369
normally i would use dvdfab, it shows you the different eps

Here is how it looks in explorer (looks same in linux)



and here is how it looks under main movie in dvdfab (again would look the same under Linux/wine, if it was working)

__________________
The Internet: where men are men, women are men, and children are FBI Agents
Carpo is offline   Reply With Quote
Old 18th December 2011, 16:09   #13  |  Link
cord-factor
Registered User
 
Join Date: Jan 2008
Location: Kharkov, UA
Posts: 105
Carpo, what kind of content is on this DVD? It's movie, serial (like TV series), custom DVD or what?
__________________
Gentoo linux
cord-factor is offline   Reply With Quote
Old 18th December 2011, 16:10   #14  |  Link
Carpo
Registered User
 
Carpo's Avatar
 
Join Date: Dec 2002
Location: /dev/null
Posts: 1,369
DVD of a tv-sicom - 6 eps on the disc
__________________
The Internet: where men are men, women are men, and children are FBI Agents
Carpo is offline   Reply With Quote
Old 18th December 2011, 16:24   #15  |  Link
Ghitulescu
Registered User
 
Ghitulescu's Avatar
 
Join Date: Mar 2009
Location: Germany
Posts: 5,679
Quote:
Originally Posted by nm View Post
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).
__________________
Born in the USB (not USA)
Ghitulescu is offline   Reply With Quote
Old 18th December 2011, 16:54   #16  |  Link
cord-factor
Registered User
 
Join Date: Jan 2008
Location: Kharkov, UA
Posts: 105
Quote:
Originally Posted by Carpo View Post
sounds like a ball ache
Write script:
Code:
#!/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.
__________________
Gentoo linux

Last edited by cord-factor; 18th December 2011 at 16:58.
cord-factor is offline   Reply With Quote
Old 18th December 2011, 16:57   #17  |  Link
Carpo
Registered User
 
Carpo's Avatar
 
Join Date: Dec 2002
Location: /dev/null
Posts: 1,369
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
__________________
The Internet: where men are men, women are men, and children are FBI Agents
Carpo is offline   Reply With Quote
Old 18th December 2011, 17:03   #18  |  Link
cord-factor
Registered User
 
Join Date: Jan 2008
Location: Kharkov, UA
Posts: 105
You asked for linux solution, didn't you?
I don't use wine.
__________________
Gentoo linux
cord-factor is offline   Reply With Quote
Old 18th December 2011, 17:07   #19  |  Link
Carpo
Registered User
 
Carpo's Avatar
 
Join Date: Dec 2002
Location: /dev/null
Posts: 1,369
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
__________________
The Internet: where men are men, women are men, and children are FBI Agents
Carpo is offline   Reply With Quote
Old 18th December 2011, 18:42   #20  |  Link
nm
Registered User
 
Join Date: Mar 2005
Location: Finland
Posts: 2,643
Quote:
Originally Posted by Carpo View Post
and here is how it looks under main movie in dvdfab (again would look the same under Linux/wine, if it was working)

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?

Last edited by nm; 18th December 2011 at 19:02.
nm is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:10.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.