Open r567i opened 1 year ago
Does it fail exactly after 1 or 3 seconds? If so that's most likely due to:
And I can bump these up, make they configurable if needs be 😉
Fails after about 1 second I changed it to 10 seconds and tried to build, but it failed after about 1 second as well
gluetun3 | ├── HTTP proxy settings:
gluetun3 | | ├── Enabled: yes
gluetun3 | | ├── Listening address: :8888
gluetun3 | | ├── User:
gluetun3 | | ├── Password: [not set]
gluetun3 | | ├── Stealth mode: no
gluetun3 | | ├── Log: yes
gluetun3 | | ├── Read header timeout: 10s
gluetun3 | | └── Read timeout: 10s
I had a stream url that I could connect to with http and https, so I tried it and the problem didn't happen with http
R:\Temp>ffmpeg -http_proxy http://192.168.0.66:9993 -loglevel trace -i "https://content.jwplatform.com/manifests/vM7nH0Kl.m3u8"
ffmpeg version 2023-03-05-git-912ac82a3c-full_build-www.gyan.dev Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 12.2.0 (Rev10, Built by MSYS2 project)
configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libaribb24 --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libaom --enable-libjxl --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libvpl --enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
libavutil 58. 3.100 / 58. 3.100
libavcodec 60. 6.100 / 60. 6.100
libavformat 60. 4.100 / 60. 4.100
libavdevice 60. 2.100 / 60. 2.100
libavfilter 9. 4.100 / 9. 4.100
libswscale 7. 2.100 / 7. 2.100
libswresample 4. 11.100 / 4. 11.100
libpostproc 57. 2.100 / 57. 2.100
Splitting the commandline.
Reading option '-http_proxy' ... matched as AVOption 'http_proxy' with argument 'http://192.168.0.66:9993'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'trace'.
Reading option '-i' ... matched as input url with argument 'https://content.jwplatform.com/manifests/vM7nH0Kl.m3u8'.
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://content.jwplatform.com/manifests/vM7nH0Kl.m3u8.
Successfully parsed a group of options.
Opening an input file: https://content.jwplatform.com/manifests/vM7nH0Kl.m3u8.
[NULL @ 0000021d087a9700] Opening 'https://content.jwplatform.com/manifests/vM7nH0Kl.m3u8' for reading
[https @ 0000021d087a9d80] Setting default whitelist 'http,https,tls,rtp,tcp,udp,crypto,httpproxy'
[tcp @ 0000021d087afd80] Original list of addresses:
[tcp @ 0000021d087afd80] Address 192.168.0.66 port 9993
[tcp @ 0000021d087afd80] Interleaved list of addresses:
[tcp @ 0000021d087afd80] Address 192.168.0.66 port 9993
[tcp @ 0000021d087afd80] Starting connection attempt to 192.168.0.66 port 9993
[tcp @ 0000021d087afd80] Successfully connected to 192.168.0.66 port 9993
[httpproxy @ 0000021d087ad300] header='HTTP/1.1 200 OK'
[httpproxy @ 0000021d087ad300] http_code=200
[httpproxy @ 0000021d087ad300] header='Date: Tue, 06 Jun 2023 14:02:35 GMT'
[httpproxy @ 0000021d087ad300] header='Connection: close'
[httpproxy @ 0000021d087ad300] header='Transfer-Encoding: chunked'
[httpproxy @ 0000021d087ad300] header=''
[httpproxy @ 0000021d087ad300] Chunked encoding data size: 0
[httpproxy @ 0000021d087ad300] Last chunk received, closing conn
[httpproxy @ 0000021d087ad300] Chunked encoding data size: 4
[httpproxy @ 0000021d087ad300] Chunked encoding data size: 0
[httpproxy @ 0000021d087ad300] Last chunk received, closing conn
[httpproxy @ 0000021d087ad300] Chunked encoding data size: 0
[httpproxy @ 0000021d087ad300] Last chunk received, closing conn
[httpproxy @ 0000021d087ad300] Chunked encoding data size: 5
[tls @ 0000021d087acfc0] An unexpected TLS packet was received.
https://content.jwplatform.com/manifests/vM7nH0Kl.m3u8: I/O error
R:\Temp>ffmpeg -http_proxy http://192.168.0.66:9993 -loglevel trace -i "http://content.jwplatform.com/manifests/vM7nH0Kl.m3u8"
ffmpeg version 2023-03-05-git-912ac82a3c-full_build-www.gyan.dev Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 12.2.0 (Rev10, Built by MSYS2 project)
configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libaribb24 --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libaom --enable-libjxl --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libvpl --enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
libavutil 58. 3.100 / 58. 3.100
libavcodec 60. 6.100 / 60. 6.100
libavformat 60. 4.100 / 60. 4.100
libavdevice 60. 2.100 / 60. 2.100
libavfilter 9. 4.100 / 9. 4.100
libswscale 7. 2.100 / 7. 2.100
libswresample 4. 11.100 / 4. 11.100
libpostproc 57. 2.100 / 57. 2.100
Splitting the commandline.
Reading option '-http_proxy' ... matched as AVOption 'http_proxy' with argument 'http://192.168.0.66:9993'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'trace'.
Reading option '-i' ... matched as input url with argument 'http://content.jwplatform.com/manifests/vM7nH0Kl.m3u8'.
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 http://content.jwplatform.com/manifests/vM7nH0Kl.m3u8.
Successfully parsed a group of options.
Opening an input file: http://content.jwplatform.com/manifests/vM7nH0Kl.m3u8.
[NULL @ 0000017581c89680] Opening 'http://content.jwplatform.com/manifests/vM7nH0Kl.m3u8' for reading
[http @ 0000017581c89d00] Setting default whitelist 'http,https,tls,rtp,tcp,udp,crypto,httpproxy,data'
[tcp @ 0000017581c8cf40] Original list of addresses:
[tcp @ 0000017581c8cf40] Address 192.168.0.66 port 9993
[tcp @ 0000017581c8cf40] Interleaved list of addresses:
[tcp @ 0000017581c8cf40] Address 192.168.0.66 port 9993
[tcp @ 0000017581c8cf40] Starting connection attempt to 192.168.0.66 port 9993
[tcp @ 0000017581c8cf40] Successfully connected to 192.168.0.66 port 9993
[http @ 0000017581c89d00] request: GET http://content.jwplatform.com:80/manifests/vM7nH0Kl.m3u8 HTTP/1.1
User-Agent: Lavf/60.4.100
Accept: */*
Range: bytes=0-
Connection: close
Host: content.jwplatform.com
Icy-MetaData: 1
[http @ 0000017581c89d00] header='HTTP/1.1 206 Partial Content'
[http @ 0000017581c89d00] http_code=206
[http @ 0000017581c89d00] header='Access-Control-Allow-Origin: *'
[http @ 0000017581c89d00] header='Age: 175'
[http @ 0000017581c89d00] header='Cache-Control: max-age=180'
[http @ 0000017581c89d00] header='Content-Length: 1589'
[http @ 0000017581c89d00] header='Content-Range: bytes 0-1588/1589'
[http @ 0000017581c89d00] header='Content-Type: application/vnd.apple.mpegurl; charset=utf-8'
[http @ 0000017581c89d00] header='Date: Tue, 06 Jun 2023 14:00:15 GMT'
[http @ 0000017581c89d00] header='Server: openresty'
[http @ 0000017581c89d00] header='Vary: Accept-Encoding'
[http @ 0000017581c89d00] header='Via: 1.1 512a9cd52d1c7f67c1024cc6f45426f0.cloudfront.net (CloudFront)'
[http @ 0000017581c89d00] header='X-Amz-Cf-Id: pNmH9ki-826B-RQOaSw-1Q_zDZqhdfHTD9SL4vfH9-Fk7fmlepYHXQ=='
[http @ 0000017581c89d00] header='X-Amz-Cf-Pop: LHR50-P5'
[http @ 0000017581c89d00] header='X-Cache: Hit from cloudfront'
[http @ 0000017581c89d00] header='X-Robots-Tag: noindex, indexifembedded'
[http @ 0000017581c89d00] header='Connection: close'
[http @ 0000017581c89d00] header=''
Probing hls score:100 size:1589
[hls @ 0000017581c89680] Format hls probed with size=2048 and score=100
[hls @ 0000017581c89680] Opening 'http://videos-cloudfront-usp.jwpsrv.com/647fe4af_bd5e3a26acb6435221c94bbb8959b91562edd489/site/zWLy8Jer/media/vM7nH0Kl/version/21ETjILN/manifest.ism/manifest-audio_eng=112000-video_eng=550640.m3u8' for reading
[tcp @ 0000017581ca3380] Original list of addresses:
[tcp @ 0000017581ca3380] Address 192.168.0.66 port 9993
[tcp @ 0000017581ca3380] Interleaved list of addresses:
[tcp @ 0000017581ca3380] Address 192.168.0.66 port 9993
[tcp @ 0000017581ca3380] Starting connection attempt to 192.168.0.66 port 9993
[tcp @ 0000017581ca3380] Successfully connected to 192.168.0.66 port 9993
[http @ 0000017581c95040] request: GET http://videos-cloudfront-usp.jwpsrv.com:80/647fe4af_bd5e3a26acb6435221c94bbb8959b91562edd489/site/zWLy8Jer/media/vM7nH0Kl/version/21ETjILN/manifest.ism/manifest-audio_eng=112000-video_eng=550640.m3u8 HTTP/1.1
User-Agent: Lavf/60.4.100
Accept: */*
Range: bytes=0-
Connection: keep-alive
Host: videos-cloudfront-usp.jwpsrv.com
Icy-MetaData: 1
R:\Temp>curl -x "http://192.168.0.66:9993" "https://content.jwplatform.com/manifests/vM7nH0Kl.m3u8"
#EXTM3U
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=670000,RESOLUTION=640x286,CODECS="mp4a.40.2,avc1.4d4015",FRAME-RATE=24.0,CLOSED-CAPTIONS=NONE
https://videos-cloudfront-usp.jwpsrv.com/647fe67f_04a5cd7bfb2332dcea5a5ac9eb342eb61da29c59/site/zWLy8Jer/media/vM7nH0Kl/version/21ETjILN/manifest.ism/manifest-audio_eng=112000-video_eng=550640.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=3400000,RESOLUTION=1920x858,CODECS="mp4a.40.2,avc1.640028",FRAME-RATE=24.0,CLOSED-CAPTIONS=NONE
https://videos-cloudfront-usp.jwpsrv.com/647fe67f_04a5cd7bfb2332dcea5a5ac9eb342eb61da29c59/site/zWLy8Jer/media/vM7nH0Kl/version/21ETjILN/manifest.ism/manifest-audio_eng=112000-video_eng=3279704.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1710000,RESOLUTION=1280x572,CODECS="mp4a.40.2,avc1.4d401f",FRAME-RATE=24.0,CLOSED-CAPTIONS=NONE
https://videos-cloudfront-usp.jwpsrv.com/647fe67f_04a5cd7bfb2332dcea5a5ac9eb342eb61da29c59/site/zWLy8Jer/media/vM7nH0Kl/version/21ETjILN/manifest.ism/manifest-audio_eng=112000-video_eng=1588768.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=380000,RESOLUTION=320x142,CODECS="mp4a.40.2,avc1.42c00d",FRAME-RATE=24.0,CLOSED-CAPTIONS=NONE
https://videos-cloudfront-usp.jwpsrv.com/647fe67f_04a5cd7bfb2332dcea5a5ac9eb342eb61da29c59/site/zWLy8Jer/media/vM7nH0Kl/version/21ETjILN/manifest.ism/manifest-audio_eng=112000-video_eng=264864.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=120000,CODECS="mp4a.40.2"
https://videos-cloudfront-usp.jwpsrv.com/647fe67f_04a5cd7bfb2332dcea5a5ac9eb342eb61da29c59/site/zWLy8Jer/media/vM7nH0Kl/version/21ETjILN/manifest.ism/manifest-audio_eng=112000.m3u8
R:\Temp>curl -x "http://192.168.0.66:9993" "http://content.jwplatform.com/manifests/vM7nH0Kl.m3u8"
#EXTM3U
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=670000,RESOLUTION=640x286,CODECS="mp4a.40.2,avc1.4d4015",FRAME-RATE=24.0,CLOSED-CAPTIONS=NONE
http://videos-cloudfront-usp.jwpsrv.com/647fe685_ab8e1a35c28c6a06fb5ea40ef6f371dce4c6f3e2/site/zWLy8Jer/media/vM7nH0Kl/version/21ETjILN/manifest.ism/manifest-audio_eng=112000-video_eng=550640.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=3400000,RESOLUTION=1920x858,CODECS="mp4a.40.2,avc1.640028",FRAME-RATE=24.0,CLOSED-CAPTIONS=NONE
http://videos-cloudfront-usp.jwpsrv.com/647fe685_ab8e1a35c28c6a06fb5ea40ef6f371dce4c6f3e2/site/zWLy8Jer/media/vM7nH0Kl/version/21ETjILN/manifest.ism/manifest-audio_eng=112000-video_eng=3279704.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1710000,RESOLUTION=1280x572,CODECS="mp4a.40.2,avc1.4d401f",FRAME-RATE=24.0,CLOSED-CAPTIONS=NONE
http://videos-cloudfront-usp.jwpsrv.com/647fe685_ab8e1a35c28c6a06fb5ea40ef6f371dce4c6f3e2/site/zWLy8Jer/media/vM7nH0Kl/version/21ETjILN/manifest.ism/manifest-audio_eng=112000-video_eng=1588768.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=380000,RESOLUTION=320x142,CODECS="mp4a.40.2,avc1.42c00d",FRAME-RATE=24.0,CLOSED-CAPTIONS=NONE
http://videos-cloudfront-usp.jwpsrv.com/647fe685_ab8e1a35c28c6a06fb5ea40ef6f371dce4c6f3e2/site/zWLy8Jer/media/vM7nH0Kl/version/21ETjILN/manifest.ism/manifest-audio_eng=112000-video_eng=264864.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=120000,CODECS="mp4a.40.2"
http://videos-cloudfront-usp.jwpsrv.com/647fe685_ab8e1a35c28c6a06fb5ea40ef6f371dce4c6f3e2/site/zWLy8Jer/media/vM7nH0Kl/version/21ETjILN/manifest.ism/manifest-audio_eng=112000.m3u8
Can confirm this still happens for me. Using HTTPS it fails every time. HTTP no problem works fine...
Is this urgent?
No
Host OS
Ubuntu 20.04.5 LTS
CPU arch
x86_64
VPN service provider
NordVPN
What are you using to run the container
docker-compose
What is the version of Gluetun
Running version latest built on 2023-06-01T09:15:45.657Z (commit 5927ee9)
What's the problem 🤔
The proxy in curl or browser is working fine I tested this demo page hls in browser/ffmpeg through a proxy and it plays in the browser but does not connect in ffmpeg
It works fine in ffmpeg without a proxy Do you have any idea on this?
R:\Temp>curl https://ipinfo.io { "ip": "188.241.157.118", "hostname": "118.157.241.188.baremetal.zare.com", "city": "Glasgow", "region": "Scotland", "country": "GB", "loc": "55.8667,-4.2500", "org": "AS25369 Hydra Communications Ltd", "postal": "G90", "timezone": "Europe/London", "readme": "https://ipinfo.io/missingauth" } R:\Temp>ffmpeg -loglevel debug -i "https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8" -c copy "test.ts" ffmpeg version 2023-03-05-git-912ac82a3c-full_build-www.gyan.dev Copyright (c) 2000-2023 the FFmpeg developers built with gcc 12.2.0 (Rev10, Built by MSYS2 project) configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libaribb24 --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libaom --enable-libjxl --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libvpl --enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint libavutil 58. 3.100 / 58. 3.100 libavcodec 60. 6.100 / 60. 6.100 libavformat 60. 4.100 / 60. 4.100 libavdevice 60. 2.100 / 60. 2.100 libavfilter 9. 4.100 / 9. 4.100 libswscale 7. 2.100 / 7. 2.100 libswresample 4. 11.100 / 4. 11.100 libpostproc 57. 2.100 / 57. 2.100 Splitting the commandline. Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'. Reading option '-i' ... matched as input url with argument 'https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8'. Reading option '-c' ... matched as option 'c' (codec name) with argument 'copy'. Reading option 'test.ts' ... matched as output url. Finished splitting the commandline. Parsing a group of options: global . Applying option loglevel (set logging level) with argument debug. Successfully parsed a group of options. Parsing a group of options: input url https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8. Successfully parsed a group of options. Opening an input file: https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8. [NULL @ 00000247e2f89a00] Opening 'https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8' for reading [https @ 00000247e2f89f00] Setting default whitelist 'http,https,tls,rtp,tcp,udp,crypto,httpproxy' [tcp @ 00000247e2f8a140] Original list of addresses: [tcp @ 00000247e2f8a140] Address 192.168.0.66 port 9993 [tcp @ 00000247e2f8a140] Interleaved list of addresses: [tcp @ 00000247e2f8a140] Address 192.168.0.66 port 9993 [tcp @ 00000247e2f8a140] Starting connection attempt to 192.168.0.66 port 9993 [tcp @ 00000247e2f8a140] Successfully connected to 192.168.0.66 port 9993 [httpproxy @ 00000247e2f8b340] Last chunk received, closing conn Last message repeated 13 times [tls @ 00000247e2f8a080] An unexpected TLS packet was received. https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8: I/O error
Share your logs
Share your configuration