Code: Select all
# Rename the binary in the system service file
sudo sed -i "s/\/usr\/local\/bin\/h264_v4l2_rtspserver/\/usr\/local\/bin\/v4l2rtspserver/g" /home/pi/RaspberryIPCamera/DefaultConfigFiles/RTSP-Server.service
# Put system service file for RTSP server into place
sudo cp /home/pi/RaspberryIPCamera/DefaultConfigFiles/RTSP-Server.service /etc/systemd/system/RTSP-Server.service
I am using this project on a Raspberry Zero with a WiFi dongle. What could be different with a Zero W with a built-in WiFi?Scale wrote:Any change that we get a version that supports the Pi Zero W built-in wifi?
Just to be sure i did a clean install, it looks like it doesn't even boot.ithieme wrote:I am using this project on a Raspberry Zero with a WiFi dongle. What could be different with a Zero W with a built-in WiFi?Scale wrote:Any change that we get a version that supports the Pi Zero W built-in wifi?
Now I can confirm that it is also working with the Raspberry PI Zero W. I used the SD card from my regular Zero (with WiFi dongle) and put it into the new Zero W and it worked without any changes.Scale wrote:Any change that we get a version that supports the Pi Zero W built-in wifi?
At the end after going through all lines (including your correction above) of the installation.sh I keep getting this as part of the boot process:ithieme wrote:I rebuilt the project on my own and recognised a problem with the RTSP server in the current version. The binary seems to be renamed from h264_v4l2_rtspserver to v4l2rtspserver.
That change can be processed as follows:The second command is from Ronny's original installation.sh and should help you to know where to insert it. After that change everything worked fine again.Code: Select all
# Rename the binary in the system service file sudo sed -i "s/\/usr\/local\/bin\/h264_v4l2_rtspserver/\/usr\/local\/bin\/v4l2rtspserver/g" /home/pi/RaspberryIPCamera/DefaultConfigFiles/RTSP-Server.service # Put system service file for RTSP server into place sudo cp /home/pi/RaspberryIPCamera/DefaultConfigFiles/RTSP-Server.service /etc/systemd/system/RTSP-Server.service
Code: Select all
Failed to start/load random seed.
[...]
Failed to start the PHP Fast CGI Process Manager (See 'systemctl status php5-fpm.service for details)
[...]
Failed to start A high performance web server and a reverse proxy server. (See 'systemctl status nginx.service' for details)
The biggest difference between your installation an mine is that I stopped at line 128 of Ronny's installation script. Because that is the point where everything should work. The rest is just optimisation.RafalPi wrote:I am a beginner and likely in too deep water at the moment. Any advice on what went wrong?
I use a SanDisk 16GB, RaspberryPiZeroW and the original camera module.
I have also tried the same procedure on Pi3 with the same result.
What am I doing wrong? Is there anyone who could try and follow the installation.sh as it is and let me know what is wrong?
I have been trying various things for a week now without success
The last line let me guess that is has something to do with the changes that have been made by lines 161 to 165 of Ronny's installation script. I haven't done these things as I explained before. Maybe I should continue to find out what the reason of your problem is.RafalPi wrote:Code: Select all
[email protected]:~ $ systemctl status php5-fpm.service ● php5-fpm.service - The PHP FastCGI Process Manager Loaded: loaded (/lib/systemd/system/php5-fpm.service; enabled) Active: failed (Result: exit-code) since Thu 1970-01-01 00:00:26 UTC; 47 years 1 months ago Process: 604 ExecStartPre=/bin/chgrp www-data /tmp/phpsessions (code=exited, status=1/FAILURE)
Got it! The change which has been made by line 163 of Ronny's script doesn't work. If you already ran that command then do the following. It will replace the wrongly inserted line 8 in /lib/systemd/system/php5-fpm.service.ithieme wrote:Maybe I should continue to find out what the reason of your problem is.
Code: Select all
sudo mount -o remount rw /
sudo sed -i "8c\ExecStartPre=/bin/bash -c 'if [ ! -d \"/tmp/phpsessions\" ]; then /bin/mkdir /tmp/phpsessions; fi'" /lib/systemd/system/php5-fpm.service
Code: Select all
sudo sed -i "8i\ExecStartPre=/bin/bash -c 'if [ ! -d \"/tmp/phpsessions\" ]; then /bin/mkdir /tmp/phpsessions; fi'" /lib/systemd/system/php5-fpm.service
Code: Select all
sudo mount -o remount rw /
sudo sed -i "20c\ExecStartPre=/bin/bash -c 'if [ ! -d \"/var/log/nginx\" ]; then /bin/mkdir /var/log/nginx; fi'" /lib/systemd/system/nginx.service
Code: Select all
sudo sed -i "20i\ExecStartPre=/bin/bash -c 'if [ ! -d \"/var/log/nginx\" ]; then /bin/mkdir /var/log/nginx; fi'" /lib/systemd/system/nginx.service
I ended up with everything working apart from the RTSP stream getting out. I will have to repeat this tomorrow I'm afraid.# Rename the binary in the system service file
sudo sed -i "s/\/usr\/local\/bin\/h264_v4l2_rtspserver/\/usr\/local\/bin\/v4l2rtspserver/g" /home/pi/RaspberryIPCamera/DefaultConfigFiles/RTSP-Server.service
Why? You just need to run this command and reboot. It will change the wrong value on your raspberry. It doesn't matter at which position of the procedure that happens. But don't forget to remount the image rw before you do it.RafalPi wrote:I will have to repeat this tomorrow I'm afraid.
I was wrong. To change the value directly on your raspberry you have to do thisithieme wrote:Why? You just need to run this command and reboot. It will change the wrong value on your raspberry. It doesn't matter at which position of the procedure that happens. But don't forget to remount the image rw before you do it.RafalPi wrote:I will have to repeat this tomorrow I'm afraid.
Code: Select all
sudo mount -o remount rw /
sudo sed -i "s/\/usr\/local\/bin\/h264_v4l2_rtspserver/\/usr\/local\/bin\/v4l2rtspserver/g" /etc/systemd/system/RTSP-Server.service
Thanks Ithieme,ithieme wrote: I was wrong. To change the value directly on your raspberry you have to do thisCode: Select all
sudo mount -o remount rw / sudo sed -i "s/\/usr\/local\/bin\/h264_v4l2_rtspserver/\/usr\/local\/bin\/v4l2rtspserver/g" /etc/systemd/system/RTSP-Server.service
You should be able to get it also with the optimisation part. Unfortunately there is no easy way to install ffmpeg because there is no package for it. I have no experiences in that but as i read on a few pages you can compile it yourself on your raspberry.TheWaterbug wrote:If I skip all the optimization steps, should I then be able to get and install ffmpeg?
Sounds like an interesting project. You have to try whether the raspberry is performant enough to do both.TheWaterbug wrote:I want to push the RTSP to my YouTube channel directly from the Pi instead of sending through an intermediate computer.
Can you explain it a bit more detailed? Shall it be a live stream or do you just want to record videos from the RTSP stream and send them automatically to youtube?TheWaterbug wrote:Even better would be if I could do it directly from the RTSP server without using ffmpeg (my ffmpeg command uses -copy for both a and v, so it's just re-transmitting), but I don't know how to do that
Nice to hear that. Tomorrow I will check whether I have the same problem with my surveillance station or not. I tried it only once with the ready made image on a raspberry 2.RafalPi wrote:Everything works now. Regardless of the error I posted above where Surveillance Station does not know how to pull camera settings. The Camera setup goes further in the end and everything seems to be working well.
Ok. I'll have to try this, probably using this guide.ithieme wrote:You should be able to get it also with the optimisation part. Unfortunately there is no easy way to install ffmpeg because there is no package for it. I have no experiences in that but as i read on a few pages you can compile it yourself on your raspberry.TheWaterbug wrote:If I skip all the optimization steps, should I then be able to get and install ffmpeg?
The project is a live BeeCam*. I don't need any recording capabilities, at least not in the camera. If there's any recording to be done, I'm happy to let YouTube handle it.Sounds like an interesting project. You have to try whether the raspberry is performant enough to do both.TheWaterbug wrote:I want to push the RTSP to my YouTube channel directly from the Pi instead of sending through an intermediate computer.
Can you explain it a bit more detailed? Shall it be a live stream or do you just want to record videos from the RTSP stream and send them automatically to youtube?TheWaterbug wrote:Even better would be if I could do it directly from the RTSP server without using ffmpeg (my ffmpeg command uses -copy for both a and v, so it's just re-transmitting), but I don't know how to do that
What version do your PiCam report? I saw this in the diff report:RafalPi wrote:Everything works now. Regardless of the error I posted above where Surveillance Station does not know how to pull camera settings. The Camera setup goes further in the end and everything seems to be working well.
Code: Select all
-SoftwareVersion = "v1.6 Beta"
+SoftwareVersion = "v1.8 Beta"
Do you have the bandwidth slider? That was one of the main (and the most visible) features that he said he added in 1.7.RafalPi wrote:I built mine from version 1.7 but it still reported as: SoftwareVersion v1.6.
I've not seen version v1.8 yet at that point. I need to check it out.
Cannot see a bandwidth slider anywhere.Do you have the bandwidth slider? That was one of the main (and the most visible) features that he said he added in 1.7.
Code: Select all
wget -O /home/pi/RaspberryIPCamera.zip https://github.com/ronnyvdbr/RaspberryIPCamera/archive/v1.7-beta.zip
I see the same files as you, but I noticed this in one of the change logs (though I can't remember which one!):RafalPi wrote:Cannot see a bandwidth slider anywhere.Do you have the bandwidth slider? That was one of the main (and the most visible) features that he said he added in 1.7.
Where have you noticed version 1.8?
I can only see v1.7 here http://ronnyvdbr.github.io/RaspberryIPCamera/
and there is not any more recent updates on github https://github.com/ronnyvdbr/RaspberryIPCamera
And installation.sh still points to version 1.7:Code: Select all
wget -O /home/pi/RaspberryIPCamera.zip https://github.com/ronnyvdbr/RaspberryIPCamera/archive/v1.7-beta.zip
Code: Select all
-SoftwareVersion = "v1.6 Beta"
+SoftwareVersion = "v1.8 Beta"
Yesterday I downloaded version 1.6 Beta. Tested sucessfully on Pi3 and PiZ thru ethernet. Could not establish thru Wifi. Moved SD-card to PiZW which didn't boot at all ? I have scanned thru all postings on this topic and for a nonprogrammer like me, I honestly dont have knowledge enough to dare dig into the code...Scale wrote:Any change that we get a version that supports the Pi Zero W built-in wifi?