Closed Strobel2k closed 4 months ago
For me it took several weeks to get a stream from my cams in homekit. I suggest starting directly on your node-red server trying to get a stream with ffmpeg on console. On a raspi I had to download codecs and ffmpeg sources, and configure several options before install. For me this configuration works with my axis cam:
sudo apt-get install git pkg-config autoconf automake libtool libx264-dev
git clone https://github.com/mstorsjo/fdk-aac.git cd fdk-aac ./autogen.sh ./configure --prefix=/usr/local --enable-shared --enable-static make -j4 sudo make install sudo ldconfig cd ..
git clone https://github.com/FFmpeg/FFmpeg.git cd FFmpeg ./configure --prefix=/usr/local --arch=armel --target-os=linux --enable-omx-rpi --enable-nonfree --enable-gpl --enable-libfdk-aac --enable-mmal --enable-libx264 --enable-decoder=h264 --enable-network --enable-protocol=tcp --enable-demuxer=rtsp --extra-ldflags="-latomic" make -j4 sudo make install
ffmpeg -rtsp_transport tcp -i rtsp://viewer:pass>@<ip/axis-media/media.amp?videocodec=h264 -vcodec copy -vbsf h264_mp4toannexb -t 10 axis.mp4
My settings in Camera GUI look the same - with one difference. As video codec setting I use "h264" instead of "libx264"
My rtsp source for a Reolink cam is:
-re -rtsp_transport tcp -i rtsp://user:pass@192.168.10.10:554/h264Preview_01_sub
and for video codec I use copy
Map video is 0:0
I close the Issue due to inactivity. If you come back here and still have a problem then feel free to comment here or open new Issue.
Your Current NRCHKB Plugin Version
1.5.0
Operating System
Raspberry pi
How can we help?
I only get the pictures/snapshots on my home and no stream. Any idea why? wit yahka and vlc both streams are working rtmp:// and rtsp://.
If I click on the camera to start the stream followin log appears: Following message I get in logs:
Ive tried the configuration with rtsp:// from https://nrchkb.github.io/wiki/service/camera-control/#title for Reolink. Doesnt work. Ive tried -i rtmp://IP/bcs/channel0_main.bcs?channel=0&stream=2&user=admin&password=xxx -map 0 -an -dn -flags -global_header. Doesnt work.
Im wondering that both work with yahka and also vlc. So there shouled be no issue with ffmpeg?! BTW Ive installed also the NRCHKB ffmpeg configuration on my pi.
![Unbenanntcam12](https://user-images.githubusercontent.com/77995124/210131251-5709507e-4ea1-433d-b57e-5dd49e8918e0.JPG)
Any more details?
If this is specific to some hardware or specific software version, please explain here.
Any code or functions to add?
No response