problems of sync video and audio

elisabatti's icon

I made the following patch below, I'm new with jitter because I was using just MSP but I need to built up a video connected to audio. The video is reading photos and audio is changing according to the photo displayed.

Max Patch
Copy patch and select New From Clipboard in Max.

sound is not that simple sine wave but I put it just for simplicity. I have the following problems with the video:
-how to record sound and video together?
-the video is not going at the right speed, if I record it separately it has a different length then the audio file...

Jesse's icon

jit.vcr

elisabatti's icon

Thx Jesse I did and it is wrking
but
then I went one step backward and I replaced the png photos with the real ones
jpeg with a dimension of 3235x4853 and a size of 5.5 MB and...now the crossfading works really badly, it scatters and it is not anymore fluent and the image quality in the video is very low compared to the original pictures....aaahahahh. The CPU utilization is around 60%..
can somebody help me to find a solution?
here it is the patch, I removed all the sound part. With the sounds I know how to work but it is my first trial with jitter and I'm very bad with it....

Max Patch
Copy patch and select New From Clipboard in Max.

Rob Ramirez's icon

i would resize the images to more closely match whatever your final window dimensions are going to be.