Skip to content
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

Vector Preview broken #673

Open
emjas92 opened this issue Aug 1, 2022 · 3 comments
Open

Vector Preview broken #673

emjas92 opened this issue Aug 1, 2022 · 3 comments

Comments

@emjas92
Copy link

emjas92 commented Aug 1, 2022

Turning on vector_preview = 1 breaks rpicam (for me at least).

After enabling Vector Preview in the web interface, it shows the error "Error in RaspiMJPEG: Restart RaspiMJPEG or the whole RPi"
Restarting does not fix it.
Turning off vector preview in the web interface does not work (remains turned on) - I have to edit uconfig and do start.sh

Here's the log.

{2022/08/02 09:56:20} Change: vector_preview = 1
{2022/08/02 09:56:20} recommended video buffer size 65536
{2022/08/02 09:56:20} h264 size set to 131072
{2022/08/02 09:56:20} recommended video buffers 1
{2022/08/02 09:56:20} h264 buffers set to recommended 1
{2022/08/02 09:56:20} Error: Could not create connection camera -> video converter
{2022/08/02 09:56:20} Set up internal detect width=82 height=61
{2022/08/02 09:56:20} Motion mask /var/www/rpicam/outdoor.pgm loaded
[2022/08/02 09:56:21] Logged in user::
[2022/08/02 09:56:21] UserLevel 6
{2022/08/02 09:56:32} Watchdog detected problem. Stopping{2022/08/02 09:56:32} SIGINT/SIGTERM received, stopping
{2022/08/02 09:56:32} Error: Could not disable video port
{2022/08/02 09:56:37} RaspiMJPEG Version 5.10.2
{2022/08/02 09:56:38} recommended video buffer size 65536
{2022/08/02 09:56:38} h264 size set to 131072
{2022/08/02 09:56:38} recommended video buffers 1
{2022/08/02 09:56:38} h264 buffers set to recommended 1
{2022/08/02 09:56:38} Error: Could not create connection camera -> video converter
{2022/08/02 09:56:38} Set up internal detect width=82 height=61
{2022/08/02 09:56:38} Motion mask /var/www/rpicam/outdoor.pgm loaded
{2022/08/02 09:56:38} Opening FIFO 0 /var/www/rpicam/FIFO 7
{2022/08/02 09:56:38} Opening FIFO 1 /var/www/rpicam/FIFO11 8
{2022/08/02 09:56:38} MJPEG streaming, ready to receive commands
{2022/08/02 09:56:38} send smd 9
{2022/08/02 09:56:38} Starting command loop
[2022/08/02 09:56:38] Reload parameters command requested
[2022/08/02 09:56:38] Scheduler loop is started
[2022/08/02 09:56:39] New period detected 3
[2022/08/02 09:56:39] Send em auto
{2022/08/02 09:56:39} Change: exposure_mode = auto

This has been happening for a while now, though I don't remember when it started - perhaps it was when I switched from Rasbian to DietPi.
I have tried a fresh install of DietPi + RCWI.
I will try out older verions of RCWI to see if it works in a previous release.

@roberttidey
Copy link
Collaborator

I have just checked latest version of RCWI with Raspbian Bullseye and vector preview works for me.

I have not tried with DietPi. Note that with Bullseye one has to use the leggacy camera support. I don't know what happens with DietPi.

@emjas92
Copy link
Author

emjas92 commented Aug 2, 2022

Thanks for checking.

I have a RPi3 and RPi1 both with DietPi Bullseye, and both have the vector preview issue.
But it's strange that all other RCWI functionality is working, including saving the vectors to the .dat file.

I'm currently troubleshooting my motion detection settings and would be using the vector preview, but am working with the .dat file for now.

@BETLOG
Copy link

BETLOG commented Nov 30, 2023

Broken here too:

  • Normal functioning camera stream.
  • I set Motion Vector Preview to on, and the stream becomes a tiny mask-sized image that displays white motion-vector specks. The image is so small its not practical for determining where the mask needs adjustment.
  • The on/off selector now shows off, despite vectors being on. Selecting off does nothing. Selecting on re-initializes the motion vectors and contracts the previously expanded Motion Settings panel, the selector remains 'Off'.
  • Aside from a reboot; I know of no way to restore the normal camera stream.
  • [edit] Correction, I know of one way: stop and restart the camera using the GUI button, or presumably FIFO.
  • Video recorded by motion detection during this time are normal, except their preview image seems to display what looks like the motion vector preview, or maybe just a very low exposure gain moment as the camera switches.

Hardware pi zero W (not 2W - although I'll test those too if i remember to)

Linux pizerocam3 5.10.103+ #1529 Tue Mar 8 12:19:18 GMT 2022 armv6l GNU/Linux

Raspbian Buster (10)

RPi Cam Control v6.6.13

viewed in Google Chrome
Version 119.0.6045.159 (Official Build) (64-bit)
on Kubuntu 23.10
Linux betlogbeast 6.5.0-13-generic #13-Ubuntu SMP PREEMPT_DYNAMIC Fri Nov 3 12:16:05 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

2023-11-30--12-28-48_betlogbeast_RPiCamControlv6613mycampizerocam3GoogleChrome

2023-11-30--12-34-38_betlogbeast_RPiCamControlv6613mycampizerocam3DownloadGoogleChrome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants