Hi,

I have a problem about how to pass input in FFmpeg.

Can I pass a bit-stream buffer instead of a file in FFmpeg ?

My program is like this:

int main{
unsigned char *OutBuf;
FILE*  input;

input = fopen(argv[1], "rb");
fread(bitStream_buffer, 1 ,length ,input);

if(av_open_input_file(&pFormatCtx, "pipe:fd", NULL, 0, NULL)!=0)

     return -1; // Couldn't open file
...........
}

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

Reply via email to