Page 1 of 1

Record Youtube Live Stream from the command line

Posted: 13 Dec 2018 13:27
by VLCFanNumber1
Hello everybody,

I would like to record 10 minutes of a Youtube Live Stream from the command line (and would like VLC to close after that). How can I do this with a single command ? I've Googled it but didn't anything that works.

Thanks in advance for your help ! :wink:

PS : FYI the livestream url is https://www.youtube.com/watch?v=rjcyBzzE7-A (it's 720p)

Re: Record Youtube Live Stream from the command line

Posted: 15 Dec 2018 10:07
by VLCFanNumber1
Please help :(

Re: Record Youtube Live Stream from the command line

Posted: 15 Dec 2018 16:22
by Hitchhiker
I can tell you how to do it from the vlc UI, but not from the command line. Is there any particular reason you want to use the latter?

Re: Record Youtube Live Stream from the command line

Posted: 15 Dec 2018 17:25
by VLCFanNumber1
It's to schedule automatic recordings with Task Scheduler (Windows 7).

Re: Record Youtube Live Stream from the command line

Posted: 17 Dec 2018 18:50
by unidan
I don't know if mp4 is the right mux for this but

Code: Select all

vlc -I dummy --run-time <number of seconds you want> --play-and-exit --sout="#std{access=file,mux=mp4,dst=record.mp4}"
However, a stream might break at the middle (because of the way it sends the data) and VLC doesn't really support that ATM.

Re: Record Youtube Live Stream from the command line

Posted: 17 Dec 2018 22:01
by VLCFanNumber1
Hello unidan, thanks for you help. Where do I put the youtube url in that command ?

Re: Record Youtube Live Stream from the command line

Posted: 24 Dec 2018 23:47
by VLCFanNumber1
Someone please help :(

Re: Record Youtube Live Stream from the command line

Posted: 25 Dec 2018 13:17
by mederi
Search VLC stream-output (sout) forum https://forum.videolan.org/viewforum.php?f=4

Re: Record Youtube Live Stream from the command line

Posted: 25 Dec 2018 14:20
by VLCFanNumber1
I'll post a topic there, thank you. Someone please delete this topic.

Re: Record Youtube Live Stream from the command line

Posted: 25 Dec 2018 17:09
by mederi
Search!