![]() ![]() In a terminal define output height and width variables (so, for photos from my phone):įfmpeg -framerate 3 -pattern_type glob -i '*.jpg' -vf "scale=iw*min($width/iw\,$height/ih):ih*min($width/iw\,$height/ih), pad=$width:$height:($width-iw*min($width/iw\,$height/ih))/2:($height-ih*min($width/iw\,$height/ih))/2" video.mp4Ĭlick here to get a breakdown of what this is doing via. The thing that makes this slightly more complex is that the photos are different sizes (some are portrait, some are landscape) and I want them to maintain their aspect ratio in the video, which means padding the portrait photos with some black space for the output. ![]() : Resizing videos with ffmpeg/avconv to fit into static sized player (comment) : How to transform all the images from the current directory to a video in FFmpeg? Here’s one way to grok what you’ve been taking pictures of: make a video which shows them at a rate of 3 per second. These photos sit in folders, mostly unlooked at. I take lots of photos on my phone, a daily record of the mundane and notable. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |