Opened 7 years ago
Closed 5 years ago
#6885 closed defect (fixed)
Some media files don't work on FFmpeg as HTTP stream-in (worked with much older FFmpeg version)
Reported by: | Jay Padia | Owned by: | |
---|---|---|---|
Priority: | important | Component: | avformat |
Version: | git-master | Keywords: | http mov regression |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
Summary of the bug:
Some media files cannot be used as HTTP stream-in inputs on latest FFmpeg / FFprobe.
This issue goes back to a few version, but it works on much older FFmpeg / FFprobe versions.
I have logs from FFprobe 3.2.2 (no issue) and FFmpeg - latest source code (fails).
How to reproduce:
On the latest FFmpeg
% ffmpeg -i input ffmpeg version built on ...
See below the trace from the failing / erroneous ffmpeg command
I have only removed the unnecessary log - all the relevant and more information from trace is still there
The error I see when it fails is
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x33a8440] error reading header [AVIOContext @ 0x33c5680] Statistics: 102758 bytes read, 1 seeks https://s3.amazonaws.com/frameio-uploads-production/uploads/dfd0150a-170f-4422-b1b1-ed6af7cb725f/original.mp4?response-content-disposition=inline&X-Amz-Security-Token=AgoGb3JpZ2luEIb%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLWVhc3QtMSKAAnJ98lb0wr2RzhUSxjl8ieMnULuczhFFwagjHDofqqKoNSdryFnxbrcrNVddIGkxym%2BvyYw43wBxjrXhTbBE7bkWKEhE3KscqB6%2BSYkIbn6LHDYnOioxSPg53Pvu5Zg37TNocoeOJvM24up%2BmVh2jlZa28Lb%2BJ8LTIk1v3CBw0kMiZppv5VgxkiyyzAawkH0PfhSVcbnVba5wPqBgZgApnvF9Cr7%2FKTbR79T%2FLkeYEa2wpDH2ePl0lQN32SfmF8jzshafG5f2N%2FRSAa8YZ%2FwcTQciWRCafS9OJ%2FoHsSG0uMYwwenKfJLMmer5fbpdE5eIICXYMZHkNJcWoHVR6oDSMwqqgMI2%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FARABGgw2ODA4NTE0NDEzNTYiDHj0L%2BCbkexGPxbfeSr%2BAsItQhOfOvK%2F%2FGhs%2FMAq5GYPWgKZSF%2B1CfDtkgeNCkd1VRm6tcrj5fO%2BaJQq%2BvulOE2U7EefSPMaj1HZApCPt6PCEvZ5AGopbhPgV4KIsKfPEpDVv27Ed5LUhJHDVVSTfKsrvHsO9%2FG4KtuCQJTVy5FgdGyxGyJuX0j%2F616gZ8AVxivSdFOBZac16b%2F%2F%2FtxKWihhBhYMltLiNX5ck34pL9UCfIQE%2FOMla1CgIz9%2BWNMC7r95JXDUAm3HPhXuuTl38xMEAXCcr59n9B3%2BQv%2BM0LUjOAnvbuCPpi3AtjjIFMvZR3xQTOAzRzsNY%2B2c%2FjQmE5981SDaTIZ4YnI9jOUouUQ4x%2FaoxfA8%2FfOAuSffdQVFtsZH%2FzM23HCzp0eyof4g59KPj6jEMLekmn3pFPiC%2FHikbhACGZDEgcv18o%2F9IIiL52YFhr3qVzcCcdTUBSbPBru7icu%2FLe6sjTea3PKDNkzoh1RpqzSdACr0s1aC8Z%2F7Un8fsg0UAKZKUiqUW%2BswgoiB0QU%3D&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20171130T174644Z&X-Amz-SignedHeaders=host&X-Amz-Expires=300&X-Amz-Credential=ASIAIR4CE2KR6EEYYCSA%2F20171130%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=376c3cb56254b1519434068ea3236a9eb5bf45fe115530585ba958f258dfcd6b: Server returned 4XX Client Error, but not one of 40{0,1,3,4}
bash-4.2# ./ffmpeg -i "https://s3.amazonaws.com/frameio-uploads-production/uploads/dfd0150a-170f-4422-b1b1-ed6af7cb725f/original.mp4?response-content-disposition=inline&X-Amz-Security-Token=AgoGb3JpZ2luEIb%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLWVhc3QtMSKAAnJ98lb0wr2RzhUSxjl8ieMnULuczhFFwagjHDofqqKoNSdryFnxbrcrNVddIGkxym%2BvyYw43wB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Faws4_request&X-Amz-Signature=376c3cb56254b1519434068ea3236a9eb5bf45fe115530585ba958f258dfcd6b" -loglevel trace ffmpeg version N-88151-ga07ac93 Copyright (c) 2000-2017 the FFmpeg developers built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-11) configuration: --prefix=/root/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --extra-libs=-lpthread --bindir=/root/bin --enable-gpl --enable-libfdk_aac --enable-libfreetype --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree --enable-static --enable-openssl --disable-shared libavutil 56. 0.100 / 56. 0.100 libavcodec 58. 0.100 / 58. 0.100 libavformat 58. 0.101 / 58. 0.101 libavdevice 58. 0.100 / 58. 0.100 libavfilter 7. 0.100 / 7. 0.100 libswscale 5. 0.100 / 5. 0.100 libswresample 3. 0.100 / 3. 0.100 libpostproc 55. 0.100 / 55. 0.100 Splitting the commandline. Reading option '-i' ... matched as input url with argument 'https://s3.amazonaws.com/frameio-uploads-production/uploads/dfd0150a-170f-4422-b1b1-ed6af7cb725f/original.mp4?response-content-disposition=inline&X-Amz-Security-Token=AgoGb3JpZ2luEIb%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLWVhc3QtMSKAAnJ98lb0wr2RzhUSxjl8ieMnULuczhFFwagjHDofqqKoNSdryFnxbrcrNVddIGkxym%2BvyYw43wBxjrXhTbBE7bkWKEhE3KscqB6%2BSYkIbn6LHDYnOioxSPg53Pvu5Zg37TNocoeOJvM24up%2BmVh2jlZa28Lb%2BJ8LTIk1v3CBw0kMiZppv5VgxkiyyzAawkH0PfhSVcbnVba5wPqBgZgApnvF9Cr7%2FKTbR79T%2FLkeYEa2wpDH2ePl0lQN32SfmF8jzshafG5f2N%2FRSAa8YZ%2FwcTQciWRCafS9OJ%2FoHsSG0uMYwwenKfJLMmer5fbpdE5eIICXYMZHkNJcWoHVR6oDSMwqqgMI2%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FARABGgw2ODA4NTE0NDEzNTYiDHj0L%2BCbkexGPxbfeSr%2BAsItQhOfOvK%2F%2FGhs%2FMAq5GYPWgKZSF%2B1CfDtkgeNCkd1VRm6tcrj5fO%2BaJQq%2BvulOE2U7EefSPMaj1HZApCPt6PCEvZ5AGopbhPgV4KIsKfPEpDVv27Ed5LUhJHDVVSTfKsrvHsO9%2FG4KtuCQJTVy5FgdGyxGyJuX0j%2F616gZ8AVxivSdFOBZac16b%2F%2F%2FtxKWihhBhYMltLiNX5ck34pL9UCfIQE%2FOMla1CgIz9%2BWNMC7r95JXDUAm3HPhXuuTl38xMEAXCcr59n9B3%2BQv%2BM0LUjOAnvbuCPpi3AtjjIFMvZR3xQTOAzRzsNY%2B2c%2FjQmE5981SDaTIZ4YnI9jOUouUQ4x%2FaoxfA8%2FfOAuSffdQVFtsZH%2FzM23HCzp0eyof4g59KPj6jEMLekmn3pFPiC%2FHikbhACGZDEgcv18o%2F9IIiL52YFhr3qVzcCcdTUBSbPBru7icu%2FLe6sjTea3PKDNkzoh1RpqzSdACr0s1aC8Z%2F7Un8fsg0UAKZKUiqUW%2BswgoiB0QU%3D&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20171130T174644Z&X-Amz-SignedHeaders=host&X-Amz-Expires=300&X-Amz-Credential=ASIAIR4CE2KR6EEYYCSA%2F20171130%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=376c3cb56254b1519434068ea3236a9eb5bf45fe115530585ba958f258dfcd6b'. Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'trace'. Finished splitting the commandline. Parsing a group of options: global . Applying option loglevel (set logging level) with argument trace. Successfully parsed a group of options. Parsing a group of options: input url https://s3.amazonaws.com/frameio-uploads-production/uploads/dfd0150a-170f-4422-b1b1-ed6af7cb725f/original.mp4?response-content-disposition=inline&X-Amz-Security-Token=AgoGb3JpZ2luEIb%2F%2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WS4-HMAC-SHA256&X-Amz-Date=20171130T174644Z&X-Amz-SignedHeaders=host&X-Amz-Expires=300&X-Amz-Credential=ASIAIR4CE2KR6EEYYCSA%2F20171130%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=376c3cb56254b1519434068ea3236a9eb5bf45fe115530585ba958f258dfcd6b. Successfully parsed a group of options. Opening an input file: https://s3.amazonaws.com/frameio-uploads-production/uploads/dfd0150a-170f-4422-b1b1-ed6af7cb725f/original.mp4?response-content-disposition=inline&X-Amz-Security-Token=AgoGb3JpZ2luEIb%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLWVhc3QtMSKAAnJ98lb0wr2RzhUSxjl8ieMnULuczhFFwagjHDofqqKoNSdryFnxbrcrNVddIGkxym%2BvyYw43wBxjrXhTbBE7bkWKEhE3KscqB6%2BSYkIbn6LHDYnOioxSPg53Pvu5Zg37TNocoeOJvM24up%2BmVh2jlZa28Lb%2BJ8LTIk1v3CBw0kMiZppv5VgxkiyyzAawkH0PfhSVcbnVba5wPqBgZgApnvF9Cr7%2FKTbR79T%2FLkeYEa2wpDH2ePl0lQN32SfmF8jzshafG5f2N%2FRSAa8YZ%2FwcTQciWRCafS9OJ%2FoHsSG0uMYwwenKfJLMmer5fbpdE5eIICXYMZHkNJcWoHVR6oDSMwqqgMI2%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FARABGgw2ODA4NTE0NDEzNTYiDHj0L%2BCbkexGPxbfeSr%2BAsItQhOfOvK%2F%2FGhs%2FMAq5GYPWgKZSF%2B1CfDtkgeNCkd1VRm6tcrj5fO%2BaJQq%2BvulOE2U7EefSPMaj1HZApCPt6PCEvZ5AGopbhPgV4KIsKfPEpDVv27Ed5LUhJHDVVSTfKsrvHsO9%2FG4KtuCQJTVy5FgdGyxGyJuX0j%2F616gZ8AVxivSdFOBZac16b%2F%2F%2FtxKWihhBhYMltLiNX5ck34pL9UCfIQE%2FOMla1CgIz9%2BWNMC7r95JXDUAm3HPhXuuTl38xMEAXCcr59n9B3%2BQv%2BM0LUjOAnvbuCPpi3AtjjIFMvZR3xQTOAzRzsNY%2B2c%2FjQmE5981SDaTIZ4YnI9jOUouUQ4x%2FaoxfA8%2FfOAuSffdQVFtsZH%2FzM23HCzp0eyof4g59KPj6jEMLekmn3pFPiC%2FHikbhACGZDEgcv18o%2F9IIiL52YFhr3qVzcCcdTUBSbPBru7icu%2FLe6sjTea3PKDNkzoh1RpqzSdACr0s1aC8Z%2F7Un8fsg0UAKZKUiqUW%2BswgoiB0QU%3D&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20171130T174644Z&X-Amz-SignedHeaders=host&X-Amz-Expires=300&X-Amz-Credential=ASIAIR4CE2KR6EEYYCSA%2F20171130%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=376c3cb56254b1519434068ea3236a9eb5bf45fe115530585ba958f258dfcd6b. [NULL @ 0x33a8440] Opening 'https://s3.amazonaws.com/frameio-uploads-production/uploads/dfd0150a-170f-4422-b1b1-ed6af7cb725f/original.mp4?response-content-disposition=inline&X-Amz-Security-Token=AgoGb3JpZ2luEIb%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLWVhc3QtMSKAAnJ98lb0wr2RzhUSxjl8ieMnULuczhFFwagjHDofqqKoNSdryFnxbrcrNVddIGkxym%2BvyYw43wBxjrXhTbBE7bkWKEhE3KscqB6%2BSYkIbn6LHDYnOioxSPg53Pvu5Zg37TNocoeOJvM24up%2BmVh2jlZa28Lb%2BJ8LTIk1v3CBw0kMiZppv5VgxkiyyzAawkH0PfhSVcbnVba5wPqBgZgApnvF9Cr7%2FKTbR79T%2FLkeYEa2wpDH2ePl0lQN32SfmF8jzshafG5f2N%2FRSAa8YZ%2FwcTQciWRCafS9OJ%2FoHsSG0uMYwwenKfJLMmer5fbpdE5eIICXYMZHkNJcWoHVR6oDSMwqqgMI2%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FARABGgw2ODA4NTE0NDEzNTYiDHj0L%2BCbkexGPxbfeSr%2BAsItQhOfOvK%2F%2FGhs%2FMAq5GYPWgKZSF%2B1CfDtkgeNCkd1VRm6tcrj5fO%2BaJQq%2BvulOE2U7EefSPMaj1HZApCPt6PCEvZ5AGopbhPgV4KIsKfPEpDVv27Ed5LUhJHDVVSTfKsrvHsO9%2FG4KtuCQJTVy5FgdGyxGyJuX0j%2F616gZ8AVxivSdFOBZac16b%2F%2F%2FtxKWihhBhYMltLiNX5ck34pL9UCfIQE%2FOMla1CgIz9%2BWNMC7r95JXDUAm3HPhXuuTl38xMEAXCcr59n9B3%2BQv%2BM0LUjOAnvbuCPpi3AtjjIFMvZR3xQTOAzRzsNY%2B2c%2FjQmE5981SDaTIZ4YnI9jOUouUQ4x%2FaoxfA8%2FfOAuSffdQVFtsZH%2FzM23HCzp0eyof4g59KPj6jEMLekmn3pFPiC%2FHikbhACGZDEgcv18o%2F9IIiL52YFhr3qVzcCcdTUBSbPBru7icu%2FLe6sjTea3PKDNkzoh1RpqzSdACr0s1aC8Z%2F7Un8fsg0UAKZKUiqUW%2BswgoiB0QU%3D&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20171130T174644Z&X-Amz-SignedHeaders=host&X-Amz-Expires=300&X-Amz-Credential=ASIAIR4CE2KR6EEYYCSA%2F20171130%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=376c3cb56254b1519434068ea3236a9eb5bf45fe115530585ba958f258dfcd6b' for reading [https @ 0x33a8de0] Setting default whitelist 'http,https,tls,rtp,tcp,udp,crypto,httpproxy' [https @ 0x33a8de0] request: GET /frameio-uploads-production/uploads/dfd0150a-170f-4422-b1b1-ed6af7cb725f/original.mp4?response-content-disposition=inline&X-Amz-Security-Token=AgoGb3JpZ2luEIb%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLWVhc3QtMSKAAnJ98lb0wr2RzhUSxjl8ieMnULuczhFFwagjHDofqqKoNSdryFnxbrcrNVddIGkx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east-1%2Fs3%2Faws4_request&X-Amz-Signature=376c3cb56254b1519434068ea3236a9eb5bf45fe115530585ba958f258dfcd6b HTTP/1.1 User-Agent: Lavf/58.0.101 Accept: */* Range: bytes=0- Connection: close Host: s3.amazonaws.com Icy-MetaData: 1 [https @ 0x33a8de0] header='HTTP/1.1 206 Partial Content' [https @ 0x33a8de0] http_code=206 [https @ 0x33a8de0] header='x-amz-id-2: bq26VA5nFCghTQx4sTrqWxUbpS4jCfu40+Kv/utw2rUVXVY8xJD7AY1ygPHkvtnR9ypmKXDxXz8=' [https @ 0x33a8de0] header='x-amz-request-id: 423326EAEC180335' [https @ 0x33a8de0] header='Date: Thu, 30 Nov 2017 17:47:15 GMT' [https @ 0x33a8de0] header='Last-Modified: Thu, 30 Nov 2017 16:43:25 GMT' [https @ 0x33a8de0] header='ETag: "d016478ba7a25cb74fef6ae56aac4dde-10"' [https @ 0x33a8de0] header='x-amz-meta-correlation_id: e39f54cf4faa43219f7ebbe66d0d48c2' [https @ 0x33a8de0] header='x-amz-meta-asset_id: dfd0150a-170f-4422-b1b1-ed6af7cb725f' [https @ 0x33a8de0] header='x-amz-version-id: NCu_nHxSREF7fdHn0J3tytRmzOX.tfRE' [https @ 0x33a8de0] header='Content-Disposition: inline' [https @ 0x33a8de0] header='Accept-Ranges: bytes' [https @ 0x33a8de0] header='Content-Range: bytes 0-207500194/207500195' [https @ 0x33a8de0] header='Content-Type: video/mp4' [https @ 0x33a8de0] header='Content-Length: 207500195' [https @ 0x33a8de0] header='Server: AmazonS3' [https @ 0x33a8de0] header='Connection: close' [https @ 0x33a8de0] header='' Probing mov,mp4,m4a,3gp,3g2,mj2 score:100 size:2048 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x33a8440] Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100 ... ... ... [mov,mp4,m4a,3gp,3g2,mj2 @ 0x33a8440] AVIndex stream 1, sample 7554, offset c5d905c, dts 7735296, size 847, distance 0, keyframe 1 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x33a8440] Processing st: 1, edit list 0 - media time: 0, duration: 7733760 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x33a8440] type:'udta' parent:'moov' sz: 58 75448 75498 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x33a8440] type:'[169]TIM' parent:'udta' sz: 23 8 50 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x33a8440] type:'[169]TSC' parent:'udta' sz: 14 31 50 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x33a8440] type:'[169]TSZ' parent:'udta' sz: 13 45 50 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x33a8440] type:'free' parent:'root' sz: 10190 75538 207500195 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x33a8440] type:'mdat' parent:'root' sz: 207373515 85736 207500195 [https @ 0x33a8de0] request: GET /frameio-uploads-production/uploads/dfd0150a-170f-4422-b1b1-ed6af7cb725f/original.mp4?response-content-disposition=inline&X-Amz-Security-Token=AgoGb3JpZ2luEIb%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLWVhc3QtMSKAAnJ98lb0wr2RzhUSxjl8ieMnULuczhFFwagjHDofqqKoNSdryFnxbrcrNVddIGkxym%2BvyYw43wBxjrXhTbBE7bkWKEhE3KscqB6%2BSYkIbn6LHDYnOioxSPg53Pvu5Zg37TNocoeOJvM24up%2BmVh2jlZa28Lb%2BJ8LTIk1v3CBw0kMiZppv5VgxkiyyzAawkH0PfhSVcbnVba5wPqBgZgApnvF9Cr7%2FKTbR79T%2FLkeYEa2wpDH2ePl0lQN32SfmF8jzshafG5f2N%2FRSAa8YZ%2FwcTQciWRCafS9OJ%2FoHsSG0uMYwwenKfJLMmer5fbpdE5eIICXYMZHkNJcWoHVR6oDSMwqqgMI2%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FARABGgw2ODA4NTE0NDEzNTYiDHj0L%2BCbkexGPxbfeSr%2BAsItQhOfOvK%2F%2FGhs%2FMAq5GYPWgKZSF%2B1CfDtkgeNCkd1VRm6tcrj5fO%2BaJQq%2BvulOE2U7EefSPMaj1HZApCPt6PCEvZ5AGopbhPgV4KIsKfPEpDVv27Ed5LUhJHDVVSTfKsrvHsO9%2FG4KtuCQJTVy5FgdGyxGyJuX0j%2F616gZ8AVxivSdFOBZac16b%2F%2F%2FtxKWihhBhYMltLiNX5ck34pL9UCfIQE%2FOMla1CgIz9%2BWNMC7r95JXDUAm3HPhXuuTl38xMEAXCcr59n9B3%2BQv%2BM0LUjOAnvbuCPpi3AtjjIFMvZR3xQTOAzRzsNY%2B2c%2FjQmE5981SDaTIZ4YnI9jOUouUQ4x%2FaoxfA8%2FfOAuSffdQVFtsZH%2FzM23HCzp0eyof4g59KPj6jEMLekmn3pFPiC%2FHikbhACGZDEgcv18o%2F9IIiL52YFhr3qVzcCcdTUBSbPBru7icu%2FLe6sjTea3PKDNkzoh1RpqzSdACr0s1aC8Z%2F7Un8fsg0UAKZKUiqUW%2BswgoiB0QU%3D&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20171130T174644Z&X-Amz-SignedHeaders=host&X-Amz-Expires=300&X-Amz-Credential=ASIAIR4CE2KR6EEYYCSA%2F20171130%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=376c3cb56254b1519434068ea3236a9eb5bf45fe115530585ba958f258dfcd6b HTTP/1.1 User-Agent: Lavf/58.0.101 Accept: */* Range: bytes=207459243- Connection: close Host: s3.amazonaws.com Icy-MetaData: 1 [https @ 0x33a8de0] header='HTTP/1.1 206 Partial Content' [https @ 0x33a8de0] http_code=206 [https @ 0x33a8de0] header='x-amz-id-2: exJVMvbN2Hdx113kLfd6pBgIQasIZWiMBG0ObwvipQLydgFAsofUilu7Uy9YqX8D3gBSZTerPkU=' [https @ 0x33a8de0] header='x-amz-request-id: E533A70EB6A87CE1' [https @ 0x33a8de0] header='Date: Thu, 30 Nov 2017 17:47:16 GMT' [https @ 0x33a8de0] header='Last-Modified: Thu, 30 Nov 2017 16:43:25 GMT' [https @ 0x33a8de0] header='ETag: "d016478ba7a25cb74fef6ae56aac4dde-10"' [https @ 0x33a8de0] header='x-amz-meta-correlation_id: e39f54cf4faa43219f7ebbe66d0d48c2' [https @ 0x33a8de0] header='x-amz-meta-asset_id: dfd0150a-170f-4422-b1b1-ed6af7cb725f' [https @ 0x33a8de0] header='x-amz-version-id: NCu_nHxSREF7fdHn0J3tytRmzOX.tfRE' [https @ 0x33a8de0] header='Content-Disposition: inline' [https @ 0x33a8de0] header='Accept-Ranges: bytes' [https @ 0x33a8de0] header='Content-Range: bytes 207459243-207500194/207500195' [https @ 0x33a8de0] header='Content-Type: video/mp4' [https @ 0x33a8de0] header='Content-Length: 40952' [https @ 0x33a8de0] header='Server: AmazonS3' [https @ 0x33a8de0] header='Connection: close' [https @ 0x33a8de0] header='' [mov,mp4,m4a,3gp,3g2,mj2 @ 0x33a8440] type:'uuid' parent:'root' sz: 40952 207459251 207500195 [https @ 0x33a8de0] request: GET /frameio-uploads-production/uploads/dfd0150a-170f-4422-b1b1-ed6af7cb725f/original.mp4?response-content-disposition=inline&X-Amz-Security-Token=AgoGb3JpZ2luEIb%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLWVhc3QtMSKAAnJ98lb0wr2RzhUSxjl8ieMnULuczhFFwagjHDofqqKoNSdryFnxbrcrNVddIGkxym%2BvyYw43wBxjrXhTbBE7bkWKEhE3KscqB6%2BSYkIbn6LHDYnOioxSPg53Pvu5Zg37TNocoeOJvM24up%2BmVh2jlZa28Lb%2BJ8LTIk1v3CBw0kMiZppv5VgxkiyyzAawkH0PfhSVcbnVba5wPqBgZgApnvF9Cr7%2FKTbR79T%2FLkeYEa2wpDH2ePl0lQN32SfmF8jzshafG5f2N%2FRSAa8YZ%2FwcTQciWRCafS9OJ%2FoHsSG0uMYwwenKfJLMmer5fbpdE5eIICXYMZHkNJcWoHVR6oDSMwqqgMI2%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FARABGgw2ODA4NTE0NDEzNTYiDHj0L%2BCbkexGPxbfeSr%2BAsItQhOfOvK%2F%2FGhs%2FMAq5GYPWgKZSF%2B1CfDtkgeNCkd1VRm6tcrj5fO%2BaJQq%2BvulOE2U7EefSPMaj1HZApCPt6PCEvZ5AGopbhPgV4KIsKfPEpDVv27Ed5LUhJHDVVSTfKsrvHsO9%2FG4KtuCQJTVy5FgdGyxGyJuX0j%2F616gZ8AVxivSdFOBZac16b%2F%2F%2FtxKWihhBhYMltLiNX5ck34pL9UCfIQE%2FOMla1CgIz9%2BWNMC7r95JXDUAm3HPhXuuTl38xMEAXCcr59n9B3%2BQv%2BM0LUjOAnvbuCPpi3AtjjIFMvZR3xQTOAzRzsNY%2B2c%2FjQmE5981SDaTIZ4YnI9jOUouUQ4x%2FaoxfA8%2FfOAuSffdQVFtsZH%2FzM23HCzp0eyof4g59KPj6jEMLekmn3pFPiC%2FHikbhACGZDEgcv18o%2F9IIiL52YFhr3qVzcCcdTUBSbPBru7icu%2FLe6sjTea3PKDNkzoh1RpqzSdACr0s1aC8Z%2F7Un8fsg0UAKZKUiqUW%2BswgoiB0QU%3D&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20171130T174644Z&X-Amz-SignedHeaders=host&X-Amz-Expires=300&X-Amz-Credential=ASIAIR4CE2KR6EEYYCSA%2F20171130%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=376c3cb56254b1519434068ea3236a9eb5bf45fe115530585ba958f258dfcd6b HTTP/1.1 User-Agent: Lavf/58.0.101 Accept: */* Range: bytes=207500195- Connection: close Host: s3.amazonaws.com Icy-MetaData: 1 [https @ 0x33a8de0] header='HTTP/1.1 416 Requested Range Not Satisfiable' [https @ 0x33a8de0] http_code=416 [https @ 0x33a8de0] HTTP error 416 Requested Range Not Satisfiable [mov,mp4,m4a,3gp,3g2,mj2 @ 0x33a8440] error reading header [AVIOContext @ 0x33c5680] Statistics: 102758 bytes read, 1 seeks https://s3.amazonaws.com/frameio-uploads-production/uploads/dfd0150a-170f-4422-b1b1-ed6af7cb725f/original.mp4?response-content-disposition=inline&X-Amz-Security-Token=AgoGb3JpZ2luEIb%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLWVhc3QtMSKAAnJ98lb0wr2RzhUSxjl8ieMnULuczhFFwagjHDofqqKoNSdryFnxbrcrNVddIGkxym%2BvyYw43wBxjrXhTbBE7bkWKEhE3KscqB6%2BSYkIbn6LHDYnOioxSPg53Pvu5Zg37TNocoeOJvM24up%2BmVh2jlZa28Lb%2BJ8LTIk1v3CBw0kMiZppv5VgxkiyyzAawkH0PfhSVcbnVba5wPqBgZgApnvF9Cr7%2FKTbR79T%2FLkeYEa2wpDH2ePl0lQN32SfmF8jzshafG5f2N%2FRSAa8YZ%2FwcTQciWRCafS9OJ%2FoHsSG0uMYwwenKfJLMmer5fbpdE5eIICXYMZHkNJcWoHVR6oDSMwqqgMI2%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FARABGgw2ODA4NTE0NDEzNTYiDHj0L%2BCbkexGPxbfeSr%2BAsItQhOfOvK%2F%2FGhs%2FMAq5GYPWgKZSF%2B1CfDtkgeNCkd1VRm6tcrj5fO%2BaJQq%2BvulOE2U7EefSPMaj1HZApCPt6PCEvZ5AGopbhPgV4KIsKfPEpDVv27Ed5LUhJHDVVSTfKsrvHsO9%2FG4KtuCQJTVy5FgdGyxGyJuX0j%2F616gZ8AVxivSdFOBZac16b%2F%2F%2FtxKWihhBhYMltLiNX5ck34pL9UCfIQE%2FOMla1CgIz9%2BWNMC7r95JXDUAm3HPhXuuTl38xMEAXCcr59n9B3%2BQv%2BM0LUjOAnvbuCPpi3AtjjIFMvZR3xQTOAzRzsNY%2B2c%2FjQmE5981SDaTIZ4YnI9jOUouUQ4x%2FaoxfA8%2FfOAuSffdQVFtsZH%2FzM23HCzp0eyof4g59KPj6jEMLekmn3pFPiC%2FHikbhACGZDEgcv18o%2F9IIiL52YFhr3qVzcCcdTUBSbPBru7icu%2FLe6sjTea3PKDNkzoh1RpqzSdACr0s1aC8Z%2F7Un8fsg0UAKZKUiqUW%2BswgoiB0QU%3D&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20171130T174644Z&X-Amz-SignedHeaders=host&X-Amz-Expires=300&X-Amz-Credential=ASIAIR4CE2KR6EEYYCSA%2F20171130%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=376c3cb56254b1519434068ea3236a9eb5bf45fe115530585ba958f258dfcd6b: Server returned 4XX Client Error, but not one of 40{0,1,3,4}
Below is the trace from ffprobe command [ffprobe is an older 3.2.2 version]
It works fine. I have verified that old ffmpeg works for the same clips on the same systems.
bash-4.2# ./ffprobe "https://s3.amazonaws.com/frameio-uploads-production/uploads/dfd0150a-170f-4422-b1b1-ed6af7cb725f/original.mp4?response-content-disposition=inline&X-Amz-Security-Token=AgoGb3JpZ2luEIb%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLWVhc3QtMSKAAnJ98lb0wr2RzhUSxjl8ieMnULuczhFFwagjHDofqqKoNSdryFnxbrcrNVddIGkxym%2BvyYw43wBxjrXhTbBE7bkWKEhE3KscqB6%2BSYkIbn6LHDYnOioxSPg53Pvu5Zg37TNocoeOJvM24up%2BmVh2jlZa28Lb%2BJ8LTIk1v3CBw0kMiZppv5VgxkiyyzAawkH0PfhSVcbnVba5wPqBgZgApnvF9Cr7%2FKTbR79T%2FLkeYEa2wpDH2ePl0lQN32SfmF8jzshafG5f2N%2FRSAa8YZ%2FwcTQciWRCafS9OJ%2FoHsSG0uMYwwenKfJLMmer5fbpdE5eIICXYMZHkNJcWoHVR6oDSMwqqgMI2%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FARABGgw2ODA4NTE0NDEzNTYiDHj0L%2BCbkexGPxbfeSr%2BAsItQhOfOvK%2F%2FGhs%2FMAq5GYPWgKZSF%2B1CfDtkgeNCkd1VRm6tcrj5fO%2BaJQq%2BvulOE2U7EefSPMaj1HZApCPt6PCEvZ5AGopbhPgV4KIsKfPEpDVv27Ed5LUhJHDVVSTfKsrvHsO9%2FG4KtuCQJTVy5FgdGyxGyJuX0j%2F616gZ8AVxivSdFOBZac16b%2F%2F%2FtxKWihhBhYMltLiNX5ck34pL9UCfIQE%2FOMla1CgIz9%2BWNMC7r95JXDUAm3HPhXuuTl38xMEAXCcr59n9B3%2BQv%2BM0LUjOAnvbuCPpi3AtjjIFMvZR3xQTOAzRzsNY%2B2c%2FjQmE5981SDaTIZ4YnI9jOUouUQ4x%2FaoxfA8%2FfOAuSffdQVFtsZH%2FzM23HCzp0eyof4g59KPj6jEMLekmn3pFPiC%2FHikbhACGZDEgcv18o%2F9IIiL52YFhr3qVzcCcdTUBSbPBru7icu%2FLe6sjTea3PKDNkzoh1RpqzSdACr0s1aC8Z%2F7Un8fsg0UAKZKUiqUW%2BswgoiB0QU%3D&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20171130T175227Z&X-Amz-SignedHeaders=host&X-Amz-Expires=300&X-Amz-Credential=ASIAIR4CE2KR6EEYYCSA%2F20171130%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=93f704c7cd53a9c4852cedf967b4f8001811a5530ce27207d96dfdaa9640bb17" -loglevel trace ffprobe version n3.2.2 Copyright (c) 2007-2016 the FFmpeg developers built with gcc 4.8.3 (GCC) 20140911 (Red Hat 4.8.3-9) configuration: --prefix=/root/ffmpeg_build --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin --extra-libs=-ldl --enable-version3 --enable-libvpx --enable-libx264 --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libxvid --disable-ffplay --enable-gpl --enable-postproc --enable-nonfree --enable-avfilter --enable-pthreads --arch=x86_64 --enable-openssl libavutil 55. 34.100 / 55. 34.100 libavcodec 57. 64.101 / 57. 64.101 libavformat 57. 56.100 / 57. 56.100 libavdevice 57. 1.100 / 57. 1.100 libavfilter 6. 65.100 / 6. 65.100 libswscale 4. 2.100 / 4. 2.100 libswresample 2. 3.100 / 2. 3.100 libpostproc 54. 1.100 / 54. 1.100 [https @ 0x2a84520] Setting default whitelist 'http,https,tls,rtp,tcp,udp,crypto,httpproxy' [https @ 0x2a84520] request: GET /frameio-uploads-production/uploads/dfd0150a-170f-4422-b1b1-ed6af7cb725f/original.mp4?response-content-disposition=inline&X-Amz-Security-Token=AgoGb3JpZ2luEIb%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLWVhc3QtMSKAAnJ98lb0wr2RzhUSxjl8ieMnULuczhFFwagjHDofqqKoNSdryFnxbrcrNVddIGkxym%2BvyYw43wBxjrXhTbBE7bkWKEhE3KscqB6%2BSYkIbn6LHDYnOioxSPg53Pvu5Zg37TNocoeOJvM24up%2BmVh2jlZa28Lb%2BJ8LTIk1v3CBw0kMiZppv5VgxkiyyzAawkH0PfhSVcbnVba5wPqBgZgApnvF9Cr7%2FKTbR79T%2FLkeYEa2wpDH2ePl0lQN32SfmF8jzshafG5f2N%2FRSAa8YZ%2FwcTQciWRCafS9OJ%2FoHsSG0uMYwwenKfJLMmer5fbpdE5eIICXYMZHkNJcWoHVR6oDSMwqqgMI2%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FARABGgw2ODA4NTE0NDEzNTYiDHj0L%2BCbkexGPxbfeSr%2BAsItQhOfOvK%2F%2FGhs%2FMAq5GYPWgKZSF%2B1CfDtkgeNCkd1VRm6tcrj5fO%2BaJQq%2BvulOE2U7EefSPMaj1HZApCPt6PCEvZ5AGopbhPgV4KIsKfPEpDVv27Ed5LUhJHDVVSTfKsrvHsO9%2FG4KtuCQJTVy5FgdGyxGyJuX0j%2F616gZ8AVxivSdFOBZac16b%2F%2F%2FtxKWihhBhYMltLiNX5ck34pL9UCfIQE%2FOMla1CgIz9%2BWNMC7r95JXDUAm3HPhXuuTl38xMEAXCcr59n9B3%2BQv%2BM0LUjOAnvbuCPpi3AtjjIFMvZR3xQTOAzRzsNY%2B2c%2FjQmE5981SDaTIZ4YnI9jOUouUQ4x%2FaoxfA8%2FfOAuSffdQVFtsZH%2FzM23HCzp0eyof4g59KPj6jEMLekmn3pFPiC%2FHikbhACGZDEgcv18o%2F9IIiL52YFhr3qVzcCcdTUBSbPBru7icu%2FLe6sjTea3PKDNkzoh1RpqzSdACr0s1aC8Z%2F7Un8fsg0UAKZKUiqUW%2BswgoiB0QU%3D&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20171130T175227Z&X-Amz-SignedHeaders=host&X-Amz-Expires=300&X-Amz-Credential=ASIAIR4CE2KR6EEYYCSA%2F20171130%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=93f704c7cd53a9c4852cedf967b4f8001811a5530ce27207d96dfdaa9640bb17 HTTP/1.1 User-Agent: Lavf/57.56.100 Accept: */* Range: bytes=0- Connection: close Host: s3.amazonaws.com Icy-MetaData: 1 [https @ 0x2a84520] header='HTTP/1.1 206 Partial Content' [https @ 0x2a84520] http_code=206 [https @ 0x2a84520] header='x-amz-id-2: q1kvaeWzhl5cjCExQGYtRdYTBY4EzPX/8KDGJTzaiOnjIRWUMLuRJk/hB26f9cudxt/oxSAGVqY=' [https @ 0x2a84520] header='x-amz-request-id: 86BF685927AFF560' [https @ 0x2a84520] header='Date: Thu, 30 Nov 2017 17:53:13 GMT' [https @ 0x2a84520] header='Last-Modified: Thu, 30 Nov 2017 16:43:25 GMT' [https @ 0x2a84520] header='ETag: "d016478ba7a25cb74fef6ae56aac4dde-10"' [https @ 0x2a84520] header='x-amz-meta-correlation_id: e39f54cf4faa43219f7ebbe66d0d48c2' [https @ 0x2a84520] header='x-amz-meta-asset_id: dfd0150a-170f-4422-b1b1-ed6af7cb725f' [https @ 0x2a84520] header='x-amz-version-id: NCu_nHxSREF7fdHn0J3tytRmzOX.tfRE' [https @ 0x2a84520] header='Content-Disposition: inline' [https @ 0x2a84520] header='Accept-Ranges: bytes' [https @ 0x2a84520] header='Content-Range: bytes 0-207500194/207500195' [https @ 0x2a84520] header='Content-Type: video/mp4' [https @ 0x2a84520] header='Content-Length: 207500195' [https @ 0x2a84520] header='Server: AmazonS3' [https @ 0x2a84520] header='Connection: close' [https @ 0x2a84520] header='' Probing mov,mp4,m4a,3gp,3g2,mj2 score:100 size:2048 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2a83d20] Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100 ... ... ... [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2a83d20] AVIndex stream 1, sample 7554, offset c5d905c, dts 7735296, size 847, distance 0, keyframe 1 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2a83d20] Processing st: 1, edit list 0 - media time: 0, duration: 7733760 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2a83d20] type: 61746475 'udta' parent:'moov' sz: 58 75448 75498 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2a83d20] type: 4d4954a9 '?TIM' parent:'udta' sz: 23 8 50 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2a83d20] type: 435354a9 '?TSC' parent:'udta' sz: 14 31 50 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2a83d20] type: 5a5354a9 '?TSZ' parent:'udta' sz: 13 45 50 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2a83d20] type: 65657266 'free' parent:'root' sz: 10190 75538 207500195 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2a83d20] type: 7461646d 'mdat' parent:'root' sz: 207373515 85736 207500195 [https @ 0x2a84520] request: GET /frameio-uploads-production/uploads/dfd0150a-170f-4422-b1b1-ed6af7cb725f/original.mp4?response-content-disposition=inline&X-Amz-Security-Token=AgoGb3JpZ2luEIb%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLWVhc3QtMSKAAnJ98lb0wr2RzhUSxjl8ieMnULuczhFFwagjHDofqqKoNSdryFnxbrcrNVddIGkxym%2BvyYw43wBxjrXh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request&X-Amz-Signature=93f704c7cd53a9c4852cedf967b4f8001811a5530ce27207d96dfdaa9640bb17 HTTP/1.1 User-Agent: Lavf/57.56.100 Accept: */* Range: bytes=207459243- Connection: close Host: s3.amazonaws.com Icy-MetaData: 1 [https @ 0x2a84520] header='HTTP/1.1 206 Partial Content' [https @ 0x2a84520] http_code=206 [https @ 0x2a84520] header='x-amz-id-2: vYmrxjbjCz4aKmxIcO0dqnhsT0uU+JJd/+ot3zkHHmnVpYIUTjtZWoxj8u/oAAxko7fA6QADQf0=' [https @ 0x2a84520] header='x-amz-request-id: AAF224639BACD79D' [https @ 0x2a84520] header='Date: Thu, 30 Nov 2017 17:53:14 GMT' [https @ 0x2a84520] header='Last-Modified: Thu, 30 Nov 2017 16:43:25 GMT' [https @ 0x2a84520] header='ETag: "d016478ba7a25cb74fef6ae56aac4dde-10"' [https @ 0x2a84520] header='x-amz-meta-correlation_id: e39f54cf4faa43219f7ebbe66d0d48c2' [https @ 0x2a84520] header='x-amz-meta-asset_id: dfd0150a-170f-4422-b1b1-ed6af7cb725f' [https @ 0x2a84520] header='x-amz-version-id: NCu_nHxSREF7fdHn0J3tytRmzOX.tfRE' [https @ 0x2a84520] header='Content-Disposition: inline' [https @ 0x2a84520] header='Accept-Ranges: bytes' [https @ 0x2a84520] header='Content-Range: bytes 207459243-207500194/207500195' [https @ 0x2a84520] header='Content-Type: video/mp4' [https @ 0x2a84520] header='Content-Length: 40952' [https @ 0x2a84520] header='Server: AmazonS3' [https @ 0x2a84520] header='Connection: close' [https @ 0x2a84520] header='' [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2a83d20] type: 64697575 'uuid' parent:'root' sz: 40952 207459251 207500195 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2a83d20] on_parse_exit_offset=207500195 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2a83d20] Before avformat_find_stream_info() pos: 207500195 bytes read:127350 seeks:1 nb_streams:2 [h264 @ 0x2aa1120] nal_unit_type: 7, nal_ref_idc: 3 [h264 @ 0x2aa1120] nal_unit_type: 8, nal_ref_idc: 3 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2a83d20] stream 0, sample 0, dts -40000 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2a83d20] stream 1, sample 0, dts 0 [https @ 0x2a84520] request: GET /frameio-uploads-production/uploads/dfd0150a-170f-4422-b1b1-ed6af7cb725f/original.mp4?response-content-disposition=inline&X-Amz-Security-Token=AgoGb3JpZ2luEIb%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLWVhc3QtMSKAAnJ98lb0wr2RzhUSxjl8ieMnULuczhFFwagjHDofqqKoNSdryFnxbrcrNVddIGkxym%2BvyYw43wBxjrXhTbBE7bkWKEhE3KscqB6%2BSYkIbn6LHDYnOioxSPg53Pvu5Zg37TNocoeOJvM24up%2BmVh2jlZa28Lb%2BJ8LTIk1v3CBw0kMiZppv5VgxkiyyzAawkH0PfhSVcbnVba5wPqBgZgApnvF9Cr7%2FKTbR79T%2FLkeYEa2wpDH2ePl0lQN32SfmF8jzshafG5f2N%2FRSAa8YZ%2FwcTQciWRCafS9OJ%2FoHsSG0uMYwwenKfJLMmer5fbpdE5eIICXYMZHkNJcWoHVR6oDSMwqqgMI2%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FARABGgw2ODA4NTE0NDEzNTYiDHj0L%2BCbkexGPxbfeSr%2BAsItQhOfOvK%2F%2FGhs%2FMAq5GYPWgKZSF%2B1CfDtkgeNCkd1VRm6tcrj5fO%2BaJQq%2BvulOE2U7EefSPMaj1HZApCPt6PCEvZ5AGopbhPgV4KIsKfPEpDVv27Ed5LUhJHDVVSTfKsrvHsO9%2FG4KtuCQJTVy5FgdGyxGyJuX0j%2F616gZ8AVxivSdFOBZac16b%2F%2F%2FtxKWihhBhYMltLiNX5ck34pL9UCfIQE%2FOMla1CgIz9%2BWNMC7r95JXDUAm3HPhXuuTl38xMEAXCcr59n9B3%2BQv%2BM0LUjOAnvbuCPpi3AtjjIFMvZR3xQTOAzRzsNY%2B2c%2FjQmE5981SDaTIZ4YnI9jOUouUQ4x%2FaoxfA8%2FfOAuSffdQVFtsZH%2FzM23HCzp0eyof4g59KPj6jEMLekmn3pFPiC%2FHikbhACGZDEgcv18o%2F9IIiL52YFhr3qVzcCcdTUBSbPBru7icu%2FLe6sjTea3PKDNkzoh1RpqzSdACr0s1aC8Z%2F7Un8fsg0UAKZKUiqUW%2BswgoiB0QU%3D&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20171130T175227Z&X-Amz-SignedHeaders=host&X-Amz-Expires=300&X-Amz-Credential=ASIAIR4CE2KR6EEYYCSA%2F20171130%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=93f704c7cd53a9c4852cedf967b4f8001811a5530ce27207d96dfdaa9640bb17 HTTP/1.1 User-Agent: Lavf/57.56.100 Accept: */* Range: bytes=85736- Connection: close Host: s3.amazonaws.com Icy-MetaData: 1 [https @ 0x2a84520] header='HTTP/1.1 206 Partial Content' [https @ 0x2a84520] http_code=206 [https @ 0x2a84520] header='x-amz-id-2: WDIliOn3N1IwGW3oegpUa4yKEp6j+ZxrowuipdF5mapY6MMQffqNK+GK4+SHVJkrV01JjLsvohA=' [https @ 0x2a84520] header='x-amz-request-id: F4EDABD589FDF172' [https @ 0x2a84520] header='Date: Thu, 30 Nov 2017 17:53:14 GMT' [https @ 0x2a84520] header='Last-Modified: Thu, 30 Nov 2017 16:43:25 GMT' [https @ 0x2a84520] header='ETag: "d016478ba7a25cb74fef6ae56aac4dde-10"' [https @ 0x2a84520] header='x-amz-meta-correlation_id: e39f54cf4faa43219f7ebbe66d0d48c2' [https @ 0x2a84520] header='x-amz-meta-asset_id: dfd0150a-170f-4422-b1b1-ed6af7cb725f' [https @ 0x2a84520] header='x-amz-version-id: NCu_nHxSREF7fdHn0J3tytRmzOX.tfRE' [https @ 0x2a84520] header='Content-Disposition: inline' [https @ 0x2a84520] header='Accept-Ranges: bytes' [https @ 0x2a84520] header='Content-Range: bytes 85736-207500194/207500195' [https @ 0x2a84520] header='Content-Type: video/mp4' [https @ 0x2a84520] header='Content-Length: 207414459' [https @ 0x2a84520] header='Server: AmazonS3' [https @ 0x2a84520] header='Connection: close' [https @ 0x2a84520] header='' [h264 @ 0x2aa1120] nal_unit_type: 5, nal_ref_idc: 3 [h264 @ 0x2aa1120] Reinit context to 1920x1088, pix_fmt: yuv420p [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2a83d20] stream 0, sample 1, dts 0 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2a83d20] stream 1, sample 0, dts 0 [h264 @ 0x2aa1120] nal_unit_type: 1, nal_ref_idc: 2 [h264 @ 0x2aa1120] Increasing reorder buffer to 1 [h264 @ 0x2aa1120] no picture [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2a83d20] stream 0, sample 2, dts 40000 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2a83d20] stream 1, sample 0, dts 0 [h264 @ 0x2aa1120] nal_unit_type: 1, nal_ref_idc: 0 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2a83d20] stream 0, sample 3, dts 80000 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2a83d20] stream 1, sample 0, dts 0 [h264 @ 0x2aa1120] nal_unit_type: 1, nal_ref_idc: 0 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2a83d20] stream 0, sample 4, dts 120000 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2a83d20] stream 1, sample 0, dts 0 [h264 @ 0x2aa1120] nal_unit_type: 1, nal_ref_idc: 0 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2a83d20] stream 0, sample 5, dts 160000 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2a83d20] stream 1, sample 0, dts 0 [h264 @ 0x2aa1120] nal_unit_type: 1, nal_ref_idc: 2 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2a83d20] stream 0, sample 6, dts 200000 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2a83d20] stream 1, sample 0, dts 0 [h264 @ 0x2aa1120] nal_unit_type: 1, nal_ref_idc: 0 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2a83d20] stream 0, sample 7, dts 240000 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2a83d20] stream 1, sample 0, dts 0 [h264 @ 0x2aa1120] nal_unit_type: 1, nal_ref_idc: 0 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2a83d20] stream 0, sample 8, dts 280000 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2a83d20] stream 1, sample 0, dts 0 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2a83d20] stream 0, sample 9, dts 320000 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2a83d20] stream 1, sample 0, dts 0 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2a83d20] stream 0, sample 10, dts 360000 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2a83d20] stream 1, sample 0, dts 0 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2a83d20] All info found [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2a83d20] stream 0: start_time: 0.000 duration: 161.120 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2a83d20] stream 1: start_time: 0.000 duration: 161.120 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2a83d20] format: start_time: 0.000 duration: 161.173 bitrate=10299 kb/s [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2a83d20] After avformat_find_stream_info() pos: 839302 bytes read:891611 seeks:2 frames:11 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'https://s3.amazonaws.com/frameio-uploads-production/uploads/dfd0150a-170f-4422-b1b1-ed6af7cb725f/original.mp4?response-content-disposition=inline&X-Amz-Security-Token=AgoGb3JpZ2luEIb%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLWVhc3QtMSKAAnJ98lb0wr2RzhUSxjl8ieMnULuczhFFwagjH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E2KR6EEYYCSA%2F20171130%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=93f704c7cd53a9c4852cedf967b4f8001811a5530ce27207d96dfdaa9640bb17': Metadata: major_brand : mp42 minor_version : 0 compatible_brands: mp42mp41 creation_time : 2017-11-30T16:24:47.000000Z Duration: 00:02:41.17, start: 0.000000, bitrate: 10299 kb/s Stream #0:0(eng), 10, 1/25000: Video: h264 (Main), 1 reference frame (avc1 / 0x31637661), yuv420p(tv, bt709, left), 1920x1080 (1920x1088), 0/1, 9979 kb/s, 25 fps, 25 tbr, 25k tbn, 50 tbc (default) Metadata: creation_time : 2017-11-30T16:24:47.000000Z handler_name : Alias Data Handler encoder : AVC Coding Stream #0:1(eng), 1, 1/48000: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 317 kb/s (default) Metadata: creation_time : 2017-11-30T16:24:47.000000Z handler_name : Alias Data Handler [h264 @ 0x2aa70e0] nal_unit_type: 7, nal_ref_idc: 3 [h264 @ 0x2aa70e0] nal_unit_type: 8, nal_ref_idc: 3 [AVIOContext @ 0x2a9fdc0] Statistics: 891611 bytes read, 2 seeks
Patches should be submitted to the ffmpeg-devel mailing list and not this bug tracker.
Change History (17)
comment:1 by , 7 years ago
follow-ups: 4 5 comment:2 by , 7 years ago
Keywords: | mov regression added; stream-in removed |
---|---|
Priority: | normal → important |
Version: | unspecified → git-master |
Since I get 403 forbidden here, you will have to run git bisect
yourself.
comment:3 by , 7 years ago
This definitely seems quite strange:
[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'
The first response indicates the file is 207500195 in length, but then the next request tries to read from 207500195 onwards which makes no sense.
comment:4 by , 7 years ago
Replying to cehoyos:
Since I get 403 forbidden here, you will have to run
git bisect
yourself.
Thanks for the response. I have never used git bisect
before, but will try it out over the weekend a see if I can locate it back to a certain revision number.
comment:5 by , 7 years ago
Replying to cehoyos:
Since I get 403 forbidden here, you will have to run
git bisect
yourself.
Thanks for the response. I have never used git bisect
before, but will try it out over the weekend a see if I can locate it back to a certain revision number.
comment:6 by , 7 years ago
I looked at many more .mp4 files with stream-in source.
This issue only comes when the uuid
is the last atom.
comment:7 by , 7 years ago
I looked at many more .mp4 files with stream-in source.
This issue only comes when the uuid
is the last atom.
comment:10 by , 7 years ago
Does using the input option -export_xmp 1
make a difference with current FFmpeg?
comment:11 by , 7 years ago
Like you suggested, -export_xmp 1
works on current ffmpeg.
Thanks for the tip on 4dcdecf4
.
However I just figured the issue crept in a day earlier on the commit 25e35b34365ea4fc737f406992b7947a0610edcb
comment:12 by , 7 years ago
Component: | undetermined → avformat |
---|---|
Status: | new → open |
comment:13 by , 6 years ago
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}
/
comment:14 by , 6 years ago
And I submit a patch about this problem
--- libavformat/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/http.c b/libavformat/http.c index 3a35bc7eac..129f683d15 100644 --- a/libavformat/http.c +++ b/libavformat/http.c @@ -1669,7 +1669,7 @@ static int64_t http_seek_internal(URLContext *h, int64_t off, int whence, int fo int old_buf_size, ret; AVDictionary *options = NULL; - if (whence == AVSEEK_SIZE) + if (whence == AVSEEK_SIZE || (whence == SEEK_SET && off == s->filesize)) return s->filesize; else if (!force_reconnect && ((whence == SEEK_CUR && off == 0) || -- 2.19.0
This modification can fix this issue.
comment:15 by , 6 years ago
The previous modification is not correct.
The implement of
"avio_seek(AVIOContext *s, int64_t offset, int whence)" #libavformat/avio.c#" encapsulates all IO operation of FILE, HTTP, Streaming,and so on.
And I think that if a media file can seek to file end in local file mode, it should seek to the file end when it is on a HTTP Server.
If a XXX.mp4 is a local file and the size is 200,420,354, we call avio_seek(AVIOContext *s, int64_t offset, int whence) by whence = SEEK_SET and offset=200,420,354, it finally call the following code:
/* XXX: use llseek */ static int64_t file_seek(URLContext *h, int64_t pos, int whence) { FileContext *c = h->priv_data; int64_t ret; if (whence == AVSEEK_SIZE) { struct stat st; ret = fstat(c->fd, &st); return ret < 0 ? AVERROR(errno) : (S_ISFIFO(st.st_mode) ? 0 : st.st_size); } ret = lseek(c->fd, pos, whence); return ret < 0 ? AVERROR(errno) : ret; }
And it return 200,420,354.
But if the same file at a HTTP Server, we call avio_seek(AVIOContext *s, int64_t offset, int whence) by whence = SEEK_SET and offset=200,420,354, it finally call the following code:
static int64_t http_seek_internal(URLContext *h, int64_t off, int whence, int force_reconnect) { HTTPContext *s = h->priv_data; URLContext *old_hd = s->hd; uint64_t old_off = s->off; uint8_t old_buf[BUFFER_SIZE]; int old_buf_size, ret; AVDictionary *options = NULL; if (whence == AVSEEK_SIZE) return s->filesize; else if (!force_reconnect && ((whence == SEEK_CUR && off == 0) || (whence == SEEK_SET && off == s->off))) return s->off; else if ((s->filesize == UINT64_MAX && whence == SEEK_END)) return AVERROR(ENOSYS); if (whence == SEEK_CUR) off += s->off; else if (whence == SEEK_END) off += s->filesize; else if (whence != SEEK_SET) return AVERROR(EINVAL); if (off < 0) return AVERROR(EINVAL); s->off = off; if (s->off && h->is_streamed) return AVERROR(ENOSYS); /* we save the old context in case the seek fails */ old_buf_size = s->buf_end - s->buf_ptr; memcpy(old_buf, s->buf_ptr, old_buf_size); s->hd = NULL; /* if it fails, continue on old connection */ if ((ret = http_open_cnx(h, &options)) < 0) { av_dict_free(&options); memcpy(s->buffer, old_buf, old_buf_size); s->buf_ptr = s->buffer; s->buf_end = s->buffer + old_buf_size; s->hd = old_hd; s->off = old_off; return ret; } av_dict_free(&options); ffurl_close(old_hd); return off; }
and it return fail, because the HTTP Server return 416 as following:
"[http @ 0x7fd9d3c00240] header='HTTP/1.1 416 Requested Range Not Satisfiable' "
It is strange that if the file at HTTP Server, we can not seek to the file end.
Consider that some http resource is streamed, the file size of the resource is undefined or changing, and we should except it.
So the modification can be
if ((whence == AVSEEK_SIZE) || (h->is_streamed ==0 && whence == SEEK_SET && off == s->filesize)) return s->filesize;
comment:16 by , 6 years ago
I can confirm this fix worked for me as well:
if ((whence == AVSEEK_SIZE) || (h->is_streamed ==0 && whence == SEEK_SET && off == s->filesize)) return s->filesize;
comment:17 by , 5 years ago
Resolution: | → fixed |
---|---|
Status: | open → closed |
Possibly fixed in 69fcc093c1241b5ee7711c56c9cd558832a7e491
The attachments here can only be 2.5 MB.
Please see a file here - https://drive.google.com/file/d/10PQIr5-Khqnnn8DyYGNJXGmkB_L_r-CH/view?usp=sharing