Record Youtube Live Stream from the command line

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
VLCFanNumber1
Blank Cone
Blank Cone
Posts: 58
Joined: 19 May 2014 19:30

Record Youtube Live Stream from the command line

Postby VLCFanNumber1 » 13 Dec 2018 13:27

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)

VLCFanNumber1
Blank Cone
Blank Cone
Posts: 58
Joined: 19 May 2014 19:30

Re: Record Youtube Live Stream from the command line

Postby VLCFanNumber1 » 15 Dec 2018 10:07

Please help :(

Hitchhiker
Big Cone-huna
Big Cone-huna
Posts: 2203
Joined: 29 Jun 2018 11:40
VLC version: 3.0.17.4
Operating System: Windows 8.1
Location: The Netherlands

Re: Record Youtube Live Stream from the command line

Postby Hitchhiker » 15 Dec 2018 16:22

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?

VLCFanNumber1
Blank Cone
Blank Cone
Posts: 58
Joined: 19 May 2014 19:30

Re: Record Youtube Live Stream from the command line

Postby VLCFanNumber1 » 15 Dec 2018 17:25

It's to schedule automatic recordings with Task Scheduler (Windows 7).

unidan
Developer
Developer
Posts: 1493
Joined: 25 Mar 2018 01:00

Re: Record Youtube Live Stream from the command line

Postby unidan » 17 Dec 2018 18:50

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.

VLCFanNumber1
Blank Cone
Blank Cone
Posts: 58
Joined: 19 May 2014 19:30

Re: Record Youtube Live Stream from the command line

Postby VLCFanNumber1 » 17 Dec 2018 22:01

Hello unidan, thanks for you help. Where do I put the youtube url in that command ?

VLCFanNumber1
Blank Cone
Blank Cone
Posts: 58
Joined: 19 May 2014 19:30

Re: Record Youtube Live Stream from the command line

Postby VLCFanNumber1 » 24 Dec 2018 23:47

Someone please help :(

mederi
Big Cone-huna
Big Cone-huna
Posts: 1951
Joined: 15 Mar 2011 16:38
VLC version: 2.0.8
Operating System: Windows Vista/XP

Re: Record Youtube Live Stream from the command line

Postby mederi » 25 Dec 2018 13:17

Search VLC stream-output (sout) forum https://forum.videolan.org/viewforum.php?f=4

VLCFanNumber1
Blank Cone
Blank Cone
Posts: 58
Joined: 19 May 2014 19:30

Re: Record Youtube Live Stream from the command line

Postby VLCFanNumber1 » 25 Dec 2018 14:20

I'll post a topic there, thank you. Someone please delete this topic.

mederi
Big Cone-huna
Big Cone-huna
Posts: 1951
Joined: 15 Mar 2011 16:38
VLC version: 2.0.8
Operating System: Windows Vista/XP

Re: Record Youtube Live Stream from the command line

Postby mederi » 25 Dec 2018 17:09

Search!


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 57 guests