<div dir="ltr"><div><div><div><div><div>Hi All,<br><br><br></div> I am trying to capture and store the video stream from USB webcam, using FFMPEG. I am using this link for reference <br><a href="https://trac.ffmpeg.org/wiki/How%20to%20capture%20a%20webcam%20input">https://trac.ffmpeg.org/wiki/How%20to%20capture%20a%20webcam%20input</a> and this command to dump output <br>
ffmpeg -f v4l2 -r 25 -s 640x480 -i /dev/video0 out.avi i got following errors,<br><br><br>tushar@tushar-Satellite-A205:~$ ffmpeg -f video4linux2 -r 25 -s 640x480 -i /dev/video0 out.avi<br>ffmpeg version 2.2.2 Copyright (c) 2000-2014 the FFmpeg developers<br>
built on May 9 2014 21:10:44 with gcc 4.7 (Ubuntu/Linaro 4.7.2-2ubuntu1)<br> configuration: <br> libavutil 52. 66.100 / 52. 66.100<br> libavcodec 55. 52.102 / 55. 52.102<br> libavformat 55. 33.100 / 55. 33.100<br>
libavdevice 55. 10.100 / 55. 10.100<br> libavfilter 4. 2.100 / 4. 2.100<br> libswscale 2. 5.102 / 2. 5.102<br> libswresample 0. 18.100 / 0. 18.100<br>[video4linux2,v4l2 @ 0xb155dc0] The driver does not allow to change time per frame<br>
[video4linux2,v4l2 @ 0xb155dc0] Time per frame unknown<br>[video4linux2,v4l2 @ 0xb155dc0] The V4L2 driver changed the video from 640x480 to 352x288<br>[video4linux2,v4l2 @ 0xb155dc0] The V4L2 driver changed the video from 352x288 to 176x144<br>
[video4linux2,v4l2 @ 0xb155dc0] The v4l2 frame is 26058 bytes, but 25344 bytes are expected<br>Input #0, video4linux2,v4l2, from '/dev/video0':<br> Duration: N/A, bitrate: N/A<br> Stream #0:0: Video: rawvideo ([186]GB[8] / 0x84247BA), bayer_gbrg8, 176x144, 1000k tbr, 1000k tbn, 1000k tbc<br>
Output #0, avi, to 'out.avi':<br> Metadata:<br> ISFT : Lavf55.33.100<br> Stream #0:0: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 176x144, q=2-31, 200 kb/s, 25 tbn, 25 tbc<br>Stream mapping:<br> Stream #0:0 -> #0:0 (rawvideo -> mpeg4)<br>
Press [q] to stop, [?] for help<br>[video4linux2,v4l2 @ 0xb155dc0] The v4l2 frame is 26058 bytes, but 25344 bytes are expected<br>/dev/video0: Invalid data found when processing input<br>frame= 0 fps=0.0 q=0.0 Lsize= 6kB time=00:00:00.00 bitrate=N/A <br>
video:0kB audio:0kB subtitle:0 data:0 global headers:0kB muxing overhead 0.000000%<br>Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)<br>[video4linux2,v4l2 @ 0xb155dc0] Some buffers are still owned by the caller on close.<br>
tushar@tushar-Satellite-A205:~$ <br><br><br><br></div>can anyone help me in this please<br><br></div>Waiting <br><br></div>Thanks <br></div>Tushar<br><br><br></div>