HOW-TO stream a WebCam to XBMC

  Thread Rating:
  • 2 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
x23piracy Offline
Senior Member
Posts: 159
Joined: Feb 2011
Reputation: 0
Location: Germany
Post: #21
Hi,

has someone an idea howto just really stream the cam if someone uses the stream?
It's bad to have the cpu on 20-30% usage also if no one uses the stream.

Is there any possibility for WME to do so?

And yes this solution allready works, simply its just the stream to setup up, xmbc
can play playlist with whatever since years...


Greetz X23
find quote
lihov Offline
Junior Member
Posts: 1
Joined: Oct 2010
Reputation: 0
Post: #22
Any body have successful experience in streaming video from axis ip camera to XBMC?
find quote
sketchysunday Offline
Junior Member
Posts: 1
Joined: Sep 2011
Reputation: 0
Post: #23
This might help those trying to view streams from webcams / IP cameras. Most often they are MJPG. Create a .strm file and put the URL of the stream in it, then XBMC can play the stream. I have noticed you need to put a .mjpg extension for it to work.

I'm using mjpg-streamer on Ubuntu to stream mjpeg from a webcam over the network. It's accessible by Firefox, VLC and XBMC. The problem with mjpg-streamer is that the stream URL is

Code:
http://192.168.0.2:8080/?action=stream

XBMC doesn't understand this URL. In order not to mess with the parameters passed to MJPG-streamer's HTTP server, I added &ext=.mjpg at the end of the URL.

Code:
http://192.168.0.2:8080/?action=stream&ext=.mjpg

This URL in a file with extension .strm can be viewed by XBMC. I'm assuming ext can be renamed to whatever you want since the parameters between & and = don't matter in this case.
(This post was last modified: 2011-09-17 19:17 by sketchysunday.)
find quote
Cy3lic Offline
Junior Member
Posts: 1
Joined: Oct 2011
Reputation: 0
Star  Axis IP Cameras - direct streaming - XBMC Post: #24
lihov Wrote:Any body have successful experience in streaming video from axis ip camera to XBMC?

XBMC support the Real time streaming protocol rtsp://

The Axis cameras can deliver that.

Simply create a .strm file wich is simply a text file.

Containing the following:

rtsp://user:password@Camera-IP:554/mpeg4/media.amp

The text file has to be renamed to become a .strm file

the simplest way to do this is to put the text file in the root directory C:\

Lets call the file axis.strm.txt

Example:

in the command prompt type:

C:\>ren axis.strm.txt axis.strm

Move the file onto the XBMC or in a shared network location.

Now you will be able to get a stream directly from the camera providing that they are on the same network segment.

Enjoy
(This post was last modified: 2011-10-26 18:40 by Cy3lic.)
find quote
Post Reply