this post was submitted on 20 Jun 2024
1 points (100.0% liked)

It's A Digital Disease!

23 readers
1 users here now

This is a sub that aims at bringing data hoarders together to share their passion with like minded people.

founded 2 years ago
MODERATORS
 
The original post: /r/datahoarder by /u/nickdrones on 2024-06-20 00:51:45.

I have been provided with a link to an hls stream (an m3u8 link). The streams that it point to are not online consistently, but I want to set something up to detect if the stream is online and if it is, automatically record the stream.

Recording the stream is obviously easy using ffmpeg, but detecting if it is online is the hard part. If I open the m3u8 link in vlc when the streams are offline, it still plays the last ~50 seconds (which I assume is the last chunk?) before the stream ends and VLC stops playback.

What would be the best way to identify when the stream is actually online and begin recording?

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here