Skip to content

Instantly share code, notes, and snippets.

@jersobh
Created October 3, 2017 20:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jersobh/cb1eba58afc88da0aecec5f3d43ce67e to your computer and use it in GitHub Desktop.
Save jersobh/cb1eba58afc88da0aecec5f3d43ce67e to your computer and use it in GitHub Desktop.
var ops=[
'-vcodec', _vcodec,'-i','-',
'-c:v', 'libx264', '-preset', 'veryfast', '-tune', 'zerolatency',
'-c:a', 'libmp3lame',
'-b:a', '128k',
'-ac', '2',
'-async', '1',
'-bufsize', '2000k',
'-threads', '0',
'-f', 'tee',
'[f=flv:onfail=ignore]rtmp://a.rtmp.youtube.com/live2/'+_config_youtube+'|[f=flv:onfail=ignore]rtmp://live-api-a.facebook.com:80/rtmp/'+_config_facebook
// '-f', 'flv','rtmp://a.rtmp.youtube.com/live2/'+_config_youtube
// '-f', 'flv', 'rtmp://live-api-a.facebook.com:80/rtmp/'+_config_facebook
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment