Giter Club home page Giter Club logo

usb-hdmi-video-capture's Introduction

About

This repository has information about these cheap USB HDMI video capture dongle that are available at Amazon/AliExpress/Banggood:

These are great for capturing a computer HDMI output (e.g. from a raspberry pi) into a video file.

You can use Open Broadcaster Software (OBS) Studio (obsproject/obs-studio) to easily record a video from the HDMI input:

And the source properties were configured as:

TIP After setting the source resolution, and returning to the main window, you should right-click the video source, and execute the Resize output (source size) command to resize the output canvas to the size of the source.

After recording, it looks like:

obs-recording-1024x768.mp4

You can also use µStreamer (aka uStreamer) to start a Motion JPEG (aka MJPEG) streaming web server at http://localhost:8080 with:

./ustreamer \
    --format jpeg \
    --resolution 1280x720 \
    --desired-fps 15 \
    --drop-same-frames 5 \
    --slowdown

NB You should play with the values of the --desired-fps and --drop-same-frames arguments to minimize the CPU usage of ustreamer and the web browser.

NB If the image is blurred, check the resolution at the OS level with the fbset or xrandr command, and use it in the ustream --resolution argument.

details

lsusb details:

lsusb
Bus 003 Device 004: ID 534d:2109 MACROSILICON
lsusb -s 3:4 -v

See the output at lsusb-output.txt.

v4l details:

v4l2-ctl --device /dev/video0 --list-formats-ext --all

See the output at v4l-output.txt.

usb-hdmi-video-capture's People

Contributors

rgl avatar

Stargazers

 avatar skywalker_lan avatar  avatar Jevin Sweval avatar  avatar  avatar

Watchers

Jevin Sweval avatar James Cloos avatar  avatar

usb-hdmi-video-capture's Issues

linux vlc / ffmpeg playback / streaming?

Hello,

I just recently got one of these exact same thingies. Have you tried streaming (preferably copying native inpuit from HDMI) using VLC (nogui) or ffmpeg on Debian? I had success with uStreamer and http, but not with aformentioned services.

My goal is to use this capture card with my cable TV providers HDMI box. So I connect the box wtih a HDMI cable to this thing, program the box to power up at a specific time to a specific TV chanel, and add a cronjob to record the resulting stream. Playback seems to be working with the basic "ffplay /dev/video0" command, however, this is connected to a headless sever, and I want to stream the content on udp or rtp when the specific show is running, but for some reason this does not really want to work.

The box is capable of outputting 1080p (tested) and all of the HD cable channels are already h264 (as per source info from a smart TV), so I don't see the reason to transcod the digital source... it should be possible to just "dump" the audio/video stream to a .mp4 file with this card, right? or worst case transcode the resulting mpjeg stream to h264 (or hvec).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.