Is it possible to open a FILE * stream directly using libav?

Here is what I mean: av_open_input_file expects a char * filename to indicate what to open.
What I would like to do instead is something like this:

FILE * filePtr;
filePtr =popen(cmd,"r"); //This returns the results of a command as a FILE stream.
av_open_input_file(pFormatCtx, filePtr, NULL, 0,NULL);

But, this clearly won't work since p is not a char *, but is instead a FILE *. I believe that it is OK to pass "-" as a filename to indicate that the stdin steam should be used. So I would like to do some analogous to that.

Any suggestions?

Thanks,

--Adam



_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to