[mythtv-users] Configuring USB3 HDMI capture device non-HDCP source
Robert LeBlanc
robert at leblancnet.us
Thu Nov 29 18:36:58 UTC 2018
I'm finally getting around to getting this working. It looks like my
patience (slothfulness) has paid off because there is the external (black
box) tuner option now. I've gone through the mythhdrecorder code and I
think I understand most of what needs to happen. I do have a few questions
though.
>From what the Wiki says, MythTV is expecting a MPTS as output from the
external program on STDOUT. This USB device only has YUYV output, so do I
need to pass it through ffmpeg or the h.264 library before sending it to
MythTV? I think that I'll leave the channel changing with IR blaster to a
separate script so that it doesn't have to support all kinds of blasters.
Basically, this should be pretty simple:
1. Send commands to the UVC device to set resolution, framerate,
(picture quality in the future).
2. Read from /dev/video0
3. Run the stream through ffmpeg/h264 library
4. Send output to STDOUT
Am I on the right track here? Anything I'm missing (I understand that I
have to read STDIN and send command results on STDERR)?
Thanks.
----------------
Robert LeBlanc
PGP Fingerprint 79A2 9CA4 6CC4 45DD A904 C70E E654 3BB2 FA62 B9F1
On Tue, Aug 15, 2017 at 8:44 AM Devin Heitmueller <
dheitmueller at kernellabs.com> wrote:
> > I believe the device can output in a few different formats, I'm going to
> > mess with that a bit today. For the analog capture devices, I can't set
> the
> > recording profile to 1080p, only like 700x580 or something so the device
> is
> > downscaling. I'll see if I can use v4l2-cfg to set the frame rate. When
> I do
> > a non-raw capture, it understands that the frame rate is 30 or 60
> (depending
> > on what I set in steamer) and VLC reports that and plays it back
> properly.
> >
> > I can also try twiddling with the code to see if I can get some
> additional
> > parameters passed to the device, do you know where this code would be?
>
> It tends to be heavily dependent on the device. Most webcams let you
> adjust the frame rate and resolution because the net effect is how it
> configures the onboard image sensor. However with a device that
> consumes digital video from an HDMI source, there are more limitations
> on how much control the receiver can exercise in terms of resolutions
> and framerates. If the device supports frame decimation and/or
> scaling then it can be pretty flexible. However if it's more of a
> "dumb" device, then it just takes whatever comes back from the HDMI
> receiver chip and pushes it over the USB bus.
>
> You might want to load the device up under Windows and see what
> options are offered to you, as that might provide some guidance as to
> what the hardware is actually capable of.
>
> Regarding 1080p vs 700x580, my guess is MythTV has some hard-coded
> resolutions (based on typical NTSC/PAL use cases) and the actual
> commands to set the resolution in the hardware are completely ignored.
> You would probably have to save a few frames of actual video from the
> driver and see what their effective resolution is, as opposed what
> MythTV is supposedly telling the device to operate at.
>
> Devin
>
> --
> Devin J. Heitmueller - Kernel Labs
> http://www.kernellabs.com
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20181129/525153c4/attachment-0001.html>
More information about the mythtv-users
mailing list