[FFmpeg-trac] #6885(avformat:open): Some media files don't work on FFmpeg as HTTP stream-in (worked with much older FFmpeg version)
FFmpeg
trac at avcodec.org
Fri Oct 26 17:59:13 EEST 2018
#6885: Some media files don't work on FFmpeg as HTTP stream-in (worked with much
older FFmpeg version)
-------------------------------------+-------------------------------------
Reporter: jaypadia | Owner:
Type: defect | Status: open
Priority: important | Component: avformat
Version: git-master | Resolution:
Keywords: http mov | Blocked By:
regression | Reproduced by developer: 0
Blocking: |
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by qichaoshen):
I think the root cause is invalid http range get request starting from the
file size value.
/////////////////////
[https @ 0x33a8de0] header='Content-Range: bytes
207459243-207500194/207500195'
[https @ 0x33a8de0] header='Content-Type: video/mp4'
...
[https @ 0x33a8de0] request: GET /frameio-uploads-production/uploads
/dfd0150a-170f-4422-b1b1-ed6af7cb725f/original.mp4?... HTTP/1.1
User-Agent: Lavf/58.0.101
Range: bytes=207500195-
...
[https @ 0x33a8de0] header='HTTP/1.1 416 Requested Range Not Satisfiable'
/////////////////////
We can find that the http resource size is 207500195,and the http
range get request starting from the 207500195, so the Server return status
code 416.
And this problem can be reproduced by the following command:
////////////////////
ffprobe -loglevel trace -show_streams http://videoqiniu.laosiji.com
/ljq7lJdy-DhpQ80e1nKdJm0furkl
[http @ 0x7fd9d3c00240] header='HTTP/1.1 206 Partial Content'
[http @ 0x7fd9d3c00240] http_code=206
[http @ 0x7fd9d3c00240] header='Date: Fri, 26 Oct 2018 14:58:22 GMT'
[http @ 0x7fd9d3c00240] header='Connection: close'
[http @ 0x7fd9d3c00240] header='Accept-Ranges: bytes'
[http @ 0x7fd9d3c00240] header='Cache-Control: max-age=86400'
[http @ 0x7fd9d3c00240] header='Content-Length: 700877'
[http @ 0x7fd9d3c00240] header='Content-Range: bytes
1350601510-1351302386/1351302387'
[http @ 0x7fd9d3c00240] header='Content-Type: video/mp4'
[http @ 0x7fd9d3c00240] header='Last-Modified: Tue, 23 Oct 2018 10:15:13
GMT'
[http @ 0x7fd9d3c00240] header='Access-Control-Allow-Origin: *'
[http @ 0x7fd9d3c00240] header='Access-Control-Expose-Headers: X-Log,
X-Reqid'
[http @ 0x7fd9d3c00240] header='Access-Control-Max-Age: 2592000'
[http @ 0x7fd9d3c00240] header='Etag: "ljq7lJdy-DhpQ80e1nKdJm0furkl"'
[http @ 0x7fd9d3c00240] header='X-Log:
mc.g/404;rs39_21.sel:4;rwro.get:4;RS.dbs:4;RS:4;mc.s;0s.gh:15;PFDS:15;IO:23'
[http @ 0x7fd9d3c00240] header='X-Reqid: TGUAAAbl6lHFQWAV'
[http @ 0x7fd9d3c00240] header='X-HW:
1540565902.dop006.tk2.t,1540565902.cds006.tk2.c'
[http @ 0x7fd9d3c00240] header=''
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fd9d4804200] type:'uuid' parent:'root' sz:
700877 1350601518 1351302387
[http @ 0x7fd9d3c00240] request: GET /ljq7lJdy-DhpQ80e1nKdJm0furkl
HTTP/1.1
User-Agent: Lavf/57.83.100
Accept: */*
Range: bytes=1351302387-
Connection: close
Host: videoqiniu.laosiji.com
Icy-MetaData: 1
[http @ 0x7fd9d3c00240] header='HTTP/1.1 416 Requested Range Not
Satisfiable'
[http @ 0x7fd9d3c00240] http_code=416
[http @ 0x7fd9d3c00240] HTTP error 416 Requested Range Not Satisfiable
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fd9d4804200] error reading header
[AVIOContext @ 0x7fd9d3f00420] Statistics: 317178 bytes read, 1 seeks
http://videoqiniu.laosiji.com/ljq7lJdy-DhpQ80e1nKdJm0furkl: Server
returned 4XX Client Error, but not one of 40{0,1,3,4}
///////////////////
--
Ticket URL: <https://trac.ffmpeg.org/ticket/6885#comment:13>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list