- 论坛徽章:
- 0
|
有大侠研究过 嵌入式版本的luvcview 摄像头测试程序
修改源码AVI视频录制部分,任然无法录制AVI视频,
在终端中显示如下:
################################################
[root@FORLINX6410]# ls
luvcview
[root@FORLINX6410]# ./luvcview -d /dev/video2 -f jpg -s 320x240
luvcview version v0.1
size width: 320 height: 240
video /dev/video2
^C
[root@FORLINX6410]# ls
luvcview
################################################
源码修改如下:
videoIn->avifile = 1;
if (videoIn->avifile ) {
float fps=(videoIn->framecount/(videoIn->recordtime/1000));
fprintf(stderr,"setting fps to %f\n",fps);
AVI_set_video(videoIn->avifile, videoIn->width, videoIn->height,
fps, "MJPG");
AVI_close(videoIn->avifile);
}
开发板:OK6410
系统:linux3.0.1
!!!!!求指教!!!!
!!!!!求指教!!!!
!!!!!求指教!!!!
|
|