leandromoreira / ffmpeg-libav-tutorial

FFmpeg libav tutorial - learn how media works from basic to transmuxing, transcoding and more. Translations: πŸ‡ΊπŸ‡Έ πŸ‡¨πŸ‡³ πŸ‡°πŸ‡· πŸ‡ͺπŸ‡Έ πŸ‡»πŸ‡³ πŸ‡§πŸ‡·
https://github.com/leandromoreira/ffmpeg-libav-tutorial
BSD 3-Clause "New" or "Revised" License
9.78k stars 937 forks source link

fatal error: libavcodec/avcodec.h: No such file or directory #114

Open sunilstg opened 2 years ago

sunilstg commented 2 years ago

Hi Can anyone please help me starting my installation of FFMEG in VS Code and run first file? I have tried all possible ways but not able to solve the issue even after adding ffmpeg directly in root.

tutorial01.c:26:10: fatal error: libavcodec/avcodec.h: No such file or directory

include <libavcodec/avcodec.h>

      ^~~~~~~~~~~~~~~~~~~~~~

compilation terminated.

Please help how to start using ffmpeg in C in VS Code or any other editior is good for ffmepge please suggest.

vtorri commented 1 year ago

use pkg-config