<br><br><div class="gmail_quote">On Tue, Feb 26, 2008 at 12:36 PM, Anthony Zawacki &lt;<a href="mailto:azmail@thezawackis.com">azmail@thezawackis.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">faginbagin wrote:<br>
&gt;&gt;&gt; Anyway, I have come up with an alternative approach. I&#39;ve tinkered with<br>
&gt;&gt;&gt; mythburn.py (the 0.20.2 version). One of the things I&#39;ve done is to<br>
&gt;&gt;&gt; create chapter marks using the commercial marks mythcommflag stores in<br>
&gt;&gt;&gt; the database. As a result, you can use your DVD remote&#39;s skip buttons to<br>
&gt;&gt;&gt; bypass the commercials. I&#39;m planning to include a patch for anyone who&#39;s<br>
&gt;&gt;&gt; interested. I skimmed the latest code in trunk, and I think there&#39;s a<br>
&gt;&gt;&gt; good chance my patch might apply cleanly to the latest mythburn.py<br>
&gt;<br>
&gt;&gt; Using this information, shouldn&#39;t it be possible to create the dvd in a<br>
&gt;&gt; way that the default movie would then automatically skip the commercials<br>
&gt;&gt; by arranging the chapter order? &nbsp;You would still have the commercials on<br>
&gt;&gt; the dvd in unreferenced chapters, but you would still get captions and<br>
&gt;&gt; the movie would play straight through.<br>
&gt;<br>
&gt; That&#39;s a thought, although I&#39;m not sure it can be done with dvdauthor.<br>
&gt; Maybe some other tool?<br>
<br>
</div>Unfortunately, I don&#39;t have a direct example, but I believe that it is<br>
possible. &nbsp;It should be able to be done using the &lt;pre&gt; or &lt;post&gt; tags<br>
for the &lt;pgc&gt;.<br>
<div class="Ih2E3d"><br>
&gt; Another thought I had would be to cut commercials from the &quot;final.mpg&quot;<br>
&gt; created after the CC based subtitle stream has been added. I don&#39;t know<br>
&gt; if a mythtv utility can do this and preserve the subtitles, but perhaps<br>
&gt; another tool, combined with a SQL query of the mythtv database to get<br>
&gt; the commercial marks?<br>
<br>
</div>I&#39;m less familiar with how captions work than mpeg files in general.<br>
However, when I get home tonight, I will experiment with gopchop to see<br>
if captions survive cutting out commercials with it. &nbsp;The last time I<br>
looked at gopchop, it didn&#39;t support EDLs (Edit Decision Lists, which is<br>
essentially the list of commercials to be cut) but that was quite some<br>
time ago.<br>
<div class="Ih2E3d"><br>
&gt; FWIW, the IVTV VBI data stream headers have their own time base, very<br>
&gt; different from the time base of the video and audio streams. I suspect<br>
&gt; the tools that demux and remux the video and audio streams aren&#39;t using<br>
&gt; the time stamps in MPEG2 stream headers. At least, they don&#39;t look like<br>
&gt; consistent sources of time stamps. I suspect the tools rely more on<br>
&gt; frame counts and fps. That&#39;s one reason why I think doing commercial<br>
&gt; cutting using the original recording would be tricky. So far, I&#39;ve only<br>
&gt; figured out how to decode the stream headers, not the stream data, so I<br>
&gt; have no idea where frames begin and end.<br>
<br>
</div>My understanding, in a simplistic manner, is that MPEG has a Group Of<br>
Pictures (GOP) which basically is a frame that is the complete picture,<br>
and then a series of diffs to this first frame. &nbsp;So, if you cut on a GOP<br>
marker, you can cut from there to the next GOP marker losslessly. &nbsp;But<br>
how the subtitles are folded into the GOPs, I don&#39;t know. &nbsp;I&#39;m fairly<br>
confident that some subtitles will survive cutting a recording using<br>
gopchop. &nbsp;I&#39;m not confident in what the result will be as I could see<br>
several different possibilities, worse case the subtitles are not cut,<br>
and they get further and further off with each subsequent cut in the<br>
video stream.<br>
<font color="#888888"><br>
Anthony<br>
</font><div><div></div><div class="Wj3C7c"><br>
<br>
_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
<a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users" target="_blank">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a><br>
</div></div></blockquote></div><br>Have you tried ccextractor?&nbsp; It generates srt text files with time stamps.&nbsp; Would it be possible to modify the srt file according to a list of cutlist points? Then use spumux to add the modified srt file to the final video.<br>
<br>Chris<br><br>