Advertisement
image28

ffmpeg for hardware encoding

Jul 25th, 2019
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.27 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. for e in `find /home/image/testmount -name *.$1 -print`
  4. do
  5.     ffmpeg -i $e -c:v hevc_nvenc -rc:v vbr_hq -cq:v 19 -b:v 2500k -maxrate:v 5000k -profile:v high -c:a aac -b:a 128k /home/image/temp-video-output/`basename $e | sed -e s/"$1"/"-hevc.mkv"/`
  6.     sleep 4s
  7. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement