zmwangx / rust-ffmpeg-sys

FFmpeg bindings for Rust.
125 stars 86 forks source link

Code won't compile on Raspberry Pi 4 system ffmpeg #45

Open bwsw opened 2 years ago

bwsw commented 2 years ago

The error is connected with:

error[E0425]: cannot find value `AV_PIX_FMT_RPI` in this scope
    --> /root/.cargo/registry/src/github.com-1285ae84e5963aae/ffmpeg-next-5.1.1/src/util/format/pixel.rs:1114:27
     |
1114 |             Pixel::RPI => AV_PIX_FMT_RPI,
     |                           ^^^^^^^^^^^^^^ help: a unit variant with a similar name exists: `AV_PIX_FMT_0RGB`

The only place in internet where AV_PIX_FMT_RPI is mentioned is here: https://github.com/shantigilbert/Embylogic/blob/master/packages/multimedia/ffmpeg/patches/rpi4-hevc/ffmpeg-001-pfcd_hevc_optimisations.patch

May be it is not a vanilla ffmpeg?