[00:44] *** camus1 has joined #linux-media [00:49] *** camus has quit IRC (Ping timeout: 480 seconds) [01:08] *** svarbanov has quit IRC (Ping timeout: 480 seconds) [03:25] *** fleebs has joined #linux-media [04:28] *** pinn has joined #linux-media [04:30] *** pinn_ has quit IRC (Ping timeout: 480 seconds) [06:02] *** svarbanov has joined #linux-media [06:04] *** jm_h has joined #linux-media [06:19] *** andrey-konovalov has joined #linux-media [06:25] *** GBenji has joined #linux-media [06:43] *** miqztee has joined #linux-media [07:17] *** Whoopie has quit IRC (Quit: ZNC - http://znc.in) [07:21] *** Whoopie has joined #linux-media [09:15] *** camus has joined #linux-media [09:17] *** camus1 has quit IRC (Read error: Connection reset by peer) [09:43] *** miqztee has quit IRC (Ping timeout: 480 seconds) [10:19] *** svarbanov has quit IRC (Ping timeout: 480 seconds) [10:27] *** montjoie_ has joined #linux-media [10:27] <montjoie_> hello [10:28] *** svarbanov has joined #linux-media [10:29] *** montjoie_ is now known as montjoie [10:30] <montjoie> for zoran, I need to write a jpeg header filter, does it already exists one driver doing this ? [11:28] *** svenska has joined #linux-media [11:34] <svenska> hi [11:35] <svenska> i have been trying to use the linux uvc gadget, and for some reason most dequeued buffers have their ERROR flag set [11:35] *** camus1 has joined #linux-media [11:36] <svenska> it appears that the DQBUF ioctl can return buffers before the data has been sent to usb [11:36] <svenska> so i wonder, how do i limit the frame rate at which my frames are output? [11:37] <svenska> (i am currently synthesizing images, so i need to limit the frame rate on the sender site.) [11:37] *** camus has quit IRC (Remote host closed the connection) [11:37] <svenska> if i am asking in the wrong channel, can you point me somewhere instead? [11:43] <svenska> while the /dev/videoN fd is writable [select()], the code will do { ioctl(VIDIOC_DQBUF), fill_buffer(), ioctl(VIDIOC_QBUF) }. ignoring the ERROR flag causes a frame rate of 200~4000 fps (for a 30 fps mode). the O_NONBLOCK flag has no effect, DQBUF does not block in either case. [11:44] *** svenska2 has joined #linux-media [11:46] <svenska> simply adding a delay before doing VIDIOC_QBUF sometimes causes the kernel to panic; i am not sure why [11:46] *** svenska2 has quit IRC () [11:47] <svenska> i am a bit out of ideas here. does someone have knowledge how to use the uvc gadget? [11:48] <svenska> i have seen this behaviour on kernels 4.14, 4.19 and 5.4 - i did not see any significant changes to linux-master when i last checked [11:57] *** miqztee has joined #linux-media [13:17] *** swegener_ has joined #linux-media [13:18] <svenska> does anyone have any ideas? [13:19] *** swegener has quit IRC (Ping timeout: 480 seconds) [13:32] <pinchartl> svenska: it's the right channel. I haven't been able to do much work on UVC gadget for a few years though, so I can't really help at this point :-S [13:33] <pinchartl> it's on my long todo list to revive this project, and there has been a couple of occasions when I thought it would happen, but in the end it didn't [13:33] <pinchartl> kbingham: ^^ [13:33] <svenska> Do you have any idea how the gadget is to be used correctly? [13:33] <svenska> By the way, your reference implementation (at ideasonboard) can be viewed online, but I can't seem to clone the repository... [13:34] <svenska> (I mean this link: https://git.ideasonboard.org/uvc-gadget.git but don't know if it current.) [13:36] <svenska> pinchartl: Sorry if I am annoying. [13:37] *** svarbanov has quit IRC (Ping timeout: 480 seconds) [13:37] <pinchartl> can you clone git://git.ideasonboard.org/uvc-gadget.git ? [13:38] <pinchartl> I need to move that server to cgit, gitweb doesn't work well with http it seems [13:38] <pinchartl> you're not annoying :-) [13:38] <pinchartl> I just wish I could dedicate more time to UVC gadget [13:39] <svenska> Yes, I can clone that one correctly. [13:39] <svenska> I used to have a gitweb setup, but the web server would redirect depending on whether the user agent was "git" or not. [13:44] <svenska> Hmm, I changed the setup a few years ago to redirect based on the link itself. [13:48] *** svarbanov has joined #linux-media [13:49] *** miqztee has quit IRC (Remote host closed the connection) [13:49] <kbingham> svenska, what platform are you running on ? [13:53] <svenska> Android. [13:55] <svenska> kbingham: Which is why I can't easily change the kernel a lot. I can chose to use the uvc-gadget as-is, or I can aim for a complete userspace implementation (which seems like a waste of time and effort). [13:57] *** miqztee has joined #linux-media [14:02] *** b-rad has quit IRC (Ping timeout: 480 seconds) [14:02] *** camus1 has quit IRC () [14:43] *** miqztee has quit IRC (Remote host closed the connection) [14:55] <pinchartl> svenska: why can't you change the kernel ? because it's a stock Android device, not a device you are developing ? [14:56] <pinchartl> (oletko ruotsalainen ? ;-)) [15:07] *** b-rad has joined #linux-media [15:13] <svenska> pinchartl: it is a vendor kernel. the usb gadget routines are unchanged, though. [15:14] <svenska> google's long-term strategy seems to center around a common kernel for all devices [15:14] <svenska> (or at least a common kernel for all devices based on a platform). [15:15] <svenska> so changes to kernel code are restricted. changes to modules are fine though. [15:15] <svenska> so i can't test with kernel 5.12, for example. :) [15:18] <pinchartl> right [15:18] <pinchartl> is UVC gadget compiled as a module in the Android kernel ? [15:20] <svenska> depends on the device, i guess [15:20] <svenska> i've seen some defconfigs with UAC2 enabled, others with UAC2 disabled, and none with UVC enabled by default [15:21] <svenska> generally, the UVC gadget seems to be disabled [15:32] *** camus has joined #linux-media [15:45] *** camus1 has joined #linux-media [15:47] *** camus has quit IRC (Ping timeout: 480 seconds) [15:50] <NoGuest17> jo tuxers [15:56] <ezequielg> montjoie: i think there is one. [15:56] <ezequielg> somewhere. [15:56] <ezequielg> jpeg_parse_frame_header at v4l2_jpeg.c ? [15:57] <ezequielg> sorry, v4l2-jpeg.c i mean [16:38] *** GBenji has left [16:39] *** camus1 has quit IRC (Remote host closed the connection) [16:46] *** gouchi has joined #linux-media [17:18] <montjoie> ezequielg: thanks I will check it [17:19] <montjoie> it seems there are no user in kernel of it:) [18:41] *** gouchi has quit IRC (Remote host closed the connection) [18:42] *** gouchi has joined #linux-media [18:59] *** b-rad has quit IRC (Ping timeout: 480 seconds) [19:09] <montjoie> does I have the right to modify a buffer in vb2_ops.buf_prepare ? [19:24] *** ao2 has joined #linux-media [19:28] *** gouchi has quit IRC (Remote host closed the connection) [19:40] *** gouchi has joined #linux-media [20:17] *** b-rad has joined #linux-media [20:24] *** jm_h has quit IRC (Remote host closed the connection) [21:04] *** gouchi has quit IRC (Remote host closed the connection) [21:19] *** bjwyman__ has quit IRC (Read error: Connection reset by peer) [21:19] *** bjwyman__ has joined #linux-media [21:37] *** ao2 has quit IRC (Quit: Leaving) [21:39] <svenska> does anyone actually use the uvc gadget? [21:54] *** andrey-konovalov has quit IRC (Ping timeout: 480 seconds) [21:55] *** b-rad has quit IRC (Remote host closed the connection) [22:33] *** b-rad has joined #linux-media