Advertisement
Guest User

Untitled

a guest
Mar 3rd, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. #get aspect ratio
  2. height=`~/ffmpeg/0.6/bin/ffprobe -show_streams "${fname}" | grep height | awk -F '=' '{print $2}'`
  3. width=`~/ffmpeg/0.6/bin/ffprobe -show_streams "${fname}" | grep width | awk -F '=' '{print $2}'`
  4.  
  5. #calculate padding
  6. pad=$((width-height))
  7. pad=$((pad/2))
  8.  
  9. #run it
  10. /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