How to start video with start-time from Kodi external player
Posted: 07 Feb 2020 10:02
Hello,
I am having a lot of DVD's with home video's.
Every DVD has about 22 chapters so it is easy to jump to certain scenes.
I made a table of contents of all scenes.
However there are also scenes that you have to lookup via de timecode (start-time).
So i extended my table of contents with scenes whit different start-times.
Example of my table of contents:
I figured out that for all those situations i can start vlc from the commandline in Windows 10 automatically to jump to the desired scene:
But now my problem:
I am using VLC as external player in Kodi.
In kodi you have to define the program and the options in the file playercorefactory.xml.
You can start the external player from within a Kodi plugin with the DVD-location command.
This also is working like a charm.
But:
My DVD-scenes have different start- times and i cannot figure out how to achieve this when i call the external player from within the Kodi-plugin.
In fact i am looking for a way that i can put the desired start-time in the DVD-location command in such a way that VLC can detect this and start the DVD from this start-time.
Please help.
I am having a lot of DVD's with home video's.
Every DVD has about 22 chapters so it is easy to jump to certain scenes.
I made a table of contents of all scenes.
However there are also scenes that you have to lookup via de timecode (start-time).
So i extended my table of contents with scenes whit different start-times.
Example of my table of contents:
Code: Select all
Situation Scene DVD chapter/start-time
1 DVD via Menu m:\DVD01
2 Erwin 1 year m:\DVD01 chapter 4
3 At the Zoo m:\DVD01 00:06:00 (0 hour, 6 minutes and 0 seconds from beginning)
I figured out that for all those situations i can start vlc from the commandline in Windows 10 automatically to jump to the desired scene:
Code: Select all
Situation program options DVD-location command
Situation 1: c:/..../vlc.exe --fullscreen "dvd:///M:\DVD01"
Situation 2: c:/..../vlc.exe --fullscreen "dvd:///M:\DVD01#1:4
Situation 3: c:/..../vlc.exe --fullscreen --start-time=360 "dvdsimple:///M:\DVD01"
But now my problem:
I am using VLC as external player in Kodi.
In kodi you have to define the program and the options in the file playercorefactory.xml.
Code: Select all
<playercorefactory>
<players>
<player name="VLC" type="ExternalPlayer" audio="true" video="true">
<filename>C:/Program Files/VideoLAN/VLC/vlc.exe</filename>
<args>"{1}" --fullscreen --start-time=360</args>
</player>
</players>
<rules action="prepend">
</rules>
</playercorefactory>
This also is working like a charm.
But:
My DVD-scenes have different start- times and i cannot figure out how to achieve this when i call the external player from within the Kodi-plugin.
In fact i am looking for a way that i can put the desired start-time in the DVD-location command in such a way that VLC can detect this and start the DVD from this start-time.
Please help.