<br><br><div class="gmail_quote">On Tue, Feb 26, 2008 at 12:36 PM, Anthony Zawacki <<a href="mailto:azmail@thezawackis.com">azmail@thezawackis.com</a>> 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>
>>> Anyway, I have come up with an alternative approach. I've tinkered with<br>
>>> mythburn.py (the 0.20.2 version). One of the things I've done is to<br>
>>> create chapter marks using the commercial marks mythcommflag stores in<br>
>>> the database. As a result, you can use your DVD remote's skip buttons to<br>
>>> bypass the commercials. I'm planning to include a patch for anyone who's<br>
>>> interested. I skimmed the latest code in trunk, and I think there's a<br>
>>> good chance my patch might apply cleanly to the latest mythburn.py<br>
><br>
>> Using this information, shouldn't it be possible to create the dvd in a<br>
>> way that the default movie would then automatically skip the commercials<br>
>> by arranging the chapter order? You would still have the commercials on<br>
>> the dvd in unreferenced chapters, but you would still get captions and<br>
>> the movie would play straight through.<br>
><br>
> That's a thought, although I'm not sure it can be done with dvdauthor.<br>
> Maybe some other tool?<br>
<br>
</div>Unfortunately, I don't have a direct example, but I believe that it is<br>
possible. It should be able to be done using the <pre> or <post> tags<br>
for the <pgc>.<br>
<div class="Ih2E3d"><br>
> Another thought I had would be to cut commercials from the "final.mpg"<br>
> created after the CC based subtitle stream has been added. I don't know<br>
> if a mythtv utility can do this and preserve the subtitles, but perhaps<br>
> another tool, combined with a SQL query of the mythtv database to get<br>
> the commercial marks?<br>
<br>
</div>I'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. The last time I<br>
looked at gopchop, it didn'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>
> FWIW, the IVTV VBI data stream headers have their own time base, very<br>
> different from the time base of the video and audio streams. I suspect<br>
> the tools that demux and remux the video and audio streams aren't using<br>
> the time stamps in MPEG2 stream headers. At least, they don't look like<br>
> consistent sources of time stamps. I suspect the tools rely more on<br>
> frame counts and fps. That's one reason why I think doing commercial<br>
> cutting using the original recording would be tricky. So far, I've only<br>
> figured out how to decode the stream headers, not the stream data, so I<br>
> 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. So, if you cut on a GOP<br>
marker, you can cut from there to the next GOP marker losslessly. But<br>
how the subtitles are folded into the GOPs, I don't know. I'm fairly<br>
confident that some subtitles will survive cutting a recording using<br>
gopchop. I'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? It generates srt text files with time stamps. 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>