video - How to do Flash pseudo-streaming? -
i need build starts serving h.264 encoded video flash player halfway through file (to support skipping point in video has not been buffered yet).
currently, videos in flv container format, transcoding option. managed re-write file header , metadata information given byte offset. works older videos, not h.264 encoded files. suspect because video tags inside file have altered, not feasible (it take processing power).
what "proper" way it?
the flash player can start playing h.264 video once it's downloaded moov atom. existing pseudo-streaming providers give flv header - either first 13 bytes of file or hardcoded 1 - , serve file given offset. if want make h.264 pseudo-streamer, you'll need have output flv header, moov atom, , serve rest of file given offset. if don't use flv container, won't need flv header, you'll still need moov atom.
unfortunatley, don't think you'll able use moov atom file on disk; information contains won't right file fragment serve. you'd have parse existing atom , generate 1 of own appropriate served part of file.
if there complicated structures within h.264 file more complicated pseudo-stream. if parsing file isn't feasible, i'm afraid may not able pseudo-stream media.
Comments
Post a Comment