[Ffmpeg-devel] v4l2 default device
Thu Sep 21 10:48:49 CEST 2006
On Thu, Sep 21, 2006 at 10:22:15AM +1000, Richard Khoury wrote:
> I'm working on a project that uses video capture through ffmpeg and
> it is an annoyance that each time I restart my computer I have to
> run a program (in my case xawtv) that registers a device with the
> v4l2 driver before any video frames appear.
> In my case I've adjusted the v4l2.c file to automatically select the
> first cameral type, but in order to make this a nice generic patch
> there should be more available to select whether it's a tuner or
> camera input as well as which index it's at. Is there a suggested
> structure I should use to do this? Also, it would be extrememly handy
> to be able to select the frame format flag from the application side,
> but there is no way to change it from INTERLACED without hardcoding a
> new value in.
> I'm more than happy to make this patch (when I get the time) but
> I'll need suggestions as to the best way to do this.
put any needed new variables in AVFormatContext and set the AVOptions in
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
In the past you could go to a library and read, borrow or copy any book
Today you'd get arrested for mere telling someone where the library is
More information about the ffmpeg-devel