Video clip is generating from secondary stream mistakenly.

Answered

Comments

6 comments

  • Avatar
    Andrey Terentyev

    Hello Makoto,

    Could you please specify the exact URL of the API you are using?

    0
    Comment actions Permalink
  • Avatar
    Makoto Ogata

    Hi Andrey Terentyev.

    I'm using the endpoint: http://<user>:<password>@<ipAddress>:<port>/media.mp4?pos=<pos>&endPos=<endPos>

    This endpoint usually gives me video clip from recording data(primary stream) however, when trying to retrieve video from a time zone close to the current time, it somtimes gives me video clip from secondary stream.

    Is there a way avoid it?

     

    Kind Regards,

    Makoto Ogata.

    0
    Comment actions Permalink
  • Avatar
    Andrey Terentyev

    Hi,

     it somtimes gives me video clip from secondary stream.

    The primary and secondary streams are formed with different paces. In this case, it most probably means that the primary stream had not yet been formed to be transferred and the secondary stream had been transferred instead.

    0
    Comment actions Permalink
  • Avatar
    Makoto Ogata

    Hi Andrey Terentyev.

    Thank you for your response.

    I understand the situation.

    0
    Comment actions Permalink
  • Avatar
    Sergey Bystrov

    is it possible that in this specific case the requested pos and endPos are such that there is no primary stream at the archive for those POSes? For example, the recording mode is HQ on motion and LQ always. 

    ?

    0
    Comment actions Permalink
  • Avatar
    Andrey Terentyev

    Sergey Bystrov ,

    Yes, what you're describing might be a possible root cause, as well.

    0
    Comment actions Permalink

Please sign in to leave a comment.