[Libav-user] avconv http custom headers are ignored

video-server video-server at aab.sk
Wed Jan 30 13:08:37 CET 2013


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 -

(output to stdout,redirected to file)

but the problem is, i see in wireshark that only the default headers get 
sent to ip camera

GET /snap.jpg HTTP/1.1
User-Agent: Lavf53.21.1
Accept: */*
Range: bytes=0-
Connection: close
Host: ip

could anyone please help me find out why this doesn't work?

my distro is debian squeeze, libav-tools from debian-backports

thank you

Mike

following avconv output:

avconv version 0.8.5-6:0.8.5-1~bpo60+1, Copyright (c) 2000-2012 the 
Libav developers
   built on Jan 24 2013 20:38:51 with gcc 4.4.5
   configuration: --arch=i386 --enable-pthreads 
--enable-runtime-cpudetect --extra-version='6:0.8.5-1~bpo60+1' 
--libdir=/usr/lib/ --prefix=/usr --enable-bzlib --enable-libdc1394 
--enable-libdirac --enable-libfreetype --enable-frei0r --enable-gnutls 
--enable-libgsm --enable-libmp3lame --enable-librtmp 
--enable-libopenjpeg --enable-libpulse --enable-libschroedinger 
--enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau 
--enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl 
--enable-postproc --enable-swscale --enable-libcdio --enable-x11grab 
--enable-libx264 --enable-libxvid --enable-shared --disable-static
   avutil      configuration: --arch=i386 --enable-pthreads 
--enable-runtime-cpudetect --extra-version='6:0.8.5-1~bpo60+1' 
--libdir=/usr/lib/ --prefix=/usr --enable-bzlib --enable-libdc1394 
--enable-libdirac --enable-libfreetype --enable-frei0r --enable-gnutls 
--enable-libgsm --enable-libmp3lame --enable-librtmp 
--enable-libopenjpeg --enable-libpulse --enable-libschroedinger 
--enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau 
--enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl 
--enable-postproc --enable-swscale --enable-libcdio --enable-x11grab 
--enable-libx264 --enable-libxvid --shlibdir=/usr/lib//i686/cmov 
--cpu=i686 --enable-shared --disable-static
   avcodec     configuration: --arch=i386 --enable-pthreads 
--enable-runtime-cpudetect --extra-version='6:0.8.5-1~bpo60+1' 
--libdir=/usr/lib/ --prefix=/usr --enable-bzlib --enable-libdc1394 
--enable-libdirac --enable-libfreetype --enable-frei0r --enable-gnutls 
--enable-libgsm --enable-libmp3lame --enable-librtmp 
--enable-libopenjpeg --enable-libpulse --enable-libschroedinger 
--enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau 
--enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl 
--enable-postproc --enable-swscale --enable-libcdio --enable-x11grab 
--enable-libx264 --enable-libxvid --shlibdir=/usr/lib//i686/cmov 
--cpu=i686 --enable-shared --disable-static
   avformat    configuration: --arch=i386 --enable-pthreads 
--enable-runtime-cpudetect --extra-version='6:0.8.5-1~bpo60+1' 
--libdir=/usr/lib/ --prefix=/usr --enable-bzlib --enable-libdc1394 
--enable-libdirac --enable-libfreetype --enable-frei0r --enable-gnutls 
--enable-libgsm --enable-libmp3lame --enable-librtmp 
--enable-libopenjpeg --enable-libpulse --enable-libschroedinger 
--enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau 
--enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl 
--enable-postproc --enable-swscale --enable-libcdio --enable-x11grab 
--enable-libx264 --enable-libxvid --shlibdir=/usr/lib//i686/cmov 
--cpu=i686 --enable-shared --disable-static
   avdevice    configuration: --arch=i386 --enable-pthreads 
--enable-runtime-cpudetect --extra-version='6:0.8.5-1~bpo60+1' 
--libdir=/usr/lib/ --prefix=/usr --enable-bzlib --enable-libdc1394 
--enable-libdirac --enable-libfreetype --enable-frei0r --enable-gnutls 
--enable-libgsm --enable-libmp3lame --enable-librtmp 
--enable-libopenjpeg --enable-libpulse --enable-libschroedinger 
--enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau 
--enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl 
--enable-postproc --enable-swscale --enable-libcdio --enable-x11grab 
--enable-libx264 --enable-libxvid --shlibdir=/usr/lib//i686/cmov 
--cpu=i686 --enable-shared --disable-static
   avfilter    configuration: --arch=i386 --enable-pthreads 
--enable-runtime-cpudetect --extra-version='6:0.8.5-1~bpo60+1' 
--libdir=/usr/lib/ --prefix=/usr --enable-bzlib --enable-libdc1394 
--enable-libdirac --enable-libfreetype --enable-frei0r --enable-gnutls 
--enable-libgsm --enable-libmp3lame --enable-librtmp 
--enable-libopenjpeg --enable-libpulse --enable-libschroedinger 
--enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau 
--enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl 
--enable-postproc --enable-swscale --enable-libcdio --enable-x11grab 
--enable-libx264 --enable-libxvid --shlibdir=/usr/lib//i686/cmov 
--cpu=i686 --enable-shared --disable-static
   swscale     configuration: --arch=i386 --enable-pthreads 
--enable-runtime-cpudetect --extra-version='6:0.8.5-1~bpo60+1' 
--libdir=/usr/lib/ --prefix=/usr --enable-bzlib --enable-libdc1394 
--enable-libdirac --enable-libfreetype --enable-frei0r --enable-gnutls 
--enable-libgsm --enable-libmp3lame --enable-librtmp 
--enable-libopenjpeg --enable-libpulse --enable-libschroedinger 
--enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau 
--enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl 
--enable-postproc --enable-swscale --enable-libcdio --enable-x11grab 
--enable-libx264 --enable-libxvid --shlibdir=/usr/lib//i686/cmov 
--cpu=i686 --enable-shared --disable-static
   postproc    configuration: --arch=i386 --enable-pthreads 
--enable-runtime-cpudetect --extra-version='6:0.8.5-1~bpo60+1' 
--libdir=/usr/lib/ --prefix=/usr --enable-bzlib --enable-libdc1394 
--enable-libdirac --enable-libfreetype --enable-frei0r --enable-gnutls 
--enable-libgsm --enable-libmp3lame --enable-librtmp 
--enable-libopenjpeg --enable-libpulse --enable-libschroedinger 
--enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau 
--enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl 
--enable-postproc --enable-swscale --enable-libcdio --enable-x11grab 
--enable-libx264 --enable-libxvid --shlibdir=/usr/lib//i686/cmov 
--cpu=i686 --enable-shared --disable-static
   libavutil    51. 22. 1 / 51. 22. 1
   libavcodec   53. 35. 0 / 53. 35. 0
   libavformat  53. 21. 1 / 53. 21. 1
   libavdevice  53.  2. 0 / 53.  2. 0
   libavfilter   2. 15. 0 /  2. 15. 0
   libswscale    2.  1. 0 /  2.  1. 0
   libpostproc  52.  0. 0 / 52.  0. 0
http://ip/snap.jpg: No such file or directory



More information about the Libav-user mailing list