Batch for playing several videos from pre-defined time-code
Posted: 19 Dec 2017 23:06
I have several videos that I'd like to play one after the other, but not the whole videos, but onle an extract of each. After each extract, playback should stop (freeze the image) to be reactivated only after striking a key.
To be more clear, it could look like this:
play video1, from timecode 20 sec. to timecode 1:30, freeze screen at the frame shown at 1:30
when a key is stoken, than
play video2, from timecode 50 sec. to timecode 2:25, freeze screen at the frame shown at 2:25
And so on with several videos. How to do this with a batch? I managed to create a batch-file that almost does it, it looks like this:
"C:\Program Files\VideoLAN\VLC\vlc.exe" video1.mp4 --start-time 20 --stop-time 90 --play-and-pause
"C:\Program Files\VideoLAN\VLC\vlc.exe" video2.mp4 --start-time 50 --stop-time 145 --play-and-pause
Image freezes after video1 is played as I want it to, but than I have to manually close vlc (CTRL-Q) and than automatically, a new instance of vlc opens and plays video2 as desired. But I guess it should be possible to do that without exiting VLC. How to do that?
--play-and-exit is not a solution, as I want the frozen image of video1 on the screen as long as I need, no pre-defined time and no immediate playback of video2.
To be more clear, it could look like this:
play video1, from timecode 20 sec. to timecode 1:30, freeze screen at the frame shown at 1:30
when a key is stoken, than
play video2, from timecode 50 sec. to timecode 2:25, freeze screen at the frame shown at 2:25
And so on with several videos. How to do this with a batch? I managed to create a batch-file that almost does it, it looks like this:
"C:\Program Files\VideoLAN\VLC\vlc.exe" video1.mp4 --start-time 20 --stop-time 90 --play-and-pause
"C:\Program Files\VideoLAN\VLC\vlc.exe" video2.mp4 --start-time 50 --stop-time 145 --play-and-pause
Image freezes after video1 is played as I want it to, but than I have to manually close vlc (CTRL-Q) and than automatically, a new instance of vlc opens and plays video2 as desired. But I guess it should be possible to do that without exiting VLC. How to do that?
--play-and-exit is not a solution, as I want the frozen image of video1 on the screen as long as I need, no pre-defined time and no immediate playback of video2.