[mythtv] [PATCH] better avi seek support

J. Donavan Stanley jdonavan at jdonavan.net
Wed May 4 17:52:33 UTC 2005


John Patrick Poet wrote:

> 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.


That's because the command is "mythcommflag --video"


More information about the mythtv-dev mailing list