-
-
Notifications
You must be signed in to change notification settings - Fork 417
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master' into feature/ffmpeg-la…
…youts Conflicts: src/main/java/net/bramp/ffmpeg/FFmpeg.java src/test/java/net/bramp/ffmpeg/FFmpegTest.java
- Loading branch information
Showing
21 changed files
with
1,479 additions
and
109 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time | ||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven | ||
|
||
name: Java CI with Maven | ||
|
||
on: | ||
push: | ||
branches: [ "master" ] | ||
pull_request: | ||
branches: [ "master" ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
# Long term supported versions | ||
java-version: [11, 17, 21] | ||
|
||
# TODO Add support for 8, but it fails with | ||
# java.lang.UnsupportedClassVersionError: com/spotify/fmt/FMT has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0 | ||
|
||
# TODO Should we test locales? The old travis setup did, see: | ||
# https://github.com/bramp/ffmpeg-cli-wrapper/pull/55 | ||
|
||
name: JDK ${{ matrix.java-version }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up FFmpeg | ||
uses: FedericoCarboni/setup-ffmpeg@v3 | ||
id: setup-ffmpeg | ||
with: | ||
ffmpeg-version: release | ||
|
||
- name: Set up JDK ${{ matrix.java-version }} | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: ${{ matrix.java-version }} | ||
distribution: 'temurin' | ||
cache: maven | ||
|
||
- name: Compile with Maven | ||
run: mvn --batch-mode --update-snapshots compile | ||
|
||
- name: Test with Maven, Package and Verify with Maven | ||
run: mvn --batch-mode --update-snapshots verify -Dgpg.skip | ||
|
||
# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive | ||
- name: Update dependency graph | ||
uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
package net.bramp.ffmpeg.info; | ||
|
||
import org.apache.commons.lang3.builder.EqualsBuilder; | ||
import org.apache.commons.lang3.builder.HashCodeBuilder; | ||
|
||
public class Filter { | ||
/** Is timeline editing supported */ | ||
private final boolean timelineSupported; | ||
|
||
/** Is slice based multi-threading supported */ | ||
private final boolean sliceThreading; | ||
|
||
/** Are there command line options */ | ||
private final boolean commandSupport; | ||
|
||
/** The filters name */ | ||
private final String name; | ||
|
||
/** The input filter pattern */ | ||
private final FilterPattern inputPattern; | ||
|
||
/** The output filter pattern */ | ||
private final FilterPattern outputPattern; | ||
|
||
/** A short description of the filter */ | ||
private final String description; | ||
|
||
public Filter(boolean timelineSupported, boolean sliceThreading, boolean commandSupport, String name, FilterPattern inputPattern, FilterPattern outputPattern, String description) { | ||
this.timelineSupported = timelineSupported; | ||
this.sliceThreading = sliceThreading; | ||
this.commandSupport = commandSupport; | ||
this.name = name; | ||
this.inputPattern = inputPattern; | ||
this.outputPattern = outputPattern; | ||
this.description = description; | ||
} | ||
|
||
public boolean isTimelineSupported() { | ||
return timelineSupported; | ||
} | ||
|
||
public boolean isSliceThreading() { | ||
return sliceThreading; | ||
} | ||
|
||
public boolean isCommandSupport() { | ||
return commandSupport; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public FilterPattern getInputPattern() { | ||
return inputPattern; | ||
} | ||
|
||
public FilterPattern getOutputPattern() { | ||
return outputPattern; | ||
} | ||
|
||
public String getDescription() { | ||
return description; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object obj) { | ||
return EqualsBuilder.reflectionEquals(this, obj); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return name; | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return HashCodeBuilder.reflectionHashCode(this); | ||
} | ||
} |
Oops, something went wrong.