Closed yuzhimin999 closed 3 years ago
Failed to get IP address?
What is it: tcp 0 0 0.0.0.0:1000 0.0.0.0:* LISTEN 10250/./onvif_srvd
?
Describe everything you do.
Give the network configuration, interface names and startup script parameters. As you will not understand, developers are not telepathic. We do not know how to read tarot cards and we do not have a crystal ball of predictions!
by command: $ netstat -ap Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:8090 0.0.0.0:* LISTEN 3380/ffserver
tcp 0 0 0.0.0.0:1000 0.0.0.0:* LISTEN 3445/./onvif_srvd
$ ifconfig enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.41.203 netmask 255.255.255.0 broadcast 192.168.41.255
./onvif_srvd --ifs enp0s3 --scope onvif://www.onvif.org/name/TestDev --scope onvif://www.onvif.org/Profile/S --name RTSP --width 800 --height 600 --url rtsp://0.0.0.0:8554/live1.h264 --type H264
The Ubuntu18.4 system runs on the virtual machine VM push stream by ffserver ffserver -d -f /etc/ffserver.conf ffmpeg -f v4l2 -i /dev/video0 -s 640x480 -r 24 -vcodec libx264 -an http://127.0.0.1:8090/feed1.ffm
ffserver config
`
HTTPPort 8090
HTTPBindAddress 0.0.0.0
MaxHTTPConnections 2000
MaxClients 1000
MaxBandwidth 1000
CustomLog -
RTSPPort 8554
RTSPBindAddress 0.0.0.0
`
Can play "RTSP: / / 0.0.0.0:8554 / live1 h264" video stream by VLC media player
my GSOAP_VERSION = 2.8.93
use: --url rtsp://%s:8554/live1.h264!
use: --url rtsp://%s:8554/live1.h264!
by command sudo ./onvif_srvd --ifs enp0s3 --scope onvif://www.onvif.org/name/TestDev --scope onvif://www.onvif.org/Profile/S --name RTSP --width 800 --height 600 --url rtsp://%s:8554/live1.h264 --type H264
Still can not be found by the client, very confused@
Client use WS-Discovery? onvif_srvd does not contain WS-Discovery!
Client use WS-Discovery? onvif_srvd does not contain WS-Discovery!
Thank you for your support and reply. I am using ONVIF Device Manager of windows.
This application requires support for WS-Discovery. You must either add this functionality to this template, or use the ready-made WS-Discover service. Alternatively, you can take mine: https://github.com/KoynovStas/wsdd
Your problem is that you do not fully understand how it works. check out the onwif documentation.
This application requires support for WS-Discovery. You must either add this functionality to this template, or use the ready-made WS-Discover service. Alternatively, you can take mine: https://github.com/KoynovStas/wsdd
Your problem is that you do not fully understand how it works. check out the onwif documentation.
Thank you very much, your suggestion is very good, it is already working normally.
The actual local IP address is 192.168.. ,but the program runs as follows, so the client cannot find it.
tcp 0 0 0.0.0.0:1000 0.0.0.0:* LISTEN 10250/./onvif_srvd Please help to check the root cause,thanks a lot.
ubuntu18.0 rtsp://0.0.0.0:8554/live1.h264