Advertisement
Guest User

nginx ffmpeg

a guest
Feb 22nd, 2016
150
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ffmpeg
  2.  
  3. @echo off
  4. :ffmpeg_start
  5. ffmpeg -re -i rtmp://localhost:1935/transcode/$name -vcodec libx264 -preset faster -x264opts nal-hrd=cbr:force-cfr=1:keyint=60 -r 60 -b:v 2000k -maxrate 3500k -bufsize 3500k -threads 12 -s hd720 -sws_flags spline -acodec copy -f flv rtmp://localhost:1935/live/${name};
  6. goto ffmpeg_start
  7.  
  8. nginx
  9.  
  10. rtmp {
  11. server {
  12. listen 1935;
  13. chunk_size 4000;
  14.  
  15. application transcode {
  16. live on;
  17. record off;
  18. }
  19. application live {
  20. live on;
  21. record off;
  22. push rtmp://live-syd.twitch.tv/app/live_63013472_jI0uFJ1AbarR6pHSmfRHKOYBdly8T1;
  23. }
  24. }
  25.  
  26. thats EVERYTHING in my nginx config but now NGINX won't launch, will try add this to the end of a new nginx config and try to connect via obs and 720p as stream key
Advertisement
RAW Paste Data Copied
Advertisement