CopyStream

expect class CopyStream

An output stream fed by stream-copy. Opaque handle; packets flow through Remuxer/Transcoder.

actual class CopyStream

An output stream fed by stream-copy. Opaque handle; packets flow through Remuxer/Transcoder.

actual class CopyStream

An output stream fed by stream-copy. Opaque handle; packets flow through Remuxer/Transcoder.

actual class CopyStream

An output stream fed by stream-copy. Opaque handle; packets flow through Remuxer/Transcoder.

Functions

Link copied to clipboard
expect fun write(packet: Packet)

Writes one demuxed packet through to the muxer, rebasing and rescaling its timestamps the way Remuxer does. For a caller driving its own read loop: a tee, a recording taken while something else plays, a split on the caller's own boundaries.

actual fun write(packet: Packet)

Writes one demuxed packet through to the muxer, rebasing and rescaling its timestamps the way Remuxer does. For a caller driving its own read loop: a tee, a recording taken while something else plays, a split on the caller's own boundaries.

actual fun write(packet: Packet)

Write one demuxed packet through to the muxer: rebase timestamps so the output starts at ~0 (matters for trimmed copies, since players choke on a stream starting at 95s), then rescale from the source stream's time-base onto whatever the output muxer chose. av_interleaved_write_frame takes ownership of the payload; the packet comes back blank.

actual fun write(packet: Packet)

Writes one demuxed packet through to the muxer, rebasing and rescaling its timestamps the way Remuxer does. For a caller driving its own read loop: a tee, a recording taken while something else plays, a split on the caller's own boundaries.