Thanks again @dynamicdave.
I'm definitely being patient after pressing the recording button, but it stays permanently red. Within a second of pressing it I get a "Recording Done" message and when I look at the folders in the pi, I can see a new mp4 with a size of zero bytes. I need to press the button again to turn it back to green.
I found an error in the HSS Recording flow. The existing Catch node didn't seem to show the error anywhere in the app's UX, so I added some debug nodes and saw the command going to the Camera recording
exec node was:
"ffmpeg -y -i http://212.30.240.7/mjpg/video.mjpg -t 5 -c:v h264_omx -pix_fmt yuv420p -vb 20M -r 10 /var/www/html/hss_media/recordings/10/10-46-13.mp4"
and the error directly from the Camera recording
exec node was:
10 May 10:46:15 - [info] [debug:Log Camera Rec Exec on HSS Rec Tab ]
ffmpeg version 4.3.6-0+deb11u1+rpt1 Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 10 (Debian 10.2.1-6)
configuration: --- Thor: I omitted these due to their length, but can post if needed. ---
libavutil 56. 51.100 / 56. 51.100
libavcodec 58. 91.100 / 58. 91.100
libavformat 58. 45.100 / 58. 45.100
libavdevice 58. 10.100 / 58. 10.100
libavfilter 7. 85.100 / 7. 85.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 7.100 / 5. 7.100
libswresample 3. 7.100 / 3. 7.100
libpostproc 55. 7.100 / 55. 7.100
Input #0, mpjpeg, from 'http://212.30.240.7/mjpg/video.mjpg':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: mjpeg (Baseline), yuvj420p(pc, bt470bg/unknown/unknown), 640x480, 25 tbr, 25 tbn, 25 tbc
Stream mapping:
Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (h264_omx))
Press [q] to stop, [?] for help
[swscaler @ 0x55805ceba0] deprecated pixel format used, make sure you did set range correctly
[h264_omx @ 0x558056c6d0] libOMX_Core.so not found
[h264_omx @ 0x558056c6d0] libOmxCore.so not found
A possible clue to this error is that during the initial RPi setup, I had some troubles installing ffmpeg.
sudo apt install -y ffmpeg git
It flagged a handful of missing files and said to use --fix-missing
. So I reinstalled with:
sudo apt install -y --fix-missing ffmpeg git
I didn't see any errors that time. I will look into the the libOmxCore.so not found
errors.
Regarding your question about camera feeds, the only sample feeds that work are those from the French Bakery and Reykjavik Iceland.
I just created a hss_config.txt
to use a local Tapo c100 camera. I modified the HSS initialization tab to use the new config file, but got no video in the app. (The URL is correct since it works in VLC.)
Does HSS support RTSP? If so, is the correct setting in hss_config.txt
file "type": "IP cam"
or is that just a free text field?
Also, from my previous post, does it seem correct that the mp4 files are being created by the app with only -rw-r--r-- 1 pi pi
permissions / group?