469,323 Members | 1,610 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,323 developers. It's quick & easy.

Image Module

I want to convert a field of 4:2:2 digital video data into a viewable
format (.jpg or something) using the Image module. Any suggestions??

NG

Jul 18 '05 #1
1 1889
On Tuesday 12 April 2005 06:01 pm, Nicholas S. Graham wrote:
I want to convert a field of 4:2:2 digital video data into a viewable
format (.jpg or something) using the Image module. Any suggestions??


I'll assume that by "Image" module, you mean Python Imaging Library.

I doubt it supports your digital video format, and I'm not sure what
"4:2:2 digital video" actually is. You clearly need to get your video
software to export data in a standard image format of some kind (there
are many choices). If your current video software can't save a freeze
frame in a standard format, then you'll have to search for another
video package that can. If you get desperate, you can capture it
off of the screen with Gimp, but I assume that's not acceptable for
your situation?

Once you get it, you can use Python Imaging Library to read it
and do what you want with it. PIL is not particularly good about the
number of formats it support (it has a definite bias towards PNG format,
and it reads more formats than it can write). You might want to try
ImageMagick, which has a much wider range of image data types that
it can read and write. In a Python script, you can run ImageMagick
from an os.system() call or you can use one of the Python bindings for
it.

Cheers,
Terry

--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispaceworks.com

Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Jim Bob | last post: by
4 posts views Thread by Shumit Rehman | last post: by
4 posts views Thread by Dimitrios Charitatos | last post: by
4 posts views Thread by tshad | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by Gurmeet2796 | last post: by
reply views Thread by mdpf | last post: by
reply views Thread by listenups61195 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.