[FFmpeg-trac] #2646(avformat:open): FFMPEG HTTP protocol not generation authorization line
FFmpeg
trac at avcodec.org
Thu Jun 6 11:11:38 CEST 2013
#2646: FFMPEG HTTP protocol not generation authorization line
------------------------------------+------------------------------------
Reporter: hackeron | Owner:
Type: defect | Status: open
Priority: normal | Component: avformat
Version: git-master | Resolution:
Keywords: http | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
------------------------------------+------------------------------------
Description changed by cehoyos:
Old description:
> 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: */*
> Host: 192.168.1.40
> Connection: Close
> Range: bytes=0-
> Authorization: Basic YWRtaW46MTIzNDU2
>
> However when I run:
>
> ffmpeg -i "http://admin:123456@192.168.1.40/cgi-
> bin/cmd/system?GET_STREAM"
>
> 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
> Host: 192.168.1.40
>
> 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.
New description:
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: */*
Host: 192.168.1.40
Connection: Close
Range: bytes=0-
Authorization: Basic YWRtaW46MTIzNDU2
}}}
However when I run:
ffmpeg -i "http://admin:123456@192.168.1.40/cgi-bin/cmd/system?GET_STREAM"
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
Host: 192.168.1.40
}}}
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.
--
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2646#comment:4>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list