By using AWS re:Post, you agree to the AWS re:Post Terms of Use

Kinesis Video Stream Media Playback Codec Changed Error.

0

Enter image description here I have attached error I am facing which viewing video in kinesis video stream media playback. I am getting error "Codec Changed" in UI. how can i resolve Codec changed error. I am using kinesis video stream producer cpp putFrame to send video.

asked 19 days ago19 views
1 Answer
0

The "Codec Changed" error you're encountering in the Kinesis Video Stream media playback UI is likely related to inconsistencies in the codec private data or track information within your video stream fragments.

To resolve this issue, you need to ensure that the codec private data and tracks remain consistent throughout the queried media in your Kinesis video stream. When using the C++ producer library to send video data via the PutFrame method, it's crucial to maintain consistency in the following areas:

  1. Codec type: Ensure you're using a supported codec, such as h.264 (AVC) or h.265 (HEVC) for video.

  2. Codec private data: The codec private data for the video track should remain consistent across all fragments. For video, the codec ID should be 'V_MPEG/ISO/AVC'.

  3. Track information: If you have both video and audio tracks, make sure the track information remains consistent throughout the stream.

  4. Fragment metadata: Ensure that the metadata in each fragment is consistent and properly formatted.

To address this issue:

  1. Review your C++ code where you're using the PutFrame method to send video data. Make sure you're not changing any codec-related parameters mid-stream.

  2. Verify that your video source is not changing its codec or encoding parameters during the streaming process.

  3. If you're using any preprocessing or encoding steps before sending the frames to Kinesis Video Streams, ensure these steps maintain consistent codec settings.

  4. Check that your stream configuration in Kinesis Video Streams is set up correctly and matches the codec and format of the video you're sending.

If the issue persists after ensuring consistency in your code and stream configuration, you may need to further investigate your video source or encoding process to identify any potential changes in the codec or stream parameters that could be causing this error.
Sources
Use the C++ producer library - Amazon Kinesis Video Streams
GetDASHStreamingSessionURL - Amazon Kinesis Video Streams
Kinesis Video Streams API and producer libraries support - Amazon Kinesis Video Streams

profile picture
answered 19 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions