Item-specific options for Youtube URL

macOS specific usage questions
sjh3471
New Cone
New Cone
Posts: 1
Joined: 18 May 2021 12:14

Item-specific options for Youtube URL

Postby sjh3471 » 18 May 2021 14:06

Greetings. I am new to the VLC CLI, and have been attempting to write several basic commands to play Youtube URLs with prespecified start/stop times. I would like the start/stop times to be item-specific, so that different times can be specified for each URL.

The following code runs two URLs (one after the other) with a single set of start/stop times (defined globally):

/Applications/VLC.app/Contents/MacOS/VLC --start-time=5 --stop-time=10 https://www.youtube.com/watch?v=e_lhfFKF-G0 https://www.youtube.com/watch?v=2oApqZJ3wak


However, when I attempt to specify separate start/stop times for each video using the following script, the code seems to ignore the start/stop times and runs each video from start to finish:

/Applications/VLC.app/Contents/MacOS/VLC https://www.youtube.com/watch?v=e_lhfFKF-G0 :start-time=5 :stop-time=13 https://www.youtube.com/watch?v=2oApqZJ3wak :start-time=20 :stop-time=23


Interesting to note that when I use this same, “item-specific” syntax for an mp4 file, the code works as expected:

/Applications/VLC.app/Contents/MacOS/VLC pathname/beach.mp4 :start-time=5 :stop-time=9


Any ideas or comments regarding this issue would be much appreciated!

Return to “VLC media player for macOS Troubleshooting”

Who is online

Users browsing this forum: No registered users and 44 guests