From 468219b4edc9bdd337f6d41263a71437ad6dcbc3 Mon Sep 17 00:00:00 2001 From: langolierz Date: Thu, 19 Apr 2018 20:14:26 +1200 Subject: [PATCH] Update investigating_live_video_input.md --- dotfiles/investigating_live_video_input.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/dotfiles/investigating_live_video_input.md b/dotfiles/investigating_live_video_input.md index 772a015..8039436 100644 --- a/dotfiles/investigating_live_video_input.md +++ b/dotfiles/investigating_live_video_input.md @@ -80,7 +80,15 @@ following the picamera docs , i will/have : first hitch : i enabled the camera in the raspi-config , but it seems like the switching screens driver overrides this , so will have to update this too ! -besides that the preview / different parameters and effects work as expected. next step is to try recording something , converting it to mp4 and playing back on omxplayer +besides that the preview / different parameters and effects work as expected. next step is to try recording something , converting it to mp4 and playing back on omxplayer. + +i have installed `sudo apt-get install gpac` and am using `subprocess.Popen` to run the `MP4Box` command from inside python. this way i can poll back into it and map the video only when its finished converting to stop blocking in the meantime. i also updated the display to show when the camera is previewing and recording. this all worked smoother than i expected. + +i also made a (suprizingly small) change to the browser to show the pi's videos folder next to the external devices. this will be useful for using the recordings saved and for copying files onto recurs disk. + +another thing still to think about is how to protect from overfilling the sd card / external storage. + +also displaying info when camera is not attached and catching other types of errors... [picamera]: http://picamera.readthedocs.io/en/release-1.0/api.html [faq]: https://picamera.readthedocs.io/en/release-1.13/faq.html