Skip to content

[RFC] avformat/http: support relative url redirection #26

Closed
wants to merge 1 commit into from

2 participants

@michaelni
FFmpeg member

Do you have a url / testcase that needs this / to test it ?

@bbcallen
bbcallen commented Jul 4, 2013

Here is the url
http://video.ifeng.com/data6/video06/2013/05/09/d23f75f5-c0bf-437e-9e09-69044ccd36df.mp4

In my player based on ffplay, got logs below
07-04 21:02:53.657: E/IJKMEDIA(20785): TCP connection to :80 failed: Connection refused
07-04 21:02:53.657: E/IJKMEDIA(20785): TCP connection to :80 failed: Connection refused
07-04 21:02:53.657: E/IJKMEDIA(20785): http://video.ifeng.com/video06/2013/05/09/d23f75f5-c0bf-437e-9e09-69044ccd36df.mp4: I/O error

In Firefox, got headers below

http://video.ifeng.com/video06/2013/05/09/d23f75f5-c0bf-437e-9e09-69044ccd36df.mp4

GET /video06/2013/05/09/d23f75f5-c0bf-437e-9e09-69044ccd36df.mp4 HTTP/1.1
Host: video.ifeng.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:21.0) Gecko/20100101 Firefox/21.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Connection: keep-alive

HTTP/1.1 302 Moved Temporarily
Server: IWS/1.2.4
Date: Thu, 04 Jul 2013 13:06:47 GMT
Content-Type: text/html
Transfer-Encoding: chunked
Connection: keep-alive
Location: /data6/video06/2013/05/09/d23f75f5-c0bf-437e-9e09-69044ccd36df.mp4

PS:
Same patch and relpy has been send to ffmpeg-devel, I've been suggested to submit there.
This pull request could be closed.

@bbcallen bbcallen closed this Jul 4, 2013
@bbcallen bbcallen deleted the Bilibili:patch-http-1 branch Jul 5, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.