honestly, what I'd recommend is skipping the whole recording to disk thing altogether.
what you might want to look in to is something like FF Split to get the best possible quality out of your stream, and then use Twitch's upload to YouTube feature.
If you need to edit for time, or add a title...