Video Encoded using FFmpeg is not being played in Azure Kinect Viewer

Ashutosh Singla 0 Reputation points
2023-08-07T14:28:45.4133333+00:00

I captured a video using a Kinect Azure DK device and could play it back using Azure Kinect Viewer. However, when I encode a video using FFmpeg, the command is given below. I can not playback the video using Azure Kinect Viewer. I get a message "Failed to open Recording". Can someone suggest to me what to do?

       ffmpeg -i .\RGB.mkv -c:v libx265 RGG_Enc.mkv
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.
292 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. LeelaRajeshSayana-MSFT 14,831 Reputation points Microsoft Employee
    2023-08-07T23:58:42.25+00:00

    Hi @Ashutosh Singla Greetings! Welcome to Microsoft Q&A forum. Thank you for posting this question here.

    The -c:v libx265 in your command indicates that you are using the H.265 (HEVC) codec for video compression. While H.265 offers efficient compression, not all video players or viewers may support it. To ensure that the video can be played back using the Azure Kinect Viewer, you can try encoding the video using a codec that is supported by the viewer. For example, you can try using the H.264/AVC video codec instead of H.265/HEVC. You can do this by modifying the FFmpeg command as follows.

    ffmpeg -i .\RGB.mkv -c:v libx264 RGG_Enc.mkv
    
    

    Please let us know if this works for you.


    If the response helped, please do click Accept Answer and Yes for the answer provided. Doing so would help other community members with similar issue identify the solution. I highly appreciate your contribution to the community.


  2. S.Sengupta 18,691 Reputation points MVP
    2023-08-08T00:46:38.05+00:00

    Try encoding the video using simpler settings to see if that resolves the problem:

    ffmpeg -i RGB.mkv -c:v libx265 -x265-params crf=18 RGG_Enc.mkv

    Try converting the video to a different container format like MP4:

    ffmpeg -i RGB.mkv -c:v libx265 -x265-params crf=18 RGG_Enc.mp4

    Ensure that the version of Azure Kinect Viewer you're using is compatible with the H.265 codec. Sometimes, certain versions of viewers or players might not support newer codecs.

    Make sure that the RGG_Enc.mkv file is located in the directory where you're trying to open it from the Azure Kinect Viewer. Double-check the file path and name for any typos or discrepancies.

    It's possible that the codec parameters or the FFmpeg version you're using might be causing compatibility issues. Try to play the video on another media player or video player software to see if the issue persists.

    Kindly go through the following article:

    General availability: Azure Media Services – HEVC encoding support in Standard Encoder


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.