[FFmpeg-user] Recording logitech ultra vison,
Sw@g
sweetthdevil at gmail.com
Tue Jun 7 12:12:29 CEST 2011
Many thanks for the reply, see the output for mediainfo -f mencoder.avi
[sweetth at myhost ~]$ mediainfo -f mencoder.avi
General
Count : 277
Count of stream of this kind : 1
Kind of stream : General
Kind of stream : General
Stream identifier : 0
Count of video streams : 1
Video_Format_List : AVC
Video_Format_WithHint_List : AVC
Codecs Video : AVC
Complete name : mencoder.avi
File name : mencoder.avi
File extension : avi
Format : AVI
Format : AVI
Format/Info : Audio Video Interleave
Format/Extensions usually used : avi
Commercial name : AVI
Internet media type : video/vnd.avi
Codec : AVI
Codec : AVI
Codec/Info : Audio Video Interleave
Codec/Extensions usually used : avi
File size : 536002
File size : 523 KiB
File size : 523 KiB
File size : 523 KiB
File size : 523 KiB
File size : 523.4 KiB
Duration : 67
Duration : 67ms
Duration : 67ms
Duration : 67ms
Duration : 00:00:00.067
Overall bit rate : 64000238
Overall bit rate : 64.0 Mbps
Stream size : 9382
Stream size : 9.16 KiB (2%)
Stream size : 9 KiB
Stream size : 9.2 KiB
Stream size : 9.16 KiB
Stream size : 9.162 KiB
Stream size : 9.16 KiB (2%)
Proportion of this stream : 0.01750
File last modification date : UTC 2011-06-07 10:00:41
File last modification date (loc : 2011-06-07 11:00:41
Writing application : MEncoder SVN-r33159-4.5.2
Writing library : MPlayer
Writing library : MPlayer
Video
Count : 193
Count of stream of this kind : 1
Kind of stream : Video
Kind of stream : Video
Stream identifier : 0
ID : 0
ID : 0
Format : AVC
Format/Info : Advanced Video Codec
Format/Url : http://developers.videolan.org/x264.html
Commercial name : AVC
Format profile : High at L2.2
Format settings : CABAC / 4 Ref Frames
Format settings, CABAC : Yes
Format settings, CABAC : Yes
Format settings, ReFrames : 4
Format settings, ReFrames : 4 frames
Internet media type : video/H264
Codec ID : h264
Codec : h264
Codec : AVC
Codec/Family : AVC
Codec/Info : Intel H.264
Codec/CC : h264
Codec profile : High at L2.2
Codec settings : CABAC / 4 Ref Frames
Codec settings, CABAC : Yes
Codec_Settings_RefFrames : 4
Duration : 67
Duration : 67ms
Duration : 67ms
Duration : 67ms
Duration : 00:00:00.067
Bit rate : 293927
Bit rate : 294 Kbps
Width : 640
Width : 640 pixels
Height : 480
Height : 480 pixels
Pixel aspect ratio : 1.000
Display aspect ratio : 1.333
Display aspect ratio : 4:3
Frame rate : 15.000
Frame rate : 15.000 fps
Frame count : 215
Resolution : 8
Resolution : 8 bits
Colorimetry : 4:2:0
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8
Bit depth : 8 bits
Scan type : Progressive
Scan type : Progressive
Interlacement : PPF
Interlacement : Progressive
Bits/(Pixel*Frame) : 0.064
Stream size : 526620
Stream size : 514 KiB (98%)
Stream size : 514 KiB
Stream size : 514 KiB
Stream size : 514 KiB
Stream size : 514.3 KiB
Stream size : 514 KiB (98%)
Proportion of this stream : 0.98250
Writing library : x264 - core 114
Writing library : x264 core 114
Writing library/Name : x264
Writing library/Version : core 114
Encoding settings : cabac=1 / ref=3 / deblock=1:0:0 /
analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 /
mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 /
deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=6 /
sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 /
constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 /
direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 /
keyint_min=15 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf
/ mbtree=1 / crf=23.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 /
ip_ratio=1.40 / aq=1:1.00
and the output for mediainfo -f ffmpeg.avi
mediainfo -f ffmpeg.avi
General
Count : 277
Count of stream of this kind : 1
Kind of stream : General
Kind of stream : General
Stream identifier : 0
Count of video streams : 1
Video_Format_List : AVC
Video_Format_WithHint_List : AVC
Codecs Video : AVC
Complete name : ffmpeg.avi
File name : ffmpeg.avi
File extension : avi
Format : AVI
Format : AVI
Format/Info : Audio Video Interleave
Format/Extensions usually used : avi
Commercial name : AVI
Internet media type : video/vnd.avi
Codec : AVI
Codec : AVI
Codec/Info : Audio Video Interleave
Codec/Extensions usually used : avi
File size : 185026
File size : 181 KiB
File size : 181 KiB
File size : 181 KiB
File size : 181 KiB
File size : 180.7 KiB
Duration : 67
Duration : 67ms
Duration : 67ms
Duration : 67ms
Duration : 00:00:00.067
Overall bit rate : 22092656
Overall bit rate : 22.1 Mbps
Stream size : 8889
Stream size : 8.68 KiB (5%)
Stream size : 9 KiB
Stream size : 8.7 KiB
Stream size : 8.68 KiB
Stream size : 8.681 KiB
Stream size : 8.68 KiB (5%)
Proportion of this stream : 0.04804
File last modification date : UTC 2011-06-07 10:03:39
File last modification date (loc : 2011-06-07 11:03:39
Writing application : Lavf52.104.0
Video
Count : 193
Count of stream of this kind : 1
Kind of stream : Video
Kind of stream : Video
Stream identifier : 0
ID : 0
ID : 0
Format : AVC
Format/Info : Advanced Video Codec
Format/Url : http://developers.videolan.org/x264.html
Commercial name : AVC
Format profile : High at L2.2
Format settings : CABAC / 4 Ref Frames
Format settings, CABAC : Yes
Format settings, CABAC : Yes
Format settings, ReFrames : 4
Format settings, ReFrames : 4 frames
Internet media type : video/H264
Codec ID : H264
Codec : H264
Codec : AVC
Codec/Family : AVC
Codec/Info : Intel H.264
Codec/CC : H264
Codec profile : High at L2.2
Codec settings : CABAC / 4 Ref Frames
Codec settings, CABAC : Yes
Codec_Settings_RefFrames : 4
Duration : 67
Duration : 67ms
Duration : 67ms
Duration : 67ms
Duration : 00:00:00.067
Bit rate : 161347
Bit rate : 161 Kbps
Nominal bit rate : 200000
Nominal bit rate : 200 Kbps
Width : 640
Width : 640 pixels
Height : 480
Height : 480 pixels
Pixel aspect ratio : 1.000
Display aspect ratio : 1.333
Display aspect ratio : 4:3
Frame rate mode : VFR
Frame rate mode : Variable
Frame rate : 15.000
Frame rate : 15.000 fps
Frame count : 131
Resolution : 8
Resolution : 8 bits
Colorimetry : 4:2:0
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8
Bit depth : 8 bits
Scan type : Progressive
Scan type : Progressive
Interlacement : PPF
Interlacement : Progressive
Bits/(Pixel*Frame) : 0.035
Stream size : 176137
Stream size : 172 KiB (95%)
Stream size : 172 KiB
Stream size : 172 KiB
Stream size : 172 KiB
Stream size : 172.0 KiB
Stream size : 172 KiB (95%)
Proportion of this stream : 0.95196
Writing library : x264 - core 114
Writing library : x264 core 114
Writing library/Name : x264
Writing library/Version : core 114
Encoding settings : cabac=1 / ref=3 / deblock=1:0:0 /
analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 /
mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 /
deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-4 / threads=1 /
sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 /
constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 /
direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 /
keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=abr
/ mbtree=1 / bitrate=200 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69
/ qpstep=4 / ip_ratio=1.41 / aq=1:1.00
I also run into an error while running with the libx264 codec:
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
More information about the ffmpeg-user
mailing list