Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Video Resolution #22

Open
ozatomic opened this issue Feb 15, 2021 · 2 comments
Open

Video Resolution #22

ozatomic opened this issue Feb 15, 2021 · 2 comments

Comments

@ozatomic
Copy link

Is there any way to force v4l2 to a specific resolution? When testing my hdmi input via a tv i get the correct resolution of either 1280x720 (16:9) and once it is plugged into the card it goes to 720/576 (4:6).

I have tried to use v4l2-ctl -d 4 --set-fmt-video=width=1280,height=720,pixelformat=YUYV but this does not change anything.

Format Video Capture:
        Width/Height      : 720/576
        Pixel Format      : 'YUYV' (YUYV 4:2:2)
        Field             : Interlaced
        Bytes per Line    : 1440
        Size Image        : 829440
        Colorspace        : Rec. 709
        Transfer Function : Default (maps to Rec. 709)
        YCbCr/HSV Encoding: Default (maps to Rec. 709)
        Quantization      : Default (maps to Limited Range)
        Flags             :
@davids635
Copy link
Contributor

Hi. The v4l2 driver HDMI input format detection is not affected by set video format. The current detection tries to match the HDMI raster to a format supported by the internal video bus. If the raster or frequency of the input signal are not close it can get it wrong. What are you using for a source? There first 2 HDMI inputs of the KonaHDMI use different hardware than the second 2 inputs so if the first 2 input do not detect the signal correctly try the other inputs.

@ozatomic
Copy link
Author

ozatomic commented Feb 17, 2021

The source is a STB via component to hdmi. (HDCP was giving me grief going straight from hdmi to hdmi)
Plugged into a tv the resolution gets set correctly.
I have tried Port 1 and Port3 and both return the same resolution.
Is there a way to hardcode what resolution it uses?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants