[FFmpeg-user] avformat_open_input - "Port missing in uri."
knchandan at gmail.com
Mon Aug 31 14:51:07 CEST 2015
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
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.
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
> > 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:
> > 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.
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
More information about the ffmpeg-user