On Tue, May 4, 2010 at 9:53 PM, Michael Georgoulopoulos <
[email protected]> wrote:

> Hello
>
> Can anyone please tell me what is the AVInputFormat parameter to the
> av_open_input_stream() function? Previewsly I used av_open_input_file() and
> set that parameter to NULL, but with av_open_input_stream() this parameter
> is required.
>
> Thank you
>
> Michael
> __________________
>

 char* inputFormat ="mpegts" ; // you have to give your file format name


AVFormatContext *pFormatCtx;

pFormatCtx->iformat = av_find_input_format(inputFormat);


printf(stderr,"\nVideo Format:%s",pFormatCtx->iformat->name);


av_open_input_stream(&pFormatCtx,pb,file path,pFormatCtx->iformat,&ap);

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

Reply via email to