Can HTML5 be used to display MPEG transport stream video?

I have several MPEG2 Transport Stream videos with built-in KLV metadata. I would like to display the video in a web browser. Can I use the HTML5 <video> to play this type of video in a web browser?

If I use the converter to pull the video from the MPEG-TS container and create an MPEG4 file encoded using H.264, I can get the video to be displayed in the browser. But is there any possible way to show these videos without converting them to another format? I need to save KLV data so that I can do other things with it.

+7
source share
2 answers

There is no browser supporting mpeg2. You can use a service like: vid.ly and have all the necessary formats.

0
source

Actual support for video codecs is still browser dependent, but some support MPEG2-TS as a transport natively, and if they do not, you can demultiplex the software using hls.js. Reading KLV is an unresolved issue, but you "should" (according to this problem) have access to the raw binary stream and analyze the values ​​yourself - not so simple, but doable.

0
source

Source: https://habr.com/ru/post/905569/


All Articles