[FFmpeg-devel] [PATCH] RTMP seek support

Howard Chu hyc
Mon Mar 29 02:57:29 CEST 2010


Howard Chu wrote:
> Howard Chu wrote:
>> This is a first stab at getting seek working on an RTMP stream. Unfortunately,
>> it usually fails. Sometimes it works correctly, but most times it just hangs.
>> Apparently there's something getting out of sync, but I don't have any idea
>> where. Any help would be appreciated.
>>
>> I've been testing with this stream:
>>
>> gdb --args ./ffplay_g
>> "rtmp://fms.scctv.net/annenberg//vod/world_of_chemistry_01
>> swfurl=http://www.learner.org/vod/swfs/player-licensed.swf
>> pageurl=http://www.learner.org/vod/vod_window.html?pid=793"
>
> Thanks to a tip from uau this is now working.

Some confusion over whether to implement read_seek or read_seek2. 
av_seek_frame() already rescales the timestamp correctly for the stream, so 
the protocol handler shouldn't be doing that. (But avformat_seek_file doesn't 
rescale, so read_seek2 would need to do it.)
-- 
   -- Howard Chu
   CTO, Symas Corp.           http://www.symas.com
   Director, Highland Sun     http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP  http://www.openldap.org/project/
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: dif3.txt
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100328/fead611a/attachment.txt>



More information about the ffmpeg-devel mailing list