Reputation: 609
I am just trying to add a silent audio track to a video file using ffmpeg:
ffmpeg.exe -i video.mkv -i anullsrc -c:v copy -c:a aac -shortest test.mkv
I have ffmpeg precompiled release for windows 64bit (20170208)
Whenever I run I get this error:
anullsrc: No such file or directory
Thanks for any help.
Upvotes: 16
Views: 14810
Reputation: 609
I had to specify the lavfi
filter as well and put it before -i anullsrc
:
-f lavfi
For a complete commandline:
ffmpeg -i video.mkv -f lavfi -i anullsrc -c:v copy -c:a aac -shortest test.mkv
Upvotes: 33