User Tools

Site Tools


doc:appunti:linux:video:subtitleripper

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
doc:appunti:linux:video:subtitleripper [2024/02/01 11:26] – [Ripping the .vob from the DVD] niccolodoc: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:
 +
 +<code>
 +lsdvd /dev/sr0
 +Disc Title: DVD_TITLE
 +Title: 01, Length: 01:02:36.480 Chapters: 03, Cells: 03, Audio streams: 02, Subpictures: 04
 +Title: 02, Length: 00:00:12.800 Chapters: 01, Cells: 01, Audio streams: 02, Subpictures: 04
 +Title: 03, Length: 00:21:01.760 Chapters: 01, Cells: 01, Audio streams: 02, Subpictures: 04
 +Title: 04, Length: 00:00:00.480 Chapters: 01, Cells: 01, Audio streams: 02, Subpictures: 04
 +Title: 05, Length: 00:21:10.000 Chapters: 01, Cells: 01, Audio streams: 02, Subpictures: 04
 +Title: 06, Length: 00:20:24.720 Chapters: 01, Cells: 01, Audio streams: 02, Subpictures: 04
 +Longest track: 01
 +</code>
 +
 +The longest title is the **#1**, so we will extract it using **vobcopy**:
  
 <code bash> <code bash>
Line 54: Line 71:
  
 <code bash> <code bash>
-vobsub2srt --ifo './VTS_01_0.IFO' --dump-images --tesseract-lang ita subtitles-3+vobsub2srt --ifo './VTS_01_0.IFO' --dump-images --tesseract-lang ita 'subtitles-3'
 </code> </code>
  
 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.1706783215.txt.gz · Last modified: 2024/02/01 11:26 by niccolo