Wanting to automate opening videos in GEM. Is there any library with a function to check a movie header for fps?
-Chuckk
How hard would it be for me to program such a function?
On 5/11/06, Chuckk Hubbard badmuthahubbard@gmail.com wrote:
Wanting to automate opening videos in GEM. Is there any library with a function to check a movie header for fps?
-Chuckk
-- "Far and away the best prize that life has to offer is the chance to work hard at work worth doing." -Theodore Roosevelt
Chuckk Hubbard wrote:
How hard would it be for me to program such a function?
hmm, how many templates do you eat for breakfast? i don't know your programming skills, but it shouldn't be that hard. (the only problem is, that at least on linux most decoding libraries only support a certain container format)
however, Gem tells you the framerate on loading the video via the 2nd outlet of [pix_film] (it gives you a list: number of frames, xsize, ysize, fps)
mfg.as.dr IOhannes
On 5/14/06, IOhannes m zmölnig zmoelnig@iem.at wrote:
however, Gem tells you the framerate on loading the video via the 2nd outlet of [pix_film] (it gives you a list: number of frames, xsize, ysize, fps)
Not on the Gem I have, 0.90. Just total frames and dimensions.
-Chuckk
On 5/11/06, Chuckk Hubbard badmuthahubbard@gmail.com wrote:
Wanting to automate opening videos in GEM. Is there any library with a function to check a movie header for fps?
This really varies by platform and API. For example, Quicktime doesn't really have the concept of a frame per second in the container format. That might sound odd, but it allows for frames of different lengths in the same container and multiple frame rate tracks of media to work alongside each other.
Right now with QT we sort of guess at the framerate because it helps to open the movie file faster. It is not a very accurate number though and I would not use it for controlling playback. The 'auto' and 'rate' messages do allow for accurate control of playback based on any media of any framerate.
On 5/15/06, chris clepper cgc@humboldtblvd.com wrote:
On 5/11/06, Chuckk Hubbard badmuthahubbard@gmail.com wrote:
Wanting to automate opening videos in GEM. Is there any library with a function to check a movie header for fps?
This really varies by platform and API. For example, Quicktime doesn't really have the concept of a frame per second in the container format. That might sound odd, but it allows for frames of different lengths in the same container and multiple frame rate tracks of media to work alongside each other.
Right now with QT we sort of guess at the framerate because it helps to open the movie file faster. It is not a very accurate number though and I would not use it for controlling playback. The 'auto' and 'rate' messages do allow for accurate control of playback based on any media of any framerate.
But the speed of "auto" depends on the "frame" message sent to gemwin. I want to score films with Pure Data. The only way it will line up correctly is if the fps is correct. As of now I have to open the file in Quicktime or Media Player to check, and manually change it in Pd.
I also have to be able to send specific frame messages, because I'm not going to start at the beginning of a 15 minute movie file every time I want to check a passage. I'm still working out exactly how it's going to work; the tempo control in my patch is exponential and so a little strange to calculate beforehand.
-Chuckk