Linux mpv player samba username and password
#1
Hello everybody,

I am using Kodi 18.5 under linux mint 19.3 and sharing my files over win 10 samba.

I want to play the files using mpv (0.31.0) that I have recompiled in order to enable samba client.
It is working from a linux shell using: mpv --fs smb://usr:pwd -at- /server/file

I am using playercorefactory.xml with parameters:

<playercorefactory>
  <players>
    <player name="MPV" type="ExternalPlayer" audio="false" video="true">
      <filename>/usr/local/bin/mpv</filename>
      <args>--fs "{1}"</args>
      <hidexbmc>false</hidexbmc>
      <hideconsole>false</hideconsole>
      <warpcursor>none</warpcursor>
    </player>
  </players>
  <rules action="prepend">
    <rule name="AllVideo" video="true" player="MPV"/>
  </rules>
</playercorefactory>


The problem I am having is with passing the samba username and password when kodi launches the external mpv player:

Code:
2020-01-26 12:51:07.413 T:140100589185152  NOTICE: ExternalPlayer Filename: /usr/local/bin/mpv
2020-01-26 12:51:07.413 T:140100589185152 WARNING: ExternalPlayer: invalid value for warpcursor: none
2020-01-26 12:51:07.413 T:140100589185152  NOTICE: ExternalPlayer Tweaks: hideconsole (false), hidexbmc (false), islauncher (false), warpcursor (none)
2020-01-26 12:51:07.414 T:140100589185152  NOTICE: OpenFile: smb://192.168.1.12/movies2/HD/Film/Test.mkv
2020-01-26 12:51:07.414 T:140098273277696  NOTICE: Process: Player : /usr/local/bin/mpv
2020-01-26 12:51:07.414 T:140098273277696  NOTICE: Process: File   : smb://192.168.1.12/movies2/HD/Film/Test.mkv
2020-01-26 12:51:07.414 T:140098273277696  NOTICE: Process: Content:
2020-01-26 12:51:07.414 T:140098273277696  NOTICE: Process: Args   : --fs "{1}"
2020-01-26 12:51:07.414 T:140098273277696  NOTICE: Process: Start
2020-01-26 12:51:07.716 T:140098273277696  NOTICE: ExecuteAppLinux: "/usr/local/bin/mpv" --fs "smb://192.168.1.12/movies2/HD/Film/Test.mkv"
2020-01-26 12:51:08.327 T:140098273277696  NOTICE: ExecuteAppLinux: Failure: 512
2020-01-26 12:51:08.327 T:140098273277696  NOTICE: Process: Stop

my passwords.xml file is the following:

<passwords>    <path>
        <from pathversion="1">smb://192.168.1.12/movies</from>
        <to pathversion="1">smb://My%20Name:[email protected]/movies/HD/</to>
    </path>
    <path>
        <from pathversion="1">smb://192.168.1.12/movies2</from>
        <to pathversion="1">smb://My%20Name:[email protected]/movies2/HD/Serie/</to>
    </path>
    <path>
        <from pathversion="1">smb://192.168.1.12/movies3</from>
        <to pathversion="1">smb://My%20Name:[email protected]/movies3/HD/Serie/</to>
    </path>
    <path>
        <from pathversion="1">smb://192.168.1.12/movies4</from>
        <to pathversion="1">smb://My%20Name:[email protected]/movies4/HD/Serie/</to>
    </path>
    <path>
        <from pathversion="1">smb://192.168.1.12/movies5</from>
        <to pathversion="1">smb://My%20Name:[email protected]/movies5/HD/Serie/</to>
    </path>
</passwords>

Is there a way to pass the samba username and password values to the external mpv player ?

Anybody can help me ?

Thank you in advance to everybody.

Nicola
Reply
#2
(2020-01-26, 14:35)nlanfran Wrote: Hello everybody,

I am using Kodi 18.5 under linux mint 19.3 and sharing my files over win 10 samba.

I want to play the files using mpv (0.31.0) that I have recompiled in order to enable samba client.
It is working from a linux shell using: mpv --fs smb://usr:pwd -at- /server/file

I am using playercorefactory.xml with parameters:

<playercorefactory>
  <players>
    <player name="MPV" type="ExternalPlayer" audio="false" video="true">
      <filename>/usr/local/bin/mpv</filename>
      <args>--fs "{1}"</args>
      <hidexbmc>false</hidexbmc>
      <hideconsole>false</hideconsole>
      <warpcursor>none</warpcursor>
    </player>
  </players>
  <rules action="prepend">
    <rule name="AllVideo" video="true" player="MPV"/>
  </rules>
</playercorefactory>


The problem I am having is with passing the samba username and password when kodi launches the external mpv player:

Code:
2020-01-26 12:51:07.413 T:140100589185152  NOTICE: ExternalPlayer Filename: /usr/local/bin/mpv
2020-01-26 12:51:07.413 T:140100589185152 WARNING: ExternalPlayer: invalid value for warpcursor: none
2020-01-26 12:51:07.413 T:140100589185152  NOTICE: ExternalPlayer Tweaks: hideconsole (false), hidexbmc (false), islauncher (false), warpcursor (none)
2020-01-26 12:51:07.414 T:140100589185152  NOTICE: OpenFile: smb://192.168.1.12/movies2/HD/Film/Test.mkv
2020-01-26 12:51:07.414 T:140098273277696  NOTICE: Process: Player : /usr/local/bin/mpv
2020-01-26 12:51:07.414 T:140098273277696  NOTICE: Process: File   : smb://192.168.1.12/movies2/HD/Film/Test.mkv
2020-01-26 12:51:07.414 T:140098273277696  NOTICE: Process: Content:
2020-01-26 12:51:07.414 T:140098273277696  NOTICE: Process: Args   : --fs "{1}"
2020-01-26 12:51:07.414 T:140098273277696  NOTICE: Process: Start
2020-01-26 12:51:07.716 T:140098273277696  NOTICE: ExecuteAppLinux: "/usr/local/bin/mpv" --fs "smb://192.168.1.12/movies2/HD/Film/Test.mkv"
2020-01-26 12:51:08.327 T:140098273277696  NOTICE: ExecuteAppLinux: Failure: 512
2020-01-26 12:51:08.327 T:140098273277696  NOTICE: Process: Stop

my passwords.xml file is the following:

<passwords>    <path>
        <from pathversion="1">smb://192.168.1.12/movies</from>
        <to pathversion="1">smb://My%20Name:[email protected]/movies/HD/</to>
    </path>
    <path>
        <from pathversion="1">smb://192.168.1.12/movies2</from>
        <to pathversion="1">smb://My%20Name:[email protected]/movies2/HD/Serie/</to>
    </path>
    <path>
        <from pathversion="1">smb://192.168.1.12/movies3</from>
        <to pathversion="1">smb://My%20Name:[email protected]/movies3/HD/Serie/</to>
    </path>
    <path>
        <from pathversion="1">smb://192.168.1.12/movies4</from>
        <to pathversion="1">smb://My%20Name:[email protected]/movies4/HD/Serie/</to>
    </path>
    <path>
        <from pathversion="1">smb://192.168.1.12/movies5</from>
        <to pathversion="1">smb://My%20Name:[email protected]/movies5/HD/Serie/</to>
    </path>
</passwords>

Is there a way to pass the samba username and password values to the external mpv player ?

Anybody can help me ?

Thank you in advance to everybody.

Nicola

Anybody any ideas ?
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
mpv player samba username and password00
This forum uses Lukasz Tkacz MyBB addons.