[Libav-user] avconv http custom headers are ignored

video-server video-server at aab.sk
Wed Jan 30 15:06:30 CET 2013


no parameter changes were neccessary,the situation persists in ffmpeg too.
maybe i have made some parameter wrong...

./ffmpeg -v debug -f image2 -loop 1 -ihttp://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 ciko outdoor test':fontcolor=red - > a.mjpg

wireshark:

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


system: debian wheezy (today's build) , ffmpeg compiled from git

ffmpeg version N-49452-g91f3592 Copyright (c) 2000-2013 the FFmpeg developers
   built on Jan 30 2013 14:54:37 with gcc 4.7 (Debian 4.7.2-5)
   configuration:
   libavutil      52. 17.100 / 52. 17.100
   libavcodec     54. 91.100 / 54. 91.100
   libavformat    54. 61.104 / 54. 61.104
   libavdevice    54.  3.102 / 54.  3.102
   libavfilter     3. 34.101 /  3. 34.101
   libswscale      2.  2.100 /  2.  2.100
   libswresample   0. 17.102 /  0. 17.102
Splitting the commandline.
Reading option '-v' ... matched as option 'v' (set libav* logging level) with argument 'debug'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'image2'.
Reading option '-loop' ... matched as AVOption 'loop' with argument '1'.
Reading option '-i' ... matched as input file with argument 'http://ip/snap.jpg'.
Reading option '-headers' ... matched as AVOption 'headers' with argument 'Cookie: pwdid=admin; usrid=admin
'.
Reading option '-vsync' ... matched as option 'vsync' (video sync method) with argument 'vfr'.
Reading option '-s' ... matched as option 's' (set frame size (WxH or abbreviation)) with argument '640x480'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'mpjpeg'.
Reading option '-vcodec' ... matched as option 'vcodec' (force video codec ('copy' to copy stream)) with argument 'mjpeg'.
Reading option '-b' ... matched as option 'b' (video bitrate (please use -b:v)) with argument '8000k'.
Reading option '-vf' ... matched as option 'vf' (set video filters) with argument 'drawtext=fontfile=/usr/share/fonts/truetype/freefont/FreeMonoBold.ttf:fontsize=15:text=%F %T ciko outdoor test:fontcolor=red'.
Reading option '-' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option v (set libav* logging level) with argument debug.
Applying option vsync (video sync method) with argument vfr.
Successfully parsed a group of options.
Parsing a group of options: input filehttp://ip/snap.jpg.
Applying option f (force format) with argument image2.
Successfully parsed a group of options.
Opening an input file:http://ip/snap.jpg.
[image2 @ 0x167b280] Could find no file with with path 'http://ip/snap.jpg' and index in the range 0-4
http://ip/snap.jpg: No such file or directory



Dňa 30.01.2013 14:22, Carl Eugen Hoyos wrote / napísal(a):
> video-server <video-server at ...> writes:
>
>> i don't know yet, but it will take some time, because
>> i must first find out the parameter syntax for ffmpeg
>> for achieveing the same thing.
> If you find an option that is not supported by ffmpeg,
> please report it!
> (From a quick loop, FFmpeg supports all options you use
> and I don't know of any options at all that are missing.)
>
> Carl Eugen
>
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user



More information about the Libav-user mailing list