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

Unknown decoder 'libx264' #110

Closed eggface-xyz closed 2 years ago

eggface-xyz commented 2 years ago
$ ffmpeg \
-y \ # global options
-c:a libfdk_aac -c:v libx264 \ # input options
-i bunny_1080p_60fps.mp4 \ # input url
-c:v libvpx-vp9 -c:a libvorbis \ # output options
bunny_1080p_60fps_vp9.webm # output url

complains 'Unknown decoder libx264'. I think whatever goes into input options should be decoders, right? there's no such thing as libx264 as decoder anyway. I am such a noob at ffmpeg.

leandromoreira commented 2 years ago

Hi @eggface-xyz you're right! I think your local ffmpeginstallation doesn't have the proper decoder. Use the one available for you ffmpeg -decoders | grep 264 some devices offer hardware decoding.

eggface-xyz commented 2 years ago

What I want to stress here is that libx264 is not decoder, it can only encode.