rerun icon indicating copy to clipboard operation
rerun copied to clipboard

Native Video support

Open emilk opened this issue 1 year ago • 3 comments

We'll soon have experimental video support in the web viewer (https://github.com/rerun-io/rerun/issues/7271).

The next step is to get that working on native too.

Progress

Experimental support using rav1d can be found in:

  • https://github.com/rerun-io/rerun/pull/7557

TODO

  • [x] https://github.com/rerun-io/rerun/pull/7563 (required by rav1d)
  • https://github.com/rerun-io/rerun/issues/7575
  • [ ] Error handling and cleanup of https://github.com/rerun-io/rerun/pull/7557
  • [ ] Check memory use
  • [ ] Move chroma-upsampling on GPU
  • [ ] Update the video support matrix docs

emilk avatar Aug 28 '24 11:08 emilk

Current plan is to use https://github.com/rerun-io/rav1d-rs (a fork of dav1d-rs which replaces the underlying dav1d library with rav1d) to decode AV1 video.

We're uncertain about how to support other codecs, at least VP8/9 should be easily doable in a similar way as AV1, but H.264/265 is a bit of a special case.

jprochazk avatar Sep 04 '24 12:09 jprochazk

(Note that I made the same mistake as in re_mp4 and uploaded a bunch of binary files to rav1d-rs, which need cleaning up via history rewriting and either be turned into LFS files or removed)

jprochazk avatar Oct 02 '24 21:10 jprochazk

@jprochazk I summarized my understanding of rav1d-rs in this issue - feel free to edit/comment:

  • https://github.com/rerun-io/rerun/issues/7575

emilk avatar Oct 03 '24 06:10 emilk

There's always more codecs we'd like to support, but the ones listed here are all in!

For a full overview what we support check https://rerun.io/docs/reference/video#codec-support

Wumpf avatar Jan 27 '25 10:01 Wumpf