[mythtv] [PATCH] MPEG2->MPEG2 commercial cut (myth patch rev-b)

DBakker at arrayasolutions.com DBakker at arrayasolutions.com
Sat Jan 10 09:42:17 EST 2004


please attach the patch.




"Geoffrey Hausheer" <ou401cru02 at sneakemail.com> 
Sent by: mythtv-dev-bounces at mythtv.org
01/10/2004 09:28 AM
Please respond to
Development of mythtv <mythtv-dev at mythtv.org>


To
mythtv-dev at mythtv.org
cc

Subject
[mythtv] [PATCH] MPEG2->MPEG2 commercial cut (myth patch rev-b)






This patch is yet another minor revision of the mpeg2->mpeg2 commercial
cut code.

The commercial cutting should work now (REALLY).  I also changed how
video PTS are written slightly
No other significant changes over the 18a patch.

As for why the files generated are smaller than the originals even when
no commercial-cutting is done, we remove all 'PAD' frames from the
stream.  This should not directly impact the stream's compliance, however
it is possible that it does so.

Specifically, it appears that the packet rate is constrained when either
the 'fixed' or 'CSPS' flags are enabled (and libavformat sets both of
these).  This appears to enforce the arrival times of any given
audio/video packet, and I am guessing that the padding frames are used to
align to those speced values.

I have temporarily disabled setting the fixed and CSPS streams.  While
this is legal MPEG2 format, it may not be well supported by all players.

I'd appreciate comments on whether this makes the streams play better or
not.

Either way, I probably need to look into ensuring that we obey the
packet-timing rules to make the output as compatible as possible.

To Do:
Try to make streams more compatible with other players.

These streams work well for me in mythtv, and so I plan to finish the
integration next rather than banging my head against compatibility some
more.  So hopefully the next patch will support updating the
recordedmarkup table.  However, if you are still having playback issues
(especially when playing-back using mythfrontend), please let me know.

.Geoff
_______________________________________________
mythtv-dev mailing list
mythtv-dev at mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-dev/attachments/20040110/8dd8a4b0/attachment.html


More information about the mythtv-dev mailing list