0

I have a 952x600 jpeg image, generated by a PHP script. I want to create another PHP script that uses ffmpeg, which converts that jpeg image to a mp4 video, which has only 1 frame that lasts for 10 seconds. Which options should I provide to ffmeg, if the input jpeg is called input.jpeg and the video output.mp4?

0

found here: https://talotics.com/post/videos/ffmpeg-add-call-to-action-image-after/

Create a 5 second video from a png as follows:

ffmpeg -loop 1 -i image.png -pix_fmt yuv420p -t 5 promo-image.mp4

This will create a video called {promo-image.mp4} from {image.png} with a duration of {5 seconds}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.