473,387 Members | 1,799 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 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 10455
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Paul Gardella | last post by:
Folks, Does anyone know of a Python module for building organization charts? I've looked at gdchart and JPGraph, but neither of them do org charts, as far as I can tell. Seems it can be done...
5
by: Bart Simpson | last post by:
Hi, I want to control 'Scheduled Tasks' in Windows 2003 by python program. But I couldn't find any Python module about win32 'Scheduled Tasks'. I could find only Perl module about it. (see...
1
by: sam | last post by:
Hi, Had anyone written any python module for webmin? Since webmin is written in perl, but I want to write a python app/module used by webmin. If you know the detail of writing a python module...
1
by: David | last post by:
I have this error message poping up when I try to import a module I made in C using the Python/C API. Everything compiles like a charm. Gives me this error message : Traceback (most recent...
17
by: Jacob Page | last post by:
I have created what I think may be a useful Python module, but I'd like to share it with the Python community to get feedback, i.e. if it's Pythonic. If it's considered useful by Pythonistas, I'll...
1
by: wen | last post by:
i have written python extend module by c/c++, but i saw a module of a software(pyMOL, you can get it from http://pymol.sourceforge.net/) called _cmd.pyd instead of _cmd.dll. and it is written by...
1
by: RayS | last post by:
I've begun a Python module to provide a complete interface to the Meade LX200 command set: http://rjs.org/Python/LX200.py and would like input from potential users or people interested in...
1
by: munisams | last post by:
Can anyone tell me Is there any python module available which functionally equivalent to Perl's MIME::Lite?? I am searching for a python MIME module which has following features: 1. Able to send...
0
by: Gabriel Genellina | last post by:
En Thu, 10 Jul 2008 14:02:29 -0300, Bhagwat Kolde <bbkolde@gmail.com> escribi�: If it is a single Python module, you can put it anywhere in the Python path. A good place may be the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.