Hi Stefan, On Thu, Oct 13, 2011 at 10:15 AM, Stefan Lederer <[email protected]> wrote: >> the demuxers work with AVIOContexts not just files, one can create one >> on top of other things (see mplayer/trunk/libmpdemux/demux_lavf.c for >> an example on how to do this.) but first try to pipe it into ffmpeg -i >> - ... >> to make sure it works in principle with your data > > I tried a ByteIOContext and implemented the read function. Everything works > well for the first frames. Unfortunately I use fragmented MP4 (because of > the streaming client). So I get a -32 error from av_read_frame when a new > segment(a new moof and mdat box) is started. > The same file works when I do not use av_open_input_file instead of the > ByteIOContext. > > Can anybody help me?
You can have a look at the applehttp demuxer which also deals with segmented MP4 data (libavformat/applehttp.c). Ronald _______________________________________________ libav-api mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-api
