Not able to play stream with HLS only WebM is playing
AnsweredFollowed these links steps to integrate the stream in website. Able to load the stream with WebM format but when am trying to load the stream using HLS (.m3u or .m3u8) the URL is failing to load. I have setup my system webcam as stream camera. Using Nx Witness (4.0.0.29987) on Windows 10 operating system. Can some one help resolving this issue.
-
Hi Venktesh,
Please upgrade your Nx server to the latest patch and test it again:
In-Client Upgrade
Build Number: 30617
Password: l2jy93If it still not works, please provide your test steps for us to check the problem.
Thank you.
0 -
Can you please check what codec does the camera use?
HLS supports only the native H.264 stream from the camera.
If the camera uses H.265 or MJPEG, it will not work, but you probably can reconfigure the camera.
0 -
Thank you for your quick response Wendy Chuang, I have upgrade the version to 4.0.0.30617. But still am not able to play the HLS (.m3u or .m3u8) videos. Only WebM is working. Am generating the URL as mentioned in the article link (https://support.networkoptix.com/hc/en-us/articles/360019770334-How-to-Embed-Video-from-Nx-Witness-Nx-Meta-on-a-website).
And i have tried with http://localhost:7001/hls/{videoid}.m3u?lo&auth={auth_key}
And i can see this message in the log file:
2020-04-07 12:20:02.738 4ddc WARNING nx::vms::server::hls::HttpLiveStreamingProcessor(0x245e63f39a0): Failed to get chunks of resource QnThirdPartyResource(0x245e085e650, 7d43e52a883fc11bfd5b9bb5b68cf07b)
0 -
What codec does the camera stream?
0 -
There are the streams am getting from getCameraEX.
{"streams":[{"codec":8,"customStreamParams":{},"encoderIndex":0,"resolution":"1280x720","transcodingRequired":false,"transports":["mjpeg"]},{"codec":5,"customStreamParams":{},"encoderIndex":1,"resolution":"640x360","transcodingRequired":false,"transports":[]},{"codec":0,"customStreamParams":{},"encoderIndex":-1,"resolution":"*","transcodingRequired":true,"transports":["rtsp","mjpeg","webm"]}]}
This is an integrated system web camera.
0 -
This is an MJPEG camera, HLS is not supported for it.
Is it possible to change camera settings to enable h.264?
0 -
Hi am not able to change the settings of camera, Do you know how to enable in my system? If you can share me the steps to enable. Am using windows 10, in-build webcam.
0 -
Hi, I have another camera with this streams:
{"streams":[{"codec":174,"customStreamParams":{},"encoderIndex":1,"resolution":"640x360","transcodingRequired":false,"transports":["rtsp"]},{"codec":28,"customStreamParams":{},"encoderIndex":0,"resolution":"1280x720","transcodingRequired":false,"transports":["rtsp","hls"]},{"codec":0,"customStreamParams":{},"encoderIndex":-1,"resolution":"*","transcodingRequired":true,"transports":["rtsp","mjpeg","webm"]}]}
Is it possible to play the HLS stream in this?
0 -
Looks like it should work, there is at least one HLS transport declared for the stream
0 -
Okay, i tried to play this video by this URL
https://{system_id}.relay.vmsproxy.com/hls/{camera_id}.m3u8?lo&auth={user_auth}
but it's not working. when change this to webm URL it's working.
https://{system_id}.relay.vmsproxy.com/web/media/{camera_id}.webm?rt&resolution=Auto&auth={user_auth}
0 -
Hello Venkatesh,
We confirm the issue.
The bug was reported to the developers and will likely be fixed with 4.1 release.
Please follow the release notes.0
Please sign in to leave a comment.
Comments
11 comments