views:

439

answers:

2

What video format would be the easiest when saving the output of a camera using V4L2 if I capture it in bitmap format? Getting mpeg directly could be, of course, nice, but I can't unfortunately count on that.

I have managed to capture the frames, now I need to somehow view the video. Can I simply convert those frames using some Linux tool or could I save the video easily straight from my app?

A: 

You could use practically any format/codec if you used mencoder or ffmpeg

Btw, this question really should be on superuser.com

Kimvais
A: 

If you are capturing frames already, you could save them to PPM images and then go to JPEG. I did this using v4l2 and ImageMagick. Maybe you could push JPEGs into a Motion JPEG stream. It might not be as high tech as MPEG, but you might get it working quickly. PPM files were a cinch to create. If I remember correctly, the v4l2 example code shows you how to do that part.

Nate
There is no such thing in the capture.c example found in the V4L2 spec.
shodanex
Well, thanks for that...it's been a long time. I found an example on some v4l2 related site. It's not like he asked for PPM specific code examples.
Nate