ffmpeg-encode (219B)
1 #!/bin/sh 2 3 encode() { 4 ffmpeg -y -i "$1" \ 5 -c:v libx264 -threads 0 -preset faster -pix_fmt yuv420p \ 6 -c:a aac -crf 23 \ 7 -max_muxing_queue_size 1024 \ 8 "${1%.*}_encoded.mp4" 9 } 10 11 for f in "$@"; do 12 encode "$f" 13 done