ffmpeg - Can't record S-Video with avconv -


i've been trying record feed s-video cable using avconv. able record composite video avconv, quality isn't best. set input, use v4l2-ctl -i $n, $n either 0 composite, or 1 s-video. tried use v4l2-ctl -i 1 set input, doesn't work. oddly enough, when use tvtime or qv4l2 can view video.

i able record audio, not video. in tvtime can audio video. also, able record s-video ffmpeg using -channel option. ffmpeg, btw, can't record audio, , recording separate audio isn't option.

edit: per anton's request, here's command use capture video avconv.

avconv -f video4linux2 -i /dev/video0 -f alsa -i hw:2,0 -vcodec mpeg4 -vtag xvid -b 8000k -r 30000/1001 -acodec \ libmp3lame -ar 48000 -ac 2 -ab 192k -aspect 16:9 -vf yadif=0,scale=1200:800 -y test.avi 

and here's output command:

avconv version 0.8.6-6:0.8.6-0ubuntu0.12.10.1, copyright (c) 2000-2013 libav developers   built on apr  2 2013 17:02:16 gcc 4.7.2 [video4linux2 @ 0x982340] estimating duration bitrate, may inaccurate input #0, video4linux2, '/dev/video0':   duration: n/a, start: 1368113780.210591, bitrate: 165722 kb/s    stream #0.0: video: rawvideo, yuyv422, 720x480, 165722 kb/s, 29.97 tbr, 1000k tbn, 29.97 tbc [alsa @ 0x982ba0] estimating duration bitrate, may inaccurate input #1, alsa, 'hw:2,0':   duration: n/a, start: 854.715783, bitrate: n/a     stream #1.0: audio: pcm_s16le, 48000 hz, 2 channels, s16, 1536 kb/s incompatible pixel format 'yuyv422' codec 'mpeg4', auto-selecting format 'yuv420p' [buffer @ 0x9930a0] w:720 h:480 pixfmt:yuyv422 [yadif @ 0x997960] mode:0 parity:-1 auto_enable:0 [yadif @ 0x997960] auto-inserting filter 'auto-inserted scaler 0' between filter 'src' , filter 'parsed filter 0 yadif' [scale @ 0x985a80] w:720 h:480 fmt:yuyv422 -> w:720 h:480 fmt:yuv420p flags:0x4 [scale @ 0x998000] w:720 h:480 fmt:yuv420p -> w:1200 h:800 fmt:yuv420p flags:0x4 output #0, avi, 'test.avi':   metadata:     isft            : lavf53.21.1     stream #0.0: video: mpeg4, yuv420p, 1200x800 [par 32:27 dar 16:9], q=2-31, 8000 kb/s, 29.97 tbn, 29.97 tbc     stream #0.1: audio: libmp3lame, 48000 hz, 2 channels, s16, 192 kb/s stream mapping:       stream #0:0 -> #0:0 (rawvideo -> mpeg4)       stream #1:0 -> #0:1 (pcm_s16le -> libmp3lame) 

try this:

avconv -f video4linux2 -i /dev/video0 -f alsa -ac 1 -i hw:2,0 \ -vcodec mpeg4 -vtag xvid -b 8000k -r 30000/1001 -acodec \ libmp3lame -ar 48000 -ac 2 -ab 192k -aspect 16:9  -vf yadif=0,scale=1200:800 -y test.avi 

note -ac 1, must set audio channel. note \ line breakings.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -