Skip to content

Commit d8a9c9c

Browse files
committed
update: remove 5m limit for clip creation
1 parent 125a170 commit d8a9c9c

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

backend/services/clip_service.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ func (s *ClipService) CreateClip(sourceVideoPath string, startTime float64, dura
6363
if sourceVideoPath == "" {
6464
return ClipResult{Success: false, ErrorMessage: "No source video provided"}
6565
}
66-
if duration <= 0 || duration > 300 {
67-
return ClipResult{Success: false, ErrorMessage: "Duration must be between 0 and 300 seconds (5 minutes)"}
66+
if duration <= 0 {
67+
return ClipResult{Success: false, ErrorMessage: "Duration must be a positive number"}
6868
}
6969

7070
// Create a filename based on title or timestamp if title is empty

frontend/src/App.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@
131131
:showChat="showChat && chatLoaded"
132132
:theaterMode="theaterMode"
133133
@update:currentTime="currentTime = $event"
134+
@update:duration="videoDuration = $event"
134135
/>
135136
</div>
136137

@@ -379,6 +380,7 @@ export default defineComponent({
379380
videoSrc.value = '';
380381
videoLoaded.value = false;
381382
currentTime.value = 0;
383+
videoDuration.value = 0;
382384
383385
// Reset chat-related state
384386
resetChat();

frontend/src/components/ClipCreator.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414
</div>
1515

1616
<div class="form-group">
17-
<label>Clip Duration (max 5 minutes)</label>
17+
<label>Clip Duration</label>
1818
<div class="duration-controls">
1919
<input
2020
type="range"
2121
v-model.number="clipDuration"
2222
min="1"
23-
max="300"
23+
:max="videoDuration > 0 ? Math.floor(videoDuration) : 300"
2424
step="1"
2525
@input="updateDuration"
2626
/>

0 commit comments

Comments
 (0)