Hello, another question, now with videos. I have 2 videos, one we'll call video(1), and the other video(2). I would like 10 seconds after closing the video(1), to start the video(2). The task I did did not work, because the video(1) is much longer than 10 seconds.
Would you help me?
How to play a sequence of videos with time between them?
-
- Posts: 53
- Joined: Fri Dec 30, 2022 2:43 am
How to play a sequence of videos with time between them?
- Attachments
-
- 2023-01-19_23-05-15.jpg (15.07 KiB) Viewed 5602 times
Re: How to play a sequence of videos with time between them?
Probably you should run video payer with option "Wait until the application exits"
Of course you must use the command line which closes videoplayer when it finish playing
It seems the standard Windows Media Player does not stop application when the movie is ended...
For example, you can use the VLC media player (it's free and very powerful and flexible player).
The command line is:
vlc --play-and-exit MyMovie.mp4
Of course you must use the command line which closes videoplayer when it finish playing
It seems the standard Windows Media Player does not stop application when the movie is ended...
For example, you can use the VLC media player (it's free and very powerful and flexible player).
The command line is:
vlc --play-and-exit MyMovie.mp4
Oleg Yershov
-
- Posts: 53
- Joined: Fri Dec 30, 2022 2:43 am
Re: How to play a sequence of videos with time between them?
Congratulations.Oleg wrote: ↑Fri Jan 20, 2023 9:42 am Probably you should run video payer with option "Wait until the application exits"
Of course you must use the command line which closes videoplayer when it finish playing
It seems the standard Windows Media Player does not stop application when the movie is ended...
For example, you can use the VLC media player (it's free and very powerful and flexible player).
The command line is:
vlc --play-and-exit MyMovie.mp4
Unfortunately I couldn't. It says the following message:
VLC --PLAY-AND-EXIT VID1.MP4 (Invalid variable name) VID1.mp4, is the name of the video in the folder. That's right? Where am I going wrong?
Re: How to play a sequence of videos with time between them?
You should use the full file name
for example
it works
Also please note that commands of VLC are case-sensitive
Look at my small example
Save the text of the task to a file and use menu Task->Import to import the task into RoboTask.
Also you can simply copy task text and paste it into the task list.
for example
Code: Select all
vlc --play-and-exit "C:\Users\username\AppData\Local\Packages\Microsoft.MicrosoftMinesweeper_8wekyb3d8bbwe\LocalState\vungleDiskCache\987eb941-9809-4e89-aeb6-6736a8d5fe48.mp4"
Also please note that commands of VLC are case-sensitive
Look at my small example
Code: Select all
;*****************************
;* RoboTask Task file
;* Do not edit in text editor!
;*****************************
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|-1
CatID=INTEGER|693415217
Comment=STRINGLIST
ContinueOnError=INTEGER|0
DisableOnError=INTEGER|0
DoNotStopWhenShutdown=INTEGER|0
ExternalName=STRING|"Task49"
Hide=INTEGER|0
ID=INTEGER|1470755940
LogOnAsUser=INTEGER|1
Name=STRING|"Run movie in VLC"
OnErrorTaskID=INTEGER|1879502808
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|3
UnicodeFormat=INTEGER|1
WriteGeneralLog=INTEGER|0
[Actions]
Action1=FOLDER
[Actions\Action1]
ActionID=STRING|"A_GENERAL_RUN_PROG"
Enabled=INTEGER|-1
Name=STRING|"Run ""vlc --play-and-exit ..."
Params=FOLDER
[Actions\Action1\Params]
ifnonzero=STRING|"0"
params=STRING|" --play-and-exit {EOL}""C:\Users\username\AppData\Local\Packages\Microsoft.MicrosoftMinesweeper_8wekyb3d8bbwe\LocalState\vungleDiskCache\987eb941-9809-4e89-aeb6-6736a8d5fe48.mp4"" "
program=STRING|"vlc"
runas=STRING|"0"
wait=STRING|"2"
Also you can simply copy task text and paste it into the task list.
Oleg Yershov
-
- Posts: 53
- Joined: Fri Dec 30, 2022 2:43 am
Re: How to play a sequence of videos with time between them?
You Oleg are amazing! Your explanation and example worked perfectly. Thank you again.