leandromoreira / leandromoreira/ffmpeg-libav-tutorial

cannot make

Open
#15 12 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
11k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

I use centos7. I use yum installed the following pakages:

sudo yum install ffmpeg.x86_64 ffmpeg-debuginfo.x86_64 ffmpeg-devel.x86_64 ffmpeg-libs.x86_64

and I can run ffmpeg.
But when I make your 0_helllo_word.c, show me the following error:

gcc -g -Wall -o build/hello_world -lavformat -lavcodec -lswscale -lz 0_hello_world.c
&& ./build/hello_world small_bunny_1080p_60fps.mp4
0_hello_world.c:14:32: fatal error: libavcodec/avcodec.h: No such file or directory

So what environment do I need prepare before I run your make?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with 0_hello_world.c and reproduce the reported gcc command on CentOS 7, checking the missing libavcodec/avcodec.h error against the listed FFmpeg packages. Done means the example compiles into build/hello_world and runs with small_bunny_1080p_60fps.mp4.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, centos
Domain
build-system
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.