Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- set -x
- while read file; do
- newfile="${file%.*}_hevc.mkv"
- dirn="${file%.*}"
- mkdir -p "/datos4/VHS-transcoded/$dirn"
- newfile="/datos4/VHS-transcoded/${newfile#./}"
- ffmpeg -n -i "$file" -c:v libx265 -x265-params "profile=monochrome12:crf=0:lossless=1:preset=veryslow:qp=0" "$newfile"
- done < <(find . -name '*.avi')
- echo "Conversion of ${file} complete!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement