INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: 4k/HDR/multichannel PCM via HDMI capture into MC Television  (Read 646 times)

mattkhan

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4267
4k/HDR/multichannel PCM via HDMI capture into MC Television
« on: December 03, 2024, 01:50:05 pm »

https://github.com/3ll3d00d/mwcapture

latest release can be found here -> https://github.com/3ll3d00d/mwcapture/releases

this is a directshow filter that enables use of a magewell pro card (https://www.magewell.com/products/pro-capture-hdmi-4k-plus) in MC (and other directshow apps)

you can use such cards in MC without this filter so the differentiation comes from

* will automatically try to handle signal changes, mainly this means from SDR to HDR and back (NB: actual support depends on the renderer, JRVR does support this so all good for MC)
* can handle multichannel audio

limitations noted on the linked github inc

* only tested on my system :)
* multichannel audio channel layout is a ? atm (I need to test more)
* I think changing audio format is technically supported by my filter but MC (as far as I know) does not this on the fly so it's probably a moot point

code is publicly available as is the build recipe, if feeling paranoid then feel free to build it yourself :)

note that this is a 1st release, it does seem functional (ignore the multichannel audio bit) to me but I think anyone using it should go in expecting problems & be prepared to provide logs to explain what they see (using one of the non release builds)

Logged

Lep334

  • Member
  • *
  • Posts: 3
Re: 4k/HDR/multichannel PCM via HDMI capture into MC Television
« Reply #1 on: December 07, 2024, 07:31:49 am »

So does this work like videoprocessor works for Madvr?
Logged

mattkhan

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4267
Re: 4k/HDR/multichannel PCM via HDMI capture into MC Television
« Reply #2 on: December 07, 2024, 09:13:58 am »

So does this work like videoprocessor works for Madvr?
Yes you could use it that way (though this is driven by the metadata in the stream rather than user choice)
Logged

mattkhan

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4267
Re: 4k/HDR/multichannel PCM via HDMI capture into MC Television
« Reply #3 on: December 07, 2024, 10:48:10 am »

NB: the key difference being you're not pinned to a renderer with an unknown future (madvr)
Logged

mattkhan

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4267
Re: 4k/HDR/multichannel PCM via HDMI capture into MC Television
« Reply #4 on: December 07, 2024, 04:41:03 pm »

Now that video seems done, continuing to work on multichannel pcm, and audio format negotiation. I eventually realised that the channel mapping in cea-861 is different to usual output formats so I need to add some logic to handle whatever is in the audio hdmi infoframe.
Logged

Lep334

  • Member
  • *
  • Posts: 3
Re: 4k/HDR/multichannel PCM via HDMI capture into MC Television
« Reply #5 on: December 07, 2024, 10:19:52 pm »

NB: the key difference being you're not pinned to a renderer with an unknown future (madvr)

That is definitely exciting.  Will keep an eye on this for sure
Logged

mattkhan

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4267
Re: 4k/HDR/multichannel PCM via HDMI capture into MC Television
« Reply #6 on: December 08, 2024, 04:31:27 am »

It basically works now as far as I can see so you just need a card to test it out
Logged

mattkhan

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4267
Re: 4k/HDR/multichannel PCM via HDMI capture into MC Television
« Reply #7 on: December 08, 2024, 01:31:04 pm »

for audio, I found https://learn.microsoft.com/en-us/windows/win32/coreaudio/representing-formats-for-iec-61937-transmissions which looks like it corresponds to the info in 6.6.1 of https://ia903006.us.archive.org/11/items/CEA-861-E/CEA-861-E.pdf (HDMI audioframe) so I guess I should be able to try to send such encoded content from my filter in the right format, whether it works or not is probably something that's going to take a bit of time to test out
Logged

mattkhan

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4267
Re: 4k/HDR/multichannel PCM via HDMI capture into MC Television
« Reply #8 on: December 12, 2024, 04:14:43 am »

Looks like https://ffmpeg.org/doxygen/trunk/spdifdec_8c_source.html#l00189 is what is needed to determine the contents of the bitstream
Logged

mattkhan

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4267
Re: 4k/HDR/multichannel PCM via HDMI capture into MC Television
« Reply #9 on: December 18, 2024, 12:01:00 pm »

Managed to successfully receive ac3, now to work out how to push that through mc
Logged
Pages: [1]   Go Up