4

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
2
  • @Juergen Of course you should show your command and the complete console output to see why exactly you get the message. Right now we can only guess. – llogan Aug 27 '15 at 18:05
  • @LordNeckbeard: As I am not the original author, I can not edit this post. What I tried to do was something like: ffmpeg -f lavfi -i "inputfile.webm,volume=1.5" -f webm outfile.webm -- I guess. And than I got "Unknown input format: 'lavfi'". I guess, aergistal is right, that my version of ffmpeg is to old ... but I tried this trick, because the normal method of increasing the volume is also not supported and I would need an even newer version. I hoped, that there would be a way to install the input demuxer as additional package or some other trick might bring it to life. – Juergen Aug 27 '15 at 18:44
8
+50

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.

6
  • Thanks for that info. I am a little reluctant, since I do not know, if a manual compilation will bring my Debian Wheezy into troubles. I guess, that I have to deinstall ffmpeg and maybe other packages to avoid clashes. I am rather unhappy, that Wheezy comes with a ffmpeg version that is that old! I have no good feelings and rather bad experiences with fiddling around on the multimedia software on this system, so I rather want to avoid manual installs, where I can not foresee the results ... – Juergen Aug 27 '15 at 18:49
  • 2
    @Juergen I believe Wheezy supplied the old, counterfeit "ffmpeg" from a fork which lacks many features, not ffmpeg from FFmpeg. The compile guide does not install to the system, so it will not interfere with anything. I edited the answer to add a link to static builds if you prefer not to compile. – llogan Aug 27 '15 at 19:03
  • @LordNeckbeard: Thank you very much! I will look into it, as soon I have some more time for it. Maybe I will go with a static build or try a build and not install it directly unto the system. I just don't know, which inter-dependencies between ffmpeg and other tools/libs exist. --- BTW: Yes. I long ago suspected that the Wheezy version is a lame duck ... but without installing a totally new system, I have to stick with some inconveniences .... – Juergen Aug 27 '15 at 19:21
  • @LordNeckbeard +1 for the "counterfeit ffmpeg" and thanks for the edits – aergistal Aug 27 '15 at 20:40
  • 2
    @Juergen Thanks, but you can just accept this answer. – llogan Aug 27 '15 at 22:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.