I want to create a video from some images to use in the DashWare program. One of the requirements is that the video must have an audio track.
If I create a sequence of JPGs and join them with an audio, the result is the desired one.
ffmpeg -y -framerate 29.97 -i Pictures_%5d.jpg -i audio.mp3 -vf scale="2560:1440" output.mp4
I would like to do better and I would like that when the video is created directly a blank audio track is created. I have managed to do it with this sequence but I have the problem that an endless video is generated. If you put a -t clause then the video lasts what you indicate, but I don't want to do it like that since it is to make different videos and they will have a different duration.
ffmpeg -y -f lavfi -i anullsrc -framerate 29.97 -i Pictures_%5d.jpg -vf scale="2560:1440" Output.mp4
The solution is to add the -shortest clause