[libav-tools] Capture/encode from video capture device

Keith Lawson keith.lawson at libertas-tech.com
Fri Dec 13 16:17:27 CET 2013



I have an application that I records video from a Dazzle DVC100 video
capture device using mencoder that I'd like to switch over to using
avconv. With mencoder I would capture and encode video like this: 

mencoder -tv driver=v4l2:norm=NTSC:input=0 -nosound -ovc lavc -lavcopts
vcodec=mpeg4 -o file.avi -vf pp=li tv:// 

I'm trying to reproduce this functionality with avconv but not having a
lot of luck so far. After multiple attempts I got the following avconv
command to work to encode video from a video camera connected to the
composite input on the capture card: 

avconv -y -f video4linux2 -i /dev/video1 -r 30 -an -strict experimental

avconv version v9-2308-gfb13fe8, Copyright (c) 2000-2013 the Libav
 built on Oct 26 2013 11:35:11 with gcc 4.8 (Debian 4.8.1-10)
[video4linux2 @ 0x2857820] Estimating duration from bitrate, this may be
Input #0, video4linux2, from '/dev/video1':
 Duration: N/A, start: 11381.028327, bitrate: 165888 kb/s
 Stream #0.0: Video: rawvideo, yuyv422, 720x576, 165888 kb/s, 25 fps,
1000k tbn
Output #0, avi, to 'test.avi':
 ISFT : Lavf55.7.0
 Stream #0.0: Video: mpeg4, yuv420p, 720x576, q=2-31, 200 kb/s, 30 tbn,
30 tbc
Stream mapping:
 Stream #0:0 -> #0:0 (rawvideo -> mpeg4)
Press ctrl-c to stop encoding 

However the resulting video isn't right: 


Am I missing something on the avconv command? I'm not sure how to select
the source input from the capture card (composite vs svideo) or specify

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libav.org/pipermail/libav-tools/attachments/20131213/0b6f85f3/attachment.html>

More information about the libav-tools mailing list