Guest User

Untitled

a guest
May 17th, 2024
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. INPUT_FILE=$1
  4. ffmpeg -i "$INPUT_FILE" -b:a 192K output.mp3
  5. MOE=$(curl -F "reqtype=fileupload" -F "[email protected]" https://catbox.moe/user/api.php)
  6. MOE=${MOE#https://}
  7. MOE=${MOE////%2F}
  8. ffmpeg -i "$INPUT_FILE" -b:v 0 -crf 30 -pass 1 -an -f webm -y /dev/null
  9. ffmpeg -i "$INPUT_FILE" -b:v 0 -crf 30 -pass 2 -an "${INPUT_FILE%.webm}[sound=${MOE}].webm"
Add Comment
Please, Sign In to add comment