I think what you want is to use a custom URLProtocol in which you can embed your buffer. Check out http://lists.mplayerhq.hu/pipermail/ffmpeg-user/2007-March/007254.html for more info on that.
greets Lukas On Fri, May 01, 2009 at 12:18:44PM +0100, Mark Kenna wrote: > I am trying to open mpegvideo from buffer containing the contents of a > file (i.e. bypass the open_input_file function). Everything works very > > Currently, I have defined a read and seek function which I am using with > the av_alloc_put_byte(...) function. > > The problem is that av_probe_input_format fails to return an input > format. When I use av_open_input_file, a InputFormatContext is returned > perfectly. > > Can someone please offer some suggestions? I can post code if that helps? > > Cheers, > Mark. > > _______________________________________________ > libav-user mailing list > [email protected] > https://lists.mplayerhq.hu/mailman/listinfo/libav-user -- Lukas L. Diduch Smartspace Laboratory Information Access Division (IAD) National Institute of Standards and Technology (NIST) web : http://www.nist.gov/smartspace email : [email protected] office : +1 (301) 975 6399 fax : +1 (301) 975 5287 _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
