- Newest
- Most votes
- Most comments
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:
-
Codec type: Ensure you're using a supported codec, such as h.264 (AVC) or h.265 (HEVC) for video.
-
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'.
-
Track information: If you have both video and audio tracks, make sure the track information remains consistent throughout the stream.
-
Fragment metadata: Ensure that the metadata in each fragment is consistent and properly formatted.
To address this issue:
-
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.
-
Verify that your video source is not changing its codec or encoding parameters during the streaming process.
-
If you're using any preprocessing or encoding steps before sending the frames to Kinesis Video Streams, ensure these steps maintain consistent codec settings.
-
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
Relevant content
- asked 6 months ago
- AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 6 months ago