well not completely sure if all of that is possible - still needs lot of experimentation. I have written video capture inspired by floe's camera capture utility - just throwing out the code here in case someone wants to experiment and build on it!! (had started on it some 15 days back but never got time to work further on it)
There are still hiccups in the videos (320x240 @5fps) - maybe not just one but all ready frames need to be read after WCAM_VIDIOCGCURFRMS ioctl call??
Also not sure if captured size (CIF) is actual sensors or digitally interpolated (zoomed) one?
further experimentation with fps greater than 5 can be done once video quality gets fixed at current rate.
Do have a look at pxa_camera.h in the kernel sources for help on ioctls.
This utility captures 30 seconds (=150 frames, change loop index to capture more) of video in raw format - Compile the attached source as:
"arm-linux-gcc vidcap.c -o vidcap -I /path/to/a780/linux-2.4.17/include --static"
Also attached is statically compiled vidcap. Running vidcap will create out.yuv (~22MB) in current directory. Convert it to mpeg4 on linux/windows desktop using ffmpeg (Windows user can download
3GP_Converter034.zip which includes ffmpeg.exe) as follows:
"ffmpeg -i out.yuv -s 320x240 -r 5 -pix_map yuv422p out.mp4"
Well, getting access to motovision sources might be useful - does anyone got membership in that forum or know the author?
@floe
btw it should be possible to use similar ffmpeg options to convert captured yuv422p images to jpeg. Thanks a ton for your camera capture utility!!
@asadqq
Mobile sure is the most handy gadget rather than any camcorder!!