Live data from Hacker News

Cheap HDMI capture for Linux

blog.benjojo.co.uk

31–40 of 78 posts

Re: Cheap HDMI capture for Linux

#31

Are the gamer HDMI capture devices expensive because they have a low latency? (Besides the verticality of the market.)

I believe they are also doing the encoding into a compressed format.

The method in the link gives you the raw HDMI stream, which you can containerize to play in VLC and the like, but you wind up with some pretty large files.

You could potentially be capturing a raw 4 to 18 Gbps stream.

Re: Cheap HDMI capture for Linux

#32
post #23

How would one go about compressing the captured stream? I read it can be containerized as an MKV, but then would you re-encode as H.264, or is there a better codec? I assume there is a quality vs time to encode trade-off? Also, would this be a component in a viable DIY HDMI matrix switch? I see this 4 input / 8 output 4K HDMI matrix switch for only $169 on Amazon here: http://amzn.to/28Ykyor So, cost-wise not viable,…

no need, just buy never version: https://blog.danman.eu/new-version-of-lenkeng-hdmi-over-ip-e...

Appreciate the link.

I had not considered using a raspberry pi on the receiving end.

Any thoughts on using multiple Pis to receive the same stream?

I would like to take the output from an HDMI source and display it on multiple displays throughout my house.

Re: Cheap HDMI capture for Linux

#34

Are the gamer HDMI capture devices expensive because they have a low latency? (Besides the verticality of the market.)

I believe they are also doing the encoding into a compressed format. The method in the link gives you the raw HDMI stream, which you can containerize to play in VLC and the like, but you wind up with some pretty large files. You could potentially be capturing a raw 4 to 18 Gbps stream.

The method in the link involves capturing whatever the HDMI extenders use as their compression format, which usually is MJPEG or some (I-frame only) variant of H.264.

[Edit: Added MJPEG, as this seems to be case for the device in the article]

Re: Cheap HDMI capture for Linux

#35
I love reading these. I always wonder if the original hardware/software/firmware engineer reads this and goes:

  A. Well, Duh!
  B. Well played reverse engineering Sir!
  C. Oh no, I need to do better next time!

Re: Cheap HDMI capture for Linux

#36

You can also use devices that are USB Video Class (UVC) compliant, thus which don't require any drivers. libuvc can be used to capture from these devices: https://github.com/ktossell/libuvc You can get cheap off-brand UVC USB grabbers, or you can get higher quality gear, like the AJA U-TAP: https://www.aja.com/en/products/u-tap Admittedly though I haven't seen anything that comes close to £45 :-)

[deleted]

Re: Cheap HDMI capture for Linux

#37

You can also use devices that are USB Video Class (UVC) compliant, thus which don't require any drivers. libuvc can be used to capture from these devices: https://github.com/ktossell/libuvc You can get cheap off-brand UVC USB grabbers, or you can get higher quality gear, like the AJA U-TAP: https://www.aja.com/en/products/u-tap Admittedly though I haven't seen anything that comes close to £45 :-)

I've personally had a great experience with the Magewell USB3 HDMI capture device, which I believe is also UVC - requires no drivers on Windows/Mac and claims to be Linux compatible. Slightly cheaper than the u-tap.

https://www.amazon.com/Magewell-HDMI-USB-Capture-Dongle/dp/B...

Can do lossless capture with extremely low latency, which is pretty nice - it's good enough that I've been able to play console video games on it directly instead of plugging into a TV.

Re: Cheap HDMI capture for Linux

#38

Cool hack, but the part about the cost of off-the-shelf solutions is wildly wrong - Blackmagic's HDMI capture solutions can be purchased for less than 145usd for pci-e and 200usd for usb3 and they have free drivers&sdk for linux.

The reason why Blackmagic hardware is cheaper is that it's rubbish. Bad hardware, bad firmware, bad drivers. Everyone I know that's ever owned Blackmagic (myself included) has had a bad time. It's not worth buying from them just to save a hundred dollars.

Re: Cheap HDMI capture for Linux

#39

How is the latency with something like this? I would assume it's pretty much real time when dealing with the raw data, encoding could add some latency. Am I correct?

Most of the latency comes from internal buffering inside ffmpeg or vlc. Most go away if you tune them down.
Post reply on HN