|
19 | 19 | import net.bramp.ffmpeg.probe.FFmpegProbeResult;
|
20 | 20 |
|
21 | 21 | /** Builds a representation of a single output/encoding setting */
|
22 |
| -@SuppressWarnings("unchecked") |
| 22 | +@SuppressWarnings({"DeprecatedIsStillUsed", "deprecation","unchecked"}) |
23 | 23 | public abstract class AbstractFFmpegOutputBuilder<T extends AbstractFFmpegOutputBuilder<T>> extends AbstractFFmpegStreamBuilder<T> {
|
24 | 24 |
|
25 | 25 | static final Pattern trailingZero = Pattern.compile("\\.0*$");
|
26 |
| - |
| 26 | + /** @deprecated Use {@link #getConstantRateFactor()} instead*/ |
| 27 | + @Deprecated |
27 | 28 | public Double constantRateFactor;
|
28 | 29 |
|
| 30 | + /** @deprecated Use {@link #getAudioSampleFormat()} instead*/ |
| 31 | + @Deprecated |
29 | 32 | public String audio_sample_format;
|
| 33 | + |
| 34 | + /** @deprecated Use {@link #getAudioBitRate()} instead*/ |
| 35 | + @Deprecated |
30 | 36 | public long audio_bit_rate;
|
| 37 | + |
| 38 | + /** @deprecated Use {@link #getAudioQuality()} instead*/ |
| 39 | + @Deprecated |
31 | 40 | public Double audio_quality;
|
| 41 | + |
| 42 | + /** @deprecated Use {@link #getVideoBitStreamFilter()} instead*/ |
| 43 | + @Deprecated |
32 | 44 | public String audio_bit_stream_filter;
|
| 45 | + |
| 46 | + /** @deprecated Use {@link #getAudioFilter()} instead*/ |
| 47 | + @Deprecated |
33 | 48 | public String audio_filter;
|
34 | 49 |
|
| 50 | + /** @deprecated Use {@link #getVideoBitRate()} instead*/ |
| 51 | + @Deprecated |
35 | 52 | public long video_bit_rate;
|
| 53 | + |
| 54 | + /** @deprecated Use {@link #getVideoQuality()} instead*/ |
| 55 | + @Deprecated |
36 | 56 | public Double video_quality;
|
| 57 | + |
| 58 | + /** @deprecated Use {@link #getVideoPreset()} instead*/ |
| 59 | + @Deprecated |
37 | 60 | public String video_preset;
|
| 61 | + |
| 62 | + /** @deprecated Use {@link #getVideoFilter()} instead*/ |
| 63 | + @Deprecated |
38 | 64 | public String video_filter;
|
| 65 | + |
| 66 | + /** @deprecated Use {@link #getVideoBitStreamFilter()} instead*/ |
| 67 | + @Deprecated |
39 | 68 | public String video_bit_stream_filter;
|
40 | 69 |
|
41 | 70 | public AbstractFFmpegOutputBuilder() {
|
@@ -357,4 +386,49 @@ protected void addAudioFlags(ImmutableList.Builder<String> args) {
|
357 | 386 | protected T getThis() {
|
358 | 387 | return (T) this;
|
359 | 388 | }
|
| 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 | + } |
360 | 434 | }
|
0 commit comments