restreamer: Ignore transitions when doing rough cuts, instead of disallowing

master
Mike Lang 1 week ago
parent 8a0ca215cf
commit 6062f0a8ec

@ -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':
if has_transitions: # NOTE: We intentionally ignore transitions for rough cuts, as these are mostly used
return "Cannot do rough cut with transitions", 400 # when downloading source footage for later editing.
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