Guest User

Untitled

a guest
Jun 20th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. #!/usr/bin/env bash
  2. infolder=$1
  3. outfolder=$2
  4. outputres="-1:720"
  5.  
  6. # Create output folder
  7. mkdir -p $outfolder
  8.  
  9. # Transcode video files
  10. for video in $infolder/*;
  11. do ffmpeg \
  12. -i "$video" \
  13. -map 0:v \
  14. -map 0:a \
  15. -c:v prores_ks \
  16. -profile:v 0 \
  17. -qscale:v 12 \
  18. -vendor apl0 \
  19. -pix_fmt yuv422p10le \
  20. -vf scale=$outputres \
  21. -sws_flags lanczos \
  22. -c:a pcm_s24le \
  23. "$outfolder/$(basename "${video%.*}"_Proxy.mov)";
  24. done
Add Comment
Please, Sign In to add comment