Closed bshubenok-sigma closed 11 months ago
Okay, that was "buggy driver" that uses a strange mmap technique.
Glad you were able to figure it out. I’m not opposed to including (reasonable) workaround for buggy hardware in this crate.
What was the buggy driver doing in your case that broke the assumptions of the crate?
It returned N buffers, each of which maps the whole device's memory (with some offset), and every time on deque returns a buffer with a new offset but the index of a previously allocated buffer. As I understood, the crate expects offset to be unchanged after buffer allocation and mmap. GStreamer was able to get a stream right, FFmpeg failed.
This is less of an
issue
but more of me seeking help. I'm trying to capture frames with Queue fromnext
branch and getting all frame buffers set to zero. I've checkedffmpeg
and it could capture frames as expected.This is what I'm doing:
Here what I'm getting in output:
I'm sure I'm doing something wrong but maybe someone can help me anyway?