The other day my cousin lent me some movies, and he was asking me back, so I wanted to make one of them. copy. I tried with dvd :: rip but it didn't work very well for me, and checking the DVD I saw some video files. I thought if the joined and encoded, would have the movie. And it served 🙂 Today I come to share the trick.
With that note, we begin. First of all, let's introduce a DVD. I used one of Sherlock Holmes 😉
To start, we insert the DVD that we want to copy. Then we assemble and check it. In my case, the folder where the movie is is called VIDEO_TS. We just have to copy those parts of the movie to a folder in our Home. One good thing about this is that we do not copy the advertisements that it may bring 😉
In case you want to know, they are «shares»Because the programs that the DVDs often generate a menu of «Select scene«. So, they divide the movie in order to be able to choose a specific scene.
The next thing is to give him permission to Reading and writing to those files, to delete them later. Now we open a terminal in the folder where the pieces of the film are, and we execute this command:
cat parte1.extensión parte2.extensión ... parteX.extensión > temp.extensión
I explain. Where says "partX.extension«, Place the name and extension of each of the parts, then those parts are copied to a single file called temp. extension. It is important that the file «temp»Has the same extension as the other files. For example:
cat VTS_01_1.VOB VTS_01_2.VOB VTS_01_3.VOB VTS_01_4.VOB > temp.VOB
In my case there are 4 parts, extension .VOB. So the final file also has the extension .VOB.
When that's done, it just remains code the final file with ffmpeg. For example:
ffmpeg -i temp.VOB -vcodec libxvid -sameq nombre.avi
Or it could also be:
ffmpeg -i temp.VOB -vcodec msmpegv4 -sameq nombre.mp4
Use of El ffmpeg it's simple. the parameter -i is to enter the file to encode, -vcodec is used to indicate a video codec, with -sameq we indicate that you keep the same quality, and finally we write the name of the final file.
The codec «msmpegv4»Also applies to the format .avi, and it gives a good compression 🙂
That's it. I would only subtract delete temporary file and parts, in addition to placing the finished file where we want.
You know, if you have any questions, opinions or suggestions: comment 😀