Questions tagged [streamlink]

29 questions
0
votes
0 answers

Why is @pytest.fixture passed as an argument to tests but not used

Below is a test file for the Streamlink library. I was reading the test files to understand how testing is done and found a confusing set up for the tests. The test set up a series of @pytest.fixtures to help with testing. The assert_live fixture…
theChoosyBeggar
  • 312
  • 1
  • 8
0
votes
0 answers

Reading the countinous output of a streamlink CLI with subprocess.Popen

I'm working on a program that manages and downloads multiple twitch.tv streams using the streamlink CLI. For the sake of simplicity, let's just focus in one right now. I want to use the subprocess.Popen() to give a command to start recording a…
NeoFahrenheit
  • 347
  • 5
  • 16
0
votes
0 answers

PHP passthru with proper child process closing

I am currently using the code below to try and restream a hls live stream via php the reason for this is php is all i have access to on the system i am using i can not use or install anything else and i like to watch my home tv in my current…
0
votes
1 answer

write using import streamlink module OR by runnong subprocess or os.system command?

I see some streamlink api available, but see hardly any info like examples on how to use it. What I am essentially trying to do is capture a live video from a specific youtube channel. I ONLY CARE ABOUT THE AUDIO, AND NOT THE VIDEO. So, a part of my…
samas
  • 1
  • 1
0
votes
1 answer

In Python script, how to make streamlink to write to a log file.>

Hi I have a python script that looks for a video stream, if the stream is found it will do something. When streamlink does NOT find a stream it displays a message (this is standard functionality) "Could not get video info - ERROR: Video…
help4bis
  • 15
  • 6
0
votes
1 answer

Crontab @reboot and streamlink PATH issues

I am attempting to run a python3 script on boot with my raspberry. The python script contains a subprocess call that is giving me problems. I suspect that the problem has to do with the PATH of the streamlink call, but I am not managing to solve…
LuukS
  • 171
  • 2
  • 12
0
votes
1 answer

Use OpenCV-Python on a Streamlink live stream?

I need to run OpenCV-Python image recognition on live streams pulled from Twitch, using Streamlink, without writing the stream to disk. I have all my image recognition tested and ready to go (I tested using a win32api screen capture), and I've also…
0
votes
1 answer

Trying to run streamlink with arguments through PySimpleGUI, getting permission denied

As the title states, I'm trying to create a basic streamlink GUI with PySimpleGUI. I've got [gui.Text('Stream link:'), gui.InputText()], and a bunch of other code (as of yet unimplemented options) which takes a stream link as an input, and…
0
votes
0 answers

How to use ffmpeg-python library to download a Twitch VOD with a link retrieved using the streamlink library

This is the whole code, for easy reference: import urllib.request import streamlink import ffmpeg stream_url = streamlink.streams("https://www.twitch.tv/videos/783301562")['best'].url print(stream_url) try: …
Daniel Norfolk
  • 13
  • 1
  • 10
0
votes
1 answer

Streamlink with Youtube plugin: How to get scheduledStartTime value?

I am using Streamlink to help some of my technically challenged older friends watch streams from selected sites that webcast LIVE two or thee times a week and are ingested into Youtube. In between webcasts, it would nice to show the User when the…
0
votes
1 answer

Display output of command in terminal while using command substitution

So I'm trying to check for the output of a command, but I also want to be able display the output directly in the terminal. #!/bin/bash while : do OUT=$(streamlink -o "$NAME" "$STREAM" best) echo "$OUT" if [[ $OUT == *"No playable streams"* ]];…
doko
  • 15
  • 4
0
votes
1 answer

Streamlink how to seek to X minutes while downloading

I am using Streamlink to download videos from streams and process. I wonder is streamlink has API to seek to X minutes before starting downloading when using with option "-o" example: (just assuming --seek option, this is not a valid…
Baskar.M
  • 561
  • 1
  • 6
  • 25
0
votes
1 answer

docker streamlink opens a stream but immediately closes it

I was trying to test a stream in a docker instance. It was pretty common in work flow docker pull ubuntu docker run -it ubuntu /bin/sh apt-get install -y python python3.6 vlc curl curl https://bootstrap.pypa.io/get-pip.py > git-pip.py python…
Fallenreaper
  • 10,222
  • 12
  • 66
  • 129
-1
votes
1 answer

Python make list of items according to a dictionary of key value pairs, but values have to be regex patterns

I am trying to make a wrapper function for the existing itertags one here: https://github.com/streamlink/streamlink/blob/master/src/streamlink/plugin/api/utils.py#L16 Currently i have this: def itertags_wrapper(html, tag, attrs=None, ret=False): …
Twilight0
  • 41
  • 7
1
2