Skip to content

Commit 6062f0a

Browse files
committed
restreamer: Ignore transitions when doing rough cuts, instead of disallowing
1 parent 8a0ca21 commit 6062f0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

restreamer/restreamer/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,8 +397,8 @@ def cut(channel, quality):
397397

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

0 commit comments

Comments
 (0)