{"id":21,"date":"2004-01-19T20:40:00","date_gmt":"2004-01-20T01:40:00","guid":{"rendered":"http:\/\/www.familytidings.com\/blog\/?p=21"},"modified":"2004-01-19T20:40:00","modified_gmt":"2004-01-20T01:40:00","slug":"21","status":"publish","type":"post","link":"https:\/\/www.familytidings.com\/blog\/?p=21","title":{"rendered":""},"content":{"rendered":"<p>I found a better way to create the MPV file:<\/p>\n<p><code>extract_mpeg2 project.mpeg > project.mpv<\/code><\/p>\n<p>Then copy <code>project.mpv<\/code> to <code>\/video\/vie\/project\/<\/code>.<\/p>\n<p>I was still getting the &#8220;frames per second&#8221; error.  This turned out to be an error in the source code in <code>xste-3.2.5\/video.c<\/code> line 161:<\/p>\n<p><code>if ( video_file_fps != dframes_per_second )<\/code><\/p>\n<p>will fail due to approximate representations of floating pointnumbers.  I changed the code to:<\/p>\n<p><code>if ( fabs(video_file_fps - dframes_per_second) >= 0.001 )<\/code><\/p>\n<p>That fixed the error message, but I still didn&#8217;t have preview video.  Then I got this error on stdout:  <code>xste: preview_display(): video size 720 x 480 not equal selected display size 720 x 576<\/code>.  After screwing around with mpeg utilities to convert my video to 720&#215;576, I hit myself in the head and changed vert size to 480 on the xste main screen.  I clicked on another subtitle line and the video was there!  I tried different lines and it updated the subtitles but not the video.  That&#8217;s when I noticed this error on stdout:<br \/><code>mpeg3video_seek:  frame accurate seeking without a table of contents is no longer supported.  Use mpeg3toc &lt;mpeg file&gt; &lt;table of contents&gt; to generate a table of contents and load the table of contents instead.<\/code><\/p>\n<p>So in <code>\/video\/vie\/project<\/code>:<\/p>\n<p><code>mpeg3toc project.mpv project-toc.mpv<\/code><\/p>\n<p>and load <code>project-toc.mpv<\/code> when the preview video button asks for the mpv file.<\/p>\n<p>Now to add subtitles to my video.  The Output button on the xste main window creates <code>~\/.subtitles\/project\/project.sub<\/code>.<\/p>\n<p>From the <code>~\/.subtitles\/project directory<\/code>:<\/p>\n<p><code>submux-dvd -P \/mnt\/edit\/project\/project.mpeg project.sub \/mnt\/edit\/project\/project-sub.mpeg<\/code><br \/>You have to do this from the directory where you ran xste because the paths to the bmp files are stored in <code>project.sub<\/code> as relative, not absolute.<\/p>\n<p>From <code>\/mnt\/edit\/project<\/code>, edit your DVD XML file and change the name of the MPEG file to the new MPEG+Subtitles file you just created.  Then create your DVD files:<\/p>\n<p><code>rm -rf dvd; dvdauthor -o dvd -x project.xml<\/code><\/p>\n<p>Play the new dvd directory with<\/p>\n<p>Ogle:  <code>ogle dvd\/VIDEO_TS<\/code><\/p>\n<p>or MPlayer:  <code>mplayer -sid 0 dvd\/VIDEO_TS\/VTS_01_1.VOB<\/code><\/p>\n<p>or Xine:  <code>xine -u 0 dvd\/VIDEO_TS\/VTS_01_1.VOB<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I found a better way to create the MPV file: extract_mpeg2 project.mpeg > project.mpv Then copy project.mpv to \/video\/vie\/project\/. I was still getting the &#8220;frames per second&#8221; error. This turned out to be an error in the source code in xste-3.2.5\/video.c line 161: if ( video_file_fps != dframes_per_second ) will fail due to approximate representations [&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-21","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\/21","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=21"}],"version-history":[{"count":0,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/21\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=21"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=21"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=21"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}