transcode-users
[Top][All Lists]
Advanced

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

Re: [transcode-users] Recording from v4l2?


To: transcode Users Mailing List <transcode-users@xxxxxxxxx>
Subject: Re: [transcode-users] Recording from v4l2?
From: Adam K Kirchhoff <adamk@xxxxxxxxxxxx>
Date: Thu, 23 Dec 2004 13:37:24 -0500
Delivered-to: itdp@localhost
In-reply-to: <1103799877.3278.44.camel@localhost.localdomain>
References: <20041220204843.GA10898@funk.gsky.dom> <41C74E78.3090302@voicenet.com> <20041220234758.GA16821@funk.gsky.dom> <41C7FC63.1060903@voicenet.com> <1103628319.3552.20.camel@localhost.localdomain> <41C818AA.9090100@voicenet.com> <1103633229.3552.28.camel@localhost.localdomain> <41C81E8F.2090804@voicenet.com> <1103635883.3552.31.camel@localhost.localdomain> <41C85A25.3020604@voicenet.com><20041221234359.GB13306@funk.gsky.dom> <41C8C15A.2020408@voicenet.com> <1103713114.3297.14.camel@localhost.localdomain> <41C96802.2010500@voicenet.com> <1103719528.3297.48.camel@localhost.localdomain> <41C97664.3000000@voicenet.com> <1103723744.3297.61.camel@localhost.localdomain> <41C9B342.3010507@voicenet.com><1103799877.3278.44.camel@localhost.localdomain>
User-agent: Mozilla Thunderbird 0.9 (X11/20041103)

Erik Slagter wrote:

On Wed, 2004-12-22 at 12:47 -0500, Adam K Kirchhoff wrote:


I do have some experience with C, though it's been a number of years since I took those classes in college. I actually have a little bit of free time coming up, so I'll take a stab at it and see what I can come up with.





A few quick edits (namely including <asm/fcntl.h> and changing V4L2_BUF_TYPE_CAPTURE to V4L2_BUF_TYPE_VIDEO_CAPTURE), and it mostly works. It does error out with an invalid argument for VIDIOC_ENUM_FMT:

59455247 YERG 8 bpp, gray
4f424752 OBGR 15 bpp RGB, le
51424752 QBGR 15 bpp RGB, be
50424752 PBGR 16 bpp RGB, le
52424752 RBGR 16 bpp RGB, be
33524742 3RGB 24 bpp RGB, le
34524742 4RGB 32 bpp RGB, le
34424752 4BGR 32 bpp RGB, be
56595559 VYUY 4:2:2, packed, YUYV
59565955 YVYU 4:2:2, packed, UYVY
VIDIOC_ENUM_FMT: Invalid argument

Adam


[Prev in Thread] Current Thread [Next in Thread]