wargio / Twitch-Streamer-Linux

This is a script dedicated to stream to Twitch.tv with Webcam support
217 stars 39 forks source link

Stream only uploads when set to 'ultrafast' quality #14

Closed davidystephenson closed 10 years ago

davidystephenson commented 10 years ago

When using the twitch_ffmpeg.sh script, setting the quality to any preset other than 'ultrafast' causes the video to never load. The twitch window hangs at 'loading video.' However, 'ultrafast' appears to be above my connection speed, causing skipping and blurring.

I am using Ubuntu 13.10.

wargio commented 10 years ago

strange, it works on mine. and my pc is 8y old. anyway, i suggest to not use ultrafast, but simply fast

ubuntuaddicted commented 10 years ago

it may have to do with the script has -g 2 -keyint_min 2 AND CRF set. I don't believe those are correct options for a livestream. check my other issue i reported and see what you think

I personally use simplescreenrecorder compiled from his glinject-next branch and have a keyframe interval every 2 seconds for a 30 FPS stream which is accomplished with keyint=60

wargio commented 10 years ago

try again with the 'fixed' script. if it works, then i'll close this.

davidystephenson commented 10 years ago

Seems to work great on ultrafast now, thanks. Medium still causes it to hang on Loading Video though. Not sure how you want to handle the issue.

wargio commented 10 years ago

i think that the problem is the speed of the cpu. on a slower cpu, it does that problem. you can notice that the time to stop the encoding is more when you choose a slower encoding option. probably your buffer isn't ready in time for twitch, and then you see a gray screen. that's why i wrote on the howto to choose the best encoding speed for your cpu