[Ffmpeg-devel] [patch] *BSD bktr grab support

Michael Niedermayer michaelni
Tue Jun 7 22:20:04 CEST 2005


Hi

On Tuesday 07 June 2005 21:54, Jacob Meuser wrote:
> On Tue, Jun 07, 2005 at 09:37:20PM +0200, Michael Niedermayer wrote:
> > Hi
> >
> > On Tuesday 07 June 2005 21:17, Jacob Meuser wrote:
> > > On Sun, May 22, 2005 at 11:04:13AM +0200, Michael Niedermayer wrote:
> > > > Hi
> > > >
> > > > On Thursday 19 May 2005 05:42, Jacob Meuser wrote:
> > > > > here is the cleaned up patch for gab support for the bktr driver
> > > > > found on *BSD systems.
> > > > >
> > > > > the license is now LGPL, I changed the tabs to 4 spaces, added a
> > > > > couple comments, and took out an #if 0 block and a CVS Id
> > > > > that were accidently left in the last version.
> > > > >
> > > > >
> > > > > --- libavformat/grab.c	30 Apr 2005 21:43:58 -0000	1.34
> > > > > +++ libavformat/grab.c	19 May 2005 03:37:10 -0000
> > > > > @@ -364,7 +364,7 @@
> > > > >  }
> > > > >
> > > > >  static AVInputFormat video_grab_device_format = {
> > > > > -    "video4linux",
> > > > > +    "video_device",
> > > >
> > > > is it theoretically impossible for v4l and bktr to coexist on the
> > > > same machine?
> >
> > [...]
> >
> > > sorry for the delay.  I have fixed the above issues.  new patch
> >
> > hmm, doesnt seem so ...
>
> I'm not sure what would be the best as far as ffmpeg is concerned.
>
> like this in ffmpeg.c ~ line 259?
>
> #ifdef CONFIG_V4L
> static char *video_grab_format = "video4linux";
> #else
> #ifdef CONFIG_BKTR
> static char *video_grab_format = "bktr";
> #endif
> #endif

ok


>
> does a way to specify video_grab_format at runtime already exist?
> I couldn't find how that would happen.  would that need to be
> added?  I would think so, or there is no way to use both v4l and
> bktr in the same ffmpeg binary, and thus the "conflict" isn't really
> solved.

that could be added later, i was just against having 2 different video grab 
systems with the same name and changing an existing name (might break 
existing code)

-- 
Michael





More information about the ffmpeg-devel mailing list