Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I recently ripped a copy of "The Hunger Games: Catching Fire"
from DVD and the resulting file was of the entire film, though
the scenes were out of order.
I used Handbrake under Linux Fedora 20.
What did I do wrong? What do I need to
do to make a copy of the film with scenes in
the correct order?
Handbrake listed the tracks on the disk as follows:
Code:
The Hunger Games Catching Fir (Title 1. Chapters 1 through 25. Video Pass) 覧> The Hunger Games Catching Fir - 1.mkv
The Hunger Games Catching Fir (Title 2. Chapters 1 through 2. Video Pass) 覧> The Hunger Games Catching Fir - 2.mkv
The Hunger Games Catching Fir (Title 2. Chapters 1 through 6. Video Pass) 覧> The Hunger Games Catching Fir - 3.mkv
The Hunger Games Catching Fir (Title 4. Chapters 1 through 2. Video Pass) 覧> The Hunger Games Catching Fir - 4.mkv
The Hunger Games Catching Fir (Title 5. Chapters 1 through 2. Video Pass) 覧> The Hunger Games Catching Fir - 5.mkv
The Hunger Games Catching Fir (Title 6. Chapters 1 through 2. Video Pass) 覧> The Hunger Games Catching Fir - 6.mkv
The Hunger Games Catching Fir (Title 7. Chapters 1 through 2. Video Pass) 覧> The Hunger Games Catching Fir - 7.mkv
The Hunger Games Catching Fir (Title 8. Chapters 1 through 2. Video Pass) 覧> The Hunger Games Catching Fir - 8.mkv
The Hunger Games Catching Fir (Title 9. Chapters 1 through 1. Video Pass) 覧> The Hunger Games Catching Fir - 9.mkv
The Hunger Games Catching Fir (Title 10. Chapters 1 through 1. Video Pass) 覧> The Hunger Games Catching Fir - 10.mkv
The Hunger Games Catching Fir (Title 14. Chapters 1 through 1. Video Pass) 覧> The Hunger Games Catching Fir - 11.mkv
The Hunger Games Catching Fir (Title 16. Chapters 1 through 50. Video Pass) 覧> The Hunger Games Catching Fir - 12.mkv
The Hunger Games Catching Fir (Title 17. Chapters 1 through 1. Video Pass) 覧> The Hunger Games Catching Fir - 13.mkv
The Hunger Games Catching Fir (Title 18. Chapters 1 through 25. Video Pass) 覧> The Hunger Games Catching Fir - 14.mkv
etc. ...
And as I wrote above, track 1.mkv was the entire film, a one GB file, but with the scenes not
in the correct order.
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 3,073
Rep:
Thevlongest title is not always the correct title, it's a simple form of copy bprotection to fool rippers that automatically set the main title to be the longest title, you need to find out whivh is the correct title and select it manually, if you do not own the dvd the copy you are making under the 'fair use' common laws may mean you are breaking the law in your country.
The longest title is not always the correct title, it's a simple form of copy
protection to fool rippers that automatically set the main title to be the
longest title, you need to find out whivh is the correct title and select it
manually,
But I ripped _every_ track off the DVD. Only one of the tracks was
long enough to be the entire film, which it was (but the scenes were
out order).
Quote:
if you do not own the dvd the copy you are making under the 'fair
use' common laws may mean you are breaking the law in your country
I got the DVD from a public library. I don't intend to
distribute the film, but just view it in my home.
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 3,073
Rep:
Rip the track with mplayer first using mplayer
Code:
mplayer dvdnav://1 -dumpstream -dumpfile out.mpg
Where 1 is the title number.
If you are checking out this movie from the library then you are definatly going to be breaking the law if you rip and keep the movie, your choice.
If you are checking out this movie from the library then you are definatly
going to be breaking the law if you rip and keep the movie, your choice.
Ok, I will delete the file after I return the DVD to the library. Never let
it be said that ChicagoCoyote breaks the content protection laws of the land.
I will continue the efforts I have started however as a proof of concept
and as an exercise to obtain knowledge.
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 3,073
Rep:
You could try putting the dvd in a real player get it playing the main title and then get the info for the movie, most dvd players have some sort of info display, current title, sound track etc etc. then use that track number, don't have hunger games so can't help muh more than general hints.
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 3,073
Rep:
If you've got an xbix 360 you can use that, had a quick look on google to see if I could find the correct title and it seems a lot of people are in the smame boat asyou as there seems to be some new copy protection on the disk
If you have the VLC media player, you can get the current title playing.
Load the DVD and then launch VLC. Next, play the main movie title. While the main movie is playing, on the top of the VLC player, click on Playback > Titles. You will see all the titles available for that DVD. The current title playing will be selected by a black dot.
Now that you know the title number, you can now use handbrake, mplayer/mencoder, or even VLC itself to rip or ( borrow ) that title number.
Load the DVD and then launch VLC. Next, play the main movie title. While the
main movie is playing, on the top of the VLC player, click on Playback >
Titles. You will see all the titles available for that DVD. The current title
playing will be selected by a black dot.
Now that you know the title number, you can now use handbrake,
mplayer/mencoder, or even VLC itself to rip or ( borrow  ) that title number.
Gee Brett, thanks.
Actually, you are not following the thread or the issue.
The issue is that there is a difference in scene order of
the film between these two methods of watching the film:
(1) Watch the DVD from a media player (such as VLC).
In these instances, the scene order is correct.
(2) Rip the track from the DVD to the hard disk
and then watch the resulting file from a media player.
In these instances, the scene order is not correct.
This behavior has been duplicated by both handbrake
and mplayer.
Evidently, there is some sort of content protection
system going on.
The full track of the movie on the DVD _really_ does have
the scenes out of order. There must be some sort of
table of contents track that indicates to a DVD player what
the correct sequence of scenes is really supposed to be.
These conclusions are not faulty but are based
on accurate observation.
Maybe some day, handbrake/mplayer/libdvdcss will be able to deal
with this.
When watching the main featurette with VLC, the title number is constant from the beginning of the movie and towards the end. In fact, you can test this yourself by checking the current title playing at the beginning of the movie and near at the end of the movie.
Can you do a test with VLC to get the current title playing and then use mplayer to dump the title.
First watch at least 10 to 15 minutes of the DVD with VLC to see the flow of the movie. Then use mplayer to rip that title number. Next, watch the ripped version for the same amount of time and see if things are still in order.
Maybe some day, handbrake/mplayer/libdvdcss will be able to deal
with this.
This is not a CSS problem. libdvdcss is doing it's job perfectly (otherwise you would not be seeing ANY scenes from the movie, forget about them being in the correct order). handbrake and mplayer deal with it fine too, if you know how to use them, and feed appropriate data to them correctly.
For starters:
(1) You need libdvdcss. You've already got that.
(2) You need to find the correct track to rip. Several people above have already told you how to do this.
(3) You need to rip using "dvdnav", not "dvd".
Those three steps should be enough to get you started.
While this is not CSS causing your issues, it is a form of copy protection. The production of the DVD intentionally includes many bogus titles that have the various things messed up. Scene order is one such thing (but you will run into others - intentional bad sectors, etc.) When you rip with "dvd" it just runs down the scenes in the linear order it finds them. And that linear order has them mixed up in regards to viewing order. And if they threw in intentional bad sectors, "dvd" tries to read these too (in linear order) and chokes. "dvdnav" knows how to navigate the other tables on the DVD to rearrange the scenes into correct order. And dvdnav also navigates around the intentional bad sectors. "dvd" does not know how to do any of this. Another copy protection scheme you will run into is scrambled directory structure. You will see this if you mount the DVD and then run something like "du -sh" on the mountpoint. That will return something ridiculous, like 50Gb, which can't possibly fit on a DVD. With this copy protection scheme, if you do an "ls" on the mountpoint, you will almost always see 99 tracks. These two findings pretty much go hand in hand. You don't want to try to rip the entire DVD if you encounter this directory scrambling scheme. You will end up with one monstrous file that isn't going to be useful. Go for ripping the one track you need. The intentional bad sectors scheme will mess up an "entire DVD" rip as well, so don't try it. Of course, you won't know about the bad sectors until you TRY to rip it, and see all the errors. At that point, abort, and go for a different method. Remember, "dvdnav" is your friend.
Below are some commands you may want to investigate, since you said you want to learn. I cut-n-pasted them from several different PERL scripts I have written over the years to work with DVD's. Because I am not trying to create a tutorial on DVD copying, which is probably illegal in many localities, these commands are intentionally in random order. And some commands are quite archaic and won't work anymore with newer copy protection schemes. But this could serve as a good investigation/learning experience. But the commands below, chosen approprietly for the copy protection scheme at hand, applied in the correct order, should result in you being able to copy anything you want from the command line. I haven't found anything I couldn't copy yet - I use this to rip my personal DVD's and put them on my media server, or create backup copies of the DVD's I really love. I have not messed with Bluray yet, because I don't own any of those disks, so I have nothing to try to rip for my media server.
After you successfully rip a DVD, there's nothing wrong with switching from commandline to some GUI-based tool like handbrake or DVDshrink (run under Wine) if that's what you prefer to do for the remainder of the operations.
If all else fails: Virtualbox -> Win XP -> AnyDVD (costs a few $) -> DVDShrink. (This keeps the kids entertained on a long flight/drive with a 12" Android tablet without having to cart along a box full of easily damaged DVDs)
Thank you haertig, for that wealth of information.
The explanation of "dvdnav" verses "dvd" option
of mplayer was particularly helpful.
Also, thank you haertig for confirming what I had already
determined, that sometimes on a DVD, the track that that
contains the entire film really does have the scenes
in a bogus order.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.