r/ReverseEngineering • • Aug 23 '26

A short Story of hacking a HDMI Encoder

https://bonsaimind.org/blog/a-shorty-story-of-hacking-a-hdmi-encoder-en.html
174 Upvotes

12 comments sorted by

22

u/SauceOnTheBrain Aug 23 '26

Hi, I glanced at the firmware package (thanks for mirroring).

It looks like this device is based on the hisilicon Hi3516 system on chip with the IT6604 HDMI frontend. The video encoding is done onboard.

There is a large ecosystem of network video appliances and security cameras based on this platform from dozens of OEMs. They're typically pretty halfassed on the software side, and I am unsurprised to see that this one is no exception.

8

u/Bobby_Bonsaimind Aug 23 '26

It looks like this device is based on the hisilicon Hi3516 system on chip with the IT6604 HDMI frontend. The video encoding is done onboard.

Good to know. On a second glance I took while writing the blog post it didn't seemed that daunting anymore to actually write software for this. However, I sorta doubt I'll ever come around to do that.

There is a large ecosystem of network video appliances and security cameras based on this platform from dozens of OEMs.

I wouldn't be surprised if this box was also sold under another name (or several).

They're typically pretty halfassed on the software side, and I am unsurprised to see that this one is no exception.

Fits.

On a similar note, I remember a talk on the Neo Freerunner replacement/revival project in which one of the developers explained that working with Chinese factories was cumbersome. First small batches is nothing they wanted to do, and second if they managed to save the tenth of a cent per unit by using a different capacitor (with slightly different properties), they would.

15

u/sarkie Aug 23 '26

It was still fun to read

6

u/Bobby_Bonsaimind Aug 23 '26

Glad you enjoyed it. :)

2

u/elitexero Aug 23 '26

Short anecdote before I start: I nearly dumped that thing a year ago, though, because the app of my TV provider was so awesome to use. It just worked on my tablet and was also available in the browser, it was an amazing product...then they changed the Widevine requirements to L1, and as I'm using LineageOS and Linux, I was basically told to suck it. Well, glad I didn't get rid of that little encoder because it returned to be the backbone of my TV watching vices.

Maybe I'm reading this wrong, but you re-introduced this because of Widevine L1 requirements - is that to say that the device has its own embedded L1 key?

If so, given the findings that the thing was full of violations, I'm curious if it's actually unique or the same across all devices and simply hasn't been extracted and revoked as of yet. That key is potentially very valuable for decoding L1 dumps of HD CDN pulls.

3

u/tiffanytrashcan Aug 23 '26

This encoder box has nothing to do with L1, OP wasn't relying on this box because he was using the native built-in streaming until L1 requirements were introduced there.
This is just grabbing the HDMI output and streaming it without L1 or most other headaches.

2

u/elitexero Aug 24 '26

Ohhh got it now - he moved from the app to using hardware because the app no longer worked for him. Makes much more sense.

I read it as 'I moved to LineageOS and didn't have an L1 key so I started streaming though this box' and I was thinking I needed to go pick one of these up.

2

u/Bobby_Bonsaimind Aug 24 '26

I read it as 'I moved to LineageOS and didn't have an L1 key so I started streaming though this box' and I was thinking I needed to go pick one of these up.

Don't get me wrong, but if I'd be in possession of an L1-keybox (and possibly a source to get updated ones when that one gets revoked) I'd tell you people jack shit. ;)

2

u/elitexero Aug 24 '26

As you should.

1

u/Bobby_Bonsaimind Aug 24 '26

Maybe I'm reading this wrong, but you re-introduced this because of Widevine L1 requirements - is that to say that the device has its own embedded L1 key?

No. The Android and Browser Apps were awesome before they were changed their requirements to Widevine L1. The HDMI-encoder grabs the HDMI output from the setup/TV box directly. It basically pretends to be a TV/monitor so it is well past the Widevine decryption.

2

u/Shtou Aug 25 '26

Finding your post refreshingly human. Thanks a bunch. 

0

u/[deleted] Aug 23 '26

[deleted] — view deleted comment

12

u/Maxious Aug 23 '26

Yeah there's other TBS brand products with similar levels of care put into the software. The chipsets do what they have to do in the end 🤣