[Libav-user] a proxy problem of libav
Andrey Utkin
andrey.krieger.utkin at gmail.com
Sat Feb 11 16:58:35 CET 2012
2012/2/9 Yuan Gao <gaoyuanhot at gmail.com>:
> My problem is how to pass the file path if I need to pass a proxy? of course
> the proxy address and port is known.
> from http.c file which is in libav source files, I found inside it has
> defined dealing with http protocol and proxy, so I am sure somewhere must be
> a way to set up proxy parameter
> by using libav. Unfortunately didnt find anything useful. From ffmpeg
> documentation, only one paragraph briefly states that "by using http_proxy,
> it is useful to set proxy..." that makes
> no sence for me...
Set environment variable "http_proxy". See libavformat/http.c:101
For POSIX systems, use setenv(). For Windows, there're SetEnvironmentVariable().
--
Andrey Utkin
More information about the Libav-user
mailing list