Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

whisper.cpp build fails when FFmpeg support is enabled on Ubuntu 24.04 #2263

Open
brlin-tw opened this issue Jun 27, 2024 · 1 comment
Open

Comments

@brlin-tw
Copy link

brlin-tw commented Jun 27, 2024

Build output:

[ 57%] Building CXX object examples/CMakeFiles/common.dir/ffmpeg-transcode.cpp.o                                                                                       

    ...stripped...
                                                                         
examples/ffmpeg-transcode.cpp: In function ‘int decode_audio(audio_buffer*, s16**, int*)’:                             
examples/ffmpeg-transcode.cpp:207:5: error: ‘av_register_all’ was not declared in this scope                           
  207 |     av_register_all(); // from avformat. Still a must-have call for ffmpeg v3! (can be skipped for later versions)                                             
      |     ^~~~~~~~~~~~~~~ 

Refer Caffe2 uses FFMPEG functions that are deprecated in FFMPEG 4.0 and gone in 5.0 · Issue #72254 · pytorch/pytorch it seems that the av_register_all function call is obsoleted since FFmpeg 5.0.

@brlin-tw
Copy link
Author

Reproduced both on version 1.6.2 and the current development snapshot(revision bf4cb4a).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant