Advertisement
metalx1000

Photo Spheres to Video Slideshow for Youtube

Sep 3rd, 2018
906
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.24 KB | None | 0 0
  1. #!/bin/bash
  2. ######################################################################
  3. #Copyright (C) 2018  Kris Occhipinti
  4. #https://filmsbykris.com
  5.  
  6. #This program is free software: you can redistribute it and/or modify
  7. #it under the terms of the GNU General Public License as published by
  8. #the Free Software Foundation, either version 3 of the License, or
  9. #(at your option) any later version.
  10.  
  11. #This program is distributed in the hope that it will be useful,
  12. #but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. #GNU General Public License for more details.
  15.  
  16. #You should have received a copy of the GNU General Public License
  17. #along with this program.  If not, see <http://www.gnu.org/licenses/>.
  18. ######################################################################
  19.  
  20. secs=10 #hold each image for 10 seconds
  21. rez="3072x1536"
  22. output="PhotoSphere_$(date +%Y-%m-%d_%s).mp4"
  23.  
  24. function main(){
  25.   ffmpeg -framerate 1/secs  -pattern_type glob -i '*.jpg'\
  26.     -an -c:v libx264 -s $rez -r 30\
  27.     -b:v 20000K -minrate 20000K -maxrate 20000K\
  28.     -pix_fmt yuv420p "$output"
  29.  
  30.   echo "Add metadata with"
  31.   echo "https://github.com/google/spatial-media"
  32.  
  33.   exit 0
  34. }
  35.  
  36. main
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement