VideoEncoder
One configured and opened video encoder. Pull from a Flow<Frame> via drive. That call pushes each frame into the encoder, pulls packets, hands them to the sink's muxer, and flushes when the flow completes.
Incoming frame pts are rescaled from the frame's own time-base onto the encoder's. Frames without pts fall back to a frame counter. Output timestamps stay monotonic either way.
One configured and opened video encoder. Pull from a Flow<Frame> via drive. That call pushes each frame into the encoder, pulls packets, hands them to the sink's muxer, and flushes when the flow completes.
Incoming frame pts are rescaled from the frame's own time-base onto the encoder's. Frames without pts fall back to a frame counter. Output timestamps stay monotonic either way.
One configured and opened video encoder. Pull from a Flow<Frame> via drive. That call pushes each frame into the encoder, pulls packets, hands them to the sink's muxer, and flushes when the flow completes.
Incoming frame pts are rescaled from the frame's own time-base onto the encoder's. Frames without pts fall back to a frame counter. Output timestamps stay monotonic either way.
One configured and opened video encoder. Pull from a Flow<Frame> via drive. That call pushes each frame into the encoder, pulls packets, hands them to the sink's muxer, and flushes when the flow completes.
Incoming frame pts are rescaled from the frame's own time-base onto the encoder's. Frames without pts fall back to a frame counter. Output timestamps stay monotonic either way.
Functions
Drain input into this encoder + the parent muxer. Returns when the flow completes. Reports progress every progressEveryNFrames via onProgress (the encoded-frame count).
Drain input into this encoder + the parent muxer. Returns when the flow completes. Reports progress every progressEveryNFrames via onProgress (the encoded-frame count).
Drain input into this encoder + the parent muxer. Returns when the flow completes. Reports progress every progressEveryNFrames via onProgress (the encoded-frame count).