[mythtv] [PATCH] better avi seek support

John Patrick Poet john at BlueSkyTours.com
Wed May 4 14:14:59 UTC 2005


Mark Spieth wrote:

> I have implemented a patch that allows avis to be played and seeked 
> correctly. it shows correct length too!
> I know its a bit of a nasty hack.
> The reasons for doing it this way is to minimise the impact on 
> libavformat which Isaac has stressed.
> Thus avidec.c has 1 new function and is thus easy to merge.
> The new function is the same as avi_read_seek except without the 
> url_fseek.
> It is needed to sync the audio and video stream timestamps otherwise 
> they diverge uncontrollably.
> It is only activated if there is an index in the avi file.
> The structures in avidec are partially reproduced in 
> avformatdecoder.cpp to allow scanning of the index table.
> This has been annoying me for a while now and have finally done 
> something about it.
> note that I use myth to play my avi's instead of mplayer or xine due 
> to timestretch and thus it was higher on my priority list.
> feedback welcome.
> cheers
> mark


I have several videos I have tried to import into Myth in the past.  
Doing a "mythcommflag --rebuild" has always been ineffectual.

I am at home waiting for the the "cable guy" to show up, and decided to 
see if this patch solves the problem.  It does!

After a jump to a new location in the file, the video is corrupt for a 
few seconds, but then it clears up and looks fine.  Small price to pay 
to actually be able import these files into the main Myth system.

Thank you,

John



More information about the mythtv-dev mailing list