Author Topic: Recording HDMI  (Read 1497 times)

0 Members and 1 Guest are viewing this topic.

Offline Jan AudioTopic starter

  • Frequent Contributor
  • **
  • Posts: 820
  • Country: nl
Recording HDMI
« on: June 21, 2020, 11:10:52 am »
Hi, i was talking to someone who bought a box to use for recording HDMI.
Some special box he need for streaming for twitch so people can watch him play games.

I think he got ripped off, it is not allowed to sell a device that can record HDMI or am i wrong ?
There are no HDMI video recorders in any shop.

What chip do you need to make a simple HDMI recorder to SD card ?
I bet a PIC32 in DIP can not handle it as usual.

What do you think about it, does he got ripped off for 500 ?, is twitch selling these devices maybe indirect ?
I have the feeling he wont be earning his money back.
 


Offline NiHaoMike

  • Super Contributor
  • ***
  • Posts: 9323
  • Country: us
  • "Don't turn it on - Take it apart!"
    • Facebook Page
Re: Recording HDMI
« Reply #2 on: June 21, 2020, 02:27:33 pm »
A LKV373A is about $30 for 1080p capture. Add about $10 for a splitter that defeats HDCP. Or about $40 for a splitter that can downscale 4K if he wants to play at 4K but stream at 1080p.

4K capture is a lot more expensive.
Cryptocurrency has taught me to love math and at the same time be baffled by it.

Cryptocurrency lesson 0: Altcoins and Bitcoin are not the same thing.
 
The following users thanked this post: Mechatrommer, Jan Audio

Online DaJMasta

  • Super Contributor
  • ***
  • Posts: 2393
  • Country: us
    • medpants.com
Re: Recording HDMI
« Reply #3 on: June 21, 2020, 03:21:47 pm »
HDCP stripping exists and can be bought, perhaps more doubiously, but as commercial products.  HDMI recording without HDCP can be done fine, legally - I've got a ~$75 box that let's me do 1080p60 capture for my digital microscope and it works great.


As for what you need - single chip solutions to capture exist, but a regular SD card isn't going to be able to keep up with the bandwidth.  To store it, you'd need an encoder of some sort, then still a pretty fast storage medium.  By no means impossible, but much easier to do not as a standalone where you can just send all that data to a device that can process it without issue.

Capture cards are essential for the broadcasting industry now - and that's not just for streamers - so there is a large market for them and especially if they have 4k60 capability or multiple inputs, $500 or more could be quite justified.
 
The following users thanked this post: Jan Audio

Offline NiHaoMike

  • Super Contributor
  • ***
  • Posts: 9323
  • Country: us
  • "Don't turn it on - Take it apart!"
    • Facebook Page
Re: Recording HDMI
« Reply #4 on: June 22, 2020, 02:58:06 am »
I have bought two HDMI splitters that happen to strip HDCP out of the box. One of those I bought with the intent of hacking it into a HDCP stripper after I read an article about it, the other I bought for the audio extraction feature. Not sure if I'll ever take advantage of the HDCP stripping feature since I boycott DRM in the first place, but it's ready if I ever find the need for it.

The LKV373A has a H.264 encoder built in. That's usually a plus, but for some applications like performing machine vision on the HDMI signal, that gets in the way and there are USB 3.0 capture adapters that deliver an uncompressed capture.
Cryptocurrency has taught me to love math and at the same time be baffled by it.

Cryptocurrency lesson 0: Altcoins and Bitcoin are not the same thing.
 
The following users thanked this post: Mechatrommer

Offline TheUnnamedNewbie

  • Super Contributor
  • ***
  • Posts: 1211
  • Country: 00
  • mmwave RFIC/antenna designer
Re: Recording HDMI
« Reply #5 on: June 22, 2020, 06:05:50 am »
Your friend probably did not get ripped off (ripped off in the sense that someone sold him a cheap product for a lot of money. I'm not gonna comment on if he needs such a device - clarification later).

What chip do you need to make a simple HDMI recorder to SD card ?
I bet a PIC32 in DIP can not handle it as usual.

It is impossible, even for the best engineers on the planet, to use any off-the-shelf general purpose microcontroller to do HDMI capture (unless you get some special one that happens to have HDMI transceivers in it though I don't know if those exist).

Why? It's quite simple really: like most video interfaces, HDMI is uncompressed. The 'transmitting device' uncompresses the video stream and then sends this over the cable. As a result, HDMI has quite high data-rates, together with other video interfaces, is likely (by a good margin) the fastest digital link through a cable in a consumer house. My 10 Gbit/s Ethernet can't hold a candle to the near 50 Gbit/s that the HDMI2.1 ports in my TV can handle.

HDMI1 has three channels. Each of these sends data at a maximum rate of 1.65 GBit/s. (for a total signal rate of 4.95 GBit/s, however, the net data-rate is only 3.96 GBit/s due to the 8b10b coding). There is no way any microcontroller or even most microprocessors that don't have specific HDMI transceivers can handle this. This is why most capture cards use either a HDMI-specific IC, or an FPGA (which has high-speed SERDES) to handle this.

This also brings us to the second problem:

What chip do you need to make a simple HDMI recorder to SD card ?

Lets have a look at SD cards: The second-fastest spec is the 'UHS-III' transferrate, which (on paper) can do 624 MB/s. Spoiler: there exist no cards that can actually sustain that datarate. V90 cards are the fastest, and that '90' is for '90 MByte/s sustained write speed' (which is 720 Mbit/s). So, we can't just take the data of the HDMI stream, and somehow dump it into SD card. The SD card just can't keep up. This is why high-end cinema cameras record to SSDs. (and even then they use (possibly lossless) compression first).
 
Most capture cards fall into three categories:
1) Low-quality compression based on some HDMI receiver IC and then a microprocessor or an ASIC (not that familiar with this market, to be honest but with streaming becoming so common, there is really a new market for these ASICs)
2) CPU-based compression: just act as an HDMI translation layer, stream it to a internal bus like PCIe, thunderbolt, and then use the CPU of the system to compress (I think a lot of modern CPUs/GPUs also come with H264/H265 hardware compression integrated).
3) High-quality compression based on an ASIC or FPGA implementation. These do high-bit-rate H264 or H265 or similar compression on-the-go. This is what a lot of the higher-end cards do that are used in media. These solutions range from hundreds of dollars to tens-of-thousands for entire live-broadcast multi-camera high-speed recording setups that can record 20 or more 4k60fps streams at the same time.

The gap between type 1 and type 3 is closing (or rather, you can now find affordable options that can do good-enough-for-most-applications compression). Broadcast will still demand more of their cards, and higher control over the compression.

I have to say that I can find HDMI recorders in the local larger computer/electronics stores.
The best part about magic is when it stops being magic and becomes science instead

"There was no road, but the people walked on it, and the road came to be, and the people followed it, for the road took the path of least resistance"
 
The following users thanked this post: kripton2035, Jan Audio

Offline Jan AudioTopic starter

  • Frequent Contributor
  • **
  • Posts: 820
  • Country: nl
Re: Recording HDMI
« Reply #6 on: June 22, 2020, 02:43:39 pm »
Understood, thanks all.
So many pixels, top technology.
Starting to have more respect for my TV.
 

Offline Larryc001

  • Regular Contributor
  • *
  • Posts: 56
  • Country: ca
Re: Recording HDMI
« Reply #7 on: June 23, 2020, 02:58:37 am »
 

Online DaJMasta

  • Super Contributor
  • ***
  • Posts: 2393
  • Country: us
    • medpants.com
Re: Recording HDMI
« Reply #8 on: June 23, 2020, 03:00:36 am »
Understood, thanks all.
So many pixels, top technology.
Starting to have more respect for my TV.

It is really impressive what they can cram into a specialized single chip solution these days.  If you look at the early 1080p+ TV designs you sometimes find stacks of FPGAs on multiple processing boards just to keep up!
 

Offline Nerull

  • Frequent Contributor
  • **
  • Posts: 694
Re: Recording HDMI
« Reply #9 on: June 23, 2020, 04:18:58 am »
Quote
I think he got ripped off, it is not allowed to sell a device that can record HDMI or am i wrong ?
There are no HDMI video recorders in any shop.

I picked one up at Best Buy a couple months ago. Couldn't find a webcam within 500 miles and the next best option was to hook up my Canon 5D. Always have the best video quality in the meeting....
« Last Edit: June 23, 2020, 04:24:45 am by Nerull »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf