How do I use Output Options for av containers and save chunks of stream #1302
Unanswered
JDRanpariya
asked this question in
1. Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Overview
I'm getting two RemoteStreamTracks of type audio and video from aiortc, I want to save chunks of 10 seconds from the stream without breaking the stream.
Expected behavior
I would like to pass output options where I have input as audio and video stream, I guess donig .mux of both types of frames will do it. I pass option like -g 150 in ffmpeg and it saves chunks by itself.
Actual behavior
I am saving the container with .close() as I have to start a new container and have difficult time implementing timestamps and audio/video chunk to save properly.
I would love any help with the scenario and on how can I code it.
I know I'm awaiting save chunks function twice but container needs to be closed only once. It's not working otherwise and saves only video after first chunk. So I'm awaiting in audio as well.
I have done the following:
Beta Was this translation helpful? Give feedback.
All reactions