Forums > Jitter

about quicktime editing (and spigot~)

December 10, 2006 | 11:12 am

Hey everyone – sorry if this got posted twice, just realized I sent
it from the wrong email address (twice).

So, I’ve been working on this patch on and off for a bit. Trying to
make a patch that takes in a quicktime movie, then outputs the same
movie with all the parts above a certain amplitude removed, with jump
cuts.

This version of the patch uses quicktime editing, built into
jit.qt.movie. My guess is that either something is happening where
the spigot files is not updating, the qt.movie times go wobbly with a
clipped patch, or some combination thereof; as far as i can tell,
this should work, but does not.

Any suggestions, or information about how these two things work in
such a way that my patch does not do what I want it to, would be
greatly appreciated!

Thanks so much in advance,

nathaniel

http://nathanielstern.com

the patch:

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P comment 370 81 89 196617 start editing;
#P toggle 351 80 15 0;
#P newex 351 196 29 196617 gate;
#P comment 263 420 52 196617 min length;
#P newex 201 556 48 196617 pack 0 0;
#P newex 232 525 37 196617 + 100;
#P newex 233 496 27 196617 t i i;
#P newex 79 588 32 196617 print;
#P message 23 430 155 196617 list of two numbers goes in here;
#P number 259 436 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 23 471 220 196617 if (($i2-$i1) > $i3) then $i1 $i2 else
out2 $i1;
#B color 5;
#P comment 990 442 89 196617 amplitude test set;
#P flonum 928 440 56 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P comment 226 86 89 196617 start at beginning;
#P button 208 85 15 0;
#P window setfont "Sans Serif" 18.;
#P comment 97 43 183 196626 control the movie;
#P comment 389 107 131 196626 the editing;
#P comment 652 298 159 196626 in and out points;
#P window setfont "Sans Serif" 9.;
#P newex 653 538 52 196617 s thetime;
#P newex 683 411 52 196617 s thetime;
#P newex 337 220 52 196617 r thetime;
#P newex 743 433 38 196617 s gate;
#P newex 773 412 38 196617 s mov;
#P newex 717 556 37 196617 s gate;
#P window setfont "Sans Serif" 18.;
#P comment 685 53 131 196626 set edit mode;
#P window setfont "Sans Serif" 9.;
#P newex 749 532 37 196617 s mov;
#P window setfont "Sans Serif" 18.;
#P comment 837 298 159 196626 amplitude tests;
#P window setfont "Sans Serif" 9.;
#P newex 61 85 45 196617 r metro;
#P newex 841 223 45 196617 s metro;
#P newex 337 271 37 196617 r gate;
#P newex 860 199 37 196617 s gate;
#P newex 837 415 36 196617 r amp;
#P newex 879 175 36 196617 s amp;
#P button 841 83 15 0;
#P newex 841 124 67 196617 t 1 1 0 read;
#P newex 898 155 37 196617 s mov;
#P number 447 320 73 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 421 368 77 9 0 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 421 347 36 196617 – 225;
#P newex 392 483 99 196617 t start savemovie s;
#P newex 653 470 37 196617 r stop;
#P newex 653 346 41 196617 r start;
#P newex 930 561 37 196617 s stop;
#P newex 885 538 41 196617 s start;
#P user gswitch2 392 304 39 32 0 0;
#P message 391 246 148 196617 99153.;
#P newex 391 192 62 196617 prepend set;
#P newex 653 502 107 196617 t b getedittime 0 stop;
#P newex 653 376 133 196617 t start b getedittime 1 stop;
#P newex 12 135 37 196617 r mov;
#P newex 392 516 37 196617 s mov;
#P newex 392 432 48 196617 pack 0 0;
#P message 392 459 54 196617 cut $2 $1;
#P button 930 512 15 0;
#P button 885 512 15 0;
#P newex 885 486 44 196617 togedge;
#P newex 885 462 53 196617 > 0.01;
#P newex 391 149 74 196617 route edittime;
#P user ubumenu 714 84 100 196617 0 1 1 0;
#X add quicktime units;
#X add milliseconds;
#X add frame;
#X add frame_true;
#X prefix_set 0 0 0;
#P message 714 109 64 196617 editmode $1;
#P message 171 135 33 196617 start;
#P toggle 941 124 15 0;
#P newex 941 155 31 196617 dac~;
#P message 208 135 39 196617 time 0;
#P flonum 885 415 119 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 885 366 27 196617 +~;
#P newex 885 392 75 196617 peakamp~ 100;
#P message 131 135 28 196617 stop;
#P flonum 103 109 35 9 0.5 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P toggle 61 109 15 0;
#P newex 61 135 52 196617 metro 10;
#P user jit.pwindow 60 207 162 122 0 0 0 0 1 0;
#P flonum 391 170 111 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 61 167 292 196617 jit.qt.movie @soc soundtrac @loop 0
@autostart 0 @rate 0.2;
#P newex 885 340 90 196617 spigot~ soundtrac;
#P window linecount 3;
#P comment 529 320 100 196617 go back , edittime units (to cut
beginning);
#P window setfont "Sans Serif" 18.;
#P window linecount 1;
#P comment 841 50 159 196626 load movie here;
#P window setfont "Sans Serif" 9.;
#P window linecount 2;
#P comment 21 390 232 196617 not sure if i’ll need this , but it’s a
li’l patch that can set a minimum length of sections to cut out.;
#P connect 16 0 15 0;
#P connect 24 0 35 0;
#P fasten 22 1 24 0 924 508 935 508;
#P connect 65 0 21 1;
#P fasten 3 1 12 1 970 362 907 362;
#P fasten 18 0 42 0 719 146 903 146;
#P connect 43 3 42 0;
#P connect 23 0 34 0;
#P connect 22 0 23 0;
#P connect 21 0 22 0;
#P fasten 46 0 21 0 842 436 890 436;
#P connect 13 0 21 0;
#P connect 11 0 13 0;
#P connect 12 0 11 0;
#P connect 3 0 12 0;
#P connect 43 2 45 0;
#P connect 43 1 47 0;
#P connect 43 0 49 0;
#P connect 44 0 43 0;
#P fasten 29 0 55 0 658 406 778 406;
#P connect 29 4 55 0;
#P fasten 29 2 55 0 718 400 778 400;
#P fasten 30 1 52 0 690 528 754 528;
#P connect 30 3 52 0;
#P connect 29 3 56 0;
#P connect 30 2 54 0;
#P connect 19 0 18 0;
#P connect 29 1 58 0;
#P connect 30 0 59 0;
#P connect 37 0 30 0;
#P connect 36 0 29 0;
#P connect 41 0 39 1;
#P fasten 40 0 26 1 426 417 435 417;
#P connect 39 0 40 0;
#P connect 33 1 39 0;
#P fasten 32 0 33 1 396 279 426 279;
#P fasten 38 2 27 0 485 510 397 510;
#P fasten 38 1 27 0 441 506 397 506;
#P connect 38 0 27 0;
#P connect 25 0 38 0;
#P connect 26 0 25 0;
#P connect 33 0 26 0;
#P fasten 48 0 33 0 342 295 397 295;
#P fasten 57 0 32 0 342 241 396 241;
#P connect 31 0 32 0;
#P connect 5 0 31 0;
#P connect 20 0 5 0;
#P fasten 75 0 20 0 356 215 384 215 384 145 396 145;
#P fasten 4 1 75 1 334 190 375 190;
#P connect 76 0 75 0;
#P fasten 68 0 67 2 264 459 238 459;
#P fasten 68 0 72 1 264 515 264 515;
#P fasten 72 0 73 1 237 548 244 548;
#P connect 67 1 71 0;
#P fasten 71 1 72 0 255 520 237 520;
#P fasten 63 0 17 0 213 121 176 121;
#P connect 63 0 14 0;
#P fasten 71 0 73 0 238 516 206 516;
#P connect 9 0 7 1;
#P fasten 73 0 70 0 206 578 84 578;
#P fasten 67 0 70 0 28 564 84 564;
#P connect 4 0 6 0;
#P fasten 14 0 4 0 213 163 66 163;
#P fasten 17 0 4 0 176 159 66 159;
#P fasten 10 0 4 0 136 157 66 157;
#P connect 7 0 4 0;
#P fasten 28 0 4 0 17 163 66 163;
#P connect 8 0 7 0;
#P connect 50 0 8 0;
#P connect 69 0 67 0;
#P window clipboard copycount 78;

nathaniel

http://nathanielstern.com


December 11, 2006 | 2:31 pm

Your patch is correct, but spigot~/jit.qt.movie is doing something
wrong. When you make an edit, it’s not re-exporting the audio to keep
it in sync with the new state of the movie. Arguably, this is a good
thing, since it would slow down some stuff, but I’m going to call it
a bug for now and file a report.

A workaround for now would be to "savemovie" and re-open it after
each edit. This should cause spigot~ to notice that the modification
date/time of the audio file doesn’t match what it is expecting and re-
export.

jb

Am 10.12.2006 um 12:12 schrieb nathaniel:

> This version of the patch uses quicktime editing, built into
> jit.qt.movie. My guess is that either something is happening where
> the spigot files is not updating, the qt.movie times go wobbly with
> a clipped patch, or some combination thereof; as far as i can tell,
> this should work, but does not.
>
> Any suggestions, or information about how these two things work in
> such a way that my patch does not do what I want it to, would be
> greatly appreciated!


December 19, 2006 | 5:10 pm

I’m noticing the same thing with spigot~..just a simple patcher (Win XP) with the blading mov & spigot~ set up as per the demo file is not producing any output, could swear it was working before…


Viewing 3 posts - 1 through 3 (of 3 total)