I wanted to know if it was possible to open a mp4 file located on my desktop right at a specific time of the video (e.g. 1 hour 10 minutes 30 seconds) using the terminal?
$ open /Volumes/USERNAME/Desktop/lecture.mp4
This works for starting at the beginning of the video.
But how could I include a specific time (hours, minutes, seconds) at where the video opens/starts at?
Best Answer
If you have the VLC media player installed, you can run the following example compound command in Terminal to start playing the video file at the 1 hour 10 minutes 30 seconds mark:
Showing on two lines to see the whole compound command:
Using the default macOS
open
command to open VLC and pass it the--start-time
option, the value of which is expressed in seconds.open
options:VLC
option:See also: Documentation:Command line