Comments (2)
Hi,
Does the pi driver actually trigger the resolution change event? The V4L2 documentation mentions this about EPIPE
:
VIDIOC_DQBUF returns this on an empty capture queue for mem2mem codecs if a buffer with the V4L2_BUF_FLAG_LAST was already dequeued and no new buffers are expected to become available.
A DRC event normally implies the event being sent, then a CAPTURE buffer with the LAST flag being returned (at which point user-space can check pending V4L2 events to know whether this is a DRC or the end of the stream). After this sequence of events v4l2r should not be trying to dequeue CAPTURE buffers anymore and should certainly not end up in a busy loop.
Could you attach the output of strace -f
run on your decoding process to understand if the problem might come from the driver itself?
from v4l2r.
Well it seems to trigger the initial resolution change at least since the feed initially works, but I'm not sure about resolution changes mid stream. I did come across this post recently that describes some of the inner workings of the RPi v4l2 decoder and makes references to the EPIPE
error I'm seeing.
The post response by Raspberry Pi Foundation's 6by9 suggests the same process you described so I assume the RPi does do this.
Question:
if a V4L2_EVENT_SOURCE_CHANGE event with changes set to V4L2_EVENT_SRC_CH_RESOLUTION is pending, the Dynamic Resolution Change sequence needs to be followed,
if a V4L2_EVENT_EOS event is pending, the End of Stream sequence needs to be followed.
Response:
So you can dequeue the appropriate pending event and act accordingly.
Either way I'll double check if the pi is actually submitting a V4L2_EVENT_SRC_CH_RESOLUTION
event for v4l2r to pick up on.
Could you attach the output of strace -f run on your decoding process to understand if the problem might come from the driver itself?
I'll get this for you.
from v4l2r.
Related Issues (15)
- simple_decoder produces unreadable output on raspberry pi HOT 2
- Support for VIDIOC_S_CTRL? HOT 2
- Set up Travis CI HOT 1
- Transmuting between `v4l2_plane__bindgen_ty_1` and `v4l2_buffer__bindgen_ty_1` is not safe
- Bindings should be generated at build time HOT 5
- ioctl functions should probably return the raw V4L2 type?
- Project layout HOT 2
- `QueryBuffer` should be replaced by `V4l2Buffer`?
- ioctl wrappers should take the same types as the ioctls
- Use MemdFd instead of DmaHeap for DMABUF examples? HOT 1
- Query buffers with drm prime file descriptors HOT 2
- Raspberry pi never fires a EPOLLPRI event HOT 41
- v4l2r::device::queue::FormatBuilder does not follow rust builder convention HOT 1
- Could be published to crates.io ? HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from v4l2r.