Can a encoder mux packages demuxed from a decoder? #1111
Unanswered
HaujetZhao
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
-
I want to create an output video stream that first remuxes packets from an input video and then encodes frames from another source. The code might look like this:
Unfortunately, this simple code doesn't work as expected. The output stream doesn't successfully mux the packets from the input stream in the first step.
I know I can use out_stream = output.add_stream(template=in_stream) to successfully remux the packets, but in that case, the output stream will only get a decoder codec, which can't be used to encode the frames in the second step.
So my question is, is it possible to create an encoder that can mux packets demuxed from a decoder, and if so, what modifications should be made to the code?
Beta Was this translation helpful? Give feedback.
All reactions