From 6062f0a8ec4093793c76af9f625af29e643a0f6b Mon Sep 17 00:00:00 2001 From: Mike Lang Date: Thu, 14 Nov 2024 21:08:35 +1100 Subject: [PATCH] restreamer: Ignore transitions when doing rough cuts, instead of disallowing --- restreamer/restreamer/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/restreamer/restreamer/main.py b/restreamer/restreamer/main.py index 3705584..a198831 100644 --- a/restreamer/restreamer/main.py +++ b/restreamer/restreamer/main.py @@ -397,8 +397,8 @@ def cut(channel, quality): type = request.args.get('type', 'fast') if type == 'rough': - if has_transitions: - return "Cannot do rough cut with transitions", 400 + # NOTE: We intentionally ignore transitions for rough cuts, as these are mostly used + # when downloading source footage for later editing. return Response(rough_cut_segments(segment_ranges, ranges), mimetype='video/MP2T') elif type == 'fast': return Response(fast_cut_segments(segment_ranges, ranges, transitions), mimetype='video/MP2T')