aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpsyc://loupsycedyglgamf.onion/~lynX <ircs://psyced.org/youbroketheinternet>1984-04-04 00:44:08 +0000
committerpsyc://loupsycedyglgamf.onion/~lynX <ircs://psyced.org/youbroketheinternet>1984-04-04 00:44:08 +0000
commit3adfcbcb18440504c050c70ef8b26a487c56dddc (patch)
tree470b8119a1f5651bf5a00c8a8958cf038a498518
parent62f74309bfa0b763a4130f8c9a75f81c6dbd274a (diff)
downloadyoubroketheinternet-overlay-3adfcbcb18440504c050c70ef8b26a487c56dddc.tar.gz
youbroketheinternet-overlay-3adfcbcb18440504c050c70ef8b26a487c56dddc.zip
ffcut: fix cuts from starting point zero
-rwxr-xr-xmedia-video/ffcut/files/ffcut6
1 files changed, 4 insertions, 2 deletions
diff --git a/media-video/ffcut/files/ffcut b/media-video/ffcut/files/ffcut
index 11a3a54..160e233 100755
--- a/media-video/ffcut/files/ffcut
+++ b/media-video/ffcut/files/ffcut
@@ -83,11 +83,13 @@ if ($has_ffmpeg and not $opt_b) {
83 83
84 # Why didn't anybody tell me that ffmpeg can do this, too 84 # Why didn't anybody tell me that ffmpeg can do this, too
85 # just with a different absurd and impractical syntax... 85 # just with a different absurd and impractical syntax...
86 #
86 # The following line circumvents a bug in ffmpeg: 87 # The following line circumvents a bug in ffmpeg:
87 $start = "0:0.1" unless $start; 88 #$start = "0:0.1" unless $start;
89 unshift @copy, '-ss', $start if $start;
88 print STDERR "*** Start is $start, duration is ", $end - $start, "\n" 90 print STDERR "*** Start is $start, duration is ", $end - $start, "\n"
89 if debug & 2; 91 if debug & 2;
90 my @args = ( $has_ffmpeg, "-ss", $start, "-i", $input, @copy, 92 my @args = ( $has_ffmpeg, "-i", $input, @copy,
91 "-avoid_negative_ts", "make_zero", "-fflags", "+genpts", 93 "-avoid_negative_ts", "make_zero", "-fflags", "+genpts",
92 "-t", $end - $start, "-y", $output ); 94 "-t", $end - $start, "-y", $output );
93 print MAGENTA, join(' ', @args), RESET, "\n" if $opt_v; 95 print MAGENTA, join(' ', @args), RESET, "\n" if $opt_v;