Extract Subtitles From Dvd Ffmpeg

#2208closedenhancement (fixed)

Reported by:Owned by:
Priority: wish Component: avformat
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Although MPlayer can also be used, FFmpeg seems more refined when dumping or clipping specific audio chapters from DVD or Blu-Ray media. Root # emerge -ask media-video/ffmpeg (If somebody successfully uses MPlayer/MPlayer2 to dump PCM specified chapters, feel free to add it to this Wiki page and retitle appropriately. Does any body know how to extract subtitles from a dvd or a vob file with ffmpeg? I could get fine working.sub and.idx files via mencoder command: mencoder dvd://1 -vobsubout subtitle -vobsuboutindex 0 -vobsuboutid it -sid 10 -nosound -ovc copy -o 1.avi but i get a huge temporary file (1.avi) witch is the entire video stream. I hope that ffmpeg could handle subtitle extraction without video.

Extract

Description

Attachments (4)

track_05 - Subtitle.sup​ (140 bytes) - added by moropus8 years ago.
track_06 - Subtitle.sup​ (379.3 KB) - added by moropus8 years ago.
track_07 - Subtitle.sup​ (400.1 KB) - added by moropus8 years ago.
track_08 - Subtitle.sup​ (326.3 KB) - added by moropus8 years ago.

Download all attachments as: .zip

Change History (11)

comment:1 Changed 8 years ago by cehoyos

  • Component changed from FFmpeg to avformat
  • Keywordspgssub added
  • Priority changed from normal to wish
  • Type changed from defect to enhancement
  • Version changed from unspecified to git-master

comment:2 Changed 8 years ago by moropus

Last edited 8 years ago by moropus (previous) (diff)

Changed 8 years ago by moropus

  • Attachmenttrack_05 - Subtitle.sup​ added

Changed 8 years ago by moropus

  • Attachmenttrack_06 - Subtitle.sup​ added

Changed 8 years ago by moropus

  • Attachmenttrack_07 - Subtitle.sup​ added

Changed 8 years ago by moropus

  • Attachmenttrack_08 - Subtitle.sup​ added
Extract

Extract Subtitle From Mp4

comment:4 Changed 8 years ago by cehoyos

  • Reproduced by developer set
  • Status changed from new to open

Ffmpeg Burn In Subtitles

comment:6 Changed 8 years ago by cehoyos

Ffmpeg copy all subtitles
  • Keywordssup added

comment:7 Changed 3 years ago by richardpl

  • Resolution set to fixed
  • Status changed from open to closed

In this tutorial, I will show you a simple way to RIP DVD into a single file using FFmpeg command line tool in Linux.

Install FFmpeg in Ubuntu/Debian/Linux Mint

Subtitles

Now copy contents of your DVD to local folder and cd into that folder(eg: video_ts)

1. RIP DVD into a single file

Now enter below command to start riping process in optimum quality, If you want to control the size (eg: limit size to 700MB) of the ripped file, then use the third command

2. RIP DVD with deinterlace option

If you want enable deinterlace option run below commnad

3. RIP DVD with quality option

Use below command to reduce size and quality of output file, Here the ‘-crf’ option sets the quality of the ripped file. The range of the CRF scale is 0–51, where 0 is lossless , 23 is the default, and 51 is the worst quality possible.

Above command will read all video files in a folder and pipe the stream to FFmpeg command, after the successful completion of the command you can find the ripped file with name rip.mp4