Hi, 2011/6/10 JITENDRA SINGH <narukajsi...@gmail.com>: > Hi Paulo, > > Thanks a lot, I tried using IYUV 4cc before your reply, now using YUY2 4cc > code luvcview is recording the yuv file but its quite large as compared to > one recorded by ffmpeg. I understand that ffmpeg encodes yuyv frames > resulting in smaller mpg file.
YUYV is a uncompressed format (16 bit per pixel), it will always produce much larger files if compared with any compressed. > > I just need litle advice, I want a survillance app on arm arch, but would > like to use luvcview to record and not ffmpeg as luvcview is gud small pkg, > in that case should I go for a mjpg based webcam such as C905? > Just can't find performance comparison of yuyv vs mjpg based webcams and > apps(considering mjpg/yuyv encoding is done in webcam only)...hope you put > some valuable words !! in terms of performance, streaming in yuyv or mjpg on a usb2 connection makes no big difference although you should be able achieve better fps with mjpg at higher resolutions. YUYV is more limited due the higher usb bandwidth needed. Regards, Paulo > > Many thanks, > Naruka > > On Thu, Jun 9, 2011 at 8:52 PM, Paulo Assis <pj.as...@gmail.com> wrote: >> >> Hi, >> >> The 4cc code for YUYV is YUY2, at least this is what I use for >> guvcview and it works with most video players. >> >> So just use the same luvcview code but replace the 4cc code from MJPG >> to YUY2 in the case of a YUYV stream format. >> >> Regards, >> Paulo >> >> just use that when streaming in yuyv and the file should be ok >> >> 2011/6/9 JITENDRA SINGH <narukajsi...@gmail.com>: >> > I think I see the problem in luvcview code, avi file is not initialized >> > for >> > V4L2_PIX_FMT_YUYV, its is initialized only for MJPG fmt. >> > >> > ./v4l2uvc.c:650: vd->avifile = >> > AVI_open_output_file(vd->avifilename); >> > >> > Now all I want to know is, does luvcview doesnt support recording of avi >> > file from YUV frames ? >> > Any suggestions, what I can do for that support ? >> > >> > Any help will be gr8!! >> > >> > Thanks, >> > Naruka >> > >> > On Thu, Jun 9, 2011 at 6:15 PM, JITENDRA SINGH <narukajsi...@gmail.com> >> > wrote: >> >> >> >> Hi all, >> >> >> >> I am trying to save video(its ok without audio) via luvcvideo, but I >> >> cant >> >> see any .avi file generated, though it shows "avi recording >> >> started/stopped". >> >> I am pressing p/clicking record button to record: >> >> >> >> $sudo luvcview -d /dev/video0 -f yuv -s 176x144 -i 3 -o ./vid.avi >> >> luvcview 0.2.6 >> >> >> >> SDL information: >> >> Video driver: x11 >> >> A window manager is available >> >> Device information: >> >> Device path: /dev/video0 >> >> Stream settings: >> >> Frame format: YUYV >> >> Frame size: 176x144 >> >> Frame rate: 5 fps (requested frame rate 3 fps is not supported by >> >> device) >> >> avi recording started >> >> frame rate: 5.01253 >> >> avi recording stopped (4s) >> >> avi recording started >> >> frame rate: 4.98753 >> >> avi recording stopped (4s) >> >> Cleanup done. Exiting ... >> >> >> >> Does anybody has a clue, I found no info anywhere about such problem. >> >> PS: luvcview is able to capture still image, raw frames as well. >> >> >> >> $luvcview -L >> >> luvcview 0.2.6 >> >> >> >> SDL information: >> >> Video driver: x11 >> >> A window manager is available >> >> Device information: >> >> Device path: /dev/video0 >> >> /dev/video0 does not support read i/o >> >> { pixelformat = 'YUYV', description = 'YUV 4:2:2 (YUYV)' } >> >> { discrete: width = 640, height = 480 } >> >> Time interval between frame: 1/60, 1/50, 1/40, 1/30, 1/20, 1/15, >> >> 1/10, >> >> 1/5, >> >> { discrete: width = 352, height = 288 } >> >> Time interval between frame: 1/60, 1/50, 1/40, 1/30, 1/20, 1/15, >> >> 1/10, >> >> 1/5, >> >> { discrete: width = 320, height = 240 } >> >> Time interval between frame: 1/60, 1/50, 1/40, 1/30, 1/20, 1/15, >> >> 1/10, >> >> 1/5, >> >> { discrete: width = 176, height = 144 } >> >> Time interval between frame: 1/60, 1/50, 1/40, 1/30, 1/20, 1/15, >> >> 1/10, >> >> 1/5, >> >> { discrete: width = 160, height = 120 } >> >> Time interval between frame: 1/60, 1/50, 1/40, 1/30, 1/20, 1/15, >> >> 1/10, >> >> 1/5, >> >> >> >> >> >> Thanks in adv, >> >> Naruka >> > >> > _______________________________________________ >> > Linux-uvc-devel mailing list >> > Linux-uvc-devel@lists.berlios.de >> > https://lists.berlios.de/mailman/listinfo/linux-uvc-devel >> > >> > > > _______________________________________________ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel