Last active
August 14, 2021 16:40
-
-
Save saidsef/b090643d1aa67ca9cb354b4c859be80c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
## MIT License - Copyright (c) 2020 - Said Sef | |
## This script assumes FFMPEG and it's ancillary re installed | |
## This will encode directory of images into a video | |
## args: sh ffmpeg-images-to-video.sh *.jpg video-name | |
ffmpeg -f image2 \ | |
-r 30 \ | |
-pattern_type glob \ | |
-i "$1" \ | |
-c:v mpeg4 \ | |
-preset ultrafast \ | |
-vf "scale=w=1630:h=1080:eval=init:interl=false,format=yuv420p,setsar=1631/1630,setpts=150*PTS" \ | |
$2.mp4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment