Skip to content

Commit

Permalink
Rename trim command
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleKun committed Sep 2, 2023
1 parent 44adfba commit 1113b6c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/pages/save_video/widgets/save_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,7 @@ class _SaveButtonState extends State<SaveButton> {
'-metadata artist="${Constants.artist}" -metadata album="$currentProfileName" -metadata comment="origin=$origin"';

// Trim video to the selected range
final trimCommand =
'-ss ${widget.videoStartInMilliseconds}ms -to ${widget.videoEndInMilliseconds}ms';
final trim = '-ss ${widget.videoStartInMilliseconds}ms -to ${widget.videoEndInMilliseconds}ms';

// Scale video to 1920x1080 and add black padding if needed
const scale =
Expand All @@ -316,7 +315,7 @@ class _SaveButtonState extends State<SaveButton> {

// Full command to edit and save video
final command =
'-i "$subtitlesPath" -i "$videoPath" $audioStream $metadata -vf [in]$scale$date$locale[out]" $trimCommand $defaultEditSettings $subtitles "$finalPath" -y';
'-i "$subtitlesPath" -i "$videoPath" $audioStream $metadata -vf [in]$scale$date$locale[out]" $trim $defaultEditSettings $subtitles "$finalPath" -y';

Utils.logInfo('${logTag}FFmpeg full command: $command');

Expand Down

0 comments on commit 1113b6c

Please sign in to comment.