471,349 Members | 1,228 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,349 software developers and data experts.

Python module for making Quicktime or mpeg movies from images

My Python script makes a bunch of images that I want to use as frames
in a movie. I've tried searching for a module that will take these
images and put them together in a Quicktime or mpeg movie, but haven't
found anything. My images are currently pdfs, but I could make them
into just about anything if needed.

Is there a module, or example of how to do this?
Thanks,
Jeremy

Oct 11 '07 #1
9 10333
jeremito wrote:
My Python script makes a bunch of images that I want to use as frames
in a movie. I've tried searching for a module that will take these
images and put them together in a Quicktime or mpeg movie, but haven't
found anything. My images are currently pdfs, but I could make them
into just about anything if needed.

Is there a module, or example of how to do this?
http://pymedia.org/

Diez
Oct 11 '07 #2
On Oct 11, 10:43 am, "Diez B. Roggisch" <de...@nospam.web.dewrote:
jeremito wrote:
My Python script makes a bunch of images that I want to use as frames
in a movie. I've tried searching for a module that will take these
images and put them together in a Quicktime or mpeg movie, but haven't
found anything. My images are currently pdfs, but I could make them
into just about anything if needed.
Is there a module, or example of how to do this?

http://pymedia.org/

Diez
That initially looked promising, but it looks like nobody is working
on it anymore and it doesn't compile on Mac. (I should have mentioned
I am using a Mac.) Any other suggestions?

Thanks,
Jeremy

Oct 11 '07 #3
jeremito wrote:
On Oct 11, 10:43 am, "Diez B. Roggisch" <de...@nospam.web.dewrote:
>jeremito wrote:
>>My Python script makes a bunch of images that I want to use as frames
in a movie. I've tried searching for a module that will take these
images and put them together in a Quicktime or mpeg movie, but haven't
found anything. My images are currently pdfs, but I could make them
into just about anything if needed.
Is there a module, or example of how to do this?
http://pymedia.org/

Diez

That initially looked promising, but it looks like nobody is working
on it anymore and it doesn't compile on Mac. (I should have mentioned
I am using a Mac.) Any other suggestions?
Not really a Python module but... run them
through mencoder? (Haven't tried it but it
seems to be saying it's possible).

http://www.mplayerhq.hu/DOCS/man/en/...NCODER%20USAGE

TJG
Oct 11 '07 #4
TYR
On Oct 11, 4:17 pm, Tim Golden <m...@timgolden.me.ukwrote:
jeremito wrote:
On Oct 11, 10:43 am, "Diez B. Roggisch" <de...@nospam.web.dewrote:
jeremito wrote:
My Python script makes a bunch of images that I want to use as frames
in a movie. I've tried searching for a module that will take these
images and put them together in a Quicktime or mpeg movie, but haven't
found anything. My images are currently pdfs, but I could make them
into just about anything if needed.
Is there a module, or example of how to do this?
http://pymedia.org/
Diez
That initially looked promising, but it looks like nobody is working
on it anymore and it doesn't compile on Mac. (I should have mentioned
I am using a Mac.) Any other suggestions?

Not really a Python module but... run them
through mencoder? (Haven't tried it but it
seems to be saying it's possible).

http://www.mplayerhq.hu/DOCS/man/en/...PLES%20OF%20ME...

TJG
NodeBox; nodebox.org

GUI application that creates either PDFs or Quicktime vids from python
code. Unix/Linux/MacOS.

Oct 12 '07 #5
My Python script makes a bunch of images that I want to use as frames
in a movie. I've tried searching for a module that will take these
images and put them together in a Quicktime or mpeg movie, but haven't
found anything. My images are currently pdfs, but I could make them
into just about anything if needed.

Is there a module, or example of how to do this?
Thanks,
Jeremy
If you'll be happy with a flash movie you can try ming: ming.sf.net
which is a C library for creating flash files and there is a python
binding for it (among other languages).
Oct 12 '07 #6
On Oct 12, 10:37 am, TYR <a.harrow...@gmail.comwrote:
On Oct 11, 4:17 pm, Tim Golden <m...@timgolden.me.ukwrote:
jeremito wrote:
On Oct 11, 10:43 am, "Diez B. Roggisch" <de...@nospam.web.dewrote:
>jeremito wrote:
>>My Python script makes a bunch of images that I want to use as frames
>>in a movie. I've tried searching for a module that will take these
>>images and put them together in a Quicktime or mpeg movie, but haven't
>>found anything. My images are currently pdfs, but I could make them
>>into just about anything if needed.
>>Is there a module, or example of how to do this?
>>http://pymedia.org/
>Diez
That initially looked promising, but it looks like nobody is working
on it anymore and it doesn't compile on Mac. (I should have mentioned
I am using a Mac.) Any other suggestions?
Not really a Python module but... run them
through mencoder? (Haven't tried it but it
seems to be saying it's possible).
http://www.mplayerhq.hu/DOCS/man/en/...PLES%20OF%20ME...
TJG

NodeBox; nodebox.org

GUI application that creates either PDFs or Quicktime vids from python
code. Unix/Linux/MacOS.
I actually found NodeBox in my googling. This seems to be a stand
alone application. I need to be able to convert my images to a movie
from my code I wrote myself.

Thanks,
Jeremy

Oct 12 '07 #7
has
On 12 Oct, 20:53, jeremito <jerem...@gmail.comwrote:
I actually found NodeBox in my googling. This seems to be a stand
alone application. I need to be able to convert my images to a movie
from my code I wrote myself.
Some Mac-specific options:

- QuickTime Player is standard on OS X and its scripting interface
(which you can access from Python via appscript, and is fully usable
even in unpaid mode) includes an 'open image sequence' command. This
would be the simplest solution as long as you don't mind launching
another application to do the work.

- The Cocoa API's QTKit class (accessible via PyObjC) includes a -
addImage:forDuration:withAttributes: method that you could use to
build up a movie yourself.

- The Mac version of Python includes wrappers for a number of Carbon
APIs, including QuickTime. One for brave souls only; QT's C APIs are
notoriously complex, and I've no idea of the quality/reliability of
the Carbon.Qt wrapper (most of Python's Carbon wrappers haven't been
fully maintained since OS9 days).

HTH

has
--
http://appscript.sourceforge.net
http://rb-appscript.rubyforge.org

Oct 13 '07 #8
>- The Mac version of Python includes wrappers for a number of Carbon
APIs, including QuickTime. One for brave souls only; QT's C APIs are
notoriously complex,
AMEN. I tried to work with that stuff, and it was close to a totally
failure & desaster...

Diez
Oct 13 '07 #9
On Oct 12, 3:53 pm, jeremito <jerem...@gmail.comwrote:
NodeBox; nodebox.org
GUI application that creates either PDFs or Quicktime vids from python
code. Unix/Linux/MacOS.

I actually found NodeBox in my googling. This seems to be a stand
alone application. I need to be able to convert my images to a movie
from my code I wrote myself.
Why? Whether you're using a library or an external application, it's
not code that you wrote yourself. There's shouldn't be any reason you
couldn't call an application like mencoder from your program. Either
way you're certainly not going to find anything written in pure Python
for encoding video.

Oct 15 '07 #10

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Paul Gardella | last post: by
5 posts views Thread by Bart Simpson | last post: by
1 post views Thread by sam | last post: by
1 post views Thread by David | last post: by
17 posts views Thread by Jacob Page | last post: by
reply views Thread by Gabriel Genellina | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.