azgaresncf / strm2hls

convert [some] streaming links to HLS (HTTP Live Streaming)
31 stars 6 forks source link

add proxy support #7

Open azgaresncf opened 1 year ago

azgaresncf commented 1 year ago

idea: according to BellezaEmporium's review:

well, we just have to grab the m3u8 url, I think I will add it to my repo strm2hls after

You may also add a proxy support, as some streams are blocked by Daily, but once you get access to the main m3u file, you actually can watch those channels outside of the region the stream was intended for.

Ex : RCN [CO]

With VPN located in Bogota : image

Data :

#EXTM3U
#EXT-X-STREAM-INF:RESOLUTION=848x477,FRAME-RATE=29.970030,BANDWIDTH=1359872,CODECS="avc1.64001f,mp4a.40.2",NAME="480"
https://stream-04.nyc.dailymotion.com/sec(RTXUFuzJRHwPimV0dxTfPxlxluXanTTfN-UUJ6LmVT7MzjQGcLI5K8qv9oxVSqQDJksewILQV8LGKKE9Q7zfh9vWoFncrAdnEJQemReO4Is)/cloud/3/x7vyv0z/s/live-2.m3u8#cell=lnyc
#EXT-X-STREAM-INF:RESOLUTION=848x477,FRAME-RATE=29.970030,BANDWIDTH=1359872,CODECS="avc1.64001f,mp4a.40.2",NAME="480"
https://stream-03.nyc.dailymotion.com/sec(RTXUFuzJRHwPimV0dxTfPxlxluXanTTfN-UUJ6LmVT7MzjQGcLI5K8qv9oxVSqQDJksewILQV8LGKKE9Q7zfh9vWoFncrAdnEJQemReO4Is)/cloud/3/x7vyv0z/s/live-2.m3u8#cell=lnyc
#EXT-X-STREAM-INF:RESOLUTION=320x180,FRAME-RATE=29.970030,BANDWIDTH=475136,CODECS="avc1.42000d,mp4a.40.5",NAME="240"
https://stream-04.nyc.dailymotion.com/sec(RTXUFuzJRHwPimV0dxTfPxlxluXanTTfN-UUJ6LmVT7MzjQGcLI5K8qv9oxVSqQDJksewILQV8LGKKE9Q7zfh9vWoFncrAdnEJQemReO4Is)/cloud/3/x7vyv0z/s/live-0.m3u8#cell=lnyc
#EXT-X-STREAM-INF:RESOLUTION=320x180,FRAME-RATE=29.970030,BANDWIDTH=475136,CODECS="avc1.42000d,mp4a.40.5",NAME="240"
https://stream-03.nyc.dailymotion.com/sec(RTXUFuzJRHwPimV0dxTfPxlxluXanTTfN-UUJ6LmVT7MzjQGcLI5K8qv9oxVSqQDJksewILQV8LGKKE9Q7zfh9vWoFncrAdnEJQemReO4Is)/cloud/3/x7vyv0z/s/live-0.m3u8#cell=lnyc
#EXT-X-STREAM-INF:RESOLUTION=512x288,FRAME-RATE=29.970030,BANDWIDTH=782336,CODECS="avc1.420015,mp4a.40.5",NAME="380"
https://stream-04.nyc.dailymotion.com/sec(RTXUFuzJRHwPimV0dxTfPxlxluXanTTfN-UUJ6LmVT7MzjQGcLI5K8qv9oxVSqQDJksewILQV8LGKKE9Q7zfh9vWoFncrAdnEJQemReO4Is)/cloud/3/x7vyv0z/s/live-1.m3u8#cell=lnyc
#EXT-X-STREAM-INF:RESOLUTION=512x288,FRAME-RATE=29.970030,BANDWIDTH=782336,CODECS="avc1.420015,mp4a.40.5",NAME="380"
https://stream-03.nyc.dailymotion.com/sec(RTXUFuzJRHwPimV0dxTfPxlxluXanTTfN-UUJ6LmVT7MzjQGcLI5K8qv9oxVSqQDJksewILQV8LGKKE9Q7zfh9vWoFncrAdnEJQemReO4Is)/cloud/3/x7vyv0z/s/live-1.m3u8#cell=lnyc
#EXT-X-STREAM-INF:RESOLUTION=1280x720,FRAME-RATE=29.970030,BANDWIDTH=2179072,CODECS="avc1.64001f,mp4a.40.2",NAME="720"
https://stream-04.nyc.dailymotion.com/sec(RTXUFuzJRHwPimV0dxTfPxlxluXanTTfN-UUJ6LmVT7MzjQGcLI5K8qv9oxVSqQDJksewILQV8LGKKE9Q7zfh9vWoFncrAdnEJQemReO4Is)/cloud/3/x7vyv0z/s/live-3.m3u8#cell=lnyc
#EXT-X-STREAM-INF:RESOLUTION=1280x720,FRAME-RATE=29.970030,BANDWIDTH=2179072,CODECS="avc1.64001f,mp4a.40.2",NAME="720"
https://stream-03.nyc.dailymotion.com/sec(RTXUFuzJRHwPimV0dxTfPxlxluXanTTfN-UUJ6LmVT7MzjQGcLI5K8qv9oxVSqQDJksewILQV8LGKKE9Q7zfh9vWoFncrAdnEJQemReO4Is)/cloud/3/x7vyv0z/s/live-3.m3u8#cell=lnyc

Without VPN (France)

image

referencing issue:

12

BellezaEmporium commented 9 months ago

La grosse contrainte ici sera d'avoir un pool de proxys stables pour faire les opérations.

Si vous avez un accès à NordVPN, vous pourrez certainement utiliser leurs proxys avec le mdp correspondant.

azgaresncf commented 9 months ago

La grosse contrainte ici sera d'avoir un pool de proxys stables pour faire les opérations.

Si vous avez un accès à NordVPN, vous pourrez certainement utiliser leurs proxys avec le mdp correspondant.

Malheureusement, je n'ai pas NordVPN sous la main :(

azgaresncf commented 9 months ago

Après il faudrait simplement que je trouve des proxys efficaces, auquel cas je pourrais les mettre en tant que "GitHub secrets".

Mais bon, j'avoue de ne pas trop y consacrer mon temps pour autant (dessus)