Skip to content

Tools for managing selfie a day hobby project

License

Notifications You must be signed in to change notification settings

0pencircuit/SelfieADay

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SelfieADay

My "selfie a day" hobby files.

This is a fork of a fork.

Requirements

  • Download this file and save it as shape_predictor_68_face_landmarks.dat

Run

  • Copy pictures to input folder
  • Run make-input.py. This'll resize every images in input folder to a square which solves this
  • Edit pada.conf according to your need
  • Run : python3 pada.py align

Making Video

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

Sound

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

Reduce Video Size

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

LICENSES

About

Tools for managing selfie a day hobby project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%