Dirk Meyer <[EMAIL PROTECTED]> writes:
>
> It should work without that, the pack header is optional and can't be
> right because of the variable bitrate. IMHO there is only one
> solution: fix xine-lib/src/demuxers/demux_mpeg.c
>
I kind of fixed it, but not the way you suggested. I just don't know
enough about the mpeg format, nor of xine. Instead I just tried to get
a roughly appropriate rate.
For freevo recordings, the mpeg_pes demuxer is used, so the file to
fix is xine-lib/src/demuxers/demux_mpeg_pes.c
In this file, there is a function demux_mpeg_pes_estimate_rate(),
which is disabled by the two #defines ESTIMATE_RATE_FIXED and
USE_ILL_ADVISED_ESTIMATE_RATE_INITIALLY
With some further fixes to this function, the rate calculation finally
worked, and I can seek with xine. And the seek amount is only wrong
about a few seconds, which is WAY better than with mplayer.
After some code cleanup[1], I could send the patch to anyone who wants
it (maybe to the list?).
Best regards,
Hans-Jürgen
Footnotes:
[1] Remove the debugging outputs, and there is a search inside an array
without boundary checks
--
multitasking = screwing up several things at once
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Freevo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-devel