Closed Xheghun closed 4 years ago
just in case someone else encounters this issue this command worked perfectly
"-y", "-f", "concat", "-r", "1/5", "-safe", "0", "-i", txtFile.absolutePath, "-preset", "ultrafast", "-vsync", "vfr", "-vf", "scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720:(ow-iw)/2:(oh-ih)/2,fps=30,format=yuv420p", destinationFile.absolutePath
i have tried several ffmpeg command for converting images to video but the result is always the same , it only shows the last image and the duration is less than a second.
sample commands "-y", "-r", "1/5","-f", "concat", "-safe", "0", "-i", txtFile.absolutePath , "-c:v", "libx264", "-vf", "fps=25,format=yuv420p", destinationFile.absolutePath
"-y","-f", "concat","-safe", "0","-i", txtFile.absolutePath, "-preset", "ultrafast", "-vsync", "vfr", "-vf", "scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720:(ow-iw)/2:(oh-ih)/2,fps=30,format=yuv420p", destinationFile.absolutePath
alongside many others