Opened 7 years ago

Last modified 7 years ago

#2646 open defect

FFMPEG HTTP protocol not generation authorization line — at Version 4

Reported by: hackeron Owned by:
Priority: normal Component: avformat
Version: git-master Keywords: http
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description (last modified by cehoyos)

I have an acti camera, I can send these headers to it to receive an MJPEG stream:

GET /cgi-bin/cmd/system?GET_STREAM HTTP/1.1
User-Agent: Mozilla/5.0 Lavf/55.8.102
Accept: */*
Connection: Close
Range: bytes=0-
Authorization: Basic YWRtaW46MTIzNDU2

However when I run:

ffmpeg -i "http://admin:123456@"

And capture what it sends with tcpdump, I see it sends these headers:

GET /cgi-bin/cmd/system?GET_STREAM HTTP/1.1
User-Agent: Mozilla/5.0 Lavf/55.8.102
Accept: */*
Range: bytes=0-
Connection: close

Notice there are identical except FFMPEG doesn't generate the Authorization line. Isn't it meant to?

I'm using ffmpeg version N-53816-g55121f3 compiled Jun 4 2013 on Ubuntu 13.04.

Change History (4)

comment:1 in reply to: ↑ description Changed 7 years ago by cehoyos

  • Component changed from FFmpeg to undetermined
  • Keywords http added

Replying to hackeron:

ffmpeg -i "http://admin:123456@"

Do I understand correctly that you do not receive anything with this command?
Please provide the complete, uncut console output to make this a valid ticket.

comment:2 Changed 7 years ago by hackeron

Sure, here you go:

$ ffmpeg -i "http://admin:123456@"
ffmpeg version N-53816-g55121f3 Copyright (c) 2000-2013 the FFmpeg developers
  built on Jun  4 2013 00:44:05 with gcc 4.7 (Ubuntu/Linaro 4.7.3-1ubuntu1)
  configuration: --extra-ldflags=-ldl --enable-gpl --enable-libfaac --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-version3
  libavutil      52. 34.100 / 52. 34.100
  libavcodec     55. 15.100 / 55. 15.100
  libavformat    55.  8.102 / 55.  8.102
  libavdevice    55.  2.100 / 55.  2.100
  libavfilter     3. 74.101 /  3. 74.101
  libswscale      2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
[http @ 0x2ac75a0] HTTP error 401 Unauthorized
http://admin:123456@ Input/output error
Last edited 7 years ago by cehoyos (previous) (diff)

comment:3 Changed 7 years ago by cehoyos

  • Component changed from undetermined to avformat
  • Status changed from new to open

Consider adding the exact type of camera that needs this http header line.

comment:4 Changed 7 years ago by cehoyos

  • Description modified (diff)
Note: See TracTickets for help on using tickets.