11

I have several MPEG2 Transport Stream videos with KLV metadata embedded in them. I would like to display the videos in a web browser. Is it possible to use the HTML5 <video> tag to play a video of this type in a web browser?

If I use a converter to pull the video out of the MPEG-TS container and create an MPEG4 file encoded with H.264, then I can get the video to show up in a browser. But is there any possible way I could display these videos without having to convert them into a different format? I need to keep the KLV data around so I can do other stuff with it.

Steph
  • 2,135
  • 6
  • 31
  • 44
  • What specific video codecs are supported are browser dependent. I don't believe there is currently any browser support for MPEG2. – Michael Mior Jan 09 '12 at 23:17
  • Did you ever come across a solution to this? Is it possible to retrieve KLV metadata once the video reaches the browser? – Tom May 25 '17 at 02:00

2 Answers2

1

The actual video codec support is still up to the browser, but some support MPEG2-TS natively as a transport, and if they don't you can do software demuxing using hls.js. Reading KLV is an unresolved issue but you "should" (per that issue) be able to access the raw binary stream and parse out the values yourself -- not trivial, as such, but doable.

Coderer
  • 25,844
  • 28
  • 99
  • 154
0

There is no browser that support mpeg2. You can use service like: vid.ly and have all the formats you need.

Ido Green
  • 2,795
  • 1
  • 17
  • 26