[mythtv] [PATCH] Transcoding, MPEG2, streaming

Geoffrey Hausheer ou401cru02 at sneakemail.com
Wed Aug 27 17:38:20 EDT 2003

Here is another transcoder patch.  It fixes the audio sync problems Chris
reported.  Basically, it turned out to be a float->int rounding bug. 
When I compute bytes/msec of audio at my normal rates (32kHz and 48kHz),
the value comes out even.  But at 44.1kHz (which is what Chris (and
probably lots of others) use), the value isn't even, and that led to
rounding errors in my sync code.  This patch also fixes a problem when
using the cutlist with the fifo output.  Lastly, it overrides the audio
sample-rate of the output to match the input stream.  This should fix the
slow-motion problems reported by one of the other Chris.

This leaves the only known open bug against the transcoder to be the
problem with PVR250->mpeg4 not generating a valid seek table.  I will
work on that next.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: transcode14.patch
Type: application/unknown
Size: 4366 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20030827/a7cba019/transcode14.bin

More information about the mythtv-dev mailing list