Copy input stream using FfmpegFrameGrabber/-Recorder #2383
brinkmeister
started this conversation in
General
Replies: 2 comments 1 reply
-
|
We can easily accomplish this with the ffmpeg program: |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
That looks really promising, I didn't even know you could access the ffmpeg program directly! I think I can make that work, I just need to hold the process in a separate thread and send a "q" to the process so that ffmpeg closes the stream when I need it to. Thanks a lot, I'll post another comment if I figure it out! |
Beta Was this translation helpful? Give feedback.
0 replies
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
I'm trying to save a RTSP (live) stream to HLS but I cannot figure out how to do it without recoding the stream. There's two issues with that: firstly, the saved stream cannot be of lower quality than the source stream and secondly I want to minimize the cpu load on the server since I might have 1-10 of these "RTSP-to-HLS" threads running simultaneously.
I think I can accomplish the copy-thingy with recorder.recordPacket and create the index.m3u8 file myself using byte-ranges for the segment instead of actually splitting the file, but then I need to know when I've recorded a complete frame, that it is a key frame and I need to know how many bytes I've recorded by then. This is so that each segment can start with a key frame.
Does anyone here have any input on how I could accomplish this?
Beta Was this translation helpful? Give feedback.
All reactions