camera video streaming in the web RTSP protocol getting failed

SAGARVG

Member
Dear Experts ,

We have HIKVISION IP camera getting streamed in VLC as shown below screenshot.

1616487930577.png



where as when we try in web call server its not streaming attached screenshot below


1616487991605.png
 

Max

Administrator
Staff member
Good day.
All non-alphabetic and non-numeric characters must be encoded in RTSP stream URI. Please read details here.
 

SAGARVG

Member
Good day.
All non-alphabetic and non-numeric characters must be encoded in RTSP stream URI. Please read details here.
Good Day ,


for the mentioned URI
rtsp://admin:NET@1203@192.168.10.94:554/Streaming/Channels/101/?transportmode=multicast

how the encoded URI will be like this ????
rtsp://admin:NET%401203%40192.168.10.94:554/Streaming/Channels/101/?transportmode=multicast
 

Max

Administrator
Staff member
how the encoded URI will be like this ????
rtsp://admin:NET%401203%40192.168.10.94:554/Streaming/Channels/101/?transportmode=multicast
No. The @ divider between credentials and address must not be encoded:
Code:
rtsp://admin:NET%401203@192.168.10.94:554/Streaming/Channels/101/?transportmode=multicast
Please also note that WCS supports interleaved RTSP (TCP) or RTSP over UDP (with option rtsp_interleaved_mode=false).
 

SAGARVG

Member
No. The @ divider between credentials and address must not be encoded:
Code:
rtsp://admin:NET%401203@192.168.10.94:554/Streaming/Channels/101/?transportmode=multicast
Please also note that WCS supports interleaved RTSP (TCP) or RTSP over UDP (with option rtsp_interleaved_mode=false).
changed the setting in flashphoner properties


1616497681193.png



after that used rtsp streaming uri entered like this

rtsp://admin:NET%401203@192.168.10.94:554/Streaming/Channels/101/?transportmode=multicast


Getting error Stream failed.....


1616497522606.png
 

Max

Administrator
Staff member
Not sure what is transportmode=multicast
Multicast is not supported.

1. Try without multicast parameter.
2. Try to play using VLC player Tools - Codec information
It should be H.264 video codec

1616498299716.png


3. Launch Wireshark before test with VLC and make traffic dump like this
4. Attach WCS logfile WCS_HOME/logs/server_logs/flashphoner.log
 

SAGARVG

Member
Not sure what is transportmode=multicast
Multicast is not supported.

1. Try without multicast parameter.
2. Try to play using VLC player Tools - Codec information
It should be H.264 video codec

View attachment 2416

3. Launch Wireshark before test with VLC and make traffic dump like this
4. Attach WCS logfile WCS_HOME/logs/server_logs/flashphoner.log
Thank you for your reply,

1616499402232.png

it was H265 and changed it H264 working but in embedding not able to stream attached stream html file getting error


1616499494818.png
 

Attachments

Max

Administrator
Staff member
1. You import player-min.js and then you duplicate player-min.js content
Perhaps this is issue.

2. Another issue. You connect to wss://demo.flashphoner.com instead of wss://your-wcs-host.mycompany.com:8443
So you are trying to play via demo server. Demo.flashphoner.com is trying to connect to your local RTSP cam 192.168.10.94 and it is obviously failed.

1616501325246.png
 

SAGARVG

Member
1. You import player-min.js and then you duplicate player-min.js content
Perhaps this is issue.

2. Another issue. You connect to wss://demo.flashphoner.com instead of wss://your-wcs-host.mycompany.com:8443
So you are trying to play via demo server. Demo.flashphoner.com is trying to connect to your local RTSP cam 192.168.10.94 and it is obviously failed.

View attachment 2421
thank you for your reply,

some time i am getting error web call server, where as in VLC there is no disturbance...
1616504217939.png
 

Max

Administrator
Staff member
You've sent client logs. They all contains the following SDP from camera:
1616566076053.png

Please switch the camera to broadcast H264 or VP8
 

SAGARVG

Member
1. You import player-min.js and then you duplicate player-min.js content
Perhaps this is issue.

2. Another issue. You connect to wss://demo.flashphoner.com instead of wss://your-wcs-host.mycompany.com:8443
So you are trying to play via demo server. Demo.flashphoner.com is trying to connect to your local RTSP cam 192.168.10.94 and it is obviously failed.

View attachment 2421
I changed HTML file but still getting error

Changed H265 to H264
1616566925590.png

1616566957779.png
 

Attachments

Max

Administrator
Staff member
1616568681704.png

1. Your are including some third party player which throws an error which shows come object is not defined. It throws this exception even if no other scripts is included. So this is the third party player issue, please ask its support.
2. Seems you left an unclosed }[/CODE] at string 37 of your HTML page. Please debug it.
 

SAGARVG

Member
1. You import player-min.js and then you duplicate player-min.js content
Perhaps this is issue.

2. Another issue. You connect to wss://demo.flashphoner.com instead of wss://your-wcs-host.mycompany.com:8443
So you are trying to play via demo server. Demo.flashphoner.com is trying to connect to your local RTSP cam 192.168.10.94 and it is obviously failed.

View attachment 2421
where to import from this player-min.js for webcall server
1616570921562.png
 

Max

Administrator
Staff member
Seems like flashphoner.js script fails to download from yuor country.
Please download it manually or get from WCS package and place on your webserver near the html page.
 
Top