Forum

Full Version: viewing a "motion" webcam stream
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have a webcam running "motion", which outputs a mjpeg stream at about 1fps. Not super fast.

I'd like to view this stream on Xbian. Others have tried to use different webcams and have purportedly had success with something like this:

1) create a .strm text file
2) enter the IP address of the stream, something like this:
http://192.168.1.3:5225/?action=stream&ext=.mjpg
or
rtsp://192.168.2.22:7081/videostream.amp

The closest one I've been able to get is the "http://..." method. But it doesn't work quite right. XBMC seems to try to buffer or collect many frames of the mjpeg stream, then play them back really fast (maybe at 60 fps). The result is I see a still image of the webcam for about a minute, then all of a sudden I see several seconds of very fast time elapsed video of the webcam stream, then another minute of the still image.

I've tried a few other xbmc settings like:
<buffermode>3</buffermode>
<overide><fpsmin>

but these didn't seem to have any effect.

Any way to get XBMC to display the mjpeg as they are downloaded? Is there a neat add-on that works? My efforts so far haven't gotten me far.
I don't know very much about streams and such however, I had a weird issue with my foscam 8918 like what you report - a bunch of high speed frames, then a pause.

Here's what I use and it works perfectly.

[playlist]
NumberOfEntries=1
File1=http://MYWEBCAMIPADDRESS/videostream.asf?user=MYUSERNAME&pwd=MYPASSWORD
Title1=IP Camera

I've got this saved as a .pls file on my NAS computer.


Hope that gets you somewhereSmile
(31st Dec, 2013 04:23 AM)burgertime Wrote: [ -> ]I had a weird issue with my foscam 8918 like what you report - a bunch of high speed frames, then a pause.

Here's what I use and it works perfectly.

[playlist]
NumberOfEntries=1
File1=http://MYWEBCAMIPADDRESS/videostream.asf?user=MYUSERNAME&pwd=MYPASSWORD
Title1=IP Camera

I've got this saved as a .pls file on my NAS computer.

Hope that gets you somewhereSmile

I have a foscam also. The .strm method and the pls method both work with the foscam. It's specifically with the "motion" mjpegs that I've had issues with. It's weird, as far as I know they both put out mjpeg streams, so you'd think if it works on one it should work on the other. Thanks though.
Your best solution would be to post the output of the stream somewhere, so that other users can run it on their Xbian machines and see what they get.

How are you trying to view it? Via Add Source?

If so can you post the output of xbmc.log an dmesg.
Reference URL's