{"id":95,"date":"2007-06-16T05:58:00","date_gmt":"2007-06-16T10:58:00","guid":{"rendered":"http:\/\/www.familytidings.com\/blog\/?p=95"},"modified":"2007-06-16T05:58:00","modified_gmt":"2007-06-16T10:58:00","slug":"preserving-closed-captions","status":"publish","type":"post","link":"https:\/\/www.familytidings.com\/blog\/?p=95","title":{"rendered":"Preserving Closed Captions"},"content":{"rendered":"<p>Extract closed captions from your edited video:<br \/><code>$ <a href=\"http:\/\/ccextractor.sourceforge.net\/\">ccextractor<\/a> -srt edited-video.mpg<\/code><br \/>This will create a text file called edited-video_1.srt that contains the captions.<\/p>\n<p>Create the spumux configuration file (in this case called spumux.xml):<\/p>\n<pre>&lt;subpictures&gt;<br \/>  &lt;stream&gt;<br \/>    &lt;textsub filename=\"edited-video_1.srt\" characterset=\"ISO8859-1\"<br \/>      fontsize=\"24.0\" font=\"arial.ttf\" horizontal-alignment=\"left\"<br \/>      vertical-alignment=\"bottom\" left-margin=\"60\" right-margin=\"60\"<br \/>      top-margin=\"20\" bottom-margin=\"30\" subtitle-fps=\"29.97\"<br \/>      movie-fps=\"29.97\" movie-width=\"720\" movie-height=\"472\"<br \/>      force=\"yes\"<br \/>    \/&gt;<br \/>  &lt;\/stream&gt;<br \/>&lt;\/subpictures&gt;<\/pre>\n<p>This file is for NTSC.  The defaults in the spumux man page are for PAL.<\/p>\n<p>Convert edited-video.mpg to DVD format (See my other posts) called edited-video.vob.<\/p>\n<p>Insert closed captions as subtitles:<br \/><code>$ spumux spumux.xml &lt; edited-video.vob &gt; edited-video-with-subs.vob<\/code><\/p>\n<p>Test with <code>mplayer dvd:\/\/ -dvd-device dvd -sid 0<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Extract closed captions from your edited video:$ ccextractor -srt edited-video.mpgThis will create a text file called edited-video_1.srt that contains the captions. Create the spumux configuration file (in this case called spumux.xml): &lt;subpictures&gt; &lt;stream&gt; &lt;textsub filename=&#8221;edited-video_1.srt&#8221; characterset=&#8221;ISO8859-1&#8243; fontsize=&#8221;24.0&#8243; font=&#8221;arial.ttf&#8221; horizontal-alignment=&#8221;left&#8221; vertical-alignment=&#8221;bottom&#8221; left-margin=&#8221;60&#8243; right-margin=&#8221;60&#8243; top-margin=&#8221;20&#8243; bottom-margin=&#8221;30&#8243; subtitle-fps=&#8221;29.97&#8243; movie-fps=&#8221;29.97&#8243; movie-width=&#8221;720&#8243; movie-height=&#8221;472&#8243; force=&#8221;yes&#8221; \/&gt; &lt;\/stream&gt;&lt;\/subpictures&gt; This file is for [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-95","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/95","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=95"}],"version-history":[{"count":0,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/95\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=95"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=95"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=95"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}