[object Object] Icon

Encoding
Learn how to create, start, manage and modify Encodings

[object Object] Icon

Player
Learn how to create, start, manage and modify Players

[object Object] Icon

Analytics
Learn how to create, start, manage and modify Analyticss

Docs Home
User shortcuts for search
Focus by pressing f
Hide results by pressing Esc
Navigate via   keys

Mon Aug 27 2018

Why do I get a MEDIA_ERR_DECODE in Google Chrome with my encoded content?

If your source content has a frame rate of 24.02, 25.02, or 30.02 the encoded content will have the same frame rate if not specified other in your encoding profile. Using such frame rates introduces problems with the Google Chrome MSE. However, the content will play fine on IE9, Edge, Firefox.

You can resolve this issue also for Google Chrome if you set the frame rate of your encoded content to a fixed value of, e.g., 24, 25, or 30. You can easily do that by specifying the rate of the video streams for your codec configuration.

This following example is using our Bitmovin PHP API Client, which is available on Github. We do offer Bitmovin API Clients for other languages as well.

1$name = "1080p";
2$profile = H264Profile::HIGH;
3$bitrate = 4800000;
4$rate = 30; //frame rate
5$codecConfigVideo = new H264VideoCodecConfiguration($name, $profile, $bitrate, $rate);
6$codecConfigVideo->setWidth($width);
7$codecConfigVideo->setHeight($height);
8$apiClient->codecConfigurations()->videoH264()->create($codecConfigVideo);

Give us feedback