Hi,

This is also related to the thread:
"GEM: where to find gem-CVS20060412-NT-i686-bin (windows binaries)"

IOhannes wrote:
> which things do NOT
> work? which behave differently?

Here's one thing that behaves differently (and annoyingly) in the new 
version - dunnow if it can be set to work the other way.

I have DirectX 9.0c and QuickTime 7.4.5 installed in my Windows XP machine.

I attach a modified version of the help-patch of pix_film: the only change 
I've made is to add "RGBA 1" arguments to the [open...( message fed into the 
pix_film.
The important part is the "1" argument, which forces pix_film to use 
QuickTime rather than DirectX.

Now, try it with a dv-pal AVI file with audio - or maybe with ANY avi file 
with audio - or maybe even with a mov (I reproduced it with a dv-pal avi).
The annoying thing is that it is playing the file audio track, and it does 
not come from PD (dsp is turned off). I dunnow where the heck the audio 
comes from but i hear it.
If you don't activate the "auto" check nor move the frame number, a 
1-frame-long (which is 40msec) fragment of audio is repeated over and over 
again, and the patch consumes almost 100% CPU.

With old gem-CVS20060412-NT-i686 this doesn't happen, with the same version 
of quicktime. GEM only reproduced the video, through QuickTime, and ignores 
the audio (which is what you expect from GEM isn't it). Also, if you don't 
activate "auto" nor move the frame number, it consumes much less CPU (which 
is reasonable cause it's not decoding new frames).

I guess I do can assume that 2006 version is also using quicktime because of 
the "1" argument in the open message. I don't know if the attached output 
(obtained with old 2006 version) (at the end of the message)confirms this.

Why and where is the audio being played? How can I turn it off and avoid 
useless cpu usage???

Thanks
bye
m.



Gem Man: QT init OK
MAN::resetState entered
pix_film:: avi support
handle 0 11A4530
filmQT created
pix_film:: quicktime support
handle 1 11A45E8
handle 2 11A4698
handle 3 11A4730
handle 4 11A47C0
handle 5 11A4858
handle 6 11A48F8
pix_filmNEW : openMessCallback
closing 8 handles
close 7
close 6
close 5
close 4
close 3
close 2
close 1
close 0
closed
movie size x:720 y:576
got handle = 11A45E8
GEM: pix_film: Loaded file: 
F:/currentwork/patches_marceli/patchesvideo_03_2007/testvideo/Clip02.avi 
with 14474 frames (720x576) at 482.000000 fps
GEM: connected to tablet
GemMan: create window
GLEW version 1.3.3 
#N canvas 144 60 724 565 10;
#X text 452 8 GEM object;
#X obj 9 272 cnv 15 430 280 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 40 274 Inlets:;
#X text 39 441 Outlets:;
#X obj 9 239 cnv 15 430 30 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 18 238 Arguments:;
#X obj 8 56 cnv 15 430 180 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 449 57 cnv 15 250 350 empty empty empty 20 12 0 14 -228992 -66577
0;
#X text 453 40 Example:;
#X obj 594 340 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 0 450 300 gemwin 0;
#X obj 132 136 gemwin;
#X obj 67 89 outlet;
#X obj 67 10 inlet;
#X msg 67 70 set destroy;
#X msg 132 112 create \, 1;
#X msg 198 112 destroy;
#X msg 156 71 set create;
#X obj 67 41 route create;
#X connect 2 0 7 0;
#X connect 3 0 1 0;
#X connect 4 0 0 0;
#X connect 5 0 0 0;
#X connect 6 0 1 0;
#X connect 7 0 3 0;
#X connect 7 0 4 0;
#X connect 7 1 6 0;
#X connect 7 1 5 0;
#X restore 599 379 pd gemwin;
#X msg 599 360 create;
#X text 595 339 Create window:;
#X obj 451 88 cnv 15 155 250 empty empty empty 20 12 0 14 -24198 -66577
0;
#X obj 451 63 gemhead;
#X text 17 455 Outlet 1: gemlist;
#X text 24 288 Inlet 1: gemlist;
#X obj 451 360 pix_texture;
#X obj 463 93 bng 25 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X text 505 57 open a supported;
#X text 506 68 movie-clip;
#X obj 476 287 unpack 0 0 0;
#X floatatom 466 310 5 0 0 3 length - -;
#X floatatom 515 310 5 0 0 3 width - -;
#X floatatom 565 310 5 0 0 3 height - -;
#X obj 520 268 bng 15 250 50 0 empty empty end_reached 20 7 0 10 -262144
-1 -1;
#X floatatom 502 233 5 0 10000 1 frame# - -;
#X text 71 31 Class: pix object (pix source);
#X text 29 57 Description: load in a movie-file;
#X obj 463 122 openpanel;
#X obj 451 382 rectangle 4 3;
#X text 50 12 Synopsis: [pix_film];
#X text 15 78 [pix_film] loads in a preproducecd digital-video to be
used aas a texture \, bitblit or something else.;
#X text 13 104 You can open a specified film via the "open" message
\, which takes an optional argument for the colorspace \, to which
the movie should be decoded (RGBA \, YUV or Grey).;
#X obj 451 251 pix_film;
#X text 64 249 symbol: file to load initially;
#X text 24 303 Inlet 1: message: open <filename> [RGBA|YUV|Grey]: opens
the movie <filename> and decodes it into the specified color-space.
;
#X text 24 346 Inlet 1: message: colorspace "RGBA|YUV|Grey": decodes
the current film into the specified colorspace.;
#X text 24 375 Inlet 1: message : auto 1|0 : starts/stops automatic
playback.;
#X text 22 407 Inlet 2: float: <frame#> changes the frame to be decoded
on rendering.;
#X text 17 524 Outlet 3: bang: indicates that the last frame has been
reached. (or: an illegal frame would have been decoded);
#X msg 469 185 auto \$1;
#X obj 469 167 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
#X msg 480 209 colorspace Grey;
#X text 13 104 You can open a specified film via the "open" message
\, which takes an optional argument for the colorspace \, to which
the movie should be decoded (RGBA \, YUV or Grey).;
#X text 17 471 Outlet 2: list: <length> <width> <height>: gets the
dimensions (in fps and pixels) of a film when it gets loaded. if length
is not available (video-streams) -1 is returned.;
#X text 14 144 Normally \, you will only get one specified (via the
second inlet) frame of the film \, To play back a complete film \,
you have to change the frame accordingly \, OR use the "auto" message
\, to automatically proceed to the next frame each rendering-cycle.
In auto-mode \, the film is NOT looped. Instead you can reset the current-frame
to zero when the end of the film is reached.;
#N canvas 67 224 450 432 :: 0;
#X text 24 16 the format [pix_film] is able to decode depends on the
system you are running Gem.;
#X text 30 101 Win32: [pix_film] should be able to decode AVIs (all
installed codecs). If you are lucky and your version of Gem is compiled
with quicktime-support and you have quicktime installed on your machine
\, you might be able to play back quicktime MOVs.;
#X text 31 63 macOS-X: [pix_film] should be ablte to decode quicktime
MOVs.;
#X text 32 175 linux: that's a bit tricky. Since there is no "native"
video-format for linux it heavily depends on what you have installed
on your machine and how Gem has been compiled. If your system supports
it \, [pix_film] is able to use quicktime4linux/libquicktime to decode
quicktime-MOVs \, libmpeg1/libmpeg3 to decode MPEG2-videos and libaviplay
which opens a wide range of supported formats (with the possibility
to install additional codec-plugins) \, from AVI via MPEG2 to DivX
\, although i have found MPEG support rather unstable. libaviplay does
not support quicktime decoding. There is also some ruddy ffmpeg support
(apart from the one supplied by libaviplay).;
#X text 36 351 although one wouldn't believe it \, but i have found
that iunder linux i could play most formats...;
#X restore 485 464 pd :: FORMATS;
#X msg 462 142 open \$1 RGBA 1;
#X text 558 138 <-- I only added;
#X text 580 150 "RGBA 1 here;
#X connect 10 0 11 0;
#X connect 11 0 10 0;
#X connect 14 0 34 0;
#X connect 17 0 30 0;
#X connect 18 0 29 0;
#X connect 21 0 22 0;
#X connect 21 1 23 0;
#X connect 21 2 24 0;
#X connect 26 0 34 1;
#X connect 29 0 48 0;
#X connect 34 0 17 0;
#X connect 34 1 21 0;
#X connect 34 2 25 0;
#X connect 41 0 34 0;
#X connect 42 0 41 0;
#X connect 43 0 34 0;
#X connect 48 0 34 0;
_______________________________________________
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list

Reply via email to