meh/rust-ffmpeg

Example fails -- no method named `set_parameters`

m-wynn opened this issue · 1 comments

examples/transcode-audio.rs fails:

error[E0599]: no method named `set_parameters` found for type `ffmpeg::decoder::Audio` in the current scope
  --> src/transcode-audio.rs:65:18
   |
65 |     try!(decoder.set_parameters(input.parameters()));
   |                  ^^^^^^^^^^^^^^

error[E0599]: no method named `parameters` found for type `ffmpeg::Stream<'_>` in the current scope
  --> src/transcode-audio.rs:65:39
   |
65 |     try!(decoder.set_parameters(input.parameters()));
   |                                       ^^^^^^^^^^

error[E0599]: no method named `set_parameters` found for type `ffmpeg::StreamMut<'_>` in the current scope
  --> src/transcode-audio.rs:89:12
   |
89 |     output.set_parameters(&encoder);
   |            ^^^^^^^^^^^^^^

error: aborting due to previous error(s)

I think I'm just using a really old version from crates.io