Display AV1 Video in HTML Player

Viewed 22

I want to stream a video encoded with rav1e to a browser. rav1e will package the video in ivf packets.

When I embed a video file inside html, the player does not work properly:

...
<video controls>
    <source src="myvideo.ivf" type="video/mp4; codecs=av01" />
</video>
...

Controls are showing, but the video is not loaded properly:

enter image description here

I assume this is due to the unexpected ivf-package format. Is there a way to display the video stream without repackaging it?

1 Answers

https://github.com/gpac/gpac offers a quick way to repackage the video file into *.mp4: MP4Box -add myvideo.ivf myvideo.mp4 Optimally I would not need that, so I will leave the question open for now

Related