waveform80 / picamera

A pure Python interface to the Raspberry Pi camera module
https://picamera.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
1.56k stars 358 forks source link

No such file or directory #723

Closed ningelschlingel closed 2 years ago

ningelschlingel commented 2 years ago

When using the PiCamera I used to save videos like this:

cam.start_recording('video.h264')

Now I want the videos to be saved in a specific place. I created a directory called 'videos' and prefixed the path with the folder name but I got the mentioned error. Now I tried using the os package to get an absolute path:

cam.start_recording('/home/pi/cam-test/videos/video.h264')

and I get the same error. My script is located in the cam-test folder. Trying to save other files like that seems to work fine, what am I missing?

Best regards and thanks in advance

ningelschlingel commented 2 years ago

Whatever caused this issue, is no longer causing it. I don’t know if it was a restart or switching the folder etc - can’t even replicate it now