LWN: Comments on "Video4Linux2 part 5b: format negotiation" https://lwn.net/Articles/227533/ This is a special feed containing comments posted to the individual LWN article titled "Video4Linux2 part 5b: format negotiation". en-us Sat, 30 Aug 2025 14:37:51 +0000 Sat, 30 Aug 2025 14:37:51 +0000 https://www.rssboard.org/rss-specification lwn@lwn.net Video4Linux2 part 5b: format negotiation https://lwn.net/Articles/333382/ https://lwn.net/Articles/333382/ Kowaio <div class="FormattedComment"> Thank you for the answer !<br> Yes, in fact I want the uncompressed pixels of the capture. I already succeeded in converting from JPEG to BGR. <br> <p> But now, I don't want to do that conversion. Actually, I want to save the uncompressed data for quality directly. <br> <p> But I don't know if that is possible because the driver of the webcam (VF0420 Live! Cam Vista IM - ov519) specified only JPEG format when I'm doing a 'V4l-info'.<br> <p> I'll try to post on the linux-media list. <br> <p> Thank you very much for your help.<br> </div> Fri, 15 May 2009 12:09:22 +0000 Video4Linux2 part 5b: format negotiation https://lwn.net/Articles/333375/ https://lwn.net/Articles/333375/ scottt Kowaio, <a href="http://freshmeat.net/projects/libv4l">libv4l</a> can at least help you decompress the JPEG data: "libv4lconvert offers functions to convert from any (known) pixel format to V4l2_PIX_FMT_BGR24 or V4l2_PIX_FMT_YUV420". If you want the uncompressed pixels for image quality than I suggest you post your question along with details about you camera and source code on the <a href="http://vger.kernel.org/vger-lists.html#linux-media">linux-media mailing list</a>. Fri, 15 May 2009 10:02:38 +0000 Video4Linux2 part 5b: format negotiation https://lwn.net/Articles/333371/ https://lwn.net/Articles/333371/ Kowaio <div class="FormattedComment"> Hello,<br> <p> I'm a French student and I'm doing an intern ship in a French image processing software company, and I've got some questions about V4L2 and more precisely, the video formats.<br> <p> In the application, I just need to capture frames of web-cams and display the result. After research, I found the capture example on the <a rel="nofollow" href="http://v4l2spec.bytesex.org/">http://v4l2spec.bytesex.org/</a> website. So now, I capture correctly the frames.<br> <p> During the initialisation of the device, I'm doing a VIDIOC_G_FMT in order to get the format description of the webcam. Then, I tried to change the pixelformat. Indeed, I wanted the YUYV FORMAT because I need to get the raw data for treatment. <br> <p> My problem is, after the VIDIOC_S_FMT, the pixelformat field is set back to JPEG FORMAT (and the colorspace too) and so, I don't get raw data, but compressed jpeg data.<br> <p> I know that the VIDIOC_S_FMT try to change these fields but if the driver don't authorise them, it will put the originals back. But, I really need to get the raw data of the captured picture, so is there by any chance, another solution to 'force' and capture the images in an Uncompressed format ? Or is it really set by the driver and so, no chance to have the raw ?<br> <p> I really looked for answers everywhere on the web, so I'm losing hope and that's why I'm asking you that today. I'm sorry if my comment is misplaced or if the answer has already been posted.<br> <p> Thank you all,<br> <p> Regards.<br> Guillaume.<br> </div> Fri, 15 May 2009 09:28:57 +0000