pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: new option x11grab? (Re: ffmpeg x11grab)



try 
$ ffmpeg -f x11grab -s cif -r 25 -i ":0.0" /tmp/out.mpg

At Thu, 03 Dec 2009 15:20:53 +0100,
Victor Dorneanu wrote:
> 
> 
> $ ffmpeg -f x11grab -s cif -i ":0.0" /tmp/out.mpg
> FFmpeg version SVN-r19146-snapshot, Copyright (c) 2000-2009 Fabrice
> Bellard, et al.
>   configuration: --enable-avfilter --enable-avfilter-lavf
> --enable-postproc --enable-libvorbis --enable-libmp3lame
> --enable-x11grab --enable-libtheora --enable-libxvid --enable-libx264
> --mandir=/usr/pkg/man --cc=cc --prefix=/usr/pkg --disable-debug
> --disable-stripping --enable-shared --enable-runtime-cpudetect
> --enable-pthreads --enable-gpl
>   libavutil     50. 3. 0 / 50. 3. 0
>   libavcodec    52.30. 2 / 52.30. 2
>   libavformat   52.34. 0 / 52.34. 0
>   libavdevice   52. 2. 0 / 52. 2. 0
>   libavfilter    0. 5. 0 /  0. 5. 0
>   libswscale     0. 7. 1 /  0. 7. 1
>   libpostproc   51. 2. 0 / 51. 2. 0
>   built on Dec  3 2009 15:13:45, gcc: 4.1.3 20080704 prerelease (NetBSD
> nb2 20081120)
> [x11grab @ 0x7f7ffa313000]device: :0.0 -> display: :0.0 x: 0 y: 0 width:
> 352 height: 288
> [x11grab @ 0x7f7ffa313000]AVParameters don't have video size and/or
> rate. Use -s and -r.
> :0.0: I/O error occurred
> Usually that means that input file is truncated and/or corrupted.
> 
> 
> What am I doing wrong?
> 
> 
> 
> Marko Schütz wrote:
> > At Thu, 3 Dec 2009 13:15:09 +0100,
> > 'Joerg Sonnenberger' wrote:
> >   
> >> Unidiffs, please
> >>     
> >
> > of course. But what about having a new option or not?
> >
> > Best regards,
> >
> > Marko
> >
> > Index: Makefile
> > ===================================================================
> > RCS file: /cvsroot/pkgsrc/multimedia/ffmpeg/Makefile,v
> > retrieving revision 1.54
> > diff -u -r1.54 Makefile
> > --- Makefile    25 Sep 2009 11:10:21 -0000      1.54
> > +++ Makefile    3 Dec 2009 13:27:50 -0000
> > @@ -11,6 +11,8 @@
> >  CONFIGURE_ARGS+=       --enable-avfilter \
> >                         --enable-avfilter-lavf \
> >                         --enable-postproc \
> > +                       --enable-x11grab \
> > +                       --enable-gpl \
> >                         --enable-libvorbis \
> >                         --enable-libmp3lame 
> >  
> > Index: Makefile.common
> > ===================================================================
> > RCS file: /cvsroot/pkgsrc/multimedia/ffmpeg/Makefile.common,v
> > retrieving revision 1.4
> > diff -u -r1.4 Makefile.common
> > --- Makefile.common     30 Oct 2009 12:40:27 -0000      1.4
> > +++ Makefile.common     3 Dec 2009 13:27:50 -0000
> > @@ -54,5 +54,7 @@
> >         mkdir ${WRKSRC}/tmp
> >  
> >  .include "../../mk/pthread.buildlink3.mk"
> > +.include "../../x11/libX11/buildlink3.mk"
> > +.include "../../x11/libXvMC/buildlink3.mk"
> >  .include "../../devel/libgetopt/buildlink3.mk"
> >  .include "../../mk/bsd.pkg.mk"
> >
> >
> >   
> >> On Wed, Dec 02, 2009 at 08:51:08PM -0400, Marko Schütz wrote:
> >>     
> >>> I looked at the package a little: enabling desktop recording for
> >>> ffmpeg amounts to two additional CONFIGURE_ARGS and two additional
> >>> .includes: 
> >>>
> >>> Index: Makefile
> >>> ===================================================================
> >>> RCS file: /cvsroot/pkgsrc/multimedia/ffmpeg/Makefile,v
> >>> retrieving revision 1.54
> >>> diff -r1.54 Makefile
> >>> 13a14,15
> >>>       
> >>>>                       --enable-x11grab \
> >>>>                       --enable-gpl \
> >>>>         
> >>> Index: Makefile.common
> >>> ===================================================================
> >>> RCS file: /cvsroot/pkgsrc/multimedia/ffmpeg/Makefile.common,v
> >>> retrieving revision 1.4
> >>> diff -r1.4 Makefile.common
> >>> 56a57,58
> >>>       
> >>>> .include "../../x11/libX11/buildlink3.mk"
> >>>> .include "../../x11/libXvMC/buildlink3.mk"
> >>>>         
> >>> Should there be another option for ffmpeg e.g. x11grab?
> >>>
> >>> Best regards,
> >>>
> >>> Marko
> >>>
> >>> At Mon, 30 Nov 2009 15:33:00 -0400,
> >>> Marko Schütz wrote:
> >>>       
> >>>> I just noticed that ffmpeg can grab the xserver output. When trying 
> >>>>
> >>>>        X11 grabbing
> >>>>
> >>>>        FFmpeg can grab the X11 display.
> >>>>
> >>>>                ffmpeg -f x11grab -s cif -i :0.0 /tmp/out.mpg
> >>>>
> >>>> from the man page:
> >>>>
> >>>> Unknown input or output format: x11grab
> >>>>
> >>>> I checked and it seems that x11grab is disabled by default. 
> >>>>
> >>>> Is there a reason why ffmpeg shouldn't be compiled with x11grab
> >>>> support in pkgsrc?
> >>>>
> >>>> Best regards,
> >>>>
> >>>> Marko
> >>>>         
> >>     
> 
> 
> 
> -- 
> Victor Dorneanu
> 
> Contact
> - Web/Blog: http://dornea.nu
>  
> GnuPGP information
> - KeyID = 0xD20870F4 (subkeys.pgp.net)
> - Key fingerprint = DD6B 5E09 242F 7410 3F90 492A 4CBA FD13 D208 70F4
> 

Attachment: pgpVcoHzr8_7N.pgp
Description: PGP signature



Home | Main Index | Thread Index | Old Index