天嵌 ARM开发社区

 找回密码
 注册
查看: 3039|回复: 0

FFmpeg移植到ARM板上,但是无法采集视频

[复制链接]
木♀木 发表于 2012-8-26 16:18:36 | 显示全部楼层 |阅读模式
我的摄像头是OV9650。
采集的命令和错误如下:
./ffmpeg -f video4linux2 -i /dev/video0 1.flv
ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers
  built on Jul 28 2012 22:07:13 with gcc 4.3.2
  configuration: --prefix=/home/lin/arm-ffmpeg/ --cross-prefix=/home/work/work_f
iles/arm-2008q3/bin/arm-none-linux-gnueabi- --arch=arm --extra-cflags=-static --
extra-ldflags=-static --disable-ffserver --disable-ffplay --target-os=linux
  libavutil      51. 54.100 / 51. 54.100
  libavcodec     54. 23.100 / 54. 23.100
  libavformat    54.  6.100 / 54.  6.100
  libavdevice    54.  0.100 / 54.  0.100
  libavfilter     2. 77.100 /  2. 77.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
[video4linux2,v4l2 @ 0xfa4470] The v4l2 frame is 0 bytes, but 460800 bytes are e
xpected
[video4linux2,v4l2 @ 0xfa4470] Estimating duration from bitrate, this may be ina
ccurate
Input #0, video4linux2,v4l2, from '/dev/video0':
  Duration: N/A, bitrate: 92160 kb/s
    Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 640x480, 92160 kb
/s, 25 tbr, 1000k tbn, 25 tbc
w:640 h:480 pixfmt:yuv420p tb:1/1000000 sar:0/1 sws_param:flags=2
[buffersink @ 0xfa26b0] No opaque field provided
Output #0, flv, to '/1.flv':
  Metadata:
    encoder         : Lavf54.6.100
    Stream #0:0: Video: flv1 ([2][0][0][0] / 0x0002), yuv420p, 640x480, q=2-31,
200 kb/s, 1k tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo -> flv)
Press [q] to stop, [?] for help
[video4linux2,v4l2 @ 0xfa4470] The v4l2 frame is 0 bytes, but 460800 bytes are e
xpected
frame=    0 fps=0.0 q=0.0 Lsize=       0kB time=00:00:00.00 bitrate=   0.0kbits/s
video:0kB audio:0kB global headers:0kB muxing overhead inf%
Output file is empty, nothing was encoded (check -ss / -t / -frames parameters i
f used)

跪求高手解答!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号 )

GMT+8, 2024-4-20 18:41 , Processed in 1.046875 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表