Stream screen to Youtube with VLC











up vote
11
down vote

favorite












I'm looking to stream to Youtube with VLC and made the following command-string:



cvlc -vv screen:// --live-caching=0 --screen-fps=30 --screen-width=1920 --screen-height=1080 --sout='#transcode{vcodec=h264,scale=Auto,width=1920,height=1080,acodec=mp3,ab=128,channels=2,samplerate=44100}:std{access=rtmp,mux=ffmpeg{mux=flv},dst=rtmp://a.rtmp.youtube.com/live2/xxxxxxxxxxx}'


If I replace screen:// .. with a videofile, the stream successfully uploads to Youtube.



But I have no idea why it won't cast the screen. Youtube briefly shows a connection but no image. The stream isn't interrupted by VLC and it shows the upload to keep proceeding, but it's never picked up by YT. Any help would be appreciated.



For the record, I am able to view the screen offline in VLC without streaming.



I get a particular error that stands out:



core mux warning: late buffer for mux input (repeated while streaming) 


but this happens as well in the case of uploading the video and then doesn't seem to cause an issue.



Log



Below is the log when I try to set up an HTTP server streaming the desktop while also playing in VLC. I do get an image, but only a static one, the first frame of the stream.



https://pastebin.com/EzSWuAM3



It tells me a lot that my computer is slow, however it's a Corei5 and the VLC process only takes up 9% with a lot remaining. Saving to file works fine.



Note



I have two monitors. That might be a problem for it somehow, I don't know.



Update



I fixed the dropped frames issue by increasing the buffer with live-caching=2500. Now it works fine with a local HTTP server, but still not with YT.










share|improve this question













migrated from stackoverflow.com Feb 9 at 20:55


This question came from our site for professional and enthusiast programmers.















  • Not sure bout YT problem - but this could slow down the performance #transcode{vcodec=h264,scale=Auto,width=1920,height=1080 as far as I get you're transcoding out stream realtime with huge resolution, try to output smaller sized stream 640-480
    – ByteMaster
    Jan 19 at 16:16










  • I think some cache in between might be helpful as well
    – MahdeTo
    Jan 19 at 19:32










  • I tried a cache of 5000ms and that still doesn't work. Lower resolution also doesn't work.
    – RobotRock
    Jan 20 at 18:07






  • 1




    Is Open Broadcaster not an acceptable option? Why VLC?
    – Dispenser
    Mar 20 at 19:56















up vote
11
down vote

favorite












I'm looking to stream to Youtube with VLC and made the following command-string:



cvlc -vv screen:// --live-caching=0 --screen-fps=30 --screen-width=1920 --screen-height=1080 --sout='#transcode{vcodec=h264,scale=Auto,width=1920,height=1080,acodec=mp3,ab=128,channels=2,samplerate=44100}:std{access=rtmp,mux=ffmpeg{mux=flv},dst=rtmp://a.rtmp.youtube.com/live2/xxxxxxxxxxx}'


If I replace screen:// .. with a videofile, the stream successfully uploads to Youtube.



But I have no idea why it won't cast the screen. Youtube briefly shows a connection but no image. The stream isn't interrupted by VLC and it shows the upload to keep proceeding, but it's never picked up by YT. Any help would be appreciated.



For the record, I am able to view the screen offline in VLC without streaming.



I get a particular error that stands out:



core mux warning: late buffer for mux input (repeated while streaming) 


but this happens as well in the case of uploading the video and then doesn't seem to cause an issue.



Log



Below is the log when I try to set up an HTTP server streaming the desktop while also playing in VLC. I do get an image, but only a static one, the first frame of the stream.



https://pastebin.com/EzSWuAM3



It tells me a lot that my computer is slow, however it's a Corei5 and the VLC process only takes up 9% with a lot remaining. Saving to file works fine.



Note



I have two monitors. That might be a problem for it somehow, I don't know.



Update



I fixed the dropped frames issue by increasing the buffer with live-caching=2500. Now it works fine with a local HTTP server, but still not with YT.










share|improve this question













migrated from stackoverflow.com Feb 9 at 20:55


This question came from our site for professional and enthusiast programmers.















  • Not sure bout YT problem - but this could slow down the performance #transcode{vcodec=h264,scale=Auto,width=1920,height=1080 as far as I get you're transcoding out stream realtime with huge resolution, try to output smaller sized stream 640-480
    – ByteMaster
    Jan 19 at 16:16










  • I think some cache in between might be helpful as well
    – MahdeTo
    Jan 19 at 19:32










  • I tried a cache of 5000ms and that still doesn't work. Lower resolution also doesn't work.
    – RobotRock
    Jan 20 at 18:07






  • 1




    Is Open Broadcaster not an acceptable option? Why VLC?
    – Dispenser
    Mar 20 at 19:56













up vote
11
down vote

favorite









up vote
11
down vote

favorite











I'm looking to stream to Youtube with VLC and made the following command-string:



cvlc -vv screen:// --live-caching=0 --screen-fps=30 --screen-width=1920 --screen-height=1080 --sout='#transcode{vcodec=h264,scale=Auto,width=1920,height=1080,acodec=mp3,ab=128,channels=2,samplerate=44100}:std{access=rtmp,mux=ffmpeg{mux=flv},dst=rtmp://a.rtmp.youtube.com/live2/xxxxxxxxxxx}'


If I replace screen:// .. with a videofile, the stream successfully uploads to Youtube.



But I have no idea why it won't cast the screen. Youtube briefly shows a connection but no image. The stream isn't interrupted by VLC and it shows the upload to keep proceeding, but it's never picked up by YT. Any help would be appreciated.



For the record, I am able to view the screen offline in VLC without streaming.



I get a particular error that stands out:



core mux warning: late buffer for mux input (repeated while streaming) 


but this happens as well in the case of uploading the video and then doesn't seem to cause an issue.



Log



Below is the log when I try to set up an HTTP server streaming the desktop while also playing in VLC. I do get an image, but only a static one, the first frame of the stream.



https://pastebin.com/EzSWuAM3



It tells me a lot that my computer is slow, however it's a Corei5 and the VLC process only takes up 9% with a lot remaining. Saving to file works fine.



Note



I have two monitors. That might be a problem for it somehow, I don't know.



Update



I fixed the dropped frames issue by increasing the buffer with live-caching=2500. Now it works fine with a local HTTP server, but still not with YT.










share|improve this question













I'm looking to stream to Youtube with VLC and made the following command-string:



cvlc -vv screen:// --live-caching=0 --screen-fps=30 --screen-width=1920 --screen-height=1080 --sout='#transcode{vcodec=h264,scale=Auto,width=1920,height=1080,acodec=mp3,ab=128,channels=2,samplerate=44100}:std{access=rtmp,mux=ffmpeg{mux=flv},dst=rtmp://a.rtmp.youtube.com/live2/xxxxxxxxxxx}'


If I replace screen:// .. with a videofile, the stream successfully uploads to Youtube.



But I have no idea why it won't cast the screen. Youtube briefly shows a connection but no image. The stream isn't interrupted by VLC and it shows the upload to keep proceeding, but it's never picked up by YT. Any help would be appreciated.



For the record, I am able to view the screen offline in VLC without streaming.



I get a particular error that stands out:



core mux warning: late buffer for mux input (repeated while streaming) 


but this happens as well in the case of uploading the video and then doesn't seem to cause an issue.



Log



Below is the log when I try to set up an HTTP server streaming the desktop while also playing in VLC. I do get an image, but only a static one, the first frame of the stream.



https://pastebin.com/EzSWuAM3



It tells me a lot that my computer is slow, however it's a Corei5 and the VLC process only takes up 9% with a lot remaining. Saving to file works fine.



Note



I have two monitors. That might be a problem for it somehow, I don't know.



Update



I fixed the dropped frames issue by increasing the buffer with live-caching=2500. Now it works fine with a local HTTP server, but still not with YT.







vlc-media-player






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 8 at 17:43







RobotRock











migrated from stackoverflow.com Feb 9 at 20:55


This question came from our site for professional and enthusiast programmers.






migrated from stackoverflow.com Feb 9 at 20:55


This question came from our site for professional and enthusiast programmers.














  • Not sure bout YT problem - but this could slow down the performance #transcode{vcodec=h264,scale=Auto,width=1920,height=1080 as far as I get you're transcoding out stream realtime with huge resolution, try to output smaller sized stream 640-480
    – ByteMaster
    Jan 19 at 16:16










  • I think some cache in between might be helpful as well
    – MahdeTo
    Jan 19 at 19:32










  • I tried a cache of 5000ms and that still doesn't work. Lower resolution also doesn't work.
    – RobotRock
    Jan 20 at 18:07






  • 1




    Is Open Broadcaster not an acceptable option? Why VLC?
    – Dispenser
    Mar 20 at 19:56


















  • Not sure bout YT problem - but this could slow down the performance #transcode{vcodec=h264,scale=Auto,width=1920,height=1080 as far as I get you're transcoding out stream realtime with huge resolution, try to output smaller sized stream 640-480
    – ByteMaster
    Jan 19 at 16:16










  • I think some cache in between might be helpful as well
    – MahdeTo
    Jan 19 at 19:32










  • I tried a cache of 5000ms and that still doesn't work. Lower resolution also doesn't work.
    – RobotRock
    Jan 20 at 18:07






  • 1




    Is Open Broadcaster not an acceptable option? Why VLC?
    – Dispenser
    Mar 20 at 19:56
















Not sure bout YT problem - but this could slow down the performance #transcode{vcodec=h264,scale=Auto,width=1920,height=1080 as far as I get you're transcoding out stream realtime with huge resolution, try to output smaller sized stream 640-480
– ByteMaster
Jan 19 at 16:16




Not sure bout YT problem - but this could slow down the performance #transcode{vcodec=h264,scale=Auto,width=1920,height=1080 as far as I get you're transcoding out stream realtime with huge resolution, try to output smaller sized stream 640-480
– ByteMaster
Jan 19 at 16:16












I think some cache in between might be helpful as well
– MahdeTo
Jan 19 at 19:32




I think some cache in between might be helpful as well
– MahdeTo
Jan 19 at 19:32












I tried a cache of 5000ms and that still doesn't work. Lower resolution also doesn't work.
– RobotRock
Jan 20 at 18:07




I tried a cache of 5000ms and that still doesn't work. Lower resolution also doesn't work.
– RobotRock
Jan 20 at 18:07




1




1




Is Open Broadcaster not an acceptable option? Why VLC?
– Dispenser
Mar 20 at 19:56




Is Open Broadcaster not an acceptable option? Why VLC?
– Dispenser
Mar 20 at 19:56










2 Answers
2






active

oldest

votes

















up vote
1
down vote















  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/








share|improve this answer






























    up vote
    0
    down vote













    You can try with this software



    https://en.wikipedia.org/wiki/Open_Broadcaster_Software



    It's easy to use and it work. I use to try strteaming with vlc but after lots of trouble I install ubuntu server put OBS and stream parliament meetings on youtube.






    share|improve this answer





















      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "3"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1293581%2fstream-screen-to-youtube-with-vlc%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown
























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      1
      down vote















      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/








      share|improve this answer



























        up vote
        1
        down vote















        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/








        share|improve this answer

























          up vote
          1
          down vote










          up vote
          1
          down vote











          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/








          share|improve this answer
















          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/









          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Jun 8 at 5:45

























          answered Jun 8 at 5:38









          Ryan

          172




          172
























              up vote
              0
              down vote













              You can try with this software



              https://en.wikipedia.org/wiki/Open_Broadcaster_Software



              It's easy to use and it work. I use to try strteaming with vlc but after lots of trouble I install ubuntu server put OBS and stream parliament meetings on youtube.






              share|improve this answer

























                up vote
                0
                down vote













                You can try with this software



                https://en.wikipedia.org/wiki/Open_Broadcaster_Software



                It's easy to use and it work. I use to try strteaming with vlc but after lots of trouble I install ubuntu server put OBS and stream parliament meetings on youtube.






                share|improve this answer























                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  You can try with this software



                  https://en.wikipedia.org/wiki/Open_Broadcaster_Software



                  It's easy to use and it work. I use to try strteaming with vlc but after lots of trouble I install ubuntu server put OBS and stream parliament meetings on youtube.






                  share|improve this answer












                  You can try with this software



                  https://en.wikipedia.org/wiki/Open_Broadcaster_Software



                  It's easy to use and it work. I use to try strteaming with vlc but after lots of trouble I install ubuntu server put OBS and stream parliament meetings on youtube.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Nov 19 at 8:33









                  dvinkic

                  11




                  11






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Super User!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.





                      Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                      Please pay close attention to the following guidance:


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1293581%2fstream-screen-to-youtube-with-vlc%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Список кардиналов, возведённых папой римским Каликстом III

                      Deduzione

                      Mysql.sock missing - “Can't connect to local MySQL server through socket”