I've used FFMPEG to grab single frames (or a frequent snapshot) from my
pvr-150.
E.g. for a continuous JPEG snapshot every 5 seconds (0.2 fps), sequentially
numbered
ffmpeg -i /dev/video0 -f image2 -r 0.2 -vcodec mjpeg stills%6d.jpg
or for just a single snapshot (NOT cpu-efficient)
ffmpeg -i /dev/video0 -f image2 -t 0.001 snapshot.jpg
For ref:
http://ffmpeg.mplayerhq.hu/
On 4/19/07, Hans Verkuil <[EMAIL PROTECTED]> wrote:
> Hi folks, I just got my Hauppage WinTV PVR-150 MCE card and got it
working
> with the 0.10.1 driver. It was a bit fiddly but the docs are good. I
can
> now cat mpegs out of /dev/video0 and play real-time mpegs with mplayer.
>
> Is it possible to grab single frames somehow? I know I could always
> extract the first I-frame from the mpeg stream, but that seems a bit
> indirect. Are there any alternatives?
Yes, but it is a bit fiddly: the video32 device is the raw video device
and it can be used to grab a single frame only. The format of that frame
is HM12 which is described in this document in the linux kernel:
Documentation/video4linux/cx2341x/README.hm12
Actually, it would be quite nice if someone would make a C/C++ utility
that would implement a simple snapshot application and save the resulting
image in a normal image format like png. I wouldn't mind including that
with the ivtv utilities.
Hans
_______________________________________________
ivtv-users mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-users
_______________________________________________
ivtv-users mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-users