-
-
Notifications
You must be signed in to change notification settings - Fork 78
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
Runnig on /run/shm #171
Comments
Hello @furkanbalikci, sorry for not replying to the previous issue. If /run/shm does not exist in your filesystem, you can just create a symbolic link with |
Thank you for your attention. If I can handle the fps problem, a huge load will be lifted from my shoulders. I have a few questions right now, I hope this will help us to make new inferences.
When I examine the speedup parts here in the source code, I see that it is related to PTS. Does this mean that it is causing fps drops as it tries to match the audio with the video? Is there anything I can do to improve this? |
@furkanbalikci It seems that picam is not keeping up with 30 fps for some reason. Are you running a desktop on your Pi? Running a GUI may affect performance. Please turn it off with Is |
I am not using destkop version. Here, output of
I am using Pi with ssh. |
@furkanbalikci That folder structure is incorrect and RAM disk is not used. Please run the following commands to correct the sudo rm -rf /dev/shm/*
sudo rm -rf /run/shm
sudo ln -s /dev/shm /run/shm Do not append |
If you can confirm that the GUI (graphical login screen) is not running, you don't have to reboot it. |
I tried your recommended steps but now both folders are empty. |
@furkanbalikci Run |
After this my full output is bellow. It's not a smooth video. FPS dropping I can catch easily.
maybe I should reinstall everything then additionally use just What do you think about this topic:
|
From the picam output log, I think the write speed of the SD card is too slow. Please use a faster SD card. |
I am using now samsung evo plus micro sd card 256gb. What would you suggest instead of this. |
I'm using a Toshiba Exceria series. I can't guarantee that it will work in your case. My result is
|
My result is
Can you explain this? |
I think that write speed is good enough. |
|
The arguments that may affect performance are |
Can you send to me link of your SD card? |
Hi again @iizukanao, What hardware specs (rpi, camera, mic) and command line arguments are you using in picam? |
@furkanbalikci I'm using pi 4B (4GB) + camera module v2 + microphone listed here. |
Hello again @iizukanao my fps problem still going on. When I read your usage guide again I saw your suggestion "You can take advantage of RAM drive
(/run/shm/)
and reduce access to SD card. It also provides better quality of recording." When I googled the folder name, I saw that this path is now used as/dev/shm/
. You can check it too if you want. Anyway, what I did was to write/dev/shm/
instead of/run/shm/
in themake_dirs.sh
file. Then I copied thepicam-1.4.11-binary/picam
file into/run/shm/
and I think I can use the advantage of ram. Am I missing something in these steps? Or do you have any other suggestions to use it more effectively? If it helps, I can share the stutters with the fps drops with you.The text was updated successfully, but these errors were encountered: