[FFmpeg-user] Recording logitech ultra vison,

Sw@g sweetthdevil at gmail.com
Tue Jun 7 20:27:28 CEST 2011


well it did, now the command ffmpeg -f video4linux2 -i /dev/video0 
-pix_fmt yuv420p -s 800x600 -vcodec libx264 -preset medium -profile high 
-crf 18 -r 15 -t 20 cam_`date +%F_%T`.avi

works, but I cannot open it, I suspect is because x264-git isn't link 
and gnome-mplayer doesn't see the codec.

regards,

On 06/07/2011 07:24 PM, Lou wrote:
> On Tue, 07 Jun 2011 19:07:10 +0100
> "Sw at g"<sweetthdevil at gmail.com>  wrote:
>
>> Right,
>>
>> me again, installing ffmpeg-git from aur didn't change any outcome, I
> What outcome? You didn't show your command and the complete output.
>
>> am now recompiling the latest git with  ./configure --enable-gpl
>> --enable-libx264 --enable-x11g is there any other option I should add?
> ffmpeg-git and ffmpeg from the repository already use these options.
> Re-compiling probably won't help you.
>
>> regards,
>>
>> On 06/07/2011 06:50 PM, Sw at g wrote:
>>> Many thanks for your replies,
>>>
>>> I am now installing x264 and ffmpeg from aur, will let you know the
>>> outcome
>>>
>>>
>>> On 06/07/2011 06:39 PM, Etienne Buira wrote:
>>>> 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.
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user


More information about the ffmpeg-user mailing list