pub struct AudioTranscoder { /* private fields */ }
Expand description

Audio transcoder.

Transcoder operation

  1. Push a packet to the transcoder.
  2. Take all packets from the transcoder until you get None.
  3. If there are more packets to be transcoded, continue with 1.
  4. Flush the transcoder.
  5. Take all packets from the transcoder until you get None.

Implementations§

Create a new transcoder for a given input and output.

Create a new transcoder builder for a given input and output.

Get codec parameters of the transcoded stream.

Push a given packet to the transcoder.

Panics

The method panics if the operation is not expected (i.e. another operation needs to be done).

Push a given packet to the transcoder.

Flush the transcoder.

Panics

The method panics if the operation is not expected (i.e. another operation needs to be done).

Flush the transcoder.

Take the next packet from the transcoder.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.