[FFmpeg-user] avformat_open_input - "Port missing in uri."
Chandan Nataraj
knchandan at gmail.com
Mon Aug 31 14:51:07 CEST 2015
Hi Mortiz,
Thanks for quick response. Here is the code...
AVFormatContext* pFormatContext = NULL;
int err = avformat_open_input(&pFormatContext, uri, NULL, NULL);
uri is in the form of
"http://.../Preview/548.mp4"
I have called av_register_all and avformat_network_init in other thread and
I'm sure that it is getting called before avformat_open_input.
Regards,
Chandan
On Mon, Aug 31, 2015 at 5:57 PM, Moritz Barsnick <barsnick at gmx.net> wrote:
> Hi Chandan,
>
> On Mon, Aug 31, 2015 at 17:23:33 +0530, Chandan Nataraj wrote:
> > I'm trying to open a mp4 file from http. When I call avformat_open_input
> it
> > fails with following log.
>
> This list is about ffmpeg, the command line tool(s). If you need help
> with using the libraries, please refer to the libav-user list:
> https://ffmpeg.org/mailman/listinfo/libav-user
>
> > The url does not contain any port number. So it should be using default
> > port (80).
> > Same url and code works from another thread where I have initialized my
> > libavformat.
> >
> > Any suggestions are highly appreciated.
>
> Let me suggest that when you ask for such assistance, please show the
> code you are using to call avformat_open_input(), and the parameters
> you are passing.
>
> Moritz
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
More information about the ffmpeg-user
mailing list