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

ERROR: *** unrecognised option '--libav-format' *** #71

Closed
tourbino opened this issue Mar 3, 2024 · 5 comments
Closed

ERROR: *** unrecognised option '--libav-format' *** #71

tourbino opened this issue Mar 3, 2024 · 5 comments

Comments

@tourbino
Copy link

tourbino commented Mar 3, 2024

I'm trying to run raspiCam on a rpi 4b with HQ cam. When starting node.js I get the following:

~/raspiCam`` $ sudo node server.js
[server] version 2.1.0
[server] starting services...
[control] starting Stream ...
[process] libcamera-vid --nopreview --width 1280 --height 720 --framerate 25 --bitrate 6000000 --codec H264 --libav-format h264 --timeout 0 --inline --output -
[button] onoff library not found...
To enable GPIO support please install the onoff library and restart raspiCam. 'npm install onoff'
 Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'onoff' imported from /home/pi/raspiCam/server.js
ERROR: *** unrecognised option '--libav-format' ***
[server] server listening on 8000 

I've read that the --libav format is from the full/desktop version of Raspberry Pi OS. What can be done about this? The server runs fine, but only gives me a small black box for output. MPJEG stream only returns a white window with no content.

@Lillifee
Copy link
Owner

Lillifee commented Mar 3, 2024

Hey @tourbino

strange, i have also a pi4 with hq and lite os. did you update your raspberry pi to the latest version?

sudo apt update
sudo apt upgrade

I added some libav settings recently to support the pi5.

@tourbino
Copy link
Author

tourbino commented Mar 3, 2024

Strange. Yes, I started a fresh 64bit fresh lite install and updated and upgraded everything.

@tourbino
Copy link
Author

tourbino commented Mar 3, 2024

Btw - when I use libcamera-still I get a proper image.

@Lillifee
Copy link
Owner

Lillifee commented Mar 4, 2024

Hey @tourbino,

I'm going to try installing a fresh 64-bit version the next days and give it a go.
Also, I've made a new release where you can now set the libav format to none. Since this is necessary for the PI5, I'm keeping the default h264 for now. Hopefully, they'll standardize the arguments across libcamera for pi4, pi5, lite, etc. If not, I'll have to add presets for different platforms and hardware :(

image

Could you please test if the new release, with the libav format set to none, works for you?
https://github.com/Lillifee/raspiCam/releases/tag/v2.1.2

@tourbino
Copy link
Author

tourbino commented Mar 4, 2024

Thank you very much! I tried the new version, and now it works when I select the "none" format. Still the same error message in console though. You have made a great tool, thank you again.

@tourbino tourbino closed this as completed Mar 4, 2024
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

2 participants