Is it possible to use HTML5 to display an MPEG Transport Stream video?
Asked Answered
T

2

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.

Thoma answered 9/1, 2012 at 23:7 Comment(2)
What specific video codecs are supported are browser dependent. I don't believe there is currently any browser support for MPEG2.Vick
Did you ever come across a solution to this? Is it possible to retrieve KLV metadata once the video reaches the browser?Cambridge
G
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.

Gravitative answered 12/6, 2018 at 14:1 Comment(0)
S
0

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

Subscapular answered 12/3, 2012 at 20:51 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.