I've found a good command to convert an image to a video in FFMPEG, but each image is going to be concatenated into a longer set of videos and images, and I need concat to concatenate the audio tracks too. (Right now it's disregarding all audio tracks, probably because the images converted to videos don't have audio tracks.)
Here's the command I'm running:
ffmpeg -y -loop 1 -f image2 -i /image.jpg -vf 'scale=640:-1' -r 30 -t 10 -pix_fmt yuvj420p out.mp4
How can I add just a simple, silent audio track in this command, or for any videos that don't have an audio track?
Thanks in advance!
ffmpeg -i image.jpg -i middle -i end
, etc.ffmpeg -i image1.jpg -i image2.jpg -i video1noaudio.mp4 -i video2withaudio.mp4 -i image3.jpg
and somewhere in there would beconcat
, and directions for images to use-loop 1 -f image2 -vf "scale=640:-1"
. It would also need to preserve audio from the videos with audio.