[Ffmpeg-devel] muxing to a memory buffer
François Revol
revol
Thu Dec 7 16:46:23 CET 2006
> Hi Michel,
>
> On Thu, 2006-12-07 at 15:58 +0100, Michel Bardiaux wrote:
> [...]
> > > Would I need to write my own URLProtocol? If yes, how can tell the
> > > URLProtocol where the output buffer is? (the "open" method of an
> > > URLProtocol accepts a filename as input). Or there is a better way?
> > > Suggestions are welcome...
> > >
> >
> > What I do is to register a new protocol called "hpany" and use
> > "hpany:0x123456" as URL, where the address points to private data
> > describing the buffer (start, max size, used size).
> Ugh... I was fearing something like this... ;-)
>
> Ok, I'll encode the buffer address and size in the url.
>
Another option is to write an URLProtocol, but bypass url_open(),
but it's a bit trickier and might break in future versions of the API.
Cf.
http://search.gmane.org/?query=bdataio&author=&group=gmane.comp.video.ffmpeg.devel&sort=relevance&DEFAULTOP=and&xP=dataio&xFILTERS=Gcomp.video.ffmpeg.devel---A
More information about the ffmpeg-devel
mailing list