Guest User

Untitled

a guest
Aug 31st, 2017
54
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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"
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×