Generating HLS files from an RTSP stream #2370
Unanswered
brinkmeister
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone!
I've created a (JAVA) SpringBoot application that records live RTSP streams to HLS and after some initial struggles it works fine now but I have one feature I'd like to add to it but I cannot figure out how to do (or if it's even possible).
The goal is to create HLS files with one index file and .ts-files that are each around 2 seconds.
I would however like to "know" each time a new .ts file is created (without "watching" the directory in an other thread).
So some way to trigger a callback or something everytime one .ts file is "closed" and another has been started.
Do anyone here know if I can get FrameRecorder to do that for me?
(also, if you have any suggestions on how I could improve the code snippet I've included below I'd be thrilled hear them)
Simplified JAVA code:
Beta Was this translation helpful? Give feedback.
All reactions