Questions tagged [streamlink]
29 questions
4
votes
2 answers
Enable cache on ffmpeg to record streaming
now I'm using steamlink and ffmpeg to record streams and save them to a file, many times the video file saved have so much lag. I found this link https://www.reddit.com/r/Twitch/comments/62601b/laggy_stream_on_streamlinklivestreamer_but_not_on/
…

JayJona
- 469
- 1
- 16
- 41
2
votes
1 answer
fallback input when blackscreen ffmpeg
I would like to have a "fallback" video when using the ffmpeg command. The goal is that I broadcast a video and once this one displays an almost black screen, there should be a switch to the fallback, and re-switch when the black screen is over. I…

renadr
- 345
- 1
- 2
- 13
2
votes
1 answer
FFMPEG: How to manually select video quality from mpd manifest?
I want to ask what command should I use to select video quality from mpd manifest?
mpd manifest link
https://anevia115(dot)mncnow(dot)id/vod/eds/kiko-season1-eps1-mobil-kabur-anv6/_/sa_dash_vmx/kiko-season1-eps1-mobil-kabur-anv6.mpd
Here, the mpd…

Deoxys
- 23
- 1
- 1
- 3
1
vote
1 answer
Use the twitch auth-token to authenticate in streamlink
In the last weeks, Twitch began sending ads that streamlink couldn't block anymore. One of the solutions proposed by streamlink is to get the auth-token after a sucessuful login through your browser to authenticate. By doing this, if you have Twitch…

NeoFahrenheit
- 347
- 5
- 16
1
vote
1 answer
Handle stream as individual frames using streamlink
I`m trying to handle stream as individual frames using streamlink
args = ['streamlink', stream_url, "best", "-O"]
process = subprocess.Popen(args, stdout=subprocess.PIPE)
while True:
frame_size = width * height * 3
in_frame =…

Camamber
- 13
- 5
1
vote
0 answers
How to correctly read bitstreams in Python
Tell me how to write bitstreams correctly
Here is my code, it works, but it seems to me that I am not writing data to the file correctly.
fd = stream.open()
filename = 'file.ts'
while True:
data = fd.read(8192)
file_output = open(filename,…

OWGrant24
- 11
- 2
1
vote
0 answers
Is it possible to skip ads from twitch with Python using streamlink & ffmpeg
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 "…

Mike
- 70
- 6
1
vote
1 answer
PowerShell: use command output + string as filename
I have a windows program which can download streams, I specify the output. Would like to use as output filename the epoch time + extension (for example mp4). I've tried this example but doesn't work:
PS C:\>streamlink --hls-live-restart -o (Get-Date…

Smeterlink
- 716
- 6
- 20
1
vote
0 answers
HTTP error 403 Forbidden error with streamlink and ffmpeg python
I am currently trying to save the video of a live stream on the disk using the link to the m3u8 file, passing it to streamlink and then converting everything to ffmpeg, but when the streamer disconnects or the connection drops I get this error
HTTP…

JayJona
- 469
- 1
- 16
- 41
1
vote
0 answers
Get more than one stream of a YouTube channel
So, I'm trying to get multiple live streams of a channel on YouTube and as it seems, streamlink is not capable to do so.
I tried to get all streams with streams = streamlink.streams(URL), but it just returns the first live stream. Even, when there…

Mirco
- 23
- 1
- 7
1
vote
0 answers
How to split streaming video into pieces FFMPEG
I have a bat script (Windows) for the library Livestreamer to record the broadcast in the video
:loop
set day=%DATE:~0,2%
set month=%DATE:~3,2%
set year=%DATE:~6,4%
set hour=%TIME:~0,2%
set minute=%TIME:~3,2%
set second=%TIME:~6,2%
set…

danilshik
- 289
- 1
- 3
- 13
0
votes
0 answers
How can I get the printed message from streamlink.streams() when it still returns 200?
As you can see in the image above: I'm getting these Error messages from the youtube plugin. I want to be able to get from the streamlink.streams() method this error message so I can send it to my frontend.
I tried using a Try Except, but as you…

Jasqui
- 391
- 2
- 5
0
votes
0 answers
Streamlink Twitch Python low latency
I'm currently building a Twitch desktop client and I'm trying to get as close as possible to match twitch's website latency. I'm currently about 5-7 seconds behind twitch. I have the following settings enabled in streamlink.
session =…

3V1LXD
- 55
- 1
- 10
0
votes
0 answers
Streamlink and Burp
I was trying to access a Youtube stream via Streamlink tool in Python.
However, I have a proxy (Burp). For unknow reason, only streamlink traffic is not passing through!
For instance, the following python code works fine:
proxies = {"http":…

MKSOI
- 49
- 5
0
votes
0 answers
Streamlink progress bar
I want to download stream when its on and using streamlink in bash script. But when stream starts the progress bar is begin print in stdout. I would like to know how to turn it print off?
--logfile "FILE"
helping with other type of logs but not…

Artem Filippov
- 3
- 2