External player mplayer for /dev/video0
#1
Hi,

i want to add an external player for playing a usb-webcam on top of KODI. Unfortunately, the device-file /dev/video0 isn't recognized as playable video file in the file list. Therefore i also can't choose the "Play with" option in the contextmenu. Any ideas?

My playercorefactory.xml is looking like this:
Code:
<playercorefactory>
<players>
   <player name="RearcamPlayer" type="ExternalPlayer" audio="false" video="true">
     <filename>/usr/bin/mplayer</filename>
     <args>tv:// -tv driver=v4l2:width=800:height=600:device={1} -nosound -framedrop -vo fbdev2</args>
     <hidexbmc>true</hidexbmc>
   </player>
</players>
<rules action="prepend">
   <rule filename="/dev/video*" player="RearcamPlayer"/>
</rules>
</playercorefactory>

Crosspost on german forum kodinerds.net
Reply
#2
you cannot directly open /dev/videox, however you can use a strm file.

create a file with the extension .strm and a single line with the device in it;

in my test: webcam.strm
Code:
/dev/video0

plus i removed the fbdev vo.

now play webcam.strm in kodi.
Reply

Logout Mark Read Team Forum Stats Members Help
External player mplayer for /dev/video00