summaryrefslogtreecommitdiff
path: root/hacks
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-03-16 00:44:31 +0100
committerCarl Hetherington <cth@carlh.net>2020-03-16 00:46:34 +0100
commit19760ad4cf6d348416444e515b5e709be565f81e (patch)
tree55c889deb559ce325fd436bdfb8b97170a15e14c /hacks
parent3e3e8433842820ce6380e8f5c1917ae1a28e2e57 (diff)
Move stress testing code into a separate class and always build it.
Fix stress script generation to always reload a DCP rather than expecting it to be available after it has finished playback.
Diffstat (limited to 'hacks')
-rw-r--r--hacks/stress.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/hacks/stress.py b/hacks/stress.py
index 4e20fa236..34fe17b07 100644
--- a/hacks/stress.py
+++ b/hacks/stress.py
@@ -22,12 +22,11 @@ def make_repeated_play(dcp, output, plays):
# Hackily ignore frames here
length = int(length_parts[0]) * 3600 + int(length_parts[1]) * 60 + int(length_parts[2])
with open(output, 'w') as f:
- print("O %s" % dcp, file=f)
for i in range(0, plays):
+ print("O %s" % dcp, file=f)
print("P", file=f)
print("W %d" % (length * 1000), file=f)
print("S", file=f)
- print("K 0", file=f)
make_seeks("/home/carl/DCP/Examples/BohemianRhapsody_TLR-7_S_DE-XX_DE_51_2K_TCFG_20180514_TM_IOP_OV/", "boho_seek", 64)
make_repeated_play("/home/carl/DCP/Examples/BohemianRhapsody_TLR-7_S_DE-XX_DE_51_2K_TCFG_20180514_TM_IOP_OV/", "boho_long", 1000)