How to convert the .mkv to .ply?

Mahsa Sanei 0 Reputation points
2023-03-15T18:49:06.2666667+00:00

I recorded 45 seconds video with Azure Kinect camera. I need to convert this .mkv file to .ply to have the 3d point cloud data. I know that I can do that by selecting a specific timestamp. Would it be possible to convert the entire time of recording to one .ply file? (or I should convert different timestamps and register all those point cloud together?)

Azure Kinect DK
Azure Kinect DK
A Microsoft developer kit and peripheral device with advanced artificial intelligence sensors for sophisticated computer vision and speech models.
285 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. QuantumCache 20,031 Reputation points
    2023-03-15T19:14:14.4666667+00:00

    Hello @Mahsa Sanei

    I assume you have already use the Azure Kinect Viewer Tool to export the file to .ply format, right?

    When you select the time range for export, simply select the entire duration of the recording instead of a specific timestamp or range of timestamps. This will export the 3D point cloud data for the entire time range of the recording into a single .ply file. You can then use this file for further analysis or visualization.

    Try following commands to convert the file:

    You can use the following command to convert the .mkv file to image files:

    k4a_mkv2image -i input.mkv -o output_directory

    You can use the following command to convert the image files to .ply files:

    python examples/python/ReconstructionSystem/sensors/azure_kinect_mkv_reader.py --input record.mkv --output frames

    Please comment in the below section for further help on this, happy to help you!

    If this answers your query, do click Accept Answer and Yes for this answer as helpful. And, if you have any further query do let us know by commenting in the below section.