Re: [pygame] Making a Movie

2010-12-13 Thread Ian Mallett
Hi, I know this thread is rally old, but I finally got passable results with: ffmpeg -f image2 -r 60 -i frame%d.png -mbd rd -trellis 2 -cmp 2 -subcmp 2 -pass 1/2 -r 59 video.mpg Thanks all, Ian

Re: [pygame] Making a Movie

2010-04-28 Thread Peter Shinners
It may help that SDL has a wav audio driver that writes all sound output to an uncompressed .wav. Unfortunately it will take some magic to get it synced with the video you've assembled. On 04/27/2010 07:46 PM, Ian Mallett wrote: I figured out I have to set the input file's framerate too:

Re: [pygame] Making a Movie

2010-04-28 Thread René Dudfield
hi ya, if you have spare cpu/memory bandwidth, then screen casting software may be easier. There's some good free ones here: http://en.wikipedia.org/wiki/List_of_screencasting_software cu. On Wed, Apr 28, 2010 at 2:00 AM, Ian Mallett geometr...@gmail.com wrote: Hi, So, I'm trying to make

Re: [pygame] Making a Movie

2010-04-28 Thread Ian Mallett
On Tue, Apr 27, 2010 at 11:43 PM, Peter Shinners p...@shinners.org wrote: It may help that SDL has a wav audio driver that writes all sound output to an uncompressed .wav. How does it work?

Re: [pygame] Making a Movie

2010-04-28 Thread Miriam English
Ian Mallett wrote: Also, the video quality is reaallly bad (and the whole 800 frames is less than 1 MB). I'd like to trade some space for some quality. Also, changing: ffmpeg -f image2 -r 60 -i frame%d.png -r 59 video.mpg to: ffmpeg -f image2 -r 60 -i frame%d.png -r 59 video.avi Causes

Re: [pygame] Making a Movie

2010-04-27 Thread Luke Paireepinart
You should be able to make a set of images into a movie but the image quality is not gonna be perfect (because once you go to a video file then it's compressed. there's no getting around that.) You could just display the frames yourself, at a specific frame rate, or you could just automate your

Re: [pygame] Making a Movie

2010-04-27 Thread Ian Mallett
On Tue, Apr 27, 2010 at 6:04 PM, Luke Paireepinart rabidpoob...@gmail.comwrote: You should be able to make a set of images into a movie but the image quality is not gonna be perfect (because once you go to a video file then it's compressed. there's no getting around that.) Righto--that's

Re: [pygame] Making a Movie

2010-04-27 Thread Tyler Laing
You can use ffmpeg. A quick sample line I found is this: ffmpeg -f image2 -i frame%d.jpg video.mpg Explore the ffmpeg options and you will find the way to include an audio file for sound. On Tue, Apr 27, 2010 at 6:04 PM, Luke Paireepinart rabidpoob...@gmail.comwrote: You should be able to

Re: [pygame] Making a Movie

2010-04-27 Thread Luke Paireepinart
On Tue, Apr 27, 2010 at 8:12 PM, Tyler Laing trinio...@gmail.com wrote: You can use ffmpeg. A quick sample line I found is this: ffmpeg -f image2 -i frame%d.jpg video.mpg Explore the ffmpeg options and you will find the way to include an audio file for sound. you're gonna want to make sure

Re: [pygame] Making a Movie

2010-04-27 Thread Ian Mallett
Alrighty, I've got my first (ever) ffmpeg movie sorta working. I'm using the command: ffmpeg -f image2 -i frame%d.png -r 59 video.mpg As you'll see, I've added a framerate thingie as best as I understand it. However, the resultant movie is much slower than the original program (which ran at

Re: [pygame] Making a Movie

2010-04-27 Thread Ian Mallett
I figured out I have to set the input file's framerate too: ffmpeg -f image2 -r 60 -i frame%d.png -r 59 video.mpg The image speed looks perfect now. Now, I need to figure out how to add sound to the movie. In my program, there are several sounds that are played at different times. As I