pendente
Posts: 5
Joined: Sat Aug 17, 2019 2:06 am

Re: RPi Cam Web Interface

Sat Oct 12, 2019 11:57 pm

ras07 wrote:
Fri Oct 11, 2019 5:36 am
pendente wrote:
Thu Oct 10, 2019 12:06 pm
ras07 wrote:
Thu Oct 10, 2019 1:03 am
I'd recommend starting off with shell scripts rather than Python. If you are using the built-in motion capture system, you can then use the end_box macro (in the System settings) to do whatever post-processing you want. See https://elinux.org/RPi-Cam-Web-Interface#Job_Macros for more details.
Thank you for the answer.

What i'm trying do is:
I want to send a telegrama command /film that execute this script to make a small filme, copy the file to a new and regular name that i can in the next phase send it to me.r
You should be able to do that in one line in macros/end_box.sh:

Code: Select all

cp $1 /var/www/html/video.mp4
Thanks a lot! It did help and it works!

By the way about the Pipe, when i sendo the command ca 1, next i should put the time in seconds bit i didn't still get it to work.

Should be something like

Code: Select all

ca 1 t 15
?

Or

Code: Select all

ca 1 15
?

hknight
Posts: 5
Joined: Sun Jun 23, 2019 5:01 pm

RPi Cam Web Interface: Embedding the preview mjpeg stream in HTML page

Sun Oct 13, 2019 8:25 am

Hi Forum,
I am trying to embedd the mjpeg stream from the live preview in a webpage hosted locally on a raspberry-pi (call it pi#1). The RPCWI software is running on a separate pi (call it pi#2). I also have UV4L running on a third pi (call it pi#3). The HTML code I tried was as follows...

Code: Select all

<img style="-webkit-user-select: none;" src="http://192.168.1.190:8081/cam_pic_new.php">
This shows the embedded video from pi#2 live streaming in the webpage hosted by pi#1 over my LAN to multiple devices
However, if I try....

Code: Select all

	<img style="-webkit-user-select: none;" src="http://rydepier.com:8081/cam_pic_new.php">
so that I can see the stream on devices outside my LAN no video is displayed.

This works for a stream from pi#3 running UV4L.....

Code: Select all

<img style="-webkit-user-select: none;" src="http://rydepier.com:8080/stream/mjpeg">
I have opened port 8081 for pi#2 running RPCWI and configured RPCWI to use this. This is functioning correctly, hence I can see the stream locally.
Both pi#1 and pi#2 are running Apache2
The domain name for my webpages is 'rydepier.com' and pi#1 is running HTTPS securely.

I am a senior tinkerer with this but trying to learn so please forgive any simple mistakes I have made.
Any advice on this set-up is greatly appreciated.
Heath.

Return to “Camera board”