[FFmpeg-user] Multiple outputs advice. Live stream/Record/Preview
Andrew Strachan
stroltz at hotmail.com
Tue Sep 17 09:02:22 EEST 2024
Hi,
I am looking for advice on how best to achieve multiple outputs for our use case.
The live source is a Decklink card on Windows. (We have a build working etc) We want 4 outputs;
* We want to run a preview window (low quality would be preferred) just so the user can see the video is working.
* We want to be able to live stream - single bit rate, RTMP.
* Independent from the streaming we want to be able to stop and start recording to file. Ideally using CRF. So a separate encode – but maybe we use the RTMP encode, not sure.
*
We also want to save a separate audio file. Stops and strats at the same time as the video file above (if required we could do this as a post process on the video file we make above)
Is it possible to stop and start a single output when using either different parallel outputs or the tee pseudo-muxer?
If we can’t stop and start recording a file separately, would we be better off putting all the CPU into the single RTMP encode, (only 1 encode), and quickly stopping and starting the live stream when we want to stop or start saving to file? (hard to know if viewers of the live stream would have much of a negative or not)
Or is there another way?
We want to keep CPU use down to as reasonable as possible.
https://trac.ffmpeg.org/wiki/Creating%20multiple%20outputs is the relevant page, but not sure which way to go.
Thanks,
Andrew
More information about the ffmpeg-user
mailing list