Closed mattjb1222 closed 4 years ago
This might be the cause "mjpeg_width 608" - I changed it back to the default 800 with a 1440x1440 resolution and so far it seems to be working consistently, but got too dark here to test further. Will continue to monitor through the next few days.
Using Raspbian Buster on a Raspberry Pi 3 model A. Due to ssmtp not working under Buster, I had to resort to configuring msmtp, which seems to work, but adds another variable in this equation, see: https://askubuntu.com/questions/1163881/having-some-issues-to-send-mails-using-ssmtp
I'm using the camera in vertical orientation, with the following set in pikrellcam.conf: video_width 1072 video_height 1440 mjpeg_width 608
I have emails set up accordingly (obviously I changed the emails for this issue write-up)... on_motion_preview_save mpack -s pikrellcam@$H $F foobar@gmail.com on_motion_begin /usr/bin/msmtp "foobar@gmail.com,xyz@gmail.com" < /home/pkc/scripts/cam1_activity
I always get the "on_motion_begin" email, but rarely ever the "on_motion_preview_save" email. Looking at the logs indicates inconsistent behaviors (20:47:50 was fine but others weren't):
20:44:23 : execl[wait:0]: /home/pkc/pikrellcam/scripts-dist/_thumb /run/pikrellcam/motion_2020-01-25_20.44.19_76.jpg /tmp/pikrellcam.log /home/pkc/pikrellcam/media/thumbs/motion_2020-01-25_20.44.19_76.th.jpg 150x150 80 217 560 707; rm -f /run/pikrellcam/motion_2020-01-25_20.44.19_76.jpg 20:44:33 : execl[wait:0]: nice -n 5 MP4Box -quiet -tmp /tmp -fps 25.930 -add /home/pkc/pikrellcam/media/videos/motion_2020-01-25_20.44.19_76.h264 /home/pkc/pikrellcam/media/videos/motion_2020-01-25_20.44.19_76.mp4 2> /dev/null && rm -f /home/pkc/pikrellcam/media/videos/motion_2020-01-25_20.44.19_76.h264 ; rm -f /run/pikrellcam/video_converting; 20:45:17 : execl[wait:0]: /home/pkc/pikrellcam/scripts-dist/_thumb /run/pikrellcam/motion_2020-01-25_20.45.12_77.jpg /tmp/pikrellcam.log /home/pkc/pikrellcam/media/thumbs/motion_2020-01-25_20.45.12_77.th.jpg 150x150 144 80 252 707; rm -f /run/pikrellcam/motion_2020-01-25_20.45.12_77.jpg 20:45:26 : execl[wait:0]: nice -n 5 MP4Box -quiet -tmp /tmp -fps 25.930 -add /home/pkc/pikrellcam/media/videos/motion_2020-01-25_20.45.12_77.h264 /home/pkc/pikrellcam/media/videos/motion_2020-01-25_20.45.12_77.mp4 2> /dev/null && rm -f /home/pkc/pikrellcam/media/videos/motion_2020-01-25_20.45.12_77.h264 ; rm -f /run/pikrellcam/video_converting; 20:45:42 : execl[wait:0]: /home/pkc/pikrellcam/scripts-dist/_thumb /run/pikrellcam/motion_2020-01-25_20.45.37_78.jpg /tmp/pikrellcam.log /home/pkc/pikrellcam/media/thumbs/motion_2020-01-25_20.45.37_78.th.jpg 150x150 80 80 417 474; rm -f /run/pikrellcam/motion_2020-01-25_20.45.37_78.jpg 20:45:51 : execl[wait:0]: nice -n 5 MP4Box -quiet -tmp /tmp -fps 25.930 -add /home/pkc/pikrellcam/media/videos/motion_2020-01-25_20.45.37_78.h264 /home/pkc/pikrellcam/media/videos/motion_2020-01-25_20.45.37_78.mp4 2> /dev/null && rm -f /home/pkc/pikrellcam/media/videos/motion_2020-01-25_20.45.37_78.h264 ; rm -f /run/pikrellcam/video_converting; 20:47:50 : execl[wait:0]: /home/pkc/pikrellcam/scripts-dist/_thumb /run/pikrellcam/motion_2020-01-25_20.47.45_79.jpg /tmp/pikrellcam.log /home/pkc/pikrellcam/media/thumbs/motion_2020-01-25_20.47.45_79.th.jpg 150x150 169 268 174 299; mpack -s pikrellcam@pi /run/pikrellcam/motion_2020-01-25_20.47.45_79.jpg foobar@gmail.com; rm -f /run/pikrellcam/motion_2020-01-25_20.47.45_79.jpg 20:47:59 : execl[wait:0]: nice -n 5 MP4Box -quiet -tmp /tmp -fps 25.930 -add /home/pkc/pikrellcam/media/videos/motion_2020-01-25_20.47.45_79.h264 /home/pkc/pikrellcam/media/videos/motion_2020-01-25_20.47.45_79.mp4 2> /dev/null && rm -f /home/pkc/pikrellcam/media/videos/motion_2020-01-25_20.47.45_79.h264 ; rm -f /run/pikrellcam/video_converting; 20:48:06 : execl[wait:0]: /home/pkc/pikrellcam/scripts-dist/_thumb /run/pikrellcam/motion_2020-01-25_20.48.01_80.jpg /tmp/pikrellcam.log /home/pkc/pikrellcam/media/thumbs/motion_2020-01-25_20.48.01_80.th.jpg 150x150 80 127 114 208; rm -f /run/pikrellcam/motion_2020-01-25_20.48.01_80.jpg 20:48:15 : execl[wait:0]: nice -n 5 MP4Box -quiet -tmp /tmp -fps 25.930 -add /home/pkc/pikrellcam/media/videos/motion_2020-01-25_20.48.01_80.h264 /home/pkc/pikrellcam/media/videos/motion_2020-01-25_20.48.01_80.mp4 2> /dev/null && rm -f /home/pkc/pikrellcam/media/videos/motion_2020-01-25_20.48.01_80.h264 ; rm -f /run/pikrellcam/video_converting;
Any suggestions on how to go about debugging this?