{"id":4031,"date":"2024-10-18T17:21:54","date_gmt":"2024-10-18T17:21:54","guid":{"rendered":"https:\/\/www.qworqs.com\/blog\/?p=4031"},"modified":"2024-10-19T14:28:52","modified_gmt":"2024-10-19T14:28:52","slug":"dvd-vob-files-to-mp4-with-ffmpeg","status":"publish","type":"post","link":"https:\/\/www.voodoo.business\/blog\/2024\/10\/18\/dvd-vob-files-to-mp4-with-ffmpeg\/","title":{"rendered":"DVD VOB files to MP4 with FFMPEG"},"content":{"rendered":"\n<p>Let us start by analyzing our input files and what we expect to find<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A video stream, the obvious<\/li>\n\n\n\n<li>Audio streams for different languages<\/li>\n\n\n\n<li>Audio streams that should play together<\/li>\n\n\n\n<li>dvd_subtitle<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">dvd_subtitle<\/h2>\n\n\n\n<p>Let us start with the subtitles, the encoder\/decoder for dvd_subtitle stream is either dv<strong>d<\/strong>sub or dv<strong>b<\/strong>sub.<\/p>\n\n\n\n<p>According to documentation, This codec decodes the bitmap subtitles used in DVDs; the same subtitles can also be found in VobSub file pairs and in some Matroska files.<\/p>\n\n\n\n<p>Metroska uses VobSub, vobsub is basically the same as the stream in DVD but in a file with the extension &#8220;*.sub&#8221;.<\/p>\n\n\n\n<p>So, I have a stream with &#8220;dvd_subtitle&#8221; on stream 0:3, to extract, I will probably use a command such as<\/p>\n\n\n\n<p>Extracting the subtitle files<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ffmpeg -i input.VOB -c copy -map 0:3 subtitles.sub<\/pre>\n\n\n\n<p>Now, at this stage, if you want to convert them to srt for example (Or a text base subtitle system), you will need to use a tool that has OCR !! Such a tool is VobSub2SRT <a href=\"https:\/\/github.com\/ruediger\/VobSub2SRT\">=><\/a><\/p>\n\n\n\n<p>Another method after extracting is using an online service such as this one (<a href=\"https:\/\/subtitletools.com\/convert-to-srt-online\">https:\/\/subtitletools.com\/convert-to-srt-online<\/a>) to turn subtitles into SRT<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Let us start by analyzing our input files and what we expect to find dvd_subtitle Let us start with the subtitles, the encoder\/decoder for dvd_subtitle stream is either dvdsub or dvbsub. According to documentation, This codec decodes the bitmap subtitles used in DVDs; the same subtitles can also be found in VobSub file pairs and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4031","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/4031","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/comments?post=4031"}],"version-history":[{"count":4,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/4031\/revisions"}],"predecessor-version":[{"id":4041,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/4031\/revisions\/4041"}],"wp:attachment":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/media?parent=4031"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/categories?post=4031"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/tags?post=4031"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}