question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I need help on saving livestreams automatically

See original GitHub issue

Issue

  • This is not a bug report, feature request, or plugin issue/request.
  • I have read the contribution guidelines.

Description

First of all sorry for my English level 😃

So, I’m currently using the following command to keep a broadcaster on “watch mode” and start downloading the livestream when they go live: streamlink https://www.website.tv/username best --retry-max 99999999 -o filename.ts, --output filename.ts

The problem is that I can only capture a single live per broadcaster at time. If the person starts a livestream, ends it and then starts a new livestream minutes later, Streamlink will only capture the first one.

I would like to know if is there command which after the livestream ends Streamlink will automatically start searching again for a new live from the same person. Every new livestream has a different .m3u8 url so I can’t use a command to keep trying to reconnect to the old livestream source 😦 I have to get the new one.

There’s a list of codes but I couldn’t find a way to make any of them work: https://streamlink.github.io/cli.html

Thanks in advance.

Love Streamlink? Please consider supporting our collective. Thanks!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
yeahjackcommented, Jan 31, 2020

I think the easiest way is to use python and write a main.py which contains: while True: streamlink https://www.website.tv/username best --retry-max 99999999 -o filename.ts, --output filename.ts time.sleep(1)

0reactions
yeahjackcommented, Feb 1, 2020

Oh sorry I made a mistake. But since you donnot need the m3u8, just use a loop so that the streamlink process can be run all the time. I wonder whether it is ok, and I use ffmpeg to record m3u8 the same way to get videos when losing Internet connections.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Archive live streams - YouTube Help - Google Support
If your live stream is less than 12 hours, YouTube can automatically archive it for you. This option applies to all types of...
Read more >
How to download and save a YouTube live video - Restream
Hover over the live stream you want to download and click the three dots. From the options that appear, click Download. Note: You...
Read more >
If I do a Facebook live show, does it automatically get saved to ...
Your Facebook Live show is automatically saved to your Page. You can choose to save it later by navigating to the Facebook Live...
Read more >
Save a live video on Instagram to your device's camera roll
Note: It may take a minute for a live broadcast to save to your phone, especially for longer videos. Was this helpful?
Read more >
Can I save my Facebook live video to my computer after it's ...
This feature isn't available on mobile browsers, but it is available on these devices. Select a device to learn more about this feature....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found