on a device that can boot the card, provided it's in read-write state.sudo rpi-update
on a device that can boot the card, provided it's in read-write state.sudo rpi-update
Thanks! I re-ran installation.sh (minus the read-only and optimization steps) and applied these fixes, and now it's working. That's the good news.ithieme wrote: The binary seems to be renamed from h264_v4l2_rtspserver to v4l2rtspserver. That change can be processed as follows: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.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
Btw, line 161 has to be changed the same way. If you already ran that command then ...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 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
<div class="form-group">
<label class="control-label col-sm-4" for="bitrate">Streaming Bitrate:</label>
<div class="col-sm-5">
<input name="bitrate" type="range" class="form-control" id="bitrate" form="frm-camerasettings" max="17000000" min="100000" step="100000" <?php echo "value=" . intval($camerasettings['bitrate']);?> oninput="bitratenum.value=Math.round(bitrate.value/1000);">
</div>
<div class="col-sm-2">
<output name="bitratenum" id="bitratenum" for="bitrate"><?php echo intval($camerasettings['bitrate']/1000) ;?> Kb/s</output>
</div>
I have tried all four download sites to download image v1.7. All however report as v1.6 Beta. I have tried image on Pi3, Pi2 and PiZ on ethernet, all work fine. Reading thru topic posts I do get the impression also Wifi should work. However, when selecting enable Wifi Configuration it seems the Authors SSID/passwrd are fixed into the code.calleblyh wrote: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?
I have v1.6 Beta on my SD-card. It runs on RPi0 via ethernet, change to Wifi doesn't work. The same SD-card doesNOT boot on RPi0W. How did you get it to boot on your Zero W?Masuri wrote:I just installed everything on a Zero W and I can confirm that it works with one change that ithieme posted.
You only need to remount the partition as read-write again and change the name of the executable for the v4l2rtspserver.
I never tried Ronny's ready made image on my Raspberry Pi Zero but it definitely doesn't work with the Zero W. Obviously the Raspbian version that Ronny used for his image is still not prepared for the new Zero W.calleblyh wrote:I have v1.6 Beta on my SD-card. It runs on RPi0 via ethernet, change to Wifi doesn't work. The same SD-card doesNOT boot on RPi0W. How did you get it to boot on your Zero W?
calleblyh
Why should the Pi not be usable for other projects afterwards? What other projects do you have in mind? It uses the original OS and a bit of the Pi's performance. The only thing you have to be aware of is the read-only state of the partition. But if you install everything on you own then you decide whether to do it or skip it.pi-in-the-sky wrote:How do I install this and leave the Pi usable for other projects?
It works! I finally got ffmpeg compiled on my Pi3, so I scp'ed an mp3 over and ran:ithieme wrote: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
Code: Select all
top - 10:56:41 up 17:58, 2 users, load average: 0.20, 0.14, 0.08
Tasks: 124 total, 1 running, 123 sleeping, 0 stopped, 0 zombie
%Cpu(s): 1.6 us, 1.6 sy, 0.0 ni, 96.6 id, 0.0 wa, 0.0 hi, 0.2 si, 0.0 st
KiB Mem: 882772 total, 851356 used, 31416 free, 3804 buffers
KiB Swap: 0 total, 0 used, 0 free. 653592 cached Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
12389 pi 20 0 57380 22756 10048 S 5.8 2.6 0:29.59 ffmpeg
12466 pi 20 0 7400 3940 3440 R 3.9 0.4 0:00.99 top
675 pi 20 0 18816 5188 4664 S 1.9 0.6 10:49.08 v4l2rtspserver
291 root rt 0 139056 133012 14560 S 1.3 15.1 12:01.05 uv4l
6145 root 20 0 0 0 0 S 0.6 0.0 0:12.03 kworker/2:2
1 root 20 0 23880 4044 2792 S 0.0 0.5 0:06.99 systemd
Have you already done what your log has been advised? These detailes could be more helpful.DerDON wrote:Any help appreciated!
DerDON
Code: Select all
See 'systemctl status systemd-random-seed.service' for details.
See 'systemctl status uv4l_raspicam.service' for details.
See 'systemctl status hciuart.service' for details.
UV4L has been supporting this in many ways since years now and can be installed on the Pi Zero as well. You can access the strems from Windows/Linux/Tablets/phones, etc...typxxi wrote: I found simliar solutions mostly streaming to 1 dedicted ip adress and with linux clients but they were not so usefull if you have a phone and tablet.
Thid solution is nearly latency free compared to all the motion and whatever things. Installation is easy, app works also with the raspnerry hostname instead of ip adress.
Only missing point: no windows 10 solution
Code: Select all
Jul 24 02:24:27 PiCam uv4l_raspicam[3445]: <warning> [driver] Invalid height: max. for the specified encoding is 1080
Jul 24 02:24:27 PiCam uv4l_raspicam[3445]: <notice> [driver] Selected format: 1920x1080, encoding: h264, H264 Video Compression
Jul 24 02:24:27 PiCam uv4l_raspicam[3445]: <notice> [driver] Framerate max. 15 fps
Jul 24 02:24:27 PiCam uv4l_raspicam[3445]: <notice> [driver] ROI: 0, 0, 1, 1
Jul 24 02:24:27 PiCam uv4l_raspicam[3445]: <info> [driver] RAW data will be included in the JPEG captures
Jul 24 02:24:27 PiCam uv4l_raspicam[3445]: <notice> [driver] H264 costant bitrate: 17000000
Jul 24 02:24:27 PiCam uv4l_raspicam[3445]: <notice> [core] Device detected!
Jul 24 02:24:27 PiCam uv4l_raspicam[3445]: <warning> [core] Cannot create /dev/video0 because file already exists
Jul 24 02:24:27 PiCam systemd[1]: Started LSB: Userspace Camera Driver.
Jul 24 02:24:28 PiCam uv4l_raspicam[3445]: <notice> [core] Registering device node /dev/video1
Code: Select all
Jul 24 02:24:24 PiCam v4l2rtspserver[3433]: 2017-07-24 02:24:24,578 [NOTICE] - /home/pi/v4l2rtspserver/inc/ALSACapture.h:64
Jul 24 02:24:24 PiCam v4l2rtspserver[3433]: Open ALSA device: "default"
Jul 24 02:24:24 PiCam v4l2rtspserver[3433]: 2017-07-24 02:24:24,580 [NOTICE] - /home/pi/v4l2rtspserver/src/V4l2DeviceSource.cpp:93
Jul 24 02:24:24 PiCam v4l2rtspserver[3433]: begin thread
Jul 24 02:24:24 PiCam v4l2rtspserver[3433]: 2017-07-24 02:24:24,690 [ERROR ] - /home/pi/v4l2rtspserver/inc/ALSACapture.h:71
Jul 24 02:24:24 PiCam v4l2rtspserver[3433]: cannot open audio device: default error:No such file or directory
Jul 24 02:24:24 PiCam v4l2rtspserver[3433]: 2017-07-24 02:24:24,697 [NOTICE] - /home/pi/v4l2rtspserver/inc/ALSACapture.h:120
Jul 24 02:24:24 PiCam v4l2rtspserver[3433]: ALSA device: "default" buffer_size:0 period_size:0 rate:44100
Jul 24 02:24:24 PiCam v4l2rtspserver[3433]: 2017-07-24 02:24:24,698 [NOTICE] - /home/pi/v4l2rtspserver/src/main.cpp:148
Jul 24 02:24:24 PiCam v4l2rtspserver[3433]: Play this stream using the URL "rtsp://192.168.2.5:8554/"
Code: Select all
Jul 24 15:35:37 raspberrypi systemd[1]: Started RTSP-Server.
Jul 24 15:35:37 raspberrypi v4l2rtspserver[785]: 2017-07-24 15:35:37,771 [NOTICE] - /home/pi/v4l2rtspserver/src/main.cpp:352
Jul 24 15:35:37 raspberrypi v4l2rtspserver[785]: Create V4L2 Source.../dev/video0
Jul 24 15:35:37 raspberrypi v4l2rtspserver[785]: VIDIOC_STREAMOFF: Bad file descriptor
Jul 24 15:35:37 raspberrypi v4l2rtspserver[785]: VIDIOC_REQBUFS: Bad file descriptor
Code: Select all
Jul 24 15:36:16 raspberrypi v4l2rtspserver[861]: 2017-07-24 15:36:16,661 [NOTICE] - src/V4l2Device.cpp:199
Jul 24 15:36:16 raspberrypi v4l2rtspserver[861]: nbBuffer:1
Jul 24 15:36:16 raspberrypi v4l2rtspserver[861]: 2017-07-24 15:36:16,701 [NOTICE] - src/V4l2MmapDevice.cpp:70
Jul 24 15:36:16 raspberrypi v4l2rtspserver[861]: Device /dev/video0 nb buffer:10
Jul 24 15:36:17 raspberrypi v4l2rtspserver[861]: 2017-07-24 15:36:17,169 [NOTICE] - /home/pi/v4l2rtspserver/src/main.cpp:371
Jul 24 15:36:17 raspberrypi v4l2rtspserver[861]: Create Source .../dev/video0
Jul 24 15:36:17 raspberrypi v4l2rtspserver[861]: 2017-07-24 15:36:17,173 [NOTICE] - /home/pi/v4l2rtspserver/src/V4l2DeviceSource.cpp:93
Jul 24 15:36:17 raspberrypi v4l2rtspserver[861]: begin thread
Jul 24 15:36:17 raspberrypi v4l2rtspserver[861]: 2017-07-24 15:36:17,179 [NOTICE] - /home/pi/v4l2rtspserver/src/main.cpp:136
Jul 24 15:36:17 raspberrypi v4l2rtspserver[861]: Play this stream using the URL "rtsp://[MY-IP-ADDRESS]:8554/"
Code: Select all
/usr/local/bin/v4l2rtspserver -Q 3 -u ''
That's why I had to add width, height and frame rate manually because it only had 640x480 apart from my settings in uv4l_raspicam.conf. Going well with:V4L2 capture using current capture format (-W,-H,-F are ignored).
Code: Select all
/usr/local/bin/v4l2rtspserver -Q 3 -u '' -W 1920 -H 1080 -F 15
Code: Select all
git clone https://github.com/mpromonet/v4l2rtspserver.git
sudo apt-get install -y libasound2-dev liblog4cpp5-dev
cd v4l2rtspserver
Code: Select all
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
V4L2WRAPPER_LIBRARY
linked by target "v4l2rtspserver" in directory /home/pi/v4l2rtspserver
Code: Select all
git clone https://github.com/mpromonet/v4l2rtspserver.git
sudo apt-get install -y libasound2-dev liblog4cpp5-dev
cd v4l2rtspserver
Code: Select all
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
V4L2WRAPPER_LIBRARY
linked by target "v4l2rtspserver" in directory /home/pi/v4l2rtspserver