Guest User

Untitled

a guest
Aug 31st, 2017
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. #! /bin/bash
  2. #
  3. # FFMPEG transcoder for Youtube
  4. # For encoding settings see: https://support.google.com/youtube/answer/2853702?
  5.  
  6. VBR="700k" # Bitrate of the video
  7. FPS="30" # Frames per second of the video
  8. YOUTUBE_URL="rtmp://a.rtmp.youtube.com/live2" # URL de base RTMP youtube
  9.  
  10. SOURCE="12121.mp4" # Source UDP
  11. KEY="-------" # The key you recieved from Youtube
  12.  
  13. ffmpeg \
  14. -i "$SOURCE" \
  15. -c:v libx264 -pix_fmt yuv420p -vf "scale=-2:360" -r $FPS -g $(($FPS * 2)) -b:v $VBR \
  16. -c:a aac -ar 44100 -b:a 128k \
  17. -f flv "$YOUTUBE_URL/$KEY"
Advertisement
Add Comment
Please, Sign In to add comment