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

gpu_mem setting in /boot/config.txt #15

Closed
rezrov opened this issue Nov 22, 2020 · 2 comments
Closed

gpu_mem setting in /boot/config.txt #15

rezrov opened this issue Nov 22, 2020 · 2 comments

Comments

@rezrov
Copy link
Contributor

rezrov commented Nov 22, 2020

I had a chance to run the script (RTSP, compiling FFMPEG) on a freshly installed and updated Pi 3B+ and it ran like a champ, no errors. It took about an hour.

The service failed to start however, because I did not have enough memory assigned to the gpu for the camera I'm using. Bumping up the memory in /boot/config.txt fixed the issue.

[all]
gpu_mem=256

This might be outside the scope of your script, but the error messages I encountered gave no indication that gpu memory was the problem so it took some digging to figure it out. Perhaps a note about this in the README might save some people some time.

Thanks for your work on this project.

@cdgriffith
Copy link
Owner

Good point, I addressed that in the article but never linked / talked about here.

Adding error message here in case someone googling / searching stumbles across this.

If at any point you receive the error ioctl(VIDIOC_STREAMON) failure : 1, Operation not permitted, go into raspi-config and up the video memory (memory split) to 256 and reboot.

cdgriffith added a commit that referenced this issue Dec 6, 2020
* Fixing #12 Add option to set the bitrate (thanks to Bas Huisman)
* Fixing #16 Need python 3.6 (thanks to clavay)
* Fixing #15 gpu_mem setting in /boot/config.txt (thanks to Ron Fritz)
@cdgriffith
Copy link
Owner

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