More parameters for external player (1 Viewer)

Seb.26

Portal Member
March 13, 2007
17
0
Hi world !

Started on: 2006-03-19
last update: -

Summary: More parameters for external player

Description:
Actually the only parameter known by MediaPortal for external players is %filename% ... a usefull one for sure ! :D ... but ...

Could it be possible to add the playback start position ?
> in milliseconds since MPC only accept that, but maybe adding more units ( like HH:MM:ss, frame number...) can be great for other players.

value scan be for exemple :
> %start_ms%
> %start_hhmmss%
> % start_framenumber%

:D
 

Seb.26

Portal Member
March 13, 2007
17
0
Zoom Player switch is like "zplayer.exe /SEEK:01:15:32"

So it could be fine to add %start_hhmmss% -> "01:15:32"
or each field like :
> %start_hhmmss_hh%
> %start_hhmmss_mm%
> %start_hhmmss_ss%

Thanks in advance for thinking about this feature ...
 

bleubleu

Portal Member
February 9, 2007
19
0
44
Home Country
Canada Canada
I totally agree with that feature request!

I want to use media player classic and it requires the time in ms in the command line. So this would be AWESOME!

Unfortunatly, the way the code is right not (i am not a MP dev, I just looked at the code), the MP UI asks you if you want to resume a video, starts it from the beginning and then seeks to the desired position. You can see this phenomenon if you have a slow machine accessing a remote file on a slow network.

So, in order to implement this, it would require more than adding 1-2 lines of code, but some changes in the way MP starts a video...

Mat

Hey, I just thought of the MOST UGLY HACK to solve this problem.

Depending if you select YES or NO when asked to resume it will keep the resume time in the database (YES) or delete it (NO) meaning the video will restart from the beginning.

Before starting your player, you could use sqllite3.exe to look in the "resume" table (join with the "files" table) to see if the file you are trying to play needs to resume. The time in this table is in MS but you can use SQL functions to format it the way you want.

It is a stretch, it's ugly, but I will try a prototype tonight.

Mat
 

xisque

Portal Member
May 18, 2008
6
1
I totally agree with that feature request!

I want to use media player classic and it requires the time in ms in the command line. So this would be AWESOME!

Unfortunatly, the way the code is right not (i am not a MP dev, I just looked at the code), the MP UI asks you if you want to resume a video, starts it from the beginning and then seeks to the desired position. You can see this phenomenon if you have a slow machine accessing a remote file on a slow network.

So, in order to implement this, it would require more than adding 1-2 lines of code, but some changes in the way MP starts a video...

Mat

Hey, I just thought of the MOST UGLY HACK to solve this problem.

Depending if you select YES or NO when asked to resume it will keep the resume time in the database (YES) or delete it (NO) meaning the video will restart from the beginning.

Before starting your player, you could use sqllite3.exe to look in the "resume" table (join with the "files" table) to see if the file you are trying to play needs to resume. The time in this table is in MS but you can use SQL functions to format it the way you want.

It is a stretch, it's ugly, but I will try a prototype tonight.

Mat


Sorry but you are wrong. MP will not play the video, the external application are responsable to this job in this case, the only thing mp need to do is pass the parameters to this external application.

But you are right about the seek database. I think MP have your own database to be used with internal player, maybe there is a solution right there. :D
 

persibro

New Member
August 27, 2008
1
0
Home Country
United States of America United States of America
This sounds like it would be an extremely useful feature for the people who use an external player (me included)!

BTW, does anyone know if the resume popup can be disabled? Since I'm using MPC-HC as my external player, I don't have a use for it ATM.
 

Snader

MP Donator
  • Premium Supporter
  • September 5, 2007
    270
    10
    Aalsmeer
    Home Country
    Netherlands Netherlands
    This would be extremely useful since MPC-HC is for me the only way to play proper 1080P movies. MP just doesn't seem to handle it right.

    Since there is a featurestop... we probably have to wait till MP2 then... but then again, we maybe don't need external players anymore.
     

    omriamos

    Portal Pro
    May 21, 2008
    54
    4
    Home Country
    Israel Israel
    Hi,

    This is pretty close to the subject of the external player parameters, so I will post it here:

    I have noticed that the external player feature does not support playlists.
    e.g. If I have a movie with 2 files (2 parts), it will only load the first file to the external player.

    Is there a way around this problem ?
     

    yhoogi

    MP Donator
  • Premium Supporter
  • March 9, 2008
    599
    47
    Home Country
    Germany Germany
    In zp you can create your own "zpl" files, which are zoomplayer playlists.

    I include in the identified extensions for videos ".zpl", so mp recognises these as video files
    For multipart-files I create a hidden sub-folder where I store the related files and create a short zpl-file pointing to the hidden directory. mp will play the playlist and zoomplayer is playing all files in a nice order.

    For multipart files, like episodes, I can configure zoomplayer to extend the playlist automatically after certain matching criteria (similar to MyTV-Series)


    - should also work with other players as long as they have somthing similar

    Cheers
     

    Users who are viewing this thread

    Top Bottom