Page 1 of 1

How to start video with start-time from Kodi external player

Posted: 07 Feb 2020 10:02
by nicootje
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:

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>
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.

Re: How to start video with start-time from Kodi external player

Posted: 07 Feb 2020 12:49
by #thweiss
Hello,

I will add some Links with Hints for use external Media-Players in Kodi.
Sorry, I can't Test the Examples for Kodi.

Kodi - External Players:

Code: Select all

https://kodi.wiki/view/External_players

Kodi-Forum for External Player Suuport:

Code: Select all

https://forum.kodi.tv/showthread.php?tid=43511&page=104

Your Question in the Kodi-Forum:
- https://forum.kodi.tv/showthread.php?tid=351521

In the Command Line Help are all Options and Parameter for the VLC-Player listed.

Code: Select all

https://wiki.videolan.org/VLC_command-line_help/

In the following Link is an CMD-Example for a Selection of DVD-Folder.
- https://forum.videolan.org/viewtopic.php?t=120834

Because of your Question for different DVD-Scenes I can imagin to use a Playlist with Start- and Stop-Time.

Code: Select all

https://scriptun.com/tools/video/m3u-playlist-generator
Kind regards.

Re: How to start video with start-time from Kodi external player

Posted: 07 Feb 2020 14:25
by nicootje
Thanks a lot.

I had seen almost all your links.

But the last one is the solution.
I generate a playlist in my Kodi Plugin en start VLC from Kodi with that playlist.

This thread can be marked solved.

Re: How to start video with start-time from Kodi external player

Posted: 07 Feb 2020 17:57
by nicootje
Oops, i was too quick with my answer.

Starting VLC with a playlist from Kodi is not working.

I will test some more and will soon come back with more details.

Re: How to start video with start-time from Kodi external player

Posted: 08 Feb 2020 09:45
by nicootje
Oke, it is working now!!!!!

I made a mistake by starting vlc with a playlist url with forward slashes instead of backslashes.

my playlist file M:\kodi2vlc.m3u:

Code: Select all

#EXTM3U #EXTINF:-1,Playlist generated in Kodi #EXTVLCOPT:start-time=360 dvdsimple:///M:\DVD01
The working command from my kodi-plugin:

Code: Select all

Situation 3: c:/..../vlc.exe --fullscreen "M:\kodi2vlc.m3u"
This thread is solved.