Compare commits

..

No commits in common. '6062f0a8ec4093793c76af9f625af29e643a0f6b' and '2aadf79bfb043100613ff6a0bd85c779f95cebf6' have entirely different histories.

@ -314,14 +314,14 @@ def recognize_time_of_day(frame):
'day': (82, 218, 217), 'day': (82, 218, 217),
'dusk': (217, 150, 181), 'dusk': (217, 150, 181),
'night': (0, 0, 0), 'night': (0, 0, 0),
'dawn': (36, 38, 117), 'dawn': (56, 53, 125), # estimated from previous years
} }
dash_colours = { dash_colours = {
'score': (181, 181, 150), 'score': (181, 181, 150),
'day': (146, 0, 1), 'day': (146, 0, 1),
'dusk': (115, 0, 0), 'dusk': (115, 0, 0),
'night': (41, 0, 0), 'night': (41, 0, 0),
'dawn': (78, 0, 0), 'dawn': (118, 0, 0), # estimated from previous years
} }
threshold = 20 # use stronger constraint once we have dusk, night and dawn footage threshold = 20 # use stronger constraint once we have dusk, night and dawn footage
sky_pixel = frame.getpixel((1614, 192)) sky_pixel = frame.getpixel((1614, 192))

@ -397,8 +397,8 @@ def cut(channel, quality):
type = request.args.get('type', 'fast') type = request.args.get('type', 'fast')
if type == 'rough': if type == 'rough':
# NOTE: We intentionally ignore transitions for rough cuts, as these are mostly used if has_transitions:
# when downloading source footage for later editing. return "Cannot do rough cut with transitions", 400
return Response(rough_cut_segments(segment_ranges, ranges), mimetype='video/MP2T') return Response(rough_cut_segments(segment_ranges, ranges), mimetype='video/MP2T')
elif type == 'fast': elif type == 'fast':
return Response(fast_cut_segments(segment_ranges, ranges, transitions), mimetype='video/MP2T') return Response(fast_cut_segments(segment_ranges, ranges, transitions), mimetype='video/MP2T')

Loading…
Cancel
Save