This commit is contained in:
Hiro Protagonist 2016-09-09 09:06:11 +12:00
parent 5edf84b0c1
commit f38b0c4a73

View file

@ -63,7 +63,7 @@ let spawn = function() {
stdoutLines: 20 stdoutLines: 20
}) })
.videoCodec('copy') .videoCodec('copy')
.outputOptions(['-bufsize 50000k', '-tune film', config.customOutputOptions]) .outputOptions([config.customOutputOptions])
.on('start', function(commandLine) { .on('start', function(commandLine) {
status.running = 0; status.running = 0;
logger.log(importance[4], 'Spawned Ffmpeg with command: ' + commandLine); logger.log(importance[4], 'Spawned Ffmpeg with command: ' + commandLine);
@ -84,6 +84,7 @@ let spawn = function() {
imDead(err.message, e); imDead(err.message, e);
}) })
.outputFormat('flv') .outputFormat('flv')
.outputOptions(['-bufsize 50000k', '-tune film'])
.output('rtmp://a.rtmp.youtube.com/live2/' + config.key); .output('rtmp://a.rtmp.youtube.com/live2/' + config.key);
status.error = -1; status.error = -1;
socket.emit('change', { socket.emit('change', {