[Ffmpeg-devel] Decoding from blocks

Michael Niedermayer michaelni
Fri Jan 12 18:36:53 CET 2007


On Fri, Jan 12, 2007 at 05:51:37PM +0100, Emanuele Fumagalli wrote:
> >If your p2p client prioritizes downloading of the beginning and end of
> >the file, you can usually play it the normal way as if it was
> >undamaged after the header and index have been obtained. For maximum
> >comfort, you could modify the avi demuxer so it would use the
> >information about which blocks are unavailable to avoid them when
> >demuxing and seeking.
> thanks, in my case I download sequentially the block so (block1, block2...) 
> which are all buffer in memory(or saved as files on disk), what I'm trying 
> to understand is how to start the decoding since I've no full video file 
> but just blocks, do I have to use av_open_input_stream or 
> av_open_input_file?

1. implement a URLProtocol
2. register it
3. use av_open_input_file()
4. try to read the source code if you have questions
5. help improving the documentation

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Many that live deserve death. And some that die deserve life. Can you give
it to them? Then do not be too eager to deal out death in judgement. For
even the very wise cannot see all ends. -- Gandalf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070112/52e4fa93/attachment.pgp>

More information about the ffmpeg-devel mailing list