1

I have the following code that pulls 60 seconds from the ESLCSGO twitch stream and downloads it to "output.mp4":

import streamlink, subprocess

streams = streamlink.streams("twitch.tv/ESL_CSGO")

audio = streams["best"]

subprocess.call("ffmpeg -i " + str(audio.url) + " -t 60 -c copy -bsf:a aac_adtstoasc output.mp4 -y")

I've noticed that if I manually clip on the .m3u8 generated by streamlink.streams() I don't get any ads, but once ffmpeg converts it to an .mp4 there's ads. Is there any way to circumvent this?

Mike
  • 70
  • 6

0 Answers0