Hi,
I use [pix_blob] object to get the RGB info of an avi file, which then controls the volume of three different audio files. With [writesf~] I then generate a .wav file (44100Hz, no pitch-shift) that I can use (for a different purpose). The issue is that the duration of the output (.wav) is different than the duration of the movie...
Some more info:
All-in-Wonder Radeon 7500 video card.
with another avi file generated with Premiere at 12fps, it results in a wav of 3'00''. I also tried with a quicktime movie with the same result.
Wished result: 4'55'' = (4*60+55)'' = 295'' Obtained results: 1/ wav = 7'22'' = (7*60+22)'' = 442'' at 30 fps = 8850 frames (thanks to the 2nd outlet of [pix_movie]) 2/ wav = 3'05'' = (3*60)'' = 180'' at 12 fps = 3540 frames
It seems pd reads the video at app. 20fps. Can we enter a fps as an argument somewhere so that the video is read in pd at the right speed? Do you think it could be because of the CPU usage?
Any idea?
Thanks in advance, emmanuel
On Dec 20, 2005, at 12:40 PM, emmanuel lefrant wrote:
Wished result: 4'55'' = (4*60+55)'' = 295'' Obtained results: 1/ wav = 7'22'' = (7*60+22)'' = 442'' at 30 fps = 8850 frames
(thanks to the 2nd outlet of [pix_movie]) 2/ wav = 3'05'' = (3*60)'' = 180'' at 12 fps = 3540 framesIt seems pd reads the video at app. 20fps. Can we enter a fps as an
argument somewhere so that the video is read in pd at the right speed? Do
you think it could be because of the CPU usage?
...20fps is the default fps of the [gemwin]: you can change this by
sending a [frame $1< to [gemwin] with the desired framerate...also,
are you playing back the movie via [auto 1<? If so, then it will
playback locked to the frame rate of the window...alternatively you
could just use a [metro] to bang a [counter] and get variable
framerates for the movie, without affecting other things...this is
actually how I use gem: I always like to run [gemwin] at 60fps,
which gives smooth animations, but I also like decoupling the movie
playback from the window fps...
james
Thanks James, it works great!
-----Message d'origine----- De : james tittle [mailto:tigital@mac.com] Envoyé : mardi 20 décembre 2005 19:42 À : emmanuel lefrant Cc : pd-list@iem.at Objet : Re: [PD] GEM :: movie duration & speed
On Dec 20, 2005, at 12:40 PM, emmanuel lefrant wrote:
Wished result: 4'55'' = (4*60+55)'' = 295'' Obtained results: 1/ wav = 7'22'' = (7*60+22)'' = 442'' at 30 fps = 8850 frames (thanks to the 2nd outlet of [pix_movie]) 2/ wav = 3'05'' = (3*60)'' = 180'' at 12 fps = 3540 frames
It seems pd reads the video at app. 20fps. Can we enter a fps as an argument somewhere so that the video is read in pd at the right speed? Do you think it could be because of the CPU usage?
...20fps is the default fps of the [gemwin]: you can change this by sending a [frame $1< to [gemwin] with the desired framerate...also, are you playing back the movie via [auto 1<? If so, then it will playback locked to the frame rate of the window...alternatively you could just use a [metro] to bang a [counter] and get variable framerates for the movie, without affecting other things...this is actually how I use gem: I always like to run [gemwin] at 60fps, which gives smooth animations, but I also like decoupling the movie playback from the window fps...
james