Re: V4L2 logging for multiple streams

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Fritz,

On 16/01/2021 04:33, Fritz Koenig wrote:
> Hi,
> 
> I'm trying to sort some issues with regards to decoding multiple
> streams at once.  Logging can be helpful with messages like this:
> 
> [105188.500450] video2: VIDIOC_STREAMOFF: type=vid-out-mplane
> 

The type is telling you useful information there, is that what you are
after?

> but when I have:
> 
> [105188.498697] video2: VIDIOC_STREAMOFF: type=vid-out-mplane
> [105188.498715] video2: VIDIOC_STREAMOFF: type=vid-cap-mplane
> [105188.499116] video2: VIDIOC_UNSUBSCRIBE_EVENT: type=0x5, id=0x0, flags=0x0
> [105188.500450] video2: VIDIOC_STREAMOFF: type=vid-out-mplane
> [105188.500467] video2: VIDIOC_STREAMOFF: type=vid-cap-mplane
> [105188.500611] video2: VIDIOC_UNSUBSCRIBE_EVENT: type=0x5, id=0x0, flags=0x0
> [105188.501879] video2: VIDIOC_UNSUBSCRIBE_EVENT: type=0x5, id=0x0, flags=0x0
> [105188.502276] video2: VIDIOC_STREAMOFF: type=vid-out-mplane
> [105188.502331] video2: VIDIOC_STREAMOFF: type=vid-cap-mplane
> 
> I can't tell which stream VIDIOC_STREAMOFF is associated with.  Is
> there a logging option that I'm missing that would help indicate which
> stream that ioctl is associated with.

The type expresses if it's from an output queue or a capture queue.

  type=vid-out-mplane : Output queue
  type=vid-cap-mplane : Capture queue


That's not so helpful/useful on the UNSUBSCRIBE_EVENT lines though, but
your specific request is regarding STREAMOFF.

I hope that helps you read the logs a little.

--
Kieran



[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux