ffmpeg摄像头视频采集 音频采集的正确参数(ffmpeg mjpeg)

huzia@huzia-laptop:~$ sudo ffmpeg -f oss -i /dev/dsp -f mjpeg -r 25 -b 500000 -s 320x240 -i /dev/video0 out.mpg
FFmpeg version git-60ff1c3, Copyright (c) 2000-2010 the FFmpeg developers
built on Apr 21 2010 20:39:20 with gcc 4.3.3
configuration:
libavutil 50.14. 0 / 50.14. 0
libavcodec 52.66. 0 / 52.66. 0
libavformat 52.61. 0 / 52.61. 0
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0.10. 0 / 0.10. 0
[oss @ 0x9e5e420]Estimating duration from bitrate, this may be inaccurate
Input #0, oss, from '/dev/dsp':
Duration: N/A, start: 1272760213.111505, bitrate: N/A
Stream #0.0: Audio: pcm_s16le, 44100 Hz, 1 channels, s16, 705 kb/s
[mjpeg @ 0x9e609a0]max_analyze_duration reached
[mjpeg @ 0x9e609a0]Estimating duration from bitrate, this may be inaccurate
Input #1, mjpeg, from '/dev/video0':
Duration: N/A, bitrate: N/A
Stream #1.0: Video: mjpeg, yuvj422p, 384x288, 25 fps, 25 tbr, 1200k tbn, 25 tbc
Output #0, mpeg, to 'out.mpg':
Metadata:
encoder : Lavf52.61.0
Stream #0.0: Video: mpeg1video, yuv420p, 384x288, q=2-31, 500 kb/s, 90k tbn, 25 tbc
Stream #0.1: Audio: mp2, 44100 Hz, 1 channels, s16, 64 kb/s
Stream mapping:
Stream #1.0 -> #0.0
Stream #0.0 -> #0.1
Press [q] to stop encoding
[mjpeg @ 0x9e69c30]huffman table decode error
Error while decoding stream #1.0
[mjpeg @ 0x9e69c30]No JPEG data found in image
Error while decoding stream #1.0
[mjpeg @ 0x9e69c30]EOI missing, emulating
frame= 41 fps= 0 q=2.0 size= 8kB time=0.81 bitrate= 80.9kbits/s dup=1 [mjpeg @ 0x9e69c30]error count: 268435483
[mjpeg @ 0x9e69c30]error y=35 x=22
[mjpeg @ 0x9e69c30]EOI missing, emulating
Last message repeated 1 times
[mjpeg @ 0x9e69c30]error count: 268435457
[mjpeg @ 0x9e69c30]error y=35 x=11
[mjpeg @ 0x9e69c30]EOI missing, emulating
frame= 88 fps= 86 q=2.0 size= 10kB time=1.31 bitrate= 62.7kbits/s dup=1 Last message repeated 2 times
[mjpeg @ 0x9e69c30]error count: 268435463
[mjpeg @ 0x9e69c30]error y=35 x=23
[mjpeg @ 0x9e69c30]EOI missing, emulating
frame= 132 fps= 84 q=2.0 size= 20kB time=1.80 bitrate= 90.9kbits/s dup=1 frame= 142 fps= 68 q=2.0 size= 28kB time=2.32 bitrate= 98.7kbits/s dup=1 frame= 151 fps= 58 q=2.0 size= 36kB time=2.80 bitrate= 105.5kbits/s dup=1 Last message repeated 6 times 50kB time=3.89 bitrate= 105.2kbits/s dup=1 drop=0
[mjpeg @ 0x9e69c30]mjpeg_decode_dc: bad vlc: 0:0 (0x9f70280)
[mjpeg @ 0x9e69c30]error dc
[mjpeg @ 0x9e69c30]error y=35 x=22
[mjpeg @ 0x9e69c30]EOI missing, emulating
Last message repeated 12 times 236kB time=10.66 bitrate= 181.4kbits/s dup=1 drop=0
[mjpeg @ 0x9e69c30]No JPEG data found in image
Error while decoding stream #1.0
[mjpeg @ 0x9e69c30]EOI missing, emulating time=11.18 bitrate= 186.1kbits/s dup=2 drop=0
Last message repeated 3 times 330kB time=13.27 bitrate= 203.7kbits/s dup=2 drop=0
[mjpeg @ 0x9e69c30]No JPEG data found in image
Error while decoding stream #1.0
Error while decoding stream #1.0 352kB time=14.32 bitrate= 201.4kbits/s dup=3 drop=0
Last message repeated 1 times 364kB time=14.81 bitrate= 201.3kbits/s dup=4 drop=0
[mjpeg @ 0x9e69c30]EOI missing, emulating
Last message repeated 7 times 430kB time=18.81 bitrate= 187.3kbits/s dup=4 drop=0
[mjpeg @ 0x9e69c30]No JPEG data found in image
Error while decoding stream #1.0
[mjpeg @ 0x9e69c30]EOI missing, emulating time=19.64 bitrate= 181.9kbits/s dup=5 drop=0
Last message repeated 15 times 554kB time=27.22 bitrate= 166.7kbits/s dup=5 drop=0
[mjpeg @ 0x9e69c30]error count: 268435455
[mjpeg @ 0x9e69c30]error y=35 x=1
[mjpeg @ 0x9e69c30]EOI missing, emulating
Last message repeated 5 times 598kB time=30.04 bitrate= 163.1kbits/s dup=5 drop=0
[mjpeg @ 0x9e69c30]error count: 268435486
[mjpeg @ 0x9e69c30]error y=35 x=22
[mjpeg @ 0x9e69c30]EOI missing, emulating
Last message repeated 5 times 630kB time=32.88 bitrate= 157.0kbits/s dup=5 drop=0
[mjpeg @ 0x9e69c30]error count: 268435455
[mjpeg @ 0x9e69c30]error y=35 x=21
[mjpeg @ 0x9e69c30]EOI missing, emulating
[mjpeg @ 0x9e69c30]No JPEG data found in image=33.25 bitrate= 157.7kbits/s dup=5 drop=0
Error while decoding stream #1.0
Error while decoding stream #1.0 652kB time=33.67 bitrate= 158.6kbits/s dup=6 drop=0
Last message repeated 1 times 664kB time=34.08 bitrate= 159.6kbits/s dup=7 drop=0
[mjpeg @ 0x9e69c30]EOI missing, emulating
frame= 882 fps= 22 q=2.0 Lsize= 714kB time=35.24 bitrate= 166.0kbits/s dup=7 drop=0
video:427kB audio:275kB global headers:0kB muxing overhead 1.645489%

你可能感兴趣的:(ffmpeg摄像头视频采集 音频采集的正确参数(ffmpeg mjpeg))