doc:appunti:linux:video:subtitleripper
                Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| doc:appunti:linux:video:subtitleripper [2024/02/01 11:23] – [Converting the .vob into .mkv format] niccolo | doc:appunti:linux:video:subtitleripper [2024/02/01 11:56] (current) – [How to rip DVD subtitles with vobsub2srt] niccolo | ||
|---|---|---|---|
| Line 9: | Line 9: | ||
| * **lsdvd** - From the official Debian repository. | * **lsdvd** - From the official Debian repository. | ||
| * **vobcopy** - From the official Debian repository. | * **vobcopy** - From the official Debian repository. | ||
| + | * **mediainfo** - From the official Debian repository. | ||
| * **mkvtoolnix** - From the official Debian repository. | * **mkvtoolnix** - From the official Debian repository. | ||
| * **vobsub2srt** - From the Deb Multimedia repository. | * **vobsub2srt** - From the Deb Multimedia repository. | ||
| ===== Ripping the .vob from the DVD ===== | ===== Ripping the .vob from the DVD ===== | ||
| + | |||
| + | A DVD can contain several **titles** and you should identify which one you want to rip; generally it is the longer one or the one with most chapters. We check the DVD content using the **lsdvd** tool: | ||
| + | |||
| + | < | ||
| + | lsdvd /dev/sr0 | ||
| + | Disc Title: DVD_TITLE | ||
| + | Title: 01, Length: 01: | ||
| + | Title: 02, Length: 00: | ||
| + | Title: 03, Length: 00: | ||
| + | Title: 04, Length: 00: | ||
| + | Title: 05, Length: 00: | ||
| + | Title: 06, Length: 00: | ||
| + | Longest track: 01 | ||
| + | </ | ||
| + | |||
| + | The longest title is the **#1**, so we will extract it using **vobcopy**: | ||
| <code bash> | <code bash> | ||
| vobcopy -n ' | vobcopy -n ' | ||
| </ | </ | ||
| + | |||
| + | The resulting file will be saved into the working directory (as specified by the **%%-o%%** option) and it will be named by the DVD title, something like **DVD_TITLE.vob**. | ||
| + | |||
| + | You can inspect the content of the file using the **mediainfo** tool, in our case the file contains one video stream, two audio streams and three subtitle streams. The subtitles are in the standard DVD format: VobSub, which is a images (bitmap) format, not text. | ||
| + | |||
| ===== Converting the .vob into .mkv format ===== | ===== Converting the .vob into .mkv format ===== | ||
| Line 49: | Line 71: | ||
| <code bash> | <code bash> | ||
| - | vobsub2srt --ifo ' | + | vobsub2srt --ifo ' | 
| </ | </ | ||
| The .IFO file is required to get the correct palette, width and hight, but it is not mandatory. | The .IFO file is required to get the correct palette, width and hight, but it is not mandatory. | ||
doc/appunti/linux/video/subtitleripper.1706782981.txt.gz · Last modified:  by niccolo
                
                