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

Failed to start media pipeline #59

Open
thedodd opened this issue Jul 22, 2022 · 2 comments
Open

Failed to start media pipeline #59

thedodd opened this issue Jul 22, 2022 · 2 comments

Comments

@thedodd
Copy link

thedodd commented Jul 22, 2022

First, thanks for the great work on this crate.

I'm running into a bit of a strange issue where my video stream is refusing to start. My settings for the device:

let mut fmt = dev.format()?;
fmt.fourcc = FourCC::new(b"BA81");
fmt.width = 640;
fmt.height = 480;
fmt.stride = 640;
fmt.size = 640 * 480;
fmt.field_order = FieldOrder::Progressive;
fmt.colorspace = Colorspace::RAW;
dev.set_format(&fmt)?;

// Using an mmap stream:
mmap::Stream::with_buffers(&dev, Type::VideoCapture, 8)

When I check syslog, I see a bunch of the following:

Jul 23 00:08:38 pi3 kernel: [33785.523627] unicam 3f801000.csi: Wrong width or height 640x480 (remote pad set to 3280x2464)
Jul 23 00:08:38 pi3 kernel: [33785.523643] unicam 3f801000.csi: Failed to start media pipeline: -22

Versions and such:

# v4l-utils package
1.20.0-2

# uname -a
Linux pi3 5.15.32-v8+ #1538 SMP PREEMPT Thu Mar 31 19:40:39 BST 2022 aarch64 GNU/Linux

The main question I have is: how can I configure that remote pad setting? Seems to be part of the issue here.

@MarijnS95
Copy link
Collaborator

@thedodd If I have to guess, the "remote pad" here is part of the Media API (use media-ctl -p to print the layout of your camera hardware). Fortunately I had written some support for this API and hope to finish + PR it one day, when there's interest:

https://github.com/MarijnS95/libv4l-rs/tree/media

@thedodd
Copy link
Author

thedodd commented Jul 25, 2022

Nice, thanks for the response. I'll give it a try.

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