[FFmpeg-user] Recording logitech ultra vison,

Sw@g sweetthdevil at gmail.com
Tue Jun 7 12:16:36 CEST 2011


Many thanks for the reply, please the the ouput for both mencoder.avi 
and ffpmeg.avi mediainfo:

http://pastebin.com/K6pwUnSz

I also run into an error while running with the libx264 codec: any idea 
on the error?

FFmpeg version git-N-28713-g65daa94, Copyright (c) 2000-2011 the FFmpeg 
developers
   built on May  7 2011 11:46:29 with gcc 4.6.0 20110429 (prerelease)
   configuration: --prefix=/usr --enable-libmp3lame --enable-libvorbis 
--enable-libxvid --enable-libx264 --enable-libvpx --enable-libtheora 
--enable-postproc --enable-shared --enable-x11grab 
--enable-libopencore_amrnb --enable-libopencore_amrwb 
--enable-libschroedinger --enable-libopenjpeg --enable-gpl 
--enable-version3 --enable-runtime-cpudetect --disable-debug
   libavutil    50. 40. 0 / 50. 40. 0
   libavcodec   52.116. 0 / 52.116. 0
   libavformat  52.104. 0 / 52.104. 0
   libavdevice  52.  4. 0 / 52.  4. 0
   libavfilter   1. 76. 0 /  1. 76. 0
   libswscale    0. 13. 0 /  0. 13. 0
   libpostproc  51.  2. 0 / 51.  2. 0
[video4linux2 @ 0x9e58600] Cannot find a proper format for codec_id 0, 
pix_fmt -1.
/dev/video0: Input/output error

I will be looking into the -vf drawtext command now,

many thanks for your quick replies and assistance in the matter,


On 06/07/2011 11:05 AM, Clément Boesch wrote:
> On Tue, Jun 07, 2011 at 10:33:13AM +0100, Sw at g wrote:
>> Hi all,
>>
>> I am recording my Logitech Ultra Vison using ffmpeg with the
>> following command,
>>
>> "ffmpeg -f video4linux2 -i /dev/video0 -s 640x480 -vcodec mpeg4
>> -sameq cam_`date +%F_%T`.mp4"
>>
>> However the video quality isn't as it's best, if I am using mencoder
>> (which I understand isn't maintain any more)  with x264 codec then
>> the picture is much clearer and sharp (same size than ffmpeg)
>>
>> If I am trying to record the webcam with ffmpeg and libx264 (with
>> the -vpre medium option) than the picture quality is the same as
>> mpeg4 codec.
>>
> You have to find a better profile I guess ; the other reply in the same
> thread is more explicit.
>
>> So the question would be, how to have a sharper and clearer image
>> the same as using mencoder (see below for the mencoder command line
>> for reference)
>>
>> (mencoder tv:// -tv
>> driver=v4l2:width=800:height=600:fps=15:device=/dev/video0  -ovc
>> x264 -nosound -o cam_`date +%F_%T`.avi)
>>
>> Also, I would very much like to be able to record the video with the
>> time on the bottom corner it, is there such a command?
>>
> Check for -vf drawtext.
>
>
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user


On 06/07/2011 10:33 AM, Sw at g wrote:
> Hi all,
>
> I am recording my Logitech Ultra Vison using ffmpeg with the following 
> command,
>
> "ffmpeg -f video4linux2 -i /dev/video0 -s 640x480 -vcodec mpeg4 -sameq 
> cam_`date +%F_%T`.mp4"
>
> However the video quality isn't as it's best, if I am using mencoder 
> (which I understand isn't maintain any more)  with x264 codec then the 
> picture is much clearer and sharp (same size than ffmpeg)
>
> If I am trying to record the webcam with ffmpeg and libx264 (with the 
> -vpre medium option) than the picture quality is the same as mpeg4 codec.
>
> So the question would be, how to have a sharper and clearer image the 
> same as using mencoder (see below for the mencoder command line for 
> reference)
>
> (mencoder tv:// -tv 
> driver=v4l2:width=800:height=600:fps=15:device=/dev/video0  -ovc x264 
> -nosound -o cam_`date +%F_%T`.avi)
>
> Also, I would very much like to be able to record the video with the 
> time on the bottom corner it, is there such a command?
>
> Should you require any further details, please do not hesitate to 
> contact me,
>
> Looking forward for your replies,


More information about the ffmpeg-user mailing list