File tree 1 file changed +11
-0
lines changed
src/main/java/net/bramp/ffmpeg/builder
1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -66,11 +66,18 @@ public String toString() {
66
66
// Output
67
67
final List <AbstractFFmpegOutputBuilder <?>> outputs = new ArrayList <>();
68
68
69
+ protected Strict strict = Strict .NORMAL ;
70
+
69
71
// Filters
70
72
String audioFilter ;
71
73
String videoFilter ;
72
74
String complexFilter ;
73
75
76
+ public FFmpegBuilder setStrict (Strict strict ) {
77
+ this .strict = checkNotNull (strict );
78
+ return this ;
79
+ }
80
+
74
81
public FFmpegBuilder overrideOutputFiles (boolean override ) {
75
82
this .override = override ;
76
83
return this ;
@@ -304,6 +311,10 @@ public List<String> build() {
304
311
Preconditions .checkArgument (!inputs .isEmpty (), "At least one input must be specified" );
305
312
Preconditions .checkArgument (!outputs .isEmpty (), "At least one output must be specified" );
306
313
314
+ if (strict != Strict .NORMAL ) {
315
+ args .add ("-strict" , strict .toString ());
316
+ }
317
+
307
318
args .add (override ? "-y" : "-n" );
308
319
args .add ("-v" , this .verbosity .toString ());
309
320
You can’t perform that action at this time.
0 commit comments