How can I convert a single PNG into a five-second MP4? High quality is important. I would appreciate an FFmpeg solution but will use alternatives.
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays!
+ Reply to Thread
Results 1 to 5 of 5
Thread
-
-
Never mind. I already knew the answer. I used IrfanView's Slideshow > output to video.
-
Code:
ffmpeg -loop 1 -i image.png -t 5 -c libx264 -crf 18 -vf fps=24000/1001,scale=1280:720 output.mp4
-t is the duration in seconds
-c is the video codec, in the example x264(avc)
- crf is the quality (0-28, lower is better)
fps is the framerate, in the example 23.976 (24000/1001)
scale is the resolution, in the example 1280x720
Adjust the parameters as required. -
But it is better to add tune for stillimage https://video.stackexchange.com/questions/34800/encode-still-image-video-effectively-in-ffmpeg and add -keyint infinite https://forum.videohelp.com/threads/381403-x264-and-still-images#post2467673
Similar Threads
-
Convert .ogm to .mp4 using ffmpeg
By Patrick1389 in forum Video ConversionReplies: 8Last Post: 18th Aug 2023, 22:41 -
ffmpeg convert wmv to mp4 Failed
By kucing in forum Newbie / General discussionsReplies: 11Last Post: 16th Apr 2022, 12:28 -
ffmpeg better code convert to mp4
By kucing in forum Newbie / General discussionsReplies: 8Last Post: 25th Feb 2022, 12:33 -
Best and easiest program (Free preferably) to convert movie DVDs to mkv...
By retroborg in forum DVD RippingReplies: 4Last Post: 9th Dec 2020, 19:32 -
How To Convert A Single Video Image to PNG/BMP
By cornemuse in forum Video ConversionReplies: 9Last Post: 29th Nov 2019, 11:47