Streaming from NVR on Chrome Browser

Hi,

We wanted to stream the live feed from NVR's and IP camera on Chrome browser using flash phoner

1. What are the formats(RTSP, rtmp, hls, mp4..... ) supported by Flashphoner to stream on Chrome browser

2. Does this supports other features like playing recorded video from NVR , PTZ operations .

Please help with above queries

Thank you
 

Max

Administrator
Staff member
Good day.
1. What are the formats(RTSP, rtmp, hls, mp4..... ) supported by Flashphoner to stream on Chrome browser
You can capture RTSP or RTMP stream from NVR or IP camera by URL rtsp://nvr:554/stream or rtmp://nvr:1935/live/stream. The codecs supported are H264 or VP8 for video and AAC, G.711 or Speex for audio. Please read details about RTSP capturing here and about RTMP pulling here
Then, stream captured may be played as WebRTC, RTMP, RTSP, HLS
2. Does this supports other features like playing recorded video from NVR , PTZ operations .
You can play VOD from recording file as described here. The file must be H264 + AAC in MP4 container and must be placed to the folder defined by the following WCS parameter
Code:
media_dir=/usr/local/FlashphonerWebCallServer/media
WCS does not modify a video recorded by any way, just play it as is.
 
You can play VOD from recording file as described here. The file must be H264 + AAC in MP4 container and must be placed to the folder defined by the following WCS parameter
That means we need keep the media file in specified path there, then stream will get created with flashphoner to use on browser?

But we want know that is there any way to get video for specified time from NVR server and managed to play on Browser?
 

Max

Administrator
Staff member
That means we need keep the media file in specified path there, then stream will get created with flashphoner to use on browser?
Yes. To play a video within a specified time range you should:
1. Capture a stream from NVR to WCS by URL rtsp://nvr:554/stream or rtmp://nvr:1935/live/stream
2. Record the stream published
3. Play the recording file from WCS by URL https://wcs:8444/client/records/stream.mp4?start=11&end=60 with begin and end timestamps in seconds
But we want know that is there any way to get video for specified time from NVR server and managed to play on Browser?
If video recordings are already stored on NVR server, you can either translate them as described above or copy them to the records folder on WCS by SSH or SCP to play them as described at p. 3 above.
 
Once we published the stream from NVR to WCS, it getting automatically closed or disconnected after few seconds or 1-2 mins . and also not getting recorder clips for that duration.

Can you please help us in this issue . as of now we are demo licence.
 

Max

Administrator
Staff member
Once we published the stream from NVR to WCS, it getting automatically closed or disconnected after few seconds or 1-2 mins . and also not getting recorder clips for that duration.
Please clarify how do you publish a stream:
- capture from NVR by RTSP URL rtsp://nvr:554/stream
- capture from NVR by RTMP URL rtmp://nvr:1935/live/stream
- publish RTMP from NVR to WCS rtmp://wcs:1935/live/stream
Also please collect a report including client debug logs as described here and send using this form.
Or you can provide SSH access to your server and URL to capture from NVR using this form.
 
For that we need to admin permission in our end. is there any other way to cross check the issue.

Note: I tried with rest client for above scenarios
 

Max

Administrator
Staff member
Try to gather pcap dumps

1. VLC player.

Run wireshark and Start Capture before playback.
As a result you have wireshark.pcap

2. On WCS server.

Launch tcpdump before playback then press CTRL+C to stop capture after test.

Code:
sudo tcpdump -i any -s 0 -B 10240 -w log.pcap
As a result you have log.pcap file.

Open these two files in Wireshark to be sure these files contain RTSP packets.


If you captured RTSP packets properly, please send us these two files using private form or share right here.
Then we will be able to check difference between VLC and WCS or reconstruct stream by provided dumps.
 
for your better understanding ...

Actually we are publishing the live stream from Camera to WCS server and trying to get the recording from the time of published.

Is it correct way to get the playback ?
 

Max

Administrator
Staff member
Is it correct way to get the playback ?
Yes, this is a correct way.
But we need either RTSP link to test, or pcap dump (which must be started to capture before starting RTSP playback), or SSH access to your WCS server and RTSP stream internal address to check the stream playback. You can provide the requires stuff using this form.
 

Max

Administrator
Staff member
Unfortunately, you've provided only a local addresses both for RTSP camera and WCS server.
We need 24/7 SSH access to the WCS server with sudo privilegies from outside network. Please provide it using this form.
 
I have shared pcap dump too as mentioned in previous reply, can you please check that ...

Unfortunately, you've provided only a local addresses both for RTSP camera and WCS server.
Since we don't have public access to our servers , you can not access at this moment
 

Max

Administrator
Staff member
I have shared pcap dump too as mentioned in previous reply, can you please check that ...
Unfortunately we cannot extract RTSP stream from your dump.
So please collect the dump again on WCS server (start the dump collection before starting RTSP playback), enable client debug logging and collect the report as described here, then send both pcap dump and logs archive using this form.
 

Max

Administrator
Staff member
The server log fragments you've sent contain no useful information to resolve the issue.
So please either provide SSH access to your server using this form or collect the full report as follows:
1. Enable debug logging by adding to the /usr/local/FlashphonerWebCallServer/conf/flashphoner.properties settings file
Code:
client_log_level=DEBUG
2. Restart WCS with the command
Code:
sudo systemctl restart webcallserver
3. Start traffic dump collection on RTSP stream port
Code:
sudo tcpdump -i any -s 0 -B 10240 -w rtsp.pcap tcp port 654
4. Open RTSP link in Player example or in Media Devices example (Player section)
5. If stream is not playing, wait a minute
6. Click "Stop" in player
7. Stop traffic dump collection
8. Go to tools folder and prepare a report archive
Code:
cd /usr/local/FlashphonerWebCallServer/tools
sudo ./report.sh --sysinfo --conf --tar
9. Get the report archive in /usr/local/FlashphonerWebCallServer/reports folder
10. Send the report archive and traffic dump using this form
 
Top