My "selfie a day" hobby files.
This is a fork of a fork.
- Download this file and save it as
shape_predictor_68_face_landmarks.dat
- Copy pictures to
input
folder - Run
make-input.py
. This'll resize every images ininput
folder to a square which solves this - Edit
pada.conf
according to your need - Run :
python3 pada.py align
Use ffmpeg
for making the video from images in output
folder. Change fps
according to your need using -r
flag :
cat aligned/*.jpg | ffmpeg -f image2pipe -r 20 -vcodec mjpeg -i - -vcodec libx264 out.mp4
I'm gonna add this sound to the video. Sound file name is sound.mp3
:
cat aligned/*.jpg | ffmpeg -f image2pipe -r 10 -vcodec mjpeg -i - -i sound.mp3 -shortest out.mp4
Source :
ffmpeg -i input.mkv -vf "scale=iw/2:ih/2" half_the_frame_size.mkv
ffmpeg -i input.mkv -vf "scale=iw/3:ih/3" a_third_the_frame_size.mkv
ffmpeg -i input.mkv -vf "scale=iw/4:ih/4" a_fourth_the_frame_size.mkv