Advertisement
plirof2

ffmpeg Convert images to MP4 slideshow

Jan 18th, 2021
828
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.39 KB | None | 0 0
  1. #bash-linux scan folder and create .desktop files
  2. # Convert images to MP4
  3.  
  4. yourfilenames=`ls ./*/*.JPG`
  5.  
  6. #framerate 0.2 seems more normal FPS for slideshow
  7. FRAMERATE=0.2
  8. FILEFILTER='*.JPG'
  9.  
  10. for D in *; do
  11.     if [ -d "${D}" ]; then
  12.         echo "${D}"   # your processing here
  13.         ffmpeg -framerate $FRAMERATE -pattern_type glob -i "${D}/"'*.JPG' "${D}/""${D}"_output.mp4
  14.     fi
  15. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement