avconv
Hej alle....Sidder og leger lidt med ffmpeg's afløser avconv.
Jeg har lidt problemer med at grabbe både video og audio.
Jeg forsøger med følgende command line
avconv -y -f ALSA -i hw:1,0 -f video4linux2 -i /dev/video0 -s 800x600 -b 8000K /var/www/clips/webcam.mp4
avconv version 0.8.6-6:0.8.6-0ubuntu0.12.10.1, Copyright (c) 2000-2013 the Libav developers
built on Apr 2 2013 17:07:34 with gcc 4.7.2
[alsa @ 0x8867ae0] Estimating duration from bitrate, this may be inaccurate
Input #0, alsa, from 'hw:1,0':
Duration: N/A, start: 148110.999005, bitrate: N/A
Stream #0.0: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
[video4linux2 @ 0x8871400] Estimating duration from bitrate, this may be inaccurate
Input #1, video4linux2, from '/dev/video0':
Duration: N/A, start: 148113.505070, bitrate: 110592 kb/s
Stream #1.0: Video: rawvideo, yuyv422, 640x360, 110592 kb/s, 30 tbr, 1000k tbn, 30 tbc
Incompatible pixel format 'yuyv422' for codec 'mpeg4', auto-selecting format 'yuv420p'
[buffer @ 0x88688a0] w:640 h:360 pixfmt:yuyv422
[scale @ 0x8868b00] w:640 h:360 fmt:yuyv422 -> w:800 h:600 fmt:yuv420p flags:0x4
[aac @ 0x885d3e0] Too many bits per frame requested
Output #0, mp4, to '/var/www/clips/webcam.mp4':
Stream #0.0: Video: mpeg4, yuv420p, 800x600, q=2-31, 8000 kb/s, 90k tbn, 30 tbc
Stream #0.1: Audio: aac, 48000 Hz, 2 channels, s16, 8000 kb/s
Stream mapping:
Stream #1:0 -> #0:0 (rawvideo -> mpeg4)
Stream #0:0 -> #0:1 (pcm_s16le -> aac)
Error while opening encoder for output stream #0:1 - maybe incorrect parameters such as bit_rate, rate, width or height
Når jeg kører en mere simpel udgave, får jeg fin lyd og billede, men i rigtig dårlig kvalitet. Så snart jeg forsøger at tilføje Bitrate (-b) og billed størrelse (-s) får jeg fejl.
avconv -f ALSA -i hw:1,0 -f video4linux2 -i /dev/video0 /tmp/out.mpg
J