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!