[mythtv] Fwd: [PATCH] MPEG2->MPEG2 commercial cut (myth patch rev-b)
ou401cru02 at sneakemail.com
Sat Jan 10 10:17:15 EST 2004
Let's try it again...with FEELING this time...
----- Original message -----
This patch is yet another minor revision of the mpeg2->mpeg2 commercial
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
Either way, I probably need to look into ensuring that we obey the
packet-timing rules to make the output as compatible as possible.
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 10439 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20040110/ebff571a/transcode18b.patch.bin
More information about the mythtv-dev