zmwangx / metadata

Media file metadata for human consumption
MIT License
47 stars 5 forks source link

Doesn't compile on Arch Linux #8

Closed mabushey closed 1 year ago

mabushey commented 1 year ago
make                                                                                                                                                                                   
cargo fmt && cargo build                                                                                                                                                                                                                   
   Compiling ffmpeg-next v5.0.3                                                                                                                                                                                                            
error[E0425]: cannot find value `AV_CH_FRONT_LEFT` in this scope                                                                                                                                                                           
 --> /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/ffmpeg-next-5.0.3/src/util/channel_layout.rs:6:39                                                                                                                       
  |                                                                                                                                                                                                                                        
6 |         const FRONT_LEFT            = AV_CH_FRONT_LEFT;                                                                                                                                                                                
  |                                       ^^^^^^^^^^^^^^^^ not found in this scope                                                                                                                                                         

error[E0425]: cannot find value `AV_CH_FRONT_RIGHT` in this scope                                                                                                                                                                          
 --> /home/michael/.cargo/registry/src/github.com-1ecc6299db9ec823/ffmpeg-next-5.0.3/src/util/channel_layout.rs:7:39                                                                                                                       
  |                                                                                                                                                                                                                                        
7 |         const FRONT_RIGHT           = AV_CH_FRONT_RIGHT;                                                                                                                                                                               
  |                                       ^^^^^^^^^^^^^^^^^ not found in this scope

It goes on and on with errors like this.

xangelix commented 1 year ago

This package does not currently support ffmpeg 6.0, please try using the latest 5.x release of ffmpeg. You can install an older version in Arch using the interactive program downgrade, or a noninteractive solution with pacman -U https://archive.archlinux.org/repos/2023/03/09/extra/os/x86_64/ffmpeg-2%3A5.1.2-2-x86_64.pkg.tar.zst.

mabushey commented 1 year ago

Thank you for the response and detailed downgrade instructions; I'm not going to downgrade ffmpeg however. I'll check this out again in the future when V 6.0 is supported. :)