Advertisement
savsanta

conv2.sh

Mar 5th, 2023 (edited)
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. # Modifications
  4. # Current Settings Works Well For the GenerPlus Large TF Files from HDD Model. 2.5GB 20min files compress to around 300mb with similar quality
  5. # Add -nostdin so that hopefully ffmpeg can automatically process each file on each line as had issues
  6.  
  7. file=$1
  8. PREFIX='Transcode'
  9.  
  10. echo "Utilizing $file"
  11.  
  12. while IFS= read -r line
  13.  
  14. do
  15.  
  16. echo "Current File Being Processed $line"
  17. line=$(basename $line)
  18. echo " Target file is ${line}"
  19. ffmpeg -nostdin -i $line -vf vflip -b:v 2M -maxrate 8M -bufsize 2M -c:v libx264 -c:a libmp3lame -vsync 2 ${PREFIX}${line}.mp4
  20. echo "Line --> ${line} finished"
  21. done < "$file"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement