Skip to main content

Not able to play stream with HLS only WebM is playing

Answered

Comments

11 comments

  • Wendy Chuang
    • Network Optix team

    Hi Venktesh,

    Please upgrade your Nx server to the latest patch and test it again:

    In-Client Upgrade
    Build Number: 30617
    Password: l2jy93

    If it still not works, please provide your test steps for us to check the problem.

    Thank you.

    0
  • Nx Support

    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
  • Venkatesh P

    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
  • Nx Support

    What codec does the camera stream?

    0
  • Venkatesh P

    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
  • Nx Support

    This is an MJPEG camera, HLS is not supported for it.

    Is it possible to change camera settings to enable h.264?

    0
  • Venkatesh P

    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
  • Venkatesh P

    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
  • Nx Support

    Looks like it should work, there is at least one HLS transport declared for the stream

    0
  • Venkatesh P

    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
  • Sergey Yuldashev
    • Network Optix team

    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.