Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #/bin/bash
- pt=`ogginfo input.ogg`
- pt=${pt#*Playback length: }
- NL='
- '
- pt=${pt%%${NL}*}
- mins=${pt%m:*}
- secs=${pt#*m:}
- secs=${secs%s}
- secs=${secs%.*}
- secs=$(( $mins * 60 + $secs ))
- timme=$(($secs/3600))':'$(($secs /60 /10 % 10))$(($secs /60 % 10))':'$(($secs % 60/10))$(($secs % 10))
- #static ffmpeg build
- ~/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