kubisch / twitcasting-dl

An explanation on how to download videos from the website 'twitcasting.tv' using FFmpeg
66 stars 5 forks source link

Paid Twitcasting Archive - HTTP error 502 Bad Gateway - Server returned 5XX Server Error reply #11

Closed TheProfosist closed 3 years ago

TheProfosist commented 3 years ago

using stream detector in Firefox gives me commands that error out

using your guide does the same

I tried pairing it with what I had working end of march with no luck as well

HTTP error 502 Bad Gateway - Server returned 5XX Server Error reply is what I get each time. tried with and without VPN

2021-04-30 01_38_24-C__WINDOWS_system32_cmd exe

some examples of what I have tried all of failed.

ffmpeg -user_agent "Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0" -referer "https://twitcasting.tv/" -i "https://dl133.twitcasting.tv/tc.vod/v/679905131.0.1-1619762067-1619790867-f85307d9-caa0df43ee3792d1p/fmp4/index-f1-v1-a1.m3u8" -c copy "SEX MACHINEGUNS SIBUYA CYCLONE BURNING METAL_index-f1-v1-a1.ts"

what Stream Detector found ffmpeg -user_agent "Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0" -referer "https://twitcasting.tv/" -i "https://dl133.twitcasting.tv/tc.vod/v/679905131.0.2-1619762701-1619791501-f85307d9-6dce8cfc2caf5c59p/fmp4/index.m3u8" -c copy "バーニングメタルツーマン!! #679905131 - 渋谷サイクロン (@c_cyclone1997) - TwitCasting.ts" ffmpeg -user_agent "Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0" -referer "https://twitcasting.tv/" -i "https://dl133.twitcasting.tv/tc.vod/v/679905131.0.1-1619762701-1619791501-f85307d9-eed7e4aaac87e241p/fmp4/index-f1-v1-a1.m3u8" -c copy "バーニングメタルツーマン!! #679905131 - 渋谷サイクロン (@c_cyclone1997) - TwitCasting.ts" ffmpeg -user_agent "Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0" -referer "https://twitcasting.tv/" -i "https://dl133.twitcasting.tv/tc.vod/v/679905131.0.1-1619762701-1619791501-f85307d9-eed7e4aaac87e241p/fmp4/master.m3u8" -c copy "バーニングメタルツーマン!! #679905131 - 渋谷サイクロン (@c_cyclone1997) - TwitCasting.ts"

additional attempt ffmpeg -user_agent "Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0" -referer "https://twitcasting.tv/" -i "https://dl133.twitcasting.tv/tc.vod/v/679905131.0.1-1619762701-1619791501-f85307d9-eed7e4aaac87e241p/fmp4/index-f1-v1-a1.m3u8" -c copy "SEX-MACHINEGUNS-SIBUYA-CYCLONE-BURNING-METAL_index-f1-v1-a1.ts"

based on your page ffmpeg.exe -protocol_whitelist file,http,https,tcp,tls,crypto -user_agent "Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0" -headers "Origin: https://twitcasting.tv" -i https://dl132.twitcasting.tv/tc.vod/v/679905131.0.2-1619763742-1619792542-f85307d9-7ed2f408880db77ep/fmp4/index.m3u8 -c copy sexmachineguns.mkv

grabbed using your script https://dl132.twitcasting.tv/tc.vod/v/679905131.0.2-1619763742-1619792542-f85307d9-7ed2f408880db77ep/fmp4/index.m3u8

the ssl. was what was working for me end of march but no change here. https://ssl.twitcasting.tv/

additional test 1 ffmpeg -user_agent "Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0" -referer "https://ssl.twitcasting.tv/" -i "https://dl132.twitcasting.tv/tc.vod/v/679905131.0.2-1619763742-1619792542-f85307d9-7ed2f408880db77ep/fmp4/index.m3u8" -c copy "sexmachineguns.ts" fail

additional test 2 ffmpeg -user_agent "Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0" -referer "https://ssl.twitcasting.tv/" -i "https://dl132.twitcasting.tv/tc.vod/v/679905131.0.2-1619763742-1619792542-f85307d9-7ed2f408880db77ep/fmp4/index.m3u8" -c copy "sexmachineguns.mkv" fail

TheProfosist commented 3 years ago

Never mind I got this working ended up having to use edge. As it was the browser I have no extensions or special settings in. I have no idea why others would at times not even load the stream. I also didnt need a VPN to act like I was in Japan like some other services. I did leave the stream running. This was on a stream over 3hrs long. I had previously seen somewhere that multiple hour streams were chopped up.

Following your guide directly with an un touched browser is what eventually worked.

ffmpeg.exe -protocol_whitelist file,http,https,tcp,tls,crypto -user_agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36 Edg/90.0.818.51" -headers "Origin: https://twitcasting.tv" -i https://dl133.twitcasting.tv/tc.vod/v/679905131.0.2-1620011706-1620040506-f85307d9-74fc8075da5cf1dep/fmp4/index.m3u8 -c copy SEX_MACHINEGUNS-SHIBUYA_CYCLONE-index.mkv

Specifying what quality also worked as well as going to .ts which is what I would have usually used

ffmpeg.exe -protocol_whitelist file,http,https,tcp,tls,crypto -user_agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36 Edg/90.0.818.51" -headers "Origin: https://twitcasting.tv" -i https://dl133.twitcasting.tv/tc.vod/v/679905131.0.2-1620011706-1620040506-f85307d9-74fc8075da5cf1dep/fmp4/index-f1-v1-a1.m3u8 -c copy SEX_MACHINEGUNS-SHIBUYA_CYCLONE-index-f1-v1-a1.ts