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.82k stars 941 forks source link

Compile error #34

Closed ricksu closed 5 years ago

ricksu commented 5 years ago

It's a great tutorial !

But when I run command ' make run_hello', I got error message as below,

docker run -w /files --rm -it  -v `pwd`:/files leandromoreira/ffmpeg-devel \
  gcc -L/opt/ffmpeg/lib -I/opt/ffmpeg/include/ /files/0_hello_world.c \
  -lavcodec -lavformat -lavfilter -lavdevice -lswresample -lswscale -lavutil \
  -o /files/build/hello
docker run -w /files --rm -it -v `pwd`:/files leandromoreira/ffmpeg-devel /files/build/hello /files/small_bunny_1080p_60fps.mp4
LOG: initializing all the containers, codecs and protocols.
LOG: opening the input file (/files/small_bunny_1080p_60fps.mp4) and loading format (container) header
LOG: ERROR could not open the file
Makefile:11: recipe for target 'run_hello' failed
make: *** [run_hello] Error 255

where I goes wrong?

leandromoreira commented 5 years ago

it seems taht your file small_bunny_1080p_60fps.mp4 is either absent or sudo protected?!

ricksu commented 5 years ago

Hi Leandromoreira,

where is small_bunny_1080p_60fps.mp4 located, I could't find this file .

leandromoreira commented 5 years ago

You're right, I need to point that out or put it on make file!

wget -O bunny_1080p_60fps.mp4 http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_1080p_60fps_normal.mp4
ffmpeg -y -i bunny_1080p_60fps.mp4 -ss 00:01:24 -t 00:00:10 small_bunny_1080p_60fps.mp4
ricksu commented 5 years ago

OK, thanks for your quick reply!