QuickTime: playing two movies
QuickTime: playing two movies
- Subject: QuickTime: playing two movies
- From: Klaus Hereth <email@hidden>
- Date: Tue, 20 Aug 2002 12:45:20 +0200
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
As I have not yet been successful with presenting two movies (see my
other posting), I wanted to automate the process of positioning and
playing two movies simultaneously as far as possible to make it
convenient for the person running the experiments.
We're talking about a G4/1 GHz DP 1 GB RAM with two graphics cards
and two displays running OS X 10.1.5 and QuickTime Pro 6.
The script is quite simple, but there is one problem: when playing
the two movies is triggered by AppleScript, they don't play smoothly.
The do play smoothly when I trigger everything manually, ie I double
click them, position them manually on both displays and use the
command "Play all movies". Wrapping the script in "ignoring
application responses ... end ignore" makes no difference.
Typing 'top -u' in the Terminal identifies Window Manager as the
troublemaker.
The freshly booted machine shows these lines:
<top -u 1>
Processes: 35 total, 2 running, 33 sleeping... 82 threads
10:16:45
Load Avg: 0.04, 0.00, 0.00 CPU usage: 2.4% user, 1.9% sys,
95.7% idle
SharedLibs: num = 78, resident = 19.1M code, 1.34M data, 4.90M
LinkEdit
MemRegions: num = 1489, resident = 16.9M + 4.62M private, 32.3M
shared
PhysMem: 54.5M wired, 46.9M active, 61.9M inactive, 163M used,
861M free
VM: 2.17G + 38.9M 3143(0) pageins, 0(0) pageouts
PID COMMAND %CPU TIME #TH #PRTS #MREGS RPRVT RSHRD RSIZE
VSIZE
308 top 3.8% 0:00.18 1 14 16 248K 324K 504K
1.67M
72 Window Man 2.8% 0:02.58 4 113 98 2.35M 18.1M 20.5M
160M
300 Terminal 1.9% 0:01.27 4 72 129 1.80M 9.63M 8.51M
209M
</top -u 1>
The rest of the processes has 0% CPU, so I omit them.
When I start the two movies manually (and they play smoothly), I get
these results:
<top -u 2>
VM: 2.51G + 39.0M 3338(0) pageins, 0(0) pageouts
PID COMMAND %CPU TIME #TH #PRTS #MREGS RPRVT RSHRD RSIZE
VSIZE
310 QuickTime 54.6% 0:30.37 7 113 195 9.50M+ 10.7M
14.7M+ 175M+
72 Window Man 6.4% 0:24.76 4 126 116 1.86M 25.0M 26.7M
170M
311 top 5.5% 0:02.26 1 14 16 260K 324K 516K
1.67M
300 Terminal 1.8% 0:02.89 4 72 140 1.77M 9.83M 8.59M
209M
</top -u 2>
When I let AppleScript start the two movies, they don't play
smoothly. Here's top:
<top -u 3>
VM: 2.66G + 39.9M 3463(0) pageins, 0(0) pageouts
PID COMMAND %CPU TIME #TH #PRTS #MREGS RPRVT RSHRD RSIZE
VSIZE
72 Window Man 93.4% 1:10.60 4 133 131 3.26M+ 30.1M
33.3M+ 179M+
315 QuickTime 51.2% 0:14.06 7 112 194 9.55M+ 11.0M
15.1M+ 175M+
313 top 6.4% 0:02.77 1 14 15 228K 324K 484K
1.65M
300 Terminal 1.8% 0:04.09 4 71 140 1.78M 9.99M
8.61M+ 209M
</top -u 3>
The values for Window Manager range from 75% up to 96%. As if there
was still a connection between the AppleScript and QuickTime Player.
Does anyone know a way around this problem? It's no use using
AppleScript for this, when it slows down the movies.
Can I tell Window Manager not to be so heavy on the CPU? If so, how
can I do this?
Thanks for your suggestions,
Klaus
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <
http://www.pgp.com>
iQA/AwUBPWIduAGEe+J42N3AEQK6hgCgjjnGgRy1w6n+SHp52OrBADvVT6kAoL2O
1Y42FrNqjSdaQGEfspQpxsRo
=9v0g
-----END PGP SIGNATURE-----
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.