45clouds / homebridge-ip-camera

IP camera plugin for homebridge
50 stars 7 forks source link

RTSP local dress or global ? #7

Open daniel4099 opened 7 years ago

daniel4099 commented 7 years ago

Do I need to put the local adrees of RTSP camera ? Or i need to create global RTSP adress ?

45clouds commented 7 years ago

You need IP address of camera.

daniel4099 commented 7 years ago

I have my rasp address, according to Ispy it's rtsp://admin:admin@192.168.8.128:10554/tcp/av0_0 When i put this adress to iSpy app it's working, but when I run in homebridge, I can see loading, but then no answers.

45clouds commented 7 years ago

Can you check if ffmpeg works by running it manually with proper parameters (just take them from config.json)?

daniel4099 commented 7 years ago

Can you tell me how can I check if FFMEPG works fine ?

pi@raspberrypi:~/.homebridge $ ffmpeg -version ffmpeg version N-81800-gf013ba4 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 4.9.2 (Raspbian 4.9.2-10) configuration: --arch=armel --target-os=linux --enable-gpl --enable-libx264 --enable-nonfree --enable-omx --enable-omx-rpi libavutil 55. 30.100 / 55. 30.100 libavcodec 57. 58.103 / 57. 58.103 libavformat 57. 51.100 / 57. 51.100 libavdevice 57. 0.102 / 57. 0.102 libavfilter 6. 63.100 / 6. 63.100 libswscale 4. 1.100 / 4. 1.100 libswresample 2. 2.100 / 2. 2.100 libpostproc 54. 0.100 / 54. 0.100

daniel4099 commented 7 years ago

I’ve tryied using test RTSP Adress from expalem webcam and It Works. Mine stream doesn’t work in IP CAMERA, but It Works wit VLC and ISPY. I’m Using local RTSP adress, Can anyone help me ?

45clouds commented 7 years ago

What is the output for:

ffmpeg -re -i rtsp://admin:admin@192.168.8.128:10554/tcp/av0_0

?

daniel4099 commented 7 years ago

Please see below, I hope you can help me ;)

pi@raspberrypi:~ $ ffmpeg -re -i rtsp://admin:admin@192.168.8.128:10554/tcp/av0_0 ffmpeg version N-81800-gf013ba4 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 4.9.2 (Raspbian 4.9.2-10) configuration: --arch=armel --target-os=linux --enable-gpl --enable-libx264 --enable-nonfree --enable-omx --enable-omx-rpi libavutil 55. 30.100 / 55. 30.100 libavcodec 57. 58.103 / 57. 58.103 libavformat 57. 51.100 / 57. 51.100 libavdevice 57. 0.102 / 57. 0.102 libavfilter 6. 63.100 / 6. 63.100 libswscale 4. 1.100 / 4. 1.100 libswresample 2. 2.100 / 2. 2.100 libpostproc 54. 0.100 / 54. 0.100 [rtsp @ 0x27f0130] CSeq 4 expected, 0 received. Last message repeated 100 times [rtsp @ 0x27f0130] Could not find codec parameters for stream 0 (Video: h264, none): unspecified size Consider increasing the value for the 'analyzeduration' and 'probesize' options Input #0, rtsp, from 'rtsp://admin:admin@192.168.8.128:10554/tcp/av0_0': Metadata: title : streamed by the RTSP server Duration: N/A, bitrate: N/A Stream #0:0: Video: h264, none, 90k tbr, 90k tbn, 180k tbc At least one output file must be specified Exiting normally, received signal 2. pi@raspberrypi:~ $

daniel4099 commented 7 years ago

Any help ;) ?

xdenneboom commented 6 years ago

hey did you get this working? I am running into the exact same issue