-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Breaking changes #85
Comments
Tested with RPI Cam v3 and still no joy. Good job on the update though! |
This will break proper Obico streaming FYI. They are still dependent on 32bit RPi images due to them using the OMX encoder in FFMPEG plus a 32bit version of Janus. |
Well, then time to switch for Obico ... OMX is not supported anymore in newer images of RaspiOS. |
Yes, Implementation of raspicams is on my todo. My V3 Module arrived today, so only a mater of time ;) |
Hey @KwadFan - just wondering if you had any update on the pi cam v3? Really excited to get it working! Thanks! |
Please headover to https://github.com/roamingthings/spyglass for now. This streamer will find its way also to crowsnest. camera-streamer needs currently some love from ayufan, which is working hard on it, to fully be integrated. Also we have an issue with compiling on older Models of the pi ( due lack of ram and/or compute power) that has to be solved. Hopefully we can get it managed in the next weeks. |
I'm in no rush and happy to wait (although I am excited to get it working). Just curious as to how you guys were getting on! |
Hey there 👋 , today I merged the camera-streamer branch to develop, so feel free to test and report back if any bugs are found, I want to iron them out completly before merging to master. This is BREAKING!!!! uninstall crowsnest completly before testing!!! Will work on documentation, for now you have to use NOTE: Raspicam V1 and OMX support are completly dropped! You need to use the legacy/v3 branch to stay compatible, also this will only work on bullseye images with an 5.15.84 kernel at least! Regards Kwad |
Thanks! Not going to have much time to test this but looking forward to it hitting master! |
Running under Ubuntu 22.04.2 LTS I had to add the focal universe repo to install the sudo add-apt-repository 'deb http://ports.ubuntu.com/ubuntu-ports focal universe' other than that it built fine. In mainsail, I updated the URL Stream value to |
Leaving the URL Stream as the default I'm not sure if this is expected behaviour, but I made a pull request that allows the default Mainsail values to continue working here ayufan/camera-streamer#49 |
Check your v4l2ctl settings. Something changed just the other day and it has affected some of the settings. The setting names changed as well. Mine was doing the same thing till I noticed it. |
Empty for me, the C270 can't be helped with any of the settings, it's just all around poor quality 😂 My issue was just to do with using WebRTC as the service, and leaving the other settings as their defaults. If camera-streamer merges that PR, then it'll work like in the image, otherwise users will have to change the stream URL to |
@benphelps users have to change the url to /webcam/webrtc every time, when they want to use camera-streamer with webrtc. the merge will noch redirect anything of this streamer. |
It just extends the already existing compatibility layer to also handle POST requests to that endpoint. The user would not have to change anything if it's accepted. I'm just saying it doesn't have to be that way, it can work without needing to change the URL every time, and it's a very simple patch to camera-streamer. |
Just to expand a little, |
This is out of my scope. Please head to ayufan/camera-streamer to get that feature. @ayufan would this be possible? |
I already made a pull request to add that (ayufan/camera-streamer#49), I was just updating this thread on the problems I ran into setting up the new branch. |
Good point, could you please share some output? Need some hooks to identify board and distro, then I could do a "workaround" inside the installer...
Regards Kwad |
As a notice. Merged new installer to develop. Things to do are:
Tested install on Debian 11 VM and Raspberrpi OS Lite. Regards Kwad |
I did it test by myself with Ubuntu Server ARM 22.10 and the last version that contains Which in the end leads me to say sorry but there will be no camera-streamer support in Ubuntu ARM, because I dont want to add repositorys from outdated versions to actual versions. Regards Kwad |
|
Yes, but camera-streamer is now also my RTSP Server :) So, hard decision, but somehow I have to ensure its working. |
I could possible compile in |
I bet its because your misconfiguration ...
This is not a valid device path, please see your log for the correct path. |
Hi Kwad, Thanks for the reply. Correcting the device path doesn't fix it. Only commenting out |
More details, with the camera format as YUYV, I get the following in debug logs non stop and no webrtc video:
|
@ayufan Is that something to worry about? |
Dont know why it doesnt work for you, but this is the recommended setup for your cam by camera-streamer And as already said, cant reproduce it, without my V2 Cam does not work properly But instead of commenting out I would suggest using |
Thanks, it works properly if I add |
Bandwidth issue? YUYV requires 2x NV12 BW. What does |
dump_camera.sh output
++ cat /sys/firmware/devicetree/base/model
++ tr -d '\0'
+ echo 'Raspberry Pi 4 Model B Rev 1.5'
Raspberry Pi 4 Model B Rev 1.5
+ uname -a
Linux voron 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux
+ v4l2-ctl --list-devices
v4l2-ctl | bcm2835-codec-decode (platform:bcm2835-codec):
v4l2-ctl | /dev/video10
v4l2-ctl | /dev/video11
v4l2-ctl | /dev/video12
v4l2-ctl | /dev/video18
v4l2-ctl | /dev/video31
v4l2-ctl | /dev/media2
v4l2-ctl |
v4l2-ctl | bcm2835-isp (platform:bcm2835-isp):
v4l2-ctl | /dev/video13
v4l2-ctl | /dev/video14
v4l2-ctl | /dev/video15
v4l2-ctl | /dev/video16
v4l2-ctl | /dev/video20
v4l2-ctl | /dev/video21
v4l2-ctl | /dev/video22
v4l2-ctl | /dev/video23
v4l2-ctl | /dev/media1
v4l2-ctl | /dev/media3
v4l2-ctl |
v4l2-ctl | unicam (platform:fe801000.csi):
v4l2-ctl | /dev/video0
v4l2-ctl | /dev/video1
v4l2-ctl | /dev/media4
v4l2-ctl |
v4l2-ctl | rpivid (platform:rpivid):
v4l2-ctl | /dev/video19
v4l2-ctl | /dev/media0
v4l2-ctl |
+ libcamera-hello --list-cameras
libcamera | Available cameras
libcamera | -----------------
libcamera | 0 : imx219 [3280x2464] (/base/soc/i2c0mux/i2c@1/imx219@10)
libcamera | Modes: 'SRGGB10_CSI2P' : 640x480 [103.33 fps - (1000, 752)/1280x960 crop]
libcamera | 1640x1232 [41.85 fps - (0, 0)/3280x2464 crop]
libcamera | 1920x1080 [47.57 fps - (680, 692)/1920x1080 crop]
libcamera | 3280x2464 [21.19 fps - (0, 0)/3280x2464 crop]
libcamera | 'SRGGB8' : 640x480 [103.33 fps - (1000, 752)/1280x960 crop]
libcamera | 1640x1232 [41.85 fps - (0, 0)/3280x2464 crop]
libcamera | 1920x1080 [47.57 fps - (680, 692)/1920x1080 crop]
libcamera | 3280x2464 [21.19 fps - (0, 0)/3280x2464 crop]
====================================
DEVICE: /dev/video0
====================================
+ v4l2-ctl -d /dev/video0 --info --list-formats-ext --list-fields --list-formats-out --list-fields-out
/dev/video0 | Driver Info:
/dev/video0 | Driver name : unicam
/dev/video0 | Card type : unicam
/dev/video0 | Bus info : platform:fe801000.csi
/dev/video0 | Driver version : 6.1.21
/dev/video0 | Capabilities : 0xa5a00001
/dev/video0 | Video Capture
/dev/video0 | Metadata Capture
/dev/video0 | Read/Write
/dev/video0 | Streaming
/dev/video0 | Extended Pix Format
/dev/video0 | Device Capabilities
/dev/video0 | Device Caps : 0x25200001
/dev/video0 | Video Capture
/dev/video0 | Read/Write
/dev/video0 | Streaming
/dev/video0 | Extended Pix Format
/dev/video0 | Media Driver Info:
/dev/video0 | Driver name : unicam
/dev/video0 | Model : unicam
/dev/video0 | Serial :
/dev/video0 | Bus info : platform:fe801000.csi
/dev/video0 | Media version : 6.1.21
/dev/video0 | Hardware revision: 0x00000000 (0)
/dev/video0 | Driver version : 6.1.21
/dev/video0 | Interface Info:
/dev/video0 | ID : 0x03000006
/dev/video0 | Type : V4L Video
/dev/video0 | Entity Info:
/dev/video0 | ID : 0x00000004 (4)
/dev/video0 | Name : unicam-image
/dev/video0 | Function : V4L2 I/O
/dev/video0 | Flags : default
/dev/video0 | Pad 0x01000005 : 0: Sink
/dev/video0 | Link 0x02000008: from remote pad 0x1000002 of entity 'imx219 10-0010': Data, Enabled, Immutable
/dev/video0 | ioctl: VIDIOC_ENUM_FMT
/dev/video0 | Type: Video Capture
/dev/video0 |
/dev/video0 | [0]: 'YUYV' (YUYV 4:2:2)
/dev/video0 | Size: Stepwise 16x16 - 16376x16376 with step 1/1
/dev/video0 | [1]: 'UYVY' (UYVY 4:2:2)
/dev/video0 | Size: Stepwise 16x16 - 16376x16376 with step 1/1
/dev/video0 | [2]: 'YVYU' (YVYU 4:2:2)
/dev/video0 | Size: Stepwise 16x16 - 16376x16376 with step 1/1
/dev/video0 | [3]: 'VYUY' (VYUY 4:2:2)
/dev/video0 | Size: Stepwise 16x16 - 16376x16376 with step 1/1
/dev/video0 | [4]: 'RGBP' (16-bit RGB 5-6-5)
/dev/video0 | Size: Stepwise 16x16 - 16376x16376 with step 1/1
/dev/video0 | [5]: 'RGBR' (16-bit RGB 5-6-5 BE)
/dev/video0 | Size: Stepwise 16x16 - 16376x16376 with step 1/1
/dev/video0 | [6]: 'RGBO' (16-bit A/XRGB 1-5-5-5)
/dev/video0 | Size: Stepwise 16x16 - 16376x16376 with step 1/1
/dev/video0 | [7]: 'RGBQ' (16-bit A/XRGB 1-5-5-5 BE)
/dev/video0 | Size: Stepwise 16x16 - 16376x16376 with step 1/1
/dev/video0 | [8]: 'RGB3' (24-bit RGB 8-8-8)
/dev/video0 | Size: Stepwise 16x16 - 16376x16376 with step 1/1
/dev/video0 | [9]: 'BGR3' (24-bit BGR 8-8-8)
/dev/video0 | Size: Stepwise 16x16 - 16376x16376 with step 1/1
/dev/video0 | [10]: 'RGB4' (32-bit A/XRGB 8-8-8-8)
/dev/video0 | Size: Stepwise 16x16 - 16376x16376 with step 1/1
/dev/video0 | [11]: 'BA81' (8-bit Bayer BGBG/GRGR)
/dev/video0 | Size: Stepwise 16x16 - 16376x16376 with step 1/1
/dev/video0 | [12]: 'GBRG' (8-bit Bayer GBGB/RGRG)
/dev/video0 | Size: Stepwise 16x16 - 16376x16376 with step 1/1
/dev/video0 | [13]: 'GRBG' (8-bit Bayer GRGR/BGBG)
/dev/video0 | Size: Stepwise 16x16 - 16376x16376 with step 1/1
/dev/video0 | [14]: 'RGGB' (8-bit Bayer RGRG/GBGB)
/dev/video0 | Size: Stepwise 16x16 - 16376x16376 with step 1/1
/dev/video0 | [15]: 'pBAA' (10-bit Bayer BGBG/GRGR Packed)
/dev/video0 | Size: Stepwise 16x16 - 16376x16376 with step 1/1
/dev/video0 | [16]: 'BG10' (10-bit Bayer BGBG/GRGR)
/dev/video0 | Size: Stepwise 16x16 - 16376x16376 with step 1/1
/dev/video0 | [17]: 'pGAA' (10-bit Bayer GBGB/RGRG Packed)
/dev/video0 | Size: Stepwise 16x16 - 16376x16376 with step 1/1
/dev/video0 | [18]: 'GB10' (10-bit Bayer GBGB/RGRG)
/dev/video0 | Size: Stepwise 16x16 - 16376x16376 with step 1/1
/dev/video0 | [19]: 'pgAA' (10-bit Bayer GRGR/BGBG Packed)
/dev/video0 | Size: Stepwise 16x16 - 16376x16376 with step 1/1
/dev/video0 | [20]: 'BA10' (10-bit Bayer GRGR/BGBG)
/dev/video0 | Size: Stepwise 16x16 - 16376x16376 with step 1/1
/dev/video0 | [21]: 'pRAA' (10-bit Bayer RGRG/GBGB Packed)
/dev/video0 | Size: Stepwise 16x16 - 16376x16376 with step 1/1
/dev/video0 | [22]: 'RG10' (10-bit Bayer RGRG/GBGB)
/dev/video0 | Size: Stepwise 16x16 - 16376x16376 with step 1/1
/dev/video0 | [23]: 'pBCC' (12-bit Bayer BGBG/GRGR Packed)
/dev/video0 | Size: Stepwise 16x16 - 16376x16376 with step 1/1
/dev/video0 | [24]: 'BG12' (12-bit Bayer BGBG/GRGR)
/dev/video0 | Size: Stepwise 16x16 - 16376x16376 with step 1/1
/dev/video0 | [25]: 'pGCC' (12-bit Bayer GBGB/RGRG Packed)
/dev/video0 | Size: Stepwise 16x16 - 16376x16376 with step 1/1
/dev/video0 | [26]: 'GB12' (12-bit Bayer GBGB/RGRG)
/dev/video0 | Size: Stepwise 16x16 - 16376x16376 with step 1/1
/dev/video0 | [27]: 'pgCC' (12-bit Bayer GRGR/BGBG Packed)
/dev/video0 | Size: Stepwise 16x16 - 16376x16376 with step 1/1
/dev/video0 | [28]: 'BA12' (12-bit Bayer GRGR/BGBG)
/dev/video0 | Size: Stepwise 16x16 - 16376x16376 with step 1/1
/dev/video0 | [29]: 'pRCC' (12-bit Bayer RGRG/GBGB Packed)
/dev/video0 | Size: Stepwise 16x16 - 16376x16376 with step 1/1
/dev/video0 | [30]: 'RG12' (12-bit Bayer RGRG/GBGB)
/dev/video0 | Size: Stepwise 16x16 - 16376x16376 with step 1/1
/dev/video0 | [31]: 'pBEE' (14-bit Bayer BGBG/GRGR Packed)
/dev/video0 | Size: Stepwise 16x16 - 16376x16376 with step 1/1
/dev/video0 | [32]: 'BG14' (14-bit Bayer BGBG/GRGR)
/dev/video0 | Size: Stepwise 16x16 - 16376x16376 with step 1/1
/dev/video0 | [33]: 'pGEE' (14-bit Bayer GBGB/RGRG Packed)
/dev/video0 | Size: Stepwise 16x16 - 16376x16376 with step 1/1
/dev/video0 | [34]: 'GB14' (14-bit Bayer GBGB/RGRG)
/dev/video0 | Size: Stepwise 16x16 - 16376x16376 with step 1/1
/dev/video0 | [35]: 'pgEE' (14-bit Bayer GRGR/BGBG Packed)
/dev/video0 | Size: Stepwise 16x16 - 16376x16376 with step 1/1
/dev/video0 | [36]: 'GR14' (14-bit Bayer GRGR/BGBG)
/dev/video0 | Size: Stepwise 16x16 - 16376x16376 with step 1/1
/dev/video0 | [37]: 'pREE' (14-bit Bayer RGRG/GBGB Packed)
/dev/video0 | Size: Stepwise 16x16 - 16376x16376 with step 1/1
/dev/video0 | [38]: 'RG14' (14-bit Bayer RGRG/GBGB)
/dev/video0 | Size: Stepwise 16x16 - 16376x16376 with step 1/1
/dev/video0 | [39]: 'GREY' (8-bit Greyscale)
/dev/video0 | Size: Stepwise 16x16 - 16376x16376 with step 1/1
/dev/video0 | [40]: 'Y10P' (10-bit Greyscale (MIPI Packed))
/dev/video0 | Size: Stepwise 16x16 - 16376x16376 with step 1/1
/dev/video0 | [41]: 'Y10 ' (10-bit Greyscale)
/dev/video0 | Size: Stepwise 16x16 - 16376x16376 with step 1/1
/dev/video0 | [42]: 'Y12P' (12-bit Greyscale (MIPI Packed))
/dev/video0 | Size: Stepwise 16x16 - 16376x16376 with step 1/1
/dev/video0 | [43]: 'Y12 ' (12-bit Greyscale)
/dev/video0 | Size: Stepwise 16x16 - 16376x16376 with step 1/1
/dev/video0 | [44]: 'Y14P' (14-bit Greyscale (MIPI Packed))
/dev/video0 | Size: Stepwise 16x16 - 16376x16376 with step 1/1
/dev/video0 | [45]: 'Y14 ' (14-bit Greyscale)
/dev/video0 | Size: Stepwise 16x16 - 16376x16376 with step 1/1
/dev/video0 | Supported Video Fields:
/dev/video0 | None
/dev/video0 | Top
/dev/video0 | Bottom
/dev/video0 | Interlaced
/dev/video0 | Sequential Top-Bottom
/dev/video0 | Sequential Bottom-Top
/dev/video0 | Alternating
/dev/video0 | Interlaced Top-Bottom
/dev/video0 | Interlaced Bottom-Top
/dev/video0 | ioctl: VIDIOC_ENUM_FMT
/dev/video0 | Type: Video Output
/dev/video0 |
|
Hmm. I don't know. Maybe we should apply default to be So, maybe memory usage is problem in your case? What is in |
I have gpu_mem set to 256. The pi is a 8GB model. |
Also I forgot to mention my installation is 64 bits. |
Nah. Impossible. Interesting. Can you try |
YUV420 works. What is impossible? |
I dont mind to change, based on your recommendation @ayufan |
Also @ayufan why does the video output automatically gets configured to 1437x1080 when the h264 encode should be able to handle more than that?
|
The |
I thought it would be useful for ppl with old raspi cams #112 (comment) @KwadFan thanks a lot - my old v1 raspberri pi camera (and Pi itself is also quite old - v2 B) works again on a new stack.
|
Will update the docs, and use your setup as example, if that is ok. |
HI Also locking for the camera in system seems ok bcm2835-isp (platform:bcm2835-isp): unicam (platform:fe801000.csi): rpivid (platform:rpivid): AND HERE THE long DEBUG LOG: |
Try /base/soc/i2c0mux/i2c@1/imx708@1a as a device and use "mode: camera-streamer " |
Sure! This one below is better from CPU utilization (Again RPi v2 B). With the one below ~10% CPU load when watching camera, and if 2592x1944 - it is easely goes up to 30%.
Also as a pre-check has to work correctly
I do not update Rasp OS due to the fact it bricks my setup but I also use these settings in /boot/config.txt (not sure if everything absolutely necessary but it works)
|
WOW IT WORKS had tried /base/soc/i2c0mux/i2c@1/imx708@1 before BUT with ustreamer. MANY THX Weeks of waiting and finally success. Super Job !! |
I cannot get my picam working after the update. [crowsnest]
log_path: /home/pi/printer_data/logs/crowsnest.log
log_level: verbose # Valid Options are quiet/verbose/debug
delete_log: false # Deletes log on every restart, if set to true
no_proxy: false
[cam pi]
mode: camera-streamer
enable_rtsp: false
rtsp_port: 8554
port: 8080
device: /base/soc/i2c0mux/i2c@1/imx219@10
resolution: 1640x1232
max_fps: 15
[cam angry]
mode: camera-streamer
port: 8081
device: /dev/v4l/by-id/usb-Sonix_Technology_Co.__Ltd._USB_2.0_1080P_Camera_SN0001-video-index0
resolution: 1600x1200
max_fps: 15
v4l2ctl: focus_automatic_continuous=0,focus_absolute=30
|
Experiencing the same as @thetic on
also libcamera-still fails. USB Cam on the same setup works fine. /boot/config.txt was edited as described in crowsnest FAQ: anyone else struggling with this setup or can find a mistake from myself? |
Hello! How do I go about changing the default? I am trying the enable the full resolution of my RPi HQ camera (4056x3040@10fps) and not having much luck. I tried adding "--camera-snapshot.height=3040" as a flag but nothing. Everything works without it of course but it seems the resolutions gets limited despite "resolution: 4056x3040". I could get the full resolution when running OctoPrint + Klipper.
Here is the log:
Any help is really appreciated. I need those sexy timelapses! Thanks! |
What happened
Hey there,
I am currently working on the switch to camera-streamer as default backend Raspberry Pi SBC.
What does that mean for future releases?
If you want to stay with Version 3 please change branch to
legacy/v3
this is a snapshot of currentmaster
branch.Please be aware that this branch will not recieve updates in future. It is only for those who need backwards compatibility
Stay tuned....
Regards Kwad
What did you expect to happen
Breaking things
How to reproduce
We will see how to reproduce ;)
Additional information
No response
The text was updated successfully, but these errors were encountered: