ThomasDr
Posts: 55
Joined: Tue May 20, 2014 2:16 pm

Using the Camera in two Apps simultaneously?

Sat Jul 15, 2017 5:52 pm

Hello,

I want to use the camera with Raspbian and record the stream with raspivid and use Motion (KennethLavrsen/MrDave) simultaneously?

regards
ThomasD

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 8445
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: Using the Camera in two Apps simultaneously?

Sat Jul 15, 2017 7:14 pm

You can't. Almost all cameras only support a single client at a time, and that includes the Pi camera.

I thought motion could record the stream anyway even when there wasn't motion. I'd investigate that route.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

ThomasDr
Posts: 55
Joined: Tue May 20, 2014 2:16 pm

Re: Using the Camera in two Apps simultaneously?

Sat Jul 15, 2017 7:49 pm

Hello,

maybe is there a software with input Rpi-Cam and output 2 virtual video device or raspivid record a file and pipe the frames forward to motion?
Motion can pipe the raw Video to stdin, can raspivid record from stdin?

regards
ThomasD

Return to “Camera board”