blob: 3965d530e74e14087a3ee567d28016f15de59ddf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/bin/bash
bname=$1
if [ -z "${bname}" ] ; then
echo "Usage $0 <basename of bmp-files> - basename.mp4 will be created"
exit 1
fi
ofname="${bname}.mp4"
rm -f ${ofname}
#
# https://stackoverflow.com/questions/24961127/how-to-create-a-video-from-images-with-ffmpeg
# http://hamelot.io/visualization/using-ffmpeg-to-convert-a-set-of-images-into-a-video/
#
ffmpeg -f image2 -pattern_type glob -r 60 -i ${bname}'*.bmp' -shortest -c:v libx264 -vf "fps=60,format=yuv420p" ${ofname}
|