Is there a way to control the output buffer size? I notice that when muxing packets into the output video stream, that the file only comes out after a certain number of frames/packets are written.
Also I find it strange that when reading an input container, 1 packet may contain multiple frames. But when writing out a frame, you always only get 1 packet to mux. Is there no way to encode multiple frames into the same packet and what is the reason for such asymmetry?
Is there a way to control the output buffer size? I notice that when muxing packets into the output video stream, that the file only comes out after a certain number of frames/packets are written.
Also I find it strange that when reading an input container, 1 packet may contain multiple frames. But when writing out a frame, you always only get 1 packet to mux. Is there no way to encode multiple frames into the same packet and what is the reason for such asymmetry?