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

BufferProbe fails if 'autovideosrc' is not 800x600 #23

Open
jason-thomas-kantar opened this issue Sep 5, 2022 · 4 comments
Open

BufferProbe fails if 'autovideosrc' is not 800x600 #23

jason-thomas-kantar opened this issue Sep 5, 2022 · 4 comments

Comments

@jason-thomas-kantar
Copy link

My webcam is 1280x720, but the code expects 800x600. It works if I change the WIDTH / HEIGHT in the code to 1280x720. I'm not sure (yet) how to fix it for real since I'm just getting started with this. If I figure that out I will submit a PR.

0:00:01.737786518 217396 0x7f29b4778b00 WARN basetransform gstbasetransform.c:1378:gst_base_transform_setcaps: FAILED to configure incaps video/x-raw, format=(string)YUY2, width=(int)1280, height=(int)720, framerate=(fraction)10/1 and outcaps video/x-raw, width=(int)1280, height=(int)720, framerate=(fraction)10/1, format=(string)BGRx, pixel-aspect-ratio=(fraction)1/2147483647

@neilcsmith-net
Copy link
Member

Try adding , pixel-aspect-ratio=1/1 to the caps filter. The value of that in the message looks suspicious.

@jason-thomas-kantar
Copy link
Author

That is already there, I'm running BufferProbe.java unchanged...

String caps = "video/x-raw, width=" + WIDTH + ", height=" + HEIGHT + ", pixel-aspect-ratio=1/1, " + (ByteOrder.nativeOrder() == ByteOrder.LITTLE_ENDIAN ? "format=BGRx" : "format=xRGB");

@neilcsmith-net
Copy link
Member

Sorry, looking at the wrong example! 🙄

That still looks odd, though. Try swapping the first videoconvert to after the videoscale.

jt70 added a commit to jt70/gst1-java-examples that referenced this issue Sep 5, 2022
@jt70
Copy link

jt70 commented Sep 5, 2022

It works, I put in a PR.

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

3 participants