Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #get aspect ratio
- height=`~/ffmpeg/0.6/bin/ffprobe -show_streams "${fname}" | grep height | awk -F '=' '{print $2}'`
- width=`~/ffmpeg/0.6/bin/ffprobe -show_streams "${fname}" | grep width | awk -F '=' '{print $2}'`
- #calculate padding
- pad=$((width-height))
- pad=$((pad/2))
- #run it
- /home/mike/ffmpeg/0.6/bin/ffmpeg -i "${fname}" -s 700x600 -padtop ${pad} -padbottom ${pad} -vol 384 -re -acodec libfaac -vcodec libx264 -vpre default -f flv "rtmp://fme.mogulus.com/mogulus/${chan}/username=${user}/password=${pass}/isAutoLive=true/autoVOD=true/autoRecord=false app=mogulus/${chan}/username=${user}/password=${pass}/isAutoLive=true/autoRecord=false tcurl=rtmp://fme.mogulus.com/mogulus/${chan}/username=${user}/password=${pass}/isAutolive=true/autoRecord=false swfUrl=rtmp://publish.livestream.com/mogulus/${chan}/username=${user}/password=${pass}/isAutolive=true/autoRecord=false flashver=FME/2.5\20(compatible;\20FMSc/0.9) live=true"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement