tag:blogger.com,1999:blog-2870713865752955687.post7526461394189410618..comments2023-11-22T02:08:10.217-08:00Comments on Hey Stephen Wood: Shinobi on the Raspberry Pi 3 B+Stephen Woodhttp://www.blogger.com/profile/04334788719882624757noreply@blogger.comBlogger27125tag:blogger.com,1999:blog-2870713865752955687.post-68958407678872145432021-02-05T12:35:40.872-08:002021-02-05T12:35:40.872-08:00I don't see any reason why that might be an is...I don't see any reason why that might be an issue.Stephen Woodhttps://www.blogger.com/profile/04334788719882624757noreply@blogger.comtag:blogger.com,1999:blog-2870713865752955687.post-67079772384882774372021-01-26T22:25:10.452-08:002021-01-26T22:25:10.452-08:00Hi stephen, would it be advisable to use poe hat? ...Hi stephen, would it be advisable to use poe hat? It would simplify the installation greatlyAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-2870713865752955687.post-20699199785263527862020-12-08T10:51:05.330-08:002020-12-08T10:51:05.330-08:00@S4NDR1, I am having a very similar experience to ...@S4NDR1, I am having a very similar experience to you. Can you describe how you "rolled ffmpeg back to ffmpeg-3.2.15"? I have this running on a pi3 with motion detection but without hardware decoding. CPU utilization is approximately 80% so it is usable, but I was hoping that using hardware would reduce it further. I tried 4.1.6 from raspbian repos and compiled git and 3.2.15 builds of ffmpeg and they all seem to break when trying to do motion detection with hardware decoding. Is there one pre-compiled for raspbian buster that you are using? If so, could you share where you found it?<br /><br />@Paul I tried the guide you posted when compiling the various releases of ffmpeg. Based on your CPU utilization at 3%, I suspect that you are not using motion detection? Mine reduces to 1-2% without motion detection whether I select hardware or software decoding.<br /><br />I wonder if the issue is one of the compiled options instead of the version of ffmpeg. Could someone with a version that functions with hardware decoding and motion detection post their output of:<br />ffmpeg -version<br /><br />Mine with the raspbian buster build outputs:<br />ffmpeg version 4.1.6-1~deb10u1+rpt1 Copyright (c) 2000-2020 the FFmpeg developers<br />built with gcc 8 (Raspbian 8.3.0-6+rpi1)<br />configuration: --prefix=/usr --extra-version='1~deb10u1+rpt1' --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-omx-rpi --enable-mmal --enable-neon --enable-rpi --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared --libdir=/usr/lib/arm-linux-gnueabihf --cpu=arm1176jzf-s --arch=arm<br />libavutil 56. 22.100 / 56. 22.100<br />libavcodec 58. 35.100 / 58. 35.100<br />libavformat 58. 20.100 / 58. 20.100<br />libavdevice 58. 5.100 / 58. 5.100<br />libavfilter 7. 40.101 / 7. 40.101<br />libavresample 4. 0. 0 / 4. 0. 0<br />libswscale 5. 3.100 / 5. 3.100<br />libswresample 3. 3.100 / 3. 3.100<br />libpostproc 55. 3.100 / 55. 3.100Knappsterhttps://www.blogger.com/profile/10444127761404736646noreply@blogger.comtag:blogger.com,1999:blog-2870713865752955687.post-60439673837669711622020-12-01T17:56:02.627-08:002020-12-01T17:56:02.627-08:00First, thank you for the response, I read further ...First, thank you for the response, I read further that you aren't using the Pi platform any longer so I appreciate it!<br /><br />I got it to work. The Shinobi platform is slick, but very sensitive. Trying to slice an older-style JPEG stream was giving it problems. <br /><br />Ultimately, I got it to work by creating a monitor type of MJPEG (vs JPEG), keeping the frame rate very low (like 2), and here's what I think really did it, taking down the probe inspection time and size to a small number like 50,000 each.<br /><br />This is on a Pi 4 Mod B btw and it works great and supports the overclocking hints as well.<br /><br />Thanks again for your response.David Eisnerhttps://www.blogger.com/profile/15732700582382353690noreply@blogger.comtag:blogger.com,1999:blog-2870713865752955687.post-75402774523785595092020-12-01T16:47:07.704-08:002020-12-01T16:47:07.704-08:00What do the logs say when there's a crash? The...What do the logs say when there's a crash? The only thing that sticks out to me are the "+igndts" flags. Are those defaults?Stephen Woodhttps://www.blogger.com/profile/04334788719882624757noreply@blogger.comtag:blogger.com,1999:blog-2870713865752955687.post-11289879614396035022020-11-29T12:22:46.470-08:002020-11-29T12:22:46.470-08:00Stephen, could use your expert opinion. I'm ru...Stephen, could use your expert opinion. I'm running Shinobi on a Pi 4B with Ubuntu 20.10. All is configured correctly.<br /><br />Can't seem to get a basic MJPEG stream to work though.<br /><br />Here's my URI: http://admin:00000000@192.168.0.141/cgi-bin/net_jpeg.cgi?ch=0. This is an RTSP aware stream from a DVR.<br /><br />I get a single still frame in Shinobi and the stream keeps crashing. Probe works fine though. Here's a short snapshot of the log messaging:<br /><br />Process Started3 minutes ago<br />cmd : -progress pipe:5 -r 2 -analyzeduration 100 -probesize 100 -fflags +igndts -loglevel warning -re -reconnect 1 -f mjpeg -i "http://192.168.0.141/cgi-bin/net_jpeg.cgi?ch=0" -strict -2 -an -q:v 15 -vf "fps=2" -an -c:v mjpeg -f image2pipe pipe:1<br /><br />Should work I think but it won't.<br /><br />I was thinking about some of your previous posts about GPU RAM and perhaps FFMPEG options.. maybe something I could try.<br /><br />Thank you for your time!<br /><br />DavidDavid Eisnerhttps://www.blogger.com/profile/15732700582382353690noreply@blogger.comtag:blogger.com,1999:blog-2870713865752955687.post-13225193387592027682020-10-19T15:25:19.465-07:002020-10-19T15:25:19.465-07:00Have a Rpi4 4GB running rasbian buster 32bit, 1.1g...Have a Rpi4 4GB running rasbian buster 32bit, 1.1gb O/S<br />have had tried lots of 64bit O/S,No joy just yet pi4 needs a software update from the foundation apparently??..Early days with this Soc.<br />I Purged my Shinobi FFmpeg install rebooted & Used this FFmpeg compile install @ PimpmyLifeup here;<br />https://tinyurl.com/yyltqvj9 ..By Emmet<br /> I now have hardware encoding for stream & recording running @ ~3% Cpu ..very happy as using software on 64Bit o/s was ~80% Took about 40min to compile the ffmpeg. I will be backing this system up as it took all day searching to get this Shinobi to work, now have Omx -Omx-rpi H264-Mmal & OpenMax-IL-H.264 amoungst everything else FFmpeg has.. Hope this helps others with this issue, Thanks Mr Wood been lurking since Rpi 2Paulhttps://www.blogger.com/profile/13030493428173546518noreply@blogger.comtag:blogger.com,1999:blog-2870713865752955687.post-66462560012824012062020-09-27T04:09:41.105-07:002020-09-27T04:09:41.105-07:00[RESOLVED]
Thanks very much for replying Stephen....[RESOLVED]<br /><br />Thanks very much for replying Stephen. I rolled ffmpeg back to ffmpeg-3.2.15 and it started working straight away! :)<br /><br /><br />S4NDR1https://www.blogger.com/profile/16518365283576829096noreply@blogger.comtag:blogger.com,1999:blog-2870713865752955687.post-42908050542685983772020-09-09T14:28:32.866-07:002020-09-09T14:28:32.866-07:00Hi S4NDR1. It's possible something has changed...Hi S4NDR1. It's possible something has changed in the versions of ffmpeg. When I wrote the guide ffmpeg was at 3.2.10, now I see it's at 4.1.6. My guess is that it has something to do with your compiled version. Sorry I can't help further as I'm not longer using my Pi for shinobi. Good luck.Stephen Woodhttps://www.blogger.com/profile/04334788719882624757noreply@blogger.comtag:blogger.com,1999:blog-2870713865752955687.post-31772496092987292332020-08-26T03:25:54.133-07:002020-08-26T03:25:54.133-07:00Hi Stephen,
After spending about 40 hours, I'm...Hi Stephen,<br />After spending about 40 hours, I'm still unable to get hardware accelerated decoding in conjunction with motion detection working on the raspberry pi. Here's what I believe I've established:<br />The static ffmpeg builds do not contain the h264_mmal decoder (maybe it's changed since your build), which is required if using the H.264 (Raspberry Pi) video input decoder from the drop down menu in Shinobi.<br /><br />Therefore, I've compiled (many versions/times) ffmpeg, successfully using:<br />configure --enable-mmal --enable-omx --enable-omx-rpi --enable-gpl --enable-version3 --extra-ldflags=-latomic --enable-libx264<br />I can successfully decode the steam and view the camera in Shinobi (yay, halfway there)<br /><br />As soon as I enable motion detection, ffmpeg crashes because it doesn't recognize the '-tune zerolatency' command. Forums suggest that this is because the command is not supported by the stream type. I've tried stripping this command out of the Shinobi library files, but the rabbit hole just gets deeper as I then receive 'No device available for decoder: device type vaapi needed for codec h264_mmal'.<br /><br />I've even bought a new Hikvision camera to try and standardize my setup, but just not having any luck. <br /><br />You appear to be one of the few people who have managed to get this working, and I would appreciate any help you're able to give.<br /><br /><br />With thanks,<br />S4NDR1S4NDR1https://www.blogger.com/profile/16518365283576829096noreply@blogger.comtag:blogger.com,1999:blog-2870713865752955687.post-82990579830414113982020-08-14T16:48:15.464-07:002020-08-14T16:48:15.464-07:00Check the logs and let me know if you see anything...Check the logs and let me know if you see anything strange.Stephen Woodhttps://www.blogger.com/profile/04334788719882624757noreply@blogger.comtag:blogger.com,1999:blog-2870713865752955687.post-29655092280111680892020-08-14T16:47:26.415-07:002020-08-14T16:47:26.415-07:00Base Raspbian image is what I use.Base Raspbian image is what I use.Stephen Woodhttps://www.blogger.com/profile/04334788719882624757noreply@blogger.comtag:blogger.com,1999:blog-2870713865752955687.post-32131363953605457022020-08-14T16:46:56.321-07:002020-08-14T16:46:56.321-07:00There's nothing different you need to do to ru...There's nothing different you need to do to run this on a raspberry pi 4.Stephen Woodhttps://www.blogger.com/profile/04334788719882624757noreply@blogger.comtag:blogger.com,1999:blog-2870713865752955687.post-3562538447154828762020-08-12T13:57:01.070-07:002020-08-12T13:57:01.070-07:00I'm not sure if there's anything you can d...I'm not sure if there's anything you can do to adjust the delay.Stephen Woodhttps://www.blogger.com/profile/04334788719882624757noreply@blogger.comtag:blogger.com,1999:blog-2870713865752955687.post-4889486676080800972020-08-12T13:56:26.457-07:002020-08-12T13:56:26.457-07:00This should work just fine on a RPI4 though I have...This should work just fine on a RPI4 though I haven't tested it myself.Stephen Woodhttps://www.blogger.com/profile/04334788719882624757noreply@blogger.comtag:blogger.com,1999:blog-2870713865752955687.post-48784676687015663752020-08-12T13:55:59.288-07:002020-08-12T13:55:59.288-07:00I use the standard rasbian image.I use the standard rasbian image.Stephen Woodhttps://www.blogger.com/profile/04334788719882624757noreply@blogger.comtag:blogger.com,1999:blog-2870713865752955687.post-90436790452754000212019-12-11T01:03:51.269-08:002019-12-11T01:03:51.269-08:00Thanks for the guide. Enjoyed reading Thanks for the guide. Enjoyed reading Thomashttp://www.nakivo.com/vmware-backup/noreply@blogger.comtag:blogger.com,1999:blog-2870713865752955687.post-8775008447662357392019-11-27T01:47:03.109-08:002019-11-27T01:47:03.109-08:00so a little out of scope but similar ... i have a ...so a little out of scope but similar ... i have a pi 0w in my garage and an e5 2660v3 box on floor of apt. i just got gpu passthrough working to let an nvidia 1050ti handle encode decode/ offload but neither before or after can i get shinobi to take anything but mjpg from pi... ive tried the uv4l and picam driver and the built in server for uv4l and vlc stream... i can get the stream in all of the above through vlc... both on laptop and ubuntu on virtual guest but geting it into shinobi has yet to happen with h.264, any ideas? i know it works in general becasuse mjpg and an elp cam that does h.264 works so the issue apears to be how the pi lacks encapsulation of the stream and or how to tell the pvr how to deal with thatJohn Wuethrichhttps://www.blogger.com/profile/07509953511159279888noreply@blogger.comtag:blogger.com,1999:blog-2870713865752955687.post-4119473737468593932019-11-26T07:04:18.976-08:002019-11-26T07:04:18.976-08:00Hi , i read your post in the raspberry community ,...Hi , i read your post in the raspberry community , is it possible to install this software in a Raspberry Pi4?Martinez Itzayanahttps://www.blogger.com/profile/04000118515152164123noreply@blogger.comtag:blogger.com,1999:blog-2870713865752955687.post-19331170096931633882019-09-16T20:22:47.197-07:002019-09-16T20:22:47.197-07:00Hello, I am using Raspberry Pi 4B, os is Hypriotos...Hello, I am using Raspberry Pi 4B, os is Hypriotos. <br />Follow your setup with one 1080P camera<br />CPU usage is under 20%, But Camera display screen (onvif) will delay about 2~3 seconds.<br />I don't want to change camera to low resolution.<br />How to fix this issue??<br />Thank you.cckohttps://www.blogger.com/profile/12734388891237113711noreply@blogger.comtag:blogger.com,1999:blog-2870713865752955687.post-19645079419524020742019-07-01T02:16:35.300-07:002019-07-01T02:16:35.300-07:00Don't suppose you have got a RP 4, and tried t...Don't suppose you have got a RP 4, and tried this on there? Would love to move away from my old Pentium box to a RP server?Supporthttps://www.blogger.com/profile/10345913554159301201noreply@blogger.comtag:blogger.com,1999:blog-2870713865752955687.post-33468641095418639862019-06-14T03:15:50.032-07:002019-06-14T03:15:50.032-07:00Thanks for make post about this. my family just go...Thanks for make post about this. my family just got robbed in house and me want to make cctv system and this post help me :D thanksRicky Setiawanhttps://t.me/eisenhaus335noreply@blogger.comtag:blogger.com,1999:blog-2870713865752955687.post-55341775042556179392019-04-27T21:25:27.500-07:002019-04-27T21:25:27.500-07:00thank you! Helped me through putting together a se...thank you! Helped me through putting together a setup myself.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2870713865752955687.post-42879328460692694262019-02-06T04:37:38.066-08:002019-02-06T04:37:38.066-08:00Hi Stephen, thank you for your detailed explanatio...Hi Stephen, thank you for your detailed explanation. May I ask what linux distro do you recommend? Davehttps://www.blogger.com/profile/01839507951800291038noreply@blogger.comtag:blogger.com,1999:blog-2870713865752955687.post-79654613261201804672018-12-27T02:41:17.693-08:002018-12-27T02:41:17.693-08:00Hi what dist do you use
Ubuntu core ?
or raspbian ...Hi what dist do you use<br />Ubuntu core ?<br />or raspbian ?Andreashttps://www.blogger.com/profile/05174183565928771216noreply@blogger.com