oddity-ai / video-rs

Video readers, writers, muxers, encoders and decoders for Rust based on ffmpeg libraries.
Apache License 2.0
248 stars 31 forks source link

`encoder.encode` doesn't exist #9

Closed TechStudent10 closed 1 year ago

TechStudent10 commented 1 year ago

When copying the rainbow example in the README and attempting to run it, I get this error.

error[E0599]: no method named `encode` found for struct `Encoder` in the current scope
  --> src\main.rs:33:13
   |
33 |     encoder.encode(&frame, &position)
   |             ^^^^^^ help: there is a method with a similar name: `encode_raw`    

For more information about this error, try `rustc --explain E0599`.
error: could not compile `videoTest` due to previous error

encode_raw() doesn't take in two arguments so that isn't right.

TechStudent10 commented 1 year ago

image

Found this in the source code. The method exists now.