[MPlayer-dev-eng] [PATCH] Seek in real media files
陆然
hephooey at fastmail.fm
Wed Oct 8 03:57:32 CEST 2003
Hi,
There are two patches in the attachment, the first one improved seek function
when playing real media files. the key point is: when using the idx for seek,
either the files own index or the generated one, the audio frame must be a
keyframe. Otherwise the seek will be failed. And I find the 'current_apacket'
and 'current_vpacket' does not increace while the file is playing, so I add
some code to keep it sync with the movie. The third improvment is that the
original code doesn't work with the file's own index, the patch will add the
support.
With this patch, MPlayer can seek in real media files using -forceidx or
-idx, I recommend using -idx because I found -forceidx sometimes failed to
generate the index from some movies. The code works at least for me, but is
dirty and really need some cleanup. But I have no time since I have to head
up to the DOCS translation. So feel free to modify it and please don't flame
on me.:-)
The other one is a ugly work around for the bug I reported several days ago.
No one seems interested so I made a work around myself, I don't think it can
be commited into the source, just hope it can be useful to test the first
patch.
--
Best Regards,
LR
-------------- next part --------------
A non-text attachment was scrubbed...
Name: real_media_seek.diff
Type: text/x-diff
Size: 7226 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20031008/45ec53b9/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: work_around.diff
Type: text/x-diff
Size: 446 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20031008/45ec53b9/attachment-0001.diff>
More information about the MPlayer-dev-eng
mailing list