Unexpected video codec format streaming has been received with video API

Completed

Comments

7 comments

  • Avatar
    Andrey Terentyev

    Hello,

    Result
    Our server stopped due to an unexpected video codec H.265 received.

    Could you elaborate on this, please? How technically have you detected the codec was H.265? Any evidence is welcome: error message, log message, RTSP session traffic capture.

    1. Why such an unexpected video format has been transmitted?

    The URL of the API request indicate you are opening LIVE stream from a camera.

    At the moment, I can suppose two reasons.
    1. Someone has changed primary stream codes on a camera.
    2. The Server has switched to the secondary stream of the camera with H.265 codec configured.

    Could you please share a screenshot of the "Advanced" tab of camera settings in the GUI application?

    2. Nx could generate another video format to store video?

    By the API you are using (rtsp://User:Pswd@XXX.XXX.XXX.XXX:YYYY)/b68f6dd3-cad9-adaa-498e-2b7dc2a58844), the Server does not change codecs nor transcodes video and sends video as it comes from a camera.

    0
    Comment actions Permalink
  • Avatar
    Yoshitaka Muroi

    Andrey Terentyev

    Thank you very much for the comment.

    About "Our server stopped due to an unexpected video codec H.265 received."
    We developed it, and the original Ai processing is running on our server. The process uses video from Nx output over the API as below.

    [ Camera ]  >>  [ Nx Server ]  >> [ Our custom AI server ]

    Last week our server stopped due to the phenomenon. Because the unexpected video format RTSP data has been received. Our Ai process can handle H.265, but to enable this, before starting processing, we need to designate a video codec. In this case, we set H.264. Thus, our process stops if H.265 is transmitted. 

    Truth, the following internal log, has remained. this log has been extracted from our AI server. 

    0
    Comment actions Permalink
  • Avatar
    Andrey Terentyev

    HI,

    Truth, the following internal log, has remained. this log has been extracted from our AI server. 

    Sorry, can't see any log message. Something went wrong?

    0
    Comment actions Permalink
  • Avatar
    Yoshitaka Muroi

    Sorry, I forgot to attach the log. 

    Here is the log from our system. 
    [rtsp @ 000001bfa5a6fec0] Multi-layer HEVC coding is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature that has not been implemented.

    New Update
    After checking connected cameras, we found one camera has H.265 video stream setting.

    The camera has 3 streams, 2 out of 3 are set with H.254 but the 3rd stream is set with H.265. we are assuming this could be affected. 

    But the question here is, Primary and secondary streams are set with H.264, so even if the camear has H.265, the 3rd stream should be never used by Nx in our understanding. This could happen?

    0
    Comment actions Permalink
  • Avatar
    Andrey Terentyev

    HI,

    Could you please share a screenshot of the "Advanced" tab of camera settings in the GUI application?

    What is the camera model?

    0
    Comment actions Permalink
  • Avatar
    Yoshitaka Muroi

    Our original camera is connected.

    We can see to streams.


    0
    Comment actions Permalink
  • Avatar
    Andrey Terentyev

    Hello,

    But the question here is, Primary and secondary streams are set with H.264, so even if the camear has H.265, the 3rd stream should be never used by Nx in our understanding. This could happen?

    At the moment, with the description you've provided, the most probable version is that someone has changed stream settings on a camera.

    Another one is that the camera sends occasionally "wrong", i.e. look to be H.265, frames while the H.264 stream has been declared.

    Anyway, to answer more precisely, we need a reproduction scenario.

    Please, refer this article to provide structured information for further investigation.

    https://support.networkoptix.com/hc/en-us/community/posts/7430083630615-Support-Request-Template

    0
    Comment actions Permalink

Please sign in to leave a comment.