How to stream video from a source site like YouTube without a GUI?





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







5















I need to set up a computer to put video on several screens at the same time. To save as many resources as I can from the original computer (which is getting old), I have two questions:




  • Is it necessary to use a GUI to stream video from a Linux machine?

  • And, if isn't, how do you automate video streaming without a GUI (in Linux)?


I think the screens are gonna be connected to a computer, and playing the stream via YouTube, but is there a way to avoid using a GUI for all of this?










share|improve this question

























  • Do you mean the screens are all connected to a single machine running linux? vlc, mplayer and mpv can all play a youtube url directly from the command line.

    – Paul
    Apr 25 '14 at 22:45











  • Please edit and clarify your question. If the screens are physically attached to the computer, you don't need any kind of "streaming". How did youtube get into this, are you going to play local files or youtube videos? Is your question "How can I play youtube videos without a GUI"?

    – terdon
    Apr 26 '14 at 11:15




















5















I need to set up a computer to put video on several screens at the same time. To save as many resources as I can from the original computer (which is getting old), I have two questions:




  • Is it necessary to use a GUI to stream video from a Linux machine?

  • And, if isn't, how do you automate video streaming without a GUI (in Linux)?


I think the screens are gonna be connected to a computer, and playing the stream via YouTube, but is there a way to avoid using a GUI for all of this?










share|improve this question

























  • Do you mean the screens are all connected to a single machine running linux? vlc, mplayer and mpv can all play a youtube url directly from the command line.

    – Paul
    Apr 25 '14 at 22:45











  • Please edit and clarify your question. If the screens are physically attached to the computer, you don't need any kind of "streaming". How did youtube get into this, are you going to play local files or youtube videos? Is your question "How can I play youtube videos without a GUI"?

    – terdon
    Apr 26 '14 at 11:15
















5












5








5








I need to set up a computer to put video on several screens at the same time. To save as many resources as I can from the original computer (which is getting old), I have two questions:




  • Is it necessary to use a GUI to stream video from a Linux machine?

  • And, if isn't, how do you automate video streaming without a GUI (in Linux)?


I think the screens are gonna be connected to a computer, and playing the stream via YouTube, but is there a way to avoid using a GUI for all of this?










share|improve this question
















I need to set up a computer to put video on several screens at the same time. To save as many resources as I can from the original computer (which is getting old), I have two questions:




  • Is it necessary to use a GUI to stream video from a Linux machine?

  • And, if isn't, how do you automate video streaming without a GUI (in Linux)?


I think the screens are gonna be connected to a computer, and playing the stream via YouTube, but is there a way to avoid using a GUI for all of this?







linux video streaming gui






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 10 at 5:25









JakeGould

32.8k10100142




32.8k10100142










asked Apr 25 '14 at 22:28









user57129user57129

314




314













  • Do you mean the screens are all connected to a single machine running linux? vlc, mplayer and mpv can all play a youtube url directly from the command line.

    – Paul
    Apr 25 '14 at 22:45











  • Please edit and clarify your question. If the screens are physically attached to the computer, you don't need any kind of "streaming". How did youtube get into this, are you going to play local files or youtube videos? Is your question "How can I play youtube videos without a GUI"?

    – terdon
    Apr 26 '14 at 11:15





















  • Do you mean the screens are all connected to a single machine running linux? vlc, mplayer and mpv can all play a youtube url directly from the command line.

    – Paul
    Apr 25 '14 at 22:45











  • Please edit and clarify your question. If the screens are physically attached to the computer, you don't need any kind of "streaming". How did youtube get into this, are you going to play local files or youtube videos? Is your question "How can I play youtube videos without a GUI"?

    – terdon
    Apr 26 '14 at 11:15



















Do you mean the screens are all connected to a single machine running linux? vlc, mplayer and mpv can all play a youtube url directly from the command line.

– Paul
Apr 25 '14 at 22:45





Do you mean the screens are all connected to a single machine running linux? vlc, mplayer and mpv can all play a youtube url directly from the command line.

– Paul
Apr 25 '14 at 22:45













Please edit and clarify your question. If the screens are physically attached to the computer, you don't need any kind of "streaming". How did youtube get into this, are you going to play local files or youtube videos? Is your question "How can I play youtube videos without a GUI"?

– terdon
Apr 26 '14 at 11:15







Please edit and clarify your question. If the screens are physically attached to the computer, you don't need any kind of "streaming". How did youtube get into this, are you going to play local files or youtube videos? Is your question "How can I play youtube videos without a GUI"?

– terdon
Apr 26 '14 at 11:15












1 Answer
1






active

oldest

votes


















2














Install Streamlink:



sudo -H pip install streamlink


Send the stream to cvlc --fullscreen:



streamlink --player="cvlc --no-video" "https://www.youtube.com/freecodecamp/live" best


Personally what I was needing was just the audio, --no-video.



To save bandwidth you could use worst instead of best.






share|improve this answer


























  • Great tip here. +1

    – JakeGould
    Mar 10 at 5:16












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',
autoActivateHeartbeat: false,
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%2f746158%2fhow-to-stream-video-from-a-source-site-like-youtube-without-a-gui%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









2














Install Streamlink:



sudo -H pip install streamlink


Send the stream to cvlc --fullscreen:



streamlink --player="cvlc --no-video" "https://www.youtube.com/freecodecamp/live" best


Personally what I was needing was just the audio, --no-video.



To save bandwidth you could use worst instead of best.






share|improve this answer


























  • Great tip here. +1

    – JakeGould
    Mar 10 at 5:16
















2














Install Streamlink:



sudo -H pip install streamlink


Send the stream to cvlc --fullscreen:



streamlink --player="cvlc --no-video" "https://www.youtube.com/freecodecamp/live" best


Personally what I was needing was just the audio, --no-video.



To save bandwidth you could use worst instead of best.






share|improve this answer


























  • Great tip here. +1

    – JakeGould
    Mar 10 at 5:16














2












2








2







Install Streamlink:



sudo -H pip install streamlink


Send the stream to cvlc --fullscreen:



streamlink --player="cvlc --no-video" "https://www.youtube.com/freecodecamp/live" best


Personally what I was needing was just the audio, --no-video.



To save bandwidth you could use worst instead of best.






share|improve this answer















Install Streamlink:



sudo -H pip install streamlink


Send the stream to cvlc --fullscreen:



streamlink --player="cvlc --no-video" "https://www.youtube.com/freecodecamp/live" best


Personally what I was needing was just the audio, --no-video.



To save bandwidth you could use worst instead of best.







share|improve this answer














share|improve this answer



share|improve this answer








edited Mar 10 at 5:27

























answered Mar 10 at 5:12









Pablo BianchiPablo Bianchi

273111




273111













  • Great tip here. +1

    – JakeGould
    Mar 10 at 5:16



















  • Great tip here. +1

    – JakeGould
    Mar 10 at 5:16

















Great tip here. +1

– JakeGould
Mar 10 at 5:16





Great tip here. +1

– JakeGould
Mar 10 at 5:16


















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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f746158%2fhow-to-stream-video-from-a-source-site-like-youtube-without-a-gui%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

Index of /

Tribalistas

Listed building