Action Item #541
Add Webcam app
Status: | Closed | Start date: | 07 Aug 2016 | |
---|---|---|---|---|
Priority: | Immediate | Due date: | ||
Assignee: | % 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
RM #541: Initial import of picam application.
RM #541: Switch from -r to -b for omxplayer arg because the latter seems to muck up the HDMI display when the app exits.
RM #541: Add libuuid to build, required for webcam message to piboxd.
RM #541: Allow setting URL to connect to in the config file. Makes it easier to test.
RM #541: Don't stat() the "filename" since that's actually a URL.
RM #541: Send messages to piboxd to start and stop webcam.
RM #541: Added generic piboxd message function. This is temporary - it should move into libpibox for general app use.
History
#1
Updated by Hammel over 4 years 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 over 4 years 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.