maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [M5] [Announce] Fettuccine - A webcam aggregator app (https://talk.maemo.org/showthread.php?t=93403)

handaxe 2015-02-16 11:54

Re: [Announce] Fettuccine - A webcam aggregator app
 
Would be nice if this could read mjpeg format :-)

Copernicus 2015-02-16 15:36

Re: [Announce] Fettuccine - A webcam aggregator app
 
Quote:

Originally Posted by handaxe (Post 1460914)
Would be nice if this could read mjpeg format :-)

Well, back in the old, old days, webcams only provided a single image at a time. :) I suppose I could put in some support for video, though, as I've already got animated gifs supported. Let me take a look... :)

handaxe 2015-05-18 17:03

Re: [Announce] Fettuccine - A webcam aggregator app
 
Quote:

Originally Posted by Copernicus (Post 1460948)
Well, back in the old, old days, webcams only provided a single image at a time. :) I suppose I could put in some support for video, though, as I've already got animated gifs supported. Let me take a look... :)

Bump.... (I feel so guilty doing this:-)

Copernicus 2015-05-18 17:29

Re: [Announce] Fettuccine - A webcam aggregator app
 
Quote:

Originally Posted by handaxe (Post 1470737)
Bump.... (I feel so guilty doing this:-)

Let me take another look. :) (I'm starting to get some real work done again...)

EDIT: BTW, can you give me an example of a webcam you'd like to see supported? A lot of the streaming webcams today aren't actually using mjpeg (and are probably using closed formats that I won't be able to support)...

handaxe 2015-05-18 18:45

Re: [Announce] Fettuccine - A webcam aggregator app
 
Quote:

Originally Posted by Copernicus (Post 1470742)
EDIT: BTW, can you give me an example of a webcam you'd like to see supported? A lot of the streaming webcams today aren't actually using mjpeg (and are probably using closed formats that I won't be able to support)...

I was wanting to access the mjpeg output of motion (a version is compiled for the n900 / fremantle).

But really, this is not essential....

Copernicus 2015-05-18 21:03

Re: [Announce] Fettuccine - A webcam aggregator app
 
Quote:

Originally Posted by handaxe (Post 1470753)
I was wanting to access the mjpeg output of motion (a version is compiled for the n900 / fremantle).

Just a quick FYI: Motion appears to support the ability to work like a classic snapshot webcam, so you may already be able to use it with Fettuccine. But I'll see if I can add mjpeg support as well. :)

handaxe 2015-05-18 21:19

Re: [Announce] Fettuccine - A webcam aggregator app
 
Quote:

Originally Posted by Copernicus (Post 1470793)
Just a quick FYI: Motion appears to support the ability to work like a classic snapshot webcam, so you may already be able to use it with Fettuccine. But I'll see if I can add mjpeg support as well. :)

Indeed it does. And a useful reminder (I now remember why I chose not to go this way).

I have motion producing mjpegs at a fairly high frame-rate so that when I wish, I can use VLC and view near real-time video-style feed. So sampling the mjpegs at a chosen interval would be a good n900 option for me.

Copernicus 2015-05-23 12:53

Re: [Announce] Fettuccine - A webcam aggregator app
 
Ok, version 0.9.4 of Fettuccine is now making its way up to extras-devel. This version provides (initial) support for MJpeg streaming webcams; I've finally picked up some info on how MJpeg works, and have been able to pull images out of the few webcams that I've tested. So far things look good, so I thought I'd go ahead and push up this update, even though I suspect that there may still be varieties of MJpeg webcam that I'm not supporting properly.

Fettuccine does not (yet) have the ability to automagically detect whether a webcam is providing still images or an MJpeg stream; so, I've added a new parameter to the XML format, the "webcamType":

Code:

<webcam
  link="http://76.10.86.11/mjpg/video.mjpg?camera=1"
  webcamType="MJpeg"
  homepage="http://76.10.86.11"
  refreshRate="1">
  <name>Devils Lake, North Dakota</name>
 </webcam>

Right now, the only values supported are "Static" (for still images) or "MJpeg" (for MJpeg streaming). This parameter is optional; if you don't include it in the webcam specification, it will default to "Static".

Also by default, Fettuccine will simply grab the current image from the stream and display it. If you'd like to instead collect a short sequence of images and loop them, there are two more new parameters, "maxImages" and "slideshowDelay":

Code:

<webcam
  link="http://216.8.159.21/mjpg/video.mjpg"
  webcamType="MJpeg"
  maxImages="10"
  slideshowDelay="1"
  homepage="http://216.8.159.21"
  refreshRate="30">
  <name>Detroit - Windsor Tunnel</name>
 </webcam>

As you might expect, the "maxImages" parameter defines how many images to retrieve, and the "slideshowDelay" parameter defines how long to pause (in seconds) between each image as the slideshow is being displayed. New slideshows will be downloaded at the refresh rate.

Enjoy! And please inform me of bugs. :) Thanks.

handaxe 2015-05-24 21:54

Re: [Announce] Fettuccine - A webcam aggregator app
 
This is working for me, with output from motion. Thank you. I will check properly when daylight arrives.

One thing, is there a way to pause the widget - that is to suspend the refreshing until re-enabled?

Copernicus 2015-05-24 22:21

Re: [Announce] Fettuccine - A webcam aggregator app
 
1 Attachment(s)
Quote:

Originally Posted by handaxe (Post 1471437)
One thing, is there a way to pause the widget - that is to suspend the refreshing until re-enabled?

Ah, good question! I should be able to implement something like that without too much trouble. Let me give it a try.

BTW, I should also say that I've been doing some more testing; I originally assumed that I should avoid just displaying the entire stream full-blast, to avoid consuming all network and CPU bandwidth. But, I've been testing an instance of Fettuccine displaying a mjpeg webcam as fast as the data comes in, and the N900 is holding up fine. (It's getting a little warm after over a half hour of constant use, but so far it doesn't seem dangerously hot.) So, here's another question -- is there any value to not displaying a streaming webcam at full speed? :)

(I've gotta admit, it's also quite nice to watch the stream running on the task manager screen; the video libraries I've been using in my other apps use rather ugly tricks to optimize the speed with which they send data to XWindows, which normally break down when you open up the task manager. Fettuccine, on the other hand, is simply redrawing an image over and over again... :) )


All times are GMT. The time now is 10:06.

vBulletin® Version 3.8.8