[libav-tools] avconv http custom headers are ignored

Anton Khirnov anton at khirnov.net
Wed Jan 30 17:57:27 CET 2013

On Wed, 30 Jan 2013 13:27:39 +0100, video-server <video-server at aab.sk> wrote:
> hello
> i have a ip camera that requires cookies to return jpg image
> the following syntax is my attempt to add cookies to headers
> avconv -v debug -nostats -analyzeduration 0 -f image2 -loop 1 -i 
> http://ip/snap.jpg -headers $'Cookie: pwdid=admin; usrid=admin\r\n' 
> -vsync vfr -s 640x480 -f mpjpeg -vcodec mjpeg -b 8000k -vf 
> drawtext=fontfile=/usr/share/fonts/truetype/freefont/FreeMonoBold.ttf:fontsize=15:text='%F 
> %T ip':fontcolor=red -

Options always apply only to the next input or output file. If you want the
-headers option to apply to input, it must be given before -i.

Anton Khirnov

More information about the libav-tools mailing list