Stream screen to Youtube with VLC

Solution 1:

  1. Initialization problem

    YouTube has a weird requirement before you can stream: you have to visit the Streaming page one time to initialize your streaming profile, after you have been approved by their sign-up process.

    1. Create your profile.
    2. Wait for approval.
    3. Visit https://www.youtube.com/live_dashboard once before attempting to stream.

    Screenshot: Create stream

    Screenshot: Get Started Screen

  2. Stream key (Stream name) problem

    I also noticed that you didn't pass a Stream key into VLC. Without a Stream key (Stream name), YouTube will reject any connection. VLC supports this function in the arguments for RTP protocol, so it may support it for the RTMP protocol, but I wouldn't hold my breath. I noticed RTMP is not listed as an available streaming protocol in the GUI for VLC, so I would highly doubt that VLC can even stream RTMP protocol. Adobe has made attempts to punish anyone that uses the RTMPdump open-source project, claiming it is a DMCA violation. https://en.wikipedia.org/wiki/Real-Time_Messaging_Protocol#rtmpdump Because RTMP requires encryption to be viable for streaming securely, VLC may not support streaming to YouTube.

    You may be able to stream from VLC to this other app and then have this app pass the stream through the RTMPdump CLI program to YouTube. http://docs.livestreamer.io/install.html#windows-binaries

    Screenshot: Find your stream key here

  3. VLC reputation problem

    I have tried to get VLC to record desktop screens to a file many times in the past and present, and it has always failed miserably, either refusing to respect the frame rate I select, or encoding the file with incorrect codec tags, resulting in the file only playing audio in a media player, or any other number of problems. VLC is not as robust as its reputation leads people to believe. I would skip VLC entirely and go with a dedicated streaming program, like Open Broadcaster Software Studio (OBS Studio). OBS Studio is the updated version of OBS: https://obsproject.com/