I've had a play with my H264 and a video4linux loopback device. It works, but the CPU usage of the v4l2loopback device is about 14% CPU on a core duo 2 server...Not ideal by any means..

Roman, have you tried the scenario with live555 and if so would you share your experiences and possibly a quick overview of how to get it going?

Hopefully motion will support H264 in the future as a lot of cameras are coming out with this instead of MJPEG.

Cheers,

Ben

 On 23/04/2013 7:41 PM, Roman Gaufman wrote:
Unfortunately motion doesn't support RTSP or H264. The piping to a v4l loopback device method should work (can anyone confirm?) but it is not a very optimal one.

You have to decode to h264 and then you re-create the video with Motion, so h264 -> vlookback -> motion -> h264 -- it would be much nicer if you could keep the original h264 without having to re-encode.

One possible solution for this is to use the live555 RTSP Proxy: http://www.live555.com/liveMedia/ -- it allows opening the RTSP stream multiple times without having multiple connections to the camera. Then you can have motion trigger some custom script to start saving H264 straight from the camera. This would mean you lose the pre-capture though.


On 23 April 2013 08:45, Ben Kilah <ben@xtramedia.net> wrote:
Hey Roland,

I don't have that exact camera but I have a wireless IP Camera that supports RTSP streaming, going to test it out over the next couple of days.. well let you know how I go... There was another message on the list from ages ago where a very helpful user posted the following command to initialize the RTSP feed with a loopback device.

"One working variant (I'm using it for more than 1 month without problems):

use v4l2loopback , to create /dev/video1.

then with follow cmd, feed it with content from you rtps net camera:

/usr/bin/gst-launch-0.10 rtspsrc location=rtsp://IP_OF_CAMERA:554 ! decodebin ! v4l2sink device=/dev/video1

(you need gst-plugins-bad, and gst-plugins-ffmpeg)

then describe /dev/video1 as videodevice in motion.conf, and restart
motion."


Hope that helps :)
# Ben Kilah
# Web Developer
# Xtramedia.Net
On 23/04/2013 4:10 PM, Roland Pinches wrote:
Hi Ben,

Most recent firmware for that camera was released a few days ago and promised RTSP support, but I can't get VLC on linux to work with it :(

In fact I can't get it to work with linux at all, even though linux is supposedly supported. For example, there is a Firefox plugin, to allow streaming video through a browser, but the plugin doesn't work with Firefox on linux.

Fortunately, they're releasing new firmware quite often, so I can only hope linux support is coming...

I'm curious to know how you get on with RTSP and a loopback device.

Good luck!
Roland.
 
On 04/23/2013 02:43 PM, Ben Kilah wrote:
I'm interested in the same thing.

The only thing I'm going to try is using and RTSP feed back to a video4linux loopback device.
# Ben Kilah
# Web Developer
# Xtramedia.Net
On 23/04/2013 11:35 AM, rolypoly@ihug.co.nz wrote:
Hello,

I've been using motion for quite a while now with an MJPEG camera from 
Foscam (specifically an FI8905W) and it works really well.
Recently I bought another Foscam camera, this time an FI9802W which can 
produce 720p video. It can also supply a standard MJPEG stream but not 
in 720p.

Can motion deal with h.264 video streams? I can't see anything, but 
that probably means I'm just not looking hard enough! It would be nice 
to have 720p video instead of 640x480 if possible.

Anyone else using the Foscam FI9802W?

Many thanks,
Roland.

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Motion-user mailing list
Motion-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/motion-user
http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome




------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter


_______________________________________________
Motion-user mailing list
Motion-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/motion-user
http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome



------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr


------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
Motion-user mailing list
Motion-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/motion-user
http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome




------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr


_______________________________________________
Motion-user mailing list
Motion-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/motion-user
http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome