Project

General

Profile

Actions

Action Item #541

closed

Add Webcam app

Added by Hammel over 8 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Immediate
Assignee:
Category:
04 - Applications
Target version:
Start date:
07 Aug 2016
Due date:
% Done:

100%

Estimated time:
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....

Actions #1

Updated by Hammel about 8 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.

Actions #2

Updated by Hammel about 8 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.

Actions

Also available in: Atom PDF