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