Skip to content

Commit e2800d3

Browse files
committed
Move the changes to the outputbuilder to AbstractFFmpegOutputBuilder
1 parent ba052f5 commit e2800d3

File tree

1 file changed

+76
-2
lines changed

1 file changed

+76
-2
lines changed

src/main/java/net/bramp/ffmpeg/builder/AbstractFFmpegOutputBuilder.java

+76-2
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,52 @@
1919
import net.bramp.ffmpeg.probe.FFmpegProbeResult;
2020

2121
/** Builds a representation of a single output/encoding setting */
22-
@SuppressWarnings("unchecked")
22+
@SuppressWarnings({"DeprecatedIsStillUsed", "deprecation","unchecked"})
2323
public abstract class AbstractFFmpegOutputBuilder<T extends AbstractFFmpegOutputBuilder<T>> extends AbstractFFmpegStreamBuilder<T> {
2424

2525
static final Pattern trailingZero = Pattern.compile("\\.0*$");
26-
26+
/** @deprecated Use {@link #getConstantRateFactor()} instead*/
27+
@Deprecated
2728
public Double constantRateFactor;
2829

30+
/** @deprecated Use {@link #getAudioSampleFormat()} instead*/
31+
@Deprecated
2932
public String audio_sample_format;
33+
34+
/** @deprecated Use {@link #getAudioBitRate()} instead*/
35+
@Deprecated
3036
public long audio_bit_rate;
37+
38+
/** @deprecated Use {@link #getAudioQuality()} instead*/
39+
@Deprecated
3140
public Double audio_quality;
41+
42+
/** @deprecated Use {@link #getVideoBitStreamFilter()} instead*/
43+
@Deprecated
3244
public String audio_bit_stream_filter;
45+
46+
/** @deprecated Use {@link #getAudioFilter()} instead*/
47+
@Deprecated
3348
public String audio_filter;
3449

50+
/** @deprecated Use {@link #getVideoBitRate()} instead*/
51+
@Deprecated
3552
public long video_bit_rate;
53+
54+
/** @deprecated Use {@link #getVideoQuality()} instead*/
55+
@Deprecated
3656
public Double video_quality;
57+
58+
/** @deprecated Use {@link #getVideoPreset()} instead*/
59+
@Deprecated
3760
public String video_preset;
61+
62+
/** @deprecated Use {@link #getVideoFilter()} instead*/
63+
@Deprecated
3864
public String video_filter;
65+
66+
/** @deprecated Use {@link #getVideoBitStreamFilter()} instead*/
67+
@Deprecated
3968
public String video_bit_stream_filter;
4069

4170
public AbstractFFmpegOutputBuilder() {
@@ -357,4 +386,49 @@ protected void addAudioFlags(ImmutableList.Builder<String> args) {
357386
protected T getThis() {
358387
return (T) this;
359388
}
389+
390+
391+
public Double getConstantRateFactor() {
392+
return constantRateFactor;
393+
}
394+
395+
public String getAudioSampleFormat() {
396+
return audio_sample_format;
397+
}
398+
399+
public long getAudioBitRate() {
400+
return audio_bit_rate;
401+
}
402+
403+
public Double getAudioQuality() {
404+
return audio_quality;
405+
}
406+
407+
public String getAudioBitStreamFilter() {
408+
return audio_bit_stream_filter;
409+
}
410+
411+
public String getAudioFilter() {
412+
return audio_filter;
413+
}
414+
415+
public long getVideoBitRate() {
416+
return video_bit_rate;
417+
}
418+
419+
public Double getVideoQuality() {
420+
return video_quality;
421+
}
422+
423+
public String getVideoPreset() {
424+
return video_preset;
425+
}
426+
427+
public String getVideoFilter() {
428+
return video_filter;
429+
}
430+
431+
public String getVideoBitStreamFilter() {
432+
return video_bit_stream_filter;
433+
}
360434
}

0 commit comments

Comments
 (0)