/// while let Some(frame) = queue.get_frame() {
/// // convert to the format encoder expects if required
/// encoder.encode(frame)?;
/// while let Some(frame) = queue.get_frame() {
/// // convert to the format encoder expects if required
/// encoder.encode(frame)?;