Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[mpeg2] Re: still picture grabbing



If you use
mpeg2dec -o xv capturefile is the image ok on the screen?

You might have to change the stream type when you capture using the
-streamtype flag.

I successfully decoded a pure video stream using mpeg2dec, so I know it can
be done.

-----Original Message-----
From: mpeg2-bounce@linuxtv.org [mailto:mpeg2-bounce@linuxtv.org]On
Behalf Of Rupert.Kobras
Sent: Tuesday, July 10, 2001 12:12 AM
To: rmorris@cdlsystems.com
Cc: mpeg2@linuxtv.org
Subject: [mpeg2] Re: still picture grabbing


I've tried the cvs-version of mpeg2dec.

The command
mpeg2dec  -o pgm capturefile
gave me only grayscale pictures, with an odd size of 704x864.
The capturefile is an mpeg2 video-elementary stream (PAL), with an size of
704x576.

Any ideas to get colored pictures with the right size ?

Thanks Rupert



-----Original Message-----
From: mpeg2-bounce@linuxtv.org [mailto:mpeg2-bounce@linuxtv.org]On
Behalf Of Rob Morris
Sent: Freitag, 06. Juli 2001 18:19
To: mpeg2@linuxtv.org
Subject: [mpeg2] Re: still picture grabbing


One approach would be to get the mpeg2dec package from linuxvideo.org It
will decode an mpeg 2 stream into frames, which can be stored to disk. I
think these frames are in YV12 format which can be directly displayed with
Xv on some graphics cards (Radeon for ex.)

mpeg2dec could probably be easily modified to capture only I frames to cut
down the disk-space requirements. It may then be as simple as

mpeg2dec  -o pgm /dev/video

If you don't need to capture frames live, maybe cat the /dev/video to a file
first as in:

cat /dev/video > capturefile

mpeg2dec -o pgm capturefile

Let us know your results.






Home | Main Index | Thread Index