Skip to main content

Getting metadata when exporting via API

Answered

Comments

4 comments

  • Shahar Baruch Glixman

    anyone? please?

    0
  • Ichiro
    • Network Optix team

    Hi Shahar Baruch Glixman,

    Unfortunately, this API does not allow metadata insertion. However, if you need to modify or add metadata to achieve your goal, you can use FFmpeg or similar tools to create a new file with overwritten metadata.

    For example, since you already know the desired timestamp, you can use a simple script with an FFmpeg command to generate a new file with the desired metadata. Here’s an example:

    ffmpeg -i input.mkv -metadata creation_time='{your_timestamp}' -c copy output.mkv
    0
  • Shahar Baruch Glixman

    thank you for the reply.
    i need the information concerning the video actual start time. although the export request contain a start time parameter, the actual video start time may be different. imagine record starts at time 10. if i export a video from time 0, i will get a video with the actual start time at 10. i am in need for this actual start time.

    0
  • Ichiro
    • Network Optix team

    Hi Shahar Baruch Glixman,

    Thanks for your comments. However, like you said, we will not know which part you may want to export, and it is likely you export a video which may across two different parts, as a result, I don't think there is a way to achieve that via mediaserver at the moment. 

    Instead, we suggest you can use the tool and insert the desired metadata.

    To get the archive section or footage list, you can use the API - 

    /rest/v3/devices/{id}/footage


    While you will have the footage startTime, and you can use this timestamp in FFMPEG if needed, and if you export the footage across two parts, or it is a long video, you can choose which timestamp is the better one for you - It gives you the flexibility to create the content and achieve the goal, thanks.

    0

Please sign in to leave a comment.