Action Item #541

Add Webcam app

Added by Hammel 11 months ago. Updated 10 months ago.

Status:ClosedStart date:07 Aug 2016
Priority:ImmediateDue date:
Assignee:Hammel% Done:

100%

Category:04 - Applications
Target version:0.11.0
Severity:01 - Critical

Description

Turns out this is easy to run. Just start the wecam (as is done with the web-based player) and then run:

omxplayer 'http://localhost:9090/?action=stream

Playback smoother than on the web interface but there is a bit of jumpiness. And it eventually locks up.

Might play better with the raspicam that's on order....

Associated revisions

Revision 65d18419
Added by Hammel 10 months ago

RM #541: Initial import of picam application.

Revision 39e8703d
Added by Hammel 10 months ago

RM #541: Switch from -r to -b for omxplayer arg because the latter seems to muck up the HDMI display when the app exits.

Revision befd7df9
Added by Hammel 10 months ago

RM #541: Add libuuid to build, required for webcam message to piboxd.

Revision 82a14121
Added by Hammel 10 months ago

RM #541: Allow setting URL to connect to in the config file. Makes it easier to test.

Revision 3cb20ba5
Added by Hammel 10 months ago

RM #541: Don't stat() the "filename" since that's actually a URL.

Revision 9322b3f0
Added by Hammel 10 months ago

RM #541: Send messages to piboxd to start and stop webcam.

Revision a01ed457
Added by Hammel 10 months ago

RM #541: Added generic piboxd message function. This is temporary - it should move into libpibox for general app use.

History

#1 Updated by Hammel 10 months ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 30

Wrote the front end, but it's missing the startup of mjpeg-streamer. I need to add the call to piboxd (like in the web interface) to have mjpeg-streamer started before I try to connect to the stream. Probably needs a short pause or some mechanism to sync/validate the mjpeg-streamer server is running.

The web interface sends the command from this code: piboxwww/src/piboxwww/php/webcam.php:webcam(). The protocol is specified here: http://www.graphics-muse.org/wiki/pmwiki.php/RaspberryPi/MessageFlow.

I need to send an MT_STREAM, MA_START to initialize the process. Then send MT_STREAM, MA_END to stop it.

#2 Updated by Hammel 10 months ago

  • Status changed from In Progress to Closed
  • % Done changed from 30 to 100

Done. The webcam can now play on the console. There is an app icon for it in the launcher. The code also carries a generic messaging function to piboxd. This function should eventually be migrated to libpibox.

Tested on hardware via package installation. Code committed and pushed.

Closing issue.

Also available in: Atom PDF