Skip to content

Instantly share code, notes, and snippets.

@KyleJamesWalker
Created June 5, 2018 01:37
Show Gist options
  • Save KyleJamesWalker/2f8fa9f53d903193a2ed6d364c03593f to your computer and use it in GitHub Desktop.
Save KyleJamesWalker/2f8fa9f53d903193a2ed6d364c03593f to your computer and use it in GitHub Desktop.
# Every 4 Frames via find and a file
echo "Enter Video Name for folder: ";read VSRC; find . -type f -name '*.JPG' | sort | awk 'NR%4 == 1 {print "file \x27"$1"\x27"}' > $VSRC.txt; ffmpeg -f concat -safe 0 -i $VSRC.txt -c:v libx264 -b:v 10M -maxrate 10M -bufsize 4M -vf scale=-1:1080,format=yuv420p -r 30 $VSRC.mp4
@KyleJamesWalker
Copy link
Author

KyleJamesWalker commented Jun 21, 2018

Full trip example 4k @240FPS

echo "Enter Video Name for folder: ";read VSRC; find . -type f -name '*.JPG' | sort | awk '{print "file \x27"$1"\x27"}' > $VSRC.txt; ffmpeg -f concat -safe 0 -i $VSRC.txt -c:v libx264 -b:v 32M -maxrate 40M -bufsize 40M -vf scale=-1:2160,format=yuv420p,mpdecimate,setpts=N/FRAME_RATE/TB -r 240 $VSRC.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment