Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ffmpeg Unknown input format: 'lavfi'

Tags:

unix

ssh

ffmpeg

I tried to create such a test image video using ffmpeg device "lavfi", but my LTS Ubuntu told me:

"Unknown input format: 'lavfi'"

I got that my ffmpeg seems to miss that device. But how to fix this?

i used this:

ffmpeg -f lavfi -i testsrc=duration=120:size=1280x720:rate=30 test.mp4
like image 646
teazer Avatar asked May 08 '14 09:05

teazer


1 Answers

You can do a ffmpeg -formats | grep lavfi to see if it supports the format.

Your ffmpeg may be really outdated, try with a newer version. There's a PPA for Trusty but it's recommended to compile it yourself from the git development branch snapshot. Static builds are also available.

like image 149
aergistal Avatar answered Oct 03 '22 06:10

aergistal