Re: [Tutor] Command line args

2007-04-07 Thread Andreas Kostyrka
* Teresa Stanton <[EMAIL PROTECTED]> [070407 18:52]: >If one argument to a script is provided I am to take the input from it. I >figure that is presented like this: > >filename = sys.argv[1] >data = open(filename).read() > >But, if none are provided, input should come from st

Re: [Tutor] Command line args

2007-04-07 Thread Alan Gauld
"Teresa Stanton" <[EMAIL PROTECTED]> wrote > If one argument to a script is provided I am to take the input from > it. OK This sounds like a homework so I can't give you a direct answer but only some things to consider. > I figure that is presented like this: > > filename = sys.argv[1] > data

[Tutor] Command line args

2007-04-07 Thread Teresa Stanton
If one argument to a script is provided I am to take the input from it. I figure that is presented like this: filename = sys.argv[1] data = open(filename).read() But, if none are provided, input should come from standard input. How do I write that code? TY _

Re: [Tutor] Movies from jpg files

2007-04-07 Thread Greg Perry
Maybe PyMedia is what you are looking for: http://www.pymedia.org It's a Python library based on FFmpeg, which is a program that can encode and decode many different video streams. FFmpeg can also create an mpeg from a collection of jpeg images, read section 1.2 of the FFmpeg FAQ which demons

[Tutor] Movies from jpg files

2007-04-07 Thread János Juhász
Dear Alan, Alan Gauld wrote: >If you are usoing XP this is very easily done using MovieMaker. >Just drag n drop the jpg files into MM and adjust the durations. > >Any of those programs will give you a choice of formats in >which to save the final movie. Thanks your response. It should works well

Re: [Tutor] ConfigParser and multiple option names

2007-04-07 Thread Andrei
Iyer wrote: > > I cannot change the config file layout -- it is a > [dir_options] > dir="/home/florian" > dir="/home/john" > what method would you suggest to read each "dir" value > above from the config_file.lay? Internally, the ConfigParser implementation uses dictionaries to store sections

Re: [Tutor] Movies from jpg files

2007-04-07 Thread Alan Gauld
"János Juhász" <[EMAIL PROTECTED]> wrote > It uploads jpg images every minutes to an ftp server now. > I would like to build up a movie from the pictures for easier > review. If you are usoing XP this is very easily done using MovieMaker. Just drag n drop the jpg files into MM and adjust the dur

[Tutor] Movies from jpg files

2007-04-07 Thread János Juhász
Dear All, I have found a fine Axis 2100 webcamera on my shelf, that was out of usage, It uploads jpg images every minutes to an ftp server now. I would like to build up a movie from the pictures for easier review. I don't know which movie format can be built up easier, .jpeg, quicktime .mov, .wmv