[FFmpeg-user] Recording logitech ultra vison,

Etienne Buira etienne.buira.lists at free.fr
Tue Jun 7 19:39:22 CEST 2011


On Tue, Jun 07, 2011 at 06:18:50PM +0100, Sw at g wrote:
> Right,
> 
> so I have compile the latest git to try resolving the issue and now 
> nothing work, for example the command I was using to record my desktop 
> return the following errors:
> 
> [sweetth at myhost test]$ ffmpeg -s 2720x1024 -r 25 -f x11grab -i :0.0 
> -acodec libmp3lame -ab 128k -vcodec mpeg4 -sameq -y -t 60 
> /media/z/.cam/screen/screen_`date +%F_%T`.avi
> ffmpeg version git-N-30610-g1929807, Copyright (c) 2000-2011 the FFmpeg 
> developers
>    built on Jun  7 2011 18:01:52 with gcc 4.6.0 20110513 (prerelease)
>    configuration:
>    libavutil    51.  6. 1 / 51.  6. 1
>    libavcodec   53.  6. 1 / 53.  6. 1
>    libavformat  53.  2. 0 / 53.  2. 0
>    libavdevice  53.  1. 1 / 53.  1. 1
>    libavfilter   2. 14. 0 /  2. 14. 0
>    libswscale    0. 14. 1 /  0. 14. 1
> Unknown input format: 'x11grab'

You need to give --enable-gpl --enable-x11grab to configure script.

> and while trying to capture the webcam using the mpeg4 codec or the 
> libx264 then the terminal just hang:
> 
> [sweetth at myhost test]$ ffmpeg -f video4linux2 -i /dev/video0 -b 64m -crf 
> 22 -s 640x480 -vcodec mpeg4 -t 20  cam_`date +%F_%T`.mp4
> ffmpeg version git-N-30610-g1929807, Copyright (c) 2000-2011 the FFmpeg 
> developers
>    built on Jun  7 2011 18:01:52 with gcc 4.6.0 20110513 (prerelease)
>    configuration:
>    libavutil    51.  6. 1 / 51.  6. 1
>    libavcodec   53.  6. 1 / 53.  6. 1
>    libavformat  53.  2. 0 / 53.  2. 0
>    libavdevice  53.  1. 1 / 53.  1. 1
>    libavfilter   2. 14. 0 /  2. 14. 0
>    libswscale    0. 14. 1 /  0. 14. 1
> [video4linux2 @ 0xa75c360] The driver changed the time per frame from 
> 1228/32 to 1/5

For that I don't know.

> [sweetth at myhost test]$ ffmpeg -f video4linux2 -i /dev/video0 -pix_fmt 
> yuv420p -s 800x600 -vcodec libx264 --preset medium -crf 18 -r 15 -t 20 
> cam_`date +%F_%T`.mp4
> ffmpeg version git-N-30610-g1929807, Copyright (c) 2000-2011 the FFmpeg 
> developers
>    built on Jun  7 2011 18:01:52 with gcc 4.6.0 20110513 (prerelease)
>    configuration:
>    libavutil    51.  6. 1 / 51.  6. 1
>    libavcodec   53.  6. 1 / 53.  6. 1
>    libavformat  53.  2. 0 / 53.  2. 0
>    libavdevice  53.  1. 1 / 53.  1. 1
>    libavfilter   2. 14. 0 /  2. 14. 0
>    libswscale    0. 14. 1 /  0. 14. 1
> [video4linux2 @ 0x9287360] The driver changed the time per frame from 
> 1228/32 to 1/5
> 
> 
> Any help would be appreciated,
> 
> 
> 
> On 06/07/2011 04:52 PM, Paul Gardiner wrote:
> > On 07/06/2011 16:35, Sw at g wrote:
> >> Hi again,
> >>
> >> Well with " " or ` ` it doesn't work "Unrecognized option 'preset
> >> medium'" only the -vpre works.
> >
> > -vpre is a completely different thing. You definitely need -preset. If
> > that's not accepted, then it has to be that you have a version of
> > ffmpeg that is too old.
> >
> > -vpre is just a way to provoke long lists of ffmpeg paramaters stored
> > in a preset file. It is -preset that communicates to libx264. There's
> > never been a time when -vpre did what -preset does now, so it will
> > not help to try using it.

vpre was just a way to do the same thing as preset does now.


More information about the ffmpeg-user mailing list