import bootstrap
import os
from inputs import OUT
from render_space import entries_for,render

if os.environ['CLIP']!='smoke':
    print('SUPERSEDED: use render_l01_corrected for observation-counter labels',flush=True)
    raise SystemExit(0)

entries=entries_for('SELF_L01')
token=os.environ['CLIP']
if token=='smoke':
    start,end=1041,1048
else:
    start=int(token);end=min(start+1000,len(entries))
dest=OUT/'work/l01_video_segments'
render('SELF_L01',entries[start:end],dest/(token+'.mp4'),dest/(token+'.json'),start,len(entries))
