[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Making a Movie



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:
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 understand it, this would be a lot easier if they were a single audio stream. Any way to somehow map the output of the mixer to a single file? Another approach?

Thanks,
Ian