Create a Video from an Image
- Video will be an image
- Audio will be taken from the input video/audio file (-i 142.mp4)
- Output file will be generated with Image as a video and audio from the input file
#USE CPU
ffmpeg -loop 1 -framerate 1 -i image.jpg -i 142.mp4 -map 0 -map 1:a -c:v libx264 -preset ultrafast -tune stillimage -vf fps=10,format=yuv420p -c:a copy -shortest 142_output.mp4
# USE GPU
ffmpeg -loop 1 -framerate 1 -i image.jpg -i 156.mp4 -map 0 -map 1:a -c:v h264_nvenc -preset fast -tune hq -vf fps=10,scale=1920:1080,format=yuv420p -c:a copy -shortest 156_output.mp4
Batch Script to Take a list of .mp4 files as input and create
a new video file with 'video as a still image' and audio from the given audio file
Comments
Post a Comment