Guest User

Untitled

a guest
Nov 22nd, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. #/bin/bash
  2. pt=`ogginfo input.ogg`
  3. pt=${pt#*Playback length: }
  4. NL='
  5. '
  6. pt=${pt%%${NL}*}
  7. mins=${pt%m:*}
  8. secs=${pt#*m:}
  9. secs=${secs%s}
  10. secs=${secs%.*}
  11. secs=$(( $mins * 60 + $secs ))
  12. timme=$(($secs/3600))':'$(($secs /60 /10 % 10))$(($secs /60 % 10))':'$(($secs % 60/10))$(($secs % 10))
  13. #static ffmpeg build
  14. ~/games/ffmpeg-3.3.3-64bit-static/ffmpeg -i input.ogg -loop 1 -i art.jpg -r 1 -acodec copy -c:v libvpx -b:v 100k -crf 50 -g 100 -speed 1 -t $timme output.webm -y
Add Comment
Please, Sign In to add comment