Online Video Segment Capture via Terminal?

*nix specific usage questions
VFreedLAN
New Cone
New Cone
Posts: 2
Joined: 06 May 2014 16:08

Online Video Segment Capture via Terminal?

Postby VFreedLAN » 18 Sep 2023 19:41

Greetings.

Briefly, I am attempting to learn how one might properly format a command line to download a segment of a video, in this example, from YouTube.

Here's what I cobbled together to start with:

Code: Select all

vlc -vvv https://www.youtube.com/watch?v=OuSdU8tbcHY --stop-time=8.000 --sout="#std{access=file,mux=ts,dst=/tmp/out.mp4}" vlc://quit
...which works great, but will not allow a start time offset.

Bearing that in mind, I'd also like to limit the amount of downloaded content to just the target segment, so I tried this:

Code: Select all

vlc -vvv https://www.youtube.com/watch?v=OuSdU8tbcHY&t=5 --stop-time=8.000 --sout="#std{access=file,mux=ts,dst=/tmp/out.mp4}" vlc://quit
...which failed miserably with VLC not being able to pass along the complete/correct video address to the server for proper initialization.

Any ideas as to how one might be able to download just a segment of a video -- without first downloading the entire video's content?

Thanks a bunch!

Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 26 guests