HTTP Video Streaming Errors
AnsweredHi,
I'm currently working on on a web page the pulls video bookmark streams from Nx Witness and often I open the camera live view in parallel on the web page. I'm using the format: http://<server_ip>:<port>/media/<cameraId>.webm
Every now and again if a user pulls the video via the API, the video does not return metadata to play the video and returns with an error "error! 4 undefined The media could not be loaded, either because the server or network failed or because the format is not supported." I have also used ffprobe to test the streams. Most of the times it returns the video stream details but other times ffprobe returns "Invalid data found when processing input"
We have a cluster of 7 Nx Witness servers, and I'm pulling the camera video streams through a single IP and port, but when looking at the API calls stats returned with the API call http://<server_ip>:<port>/ec2/metrics/values the apiCalls values seem to be balanced.
Do you have any idea why this would happen every now and then?
-
Hello Reynard,
I'm using the format: http://<server_ip>:<port>/media/<cameraId>.webm
When you request .webm format, video transcoding is invoked on the server side. Because of that, number of actively open connection for .webm content is limited to make sure video transcoding won't affect performance of VMS server in general.
We have a cluster of 7 Nx Witness servers, and I'm pulling the camera video streams through a single IP and port, but when looking at the API calls stats returned with the API call http://<server_ip>:<port>/ec2/metrics/values the apiCalls values seem to be balanced.
There is also possibility that there is connectivity issues between servers. For example You send API request to the server A, but video is stored on server B. Server A failed to get the video from server B, as a result video can't be played on the client.
As a first troubleshooting step, set log level to DEBUG on the server which receives your API calls, reproduce the issue and attach logs here. Check this article explaining how to increase server log level and where to find log files.
1
Please sign in to leave a comment.
Comments
1 comment