Created
          December 3, 2016 16:50 
        
      - 
      
- 
        Save whoo/99de042f85fa7605cc7dbd2bd51a25e4 to your computer and use it in GitHub Desktop. 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/bin/bash | |
| function Relink | |
| { | |
| x=1 | |
| for a in $OLDPWD/*JPG | |
| do | |
| c=$(printf %04d.jpg $x) | |
| ln -s "$a" $c | |
| x=$(($x+1)) | |
| done | |
| } | |
| TMP=$(mktemp -d) | |
| cd $TMP | |
| Relink | |
| ffmpeg -start_number 1 -f image2 -r 5 -i '%04d.jpg' -f mp4 -vf scale=640:-1 dd.mp4 | |
| mv dd.mp4 $OLDPWD | |
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
            
Leave tempdir (with only symlink)