Advertisement
shiftdot515

44.mksh

Feb 7th, 2024
973
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.70 KB | None | 0 0
  1. #!/var/bin/mksh
  2. INFILE='RDCK_pro003ASI_204071001_HD.wmv'
  3. OUTFILE='interview_48.mp4'
  4. WIDTH=768
  5. HEIGHT=432
  6. FRAMERATE=30
  7. AUDIOHZ=48000
  8. AUDIOCHAN=2
  9. AUDIOBITRATE=24
  10. THREADS=2
  11.  
  12. SECONDS=0
  13.  
  14. ffmpeg -y -threads ${THREADS} -i "${INFILE}" -s ${WIDTH}x${HEIGHT} -r ${FRAMERATE} -vcodec h264  -g 300  -aspect ${WIDTH}:${HEIGHT}  -qmin 27 -b 900  -level 30 -loop 1 -strict -2 -bug auto -sc_threshold 40 -partp4x4 1 -rc_eq 'blurCplx^(1-qComp)' -refs 2 -qmax 51 -maxrate 1400  -async 50  -acodec aac  -ar ${AUDIOHZ} -ac ${AUDIOCHAN}  -ab ${AUDIOBITRATE}  "${OUTFILE}"
  15.  
  16. if (( $SECONDS < 60 )) ; then
  17.    exit
  18. fi
  19. echo $(( $SECONDS / 3600 )) hours $(( $SECONDS % 3600 / 60 )) min
  20.  
  21. osascript -e 'tell application "Finder" to sleep'
  22.  
  23.  
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement