Thybak
Thybak

Reputation: 31

HTML5 video tag. Some .MP4 videos don't work in Chrome

We're making our webapp with ASP.NET MVC 5, and we're facing to an strange behaviour while playing our mp4 videos (codec h264 all of them) between web browsers.

These videos are not stored in filesystem, they're stored like BLOBs inside a table of our SQL Server.

The way we link our BLOBs with the HTML5 video tag is with a source that points to an Action that returns a FileStreamResult with ContentType header set properly.

Firefox and IE can play them, but Chrome can't with all. When I click on the 'Play' button, the videoplayer stills showing a black screen. When this happens and play button is clicked, network tab of the browser shows up two 200 HTTP responses: one with the video full size in bytes and the other one showing 0 bytes. No errors on console.

What's wrong with Chrome? What's wrong with us?

Thank you for your time guys, I'm so thankful to this site :)

Upvotes: 2

Views: 857

Answers (1)

Thybak
Thybak

Reputation: 31

After some time of researching, we found that MP4 videos with h264 codec that exceed 5MB/s bitrate are not played by Chrome HTML5 video player.

Until now our solution is reencoding MP4 videos that exceed that bitrate to solve this.

If anyone has a better answer, it obviously will be appreciated ;). We hope it could work for anyone that has the same problem.

Upvotes: 1

Related Questions