running external player
#1
Hi there and welcome to the forum!

I tried to play a stream from an usb webcam using an external player description. i added this to my ~/.kodi/system/playercorefactory.xml file:

Code:

<playercorefactory>
<players>
   <player name="RearcamPlayer" type="ExternalPlayer" audio="false" video="true">
     <filename>/usr/bin/mplayer</filename>
     <args>-nosound tv:// -tv driver=v4l2:norm=NTSC:width=720:height=576:device=/dev/video0:input=0</args>
     <hidexbmc>true</hidexbmc>
   </player>
 </players>
 <rules name="prepend">
   <rule name="test" filename="*webcam*" player="RearcamPlayer"/>
 </rules>
</playercorefactory>

and a simple file with this content:
Code:

/dev/video0
(which should be useless, since i do not parse its content)

but nothing happens. error is as follows:
Code:

01:05:09 T:1947602944  NOTICE: DVDPlayer: Opening: /home/pi/Videos/webcam.avi
01:05:09 T:1947602944 WARNING: CDVDMessageQueue(player):Tongueut MSGQ_NOT_INITIALIZED
01:05:09 T:1827918768  NOTICE: Thread DVDPlayer start, auto delete: false
01:05:09 T:1827918768  NOTICE: Creating InputStream
01:05:09 T:1827918768  NOTICE: Creating Demuxer
01:05:09 T:1827918768   ERROR: Open - Error, could not open file /home/pi/Videos/webcam.avi
01:05:09 T:1827918768   ERROR: OpenDemuxStream - Error creating demuxer
01:05:09 T:1827918768  NOTICE: CDVDPlayer::OnExit()
01:05:09 T:1947602944   ERROR: Playlist Player: skipping unplayable item: 0, path [/home/pi/Videos/webcam.avi]
01:05:09 T:1827918768  NOTICE: Thread BackgroundLoader start, auto delete: false
01:05:09 T:1947602944  NOTICE: CDVDPlayer::CloseFile()
01:05:09 T:1947602944  NOTICE: DVDPlayer: waiting for threads to exit
01:05:09 T:1947602944  NOTICE: DVDPlayer: finished waiting
01:05:09 T:1947602944  NOTICE: CDVDPlayer::CloseFile()
01:05:09 T:1947602944  NOTICE: DVDPlayer: waiting for threads to exit
01:05:09 T:1947602944  NOTICE: DVDPlayer: finished waiting

this is really frustrating. i tried a lot (avconv to stream the webcam, failing due to limited avconv functionality with v4l2 camera input selection), building my own add-on, minimizing kodi with RPC and json, ... the stream shows up by simply calling the mplayer command if kodi is not running, but closing and restarting kodi is not an option in my eyes. another thing could be to start a PVR backend, but this is also overkill, since i'm running everything on an Raspberry pi...

are here some hints for me? it could be that tricky just to view an usb-grabber output...

thank you very much, andieh
Reply
#2
Well, according to this you cannot use external player on Raspberry:

https://forum.kodi.tv/showthread.php?tid...pid2594064
Reply
#3
(2017-12-13, 11:39)Arsis50 Wrote: Well, according to this you cannot use external player on Raspberry:

https://forum.kodi.tv/showthread.php?tid...pid2594064
Hi Arsis,
frustrating! But nevertheless not really a satisfying response, why it is not working....
Reply

Logout Mark Read Team Forum Stats Members Help
running external player0