[FFmpeg-devel] [PATCH] RTMP seek support
Howard Chu
hyc
Wed Mar 31 03:42:50 CEST 2010
Howard Chu wrote:
> Howard Chu wrote:
>> Howard Chu wrote:
>>> Howard Chu wrote:
>>>> This is a first stab at getting seek working on an RTMP stream.
>>>> 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.
> Note that the did_rseek flag wouldn't even be needed if the rest of flvdec
> always read from the start of a frame, instead of reading from the end of the
> previous frame, as it currently does. But I took a look at fixing that and the
> diff would be pretty large, so I chose this approach instead.
It turned out to be not too bad to correct that, as this patch shows.
> The patch for aviobuf.c is going to be needed regardless - you shouldn't be
> setting "s->pos = s->seek()" unconditionally, since s->seek may not be
> implemented. Storing a -32 in s->pos is bound to screw something else up.
--
-- 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: dif1.txt
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100330/aaaf0ef2/attachment.txt>
More information about the ffmpeg-devel
mailing list