Skip to content

Commit 9ae3415

Browse files
committed
Version upgrade to 3.5.0
Small fixed/updates
1 parent c1144ef commit 9ae3415

File tree

20 files changed

+57
-51
lines changed

20 files changed

+57
-51
lines changed

Changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# JAVE2
22

33
## Changelog
4+
- **3.5.0**
5+
- Added support for Tune video attribute, thanks to rayacode
46
- **3.4.0**
57
- Added PresetEnum to API
68
- Added quit encoding to api, thanks to sam80180

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ It includes all binaries for the supported platforms
5151
<dependency>
5252
<groupId>ws.schild</groupId>
5353
<artifactId>jave-all-deps</artifactId>
54-
<version>3.4.0</version>
54+
<version>3.5.0</version>
5555
</dependency>
5656
```
5757

@@ -65,7 +65,7 @@ Include the following in your pom files.
6565
<dependency>
6666
<groupId>ws.schild</groupId>
6767
<artifactId>jave-core</artifactId>
68-
<version>3.4.0</version>
68+
<version>3.5.0</version>
6969
</dependency>
7070
```
7171

@@ -76,7 +76,7 @@ and then the specific jar(s) for your platform(s) :
7676
<dependency>
7777
<groupId>ws.schild</groupId>
7878
<artifactId>jave-nativebin-linux64</artifactId>
79-
<version>3.4.0</version>
79+
<version>3.5.0</version>
8080
</dependency>
8181
```
8282

@@ -85,7 +85,7 @@ and then the specific jar(s) for your platform(s) :
8585
<dependency>
8686
<groupId>ws.schild</groupId>
8787
<artifactId>jave-nativebin-linux-arm64</artifactId>
88-
<version>3.4.0</version>
88+
<version>3.5.0</version>
8989
</dependency>
9090
```
9191

@@ -94,7 +94,7 @@ and then the specific jar(s) for your platform(s) :
9494
<dependency>
9595
<groupId>ws.schild</groupId>
9696
<artifactId>jave-nativebin-linux-arm32</artifactId>
97-
<version>3.4.0</version>
97+
<version>3.5.0</version>
9898
</dependency>
9999
```
100100

@@ -103,7 +103,7 @@ and then the specific jar(s) for your platform(s) :
103103
<dependency>
104104
<groupId>ws.schild</groupId>
105105
<artifactId>jave-nativebin-win64</artifactId>
106-
<version>3.4.0</version>
106+
<version>3.5.0</version>
107107
</dependency>
108108
```
109109

@@ -112,7 +112,7 @@ and then the specific jar(s) for your platform(s) :
112112
<dependency>
113113
<groupId>ws.schild</groupId>
114114
<artifactId>jave-nativebin-osx64</artifactId>
115-
<version>3.4.0</version>
115+
<version>3.5.0</version>
116116
</dependency>
117117
```
118118

@@ -121,13 +121,13 @@ and then the specific jar(s) for your platform(s) :
121121
It includes all binaries for the supported platforms
122122

123123
``` XML
124-
compile group: 'ws.schild', name: 'jave-all-deps', version: '3.4.0'
124+
compile group: 'ws.schild', name: 'jave-all-deps', version: '3.5.0'
125125
```
126126

127127
### For one platform only (Linux 64Bit in this case)
128128
``` XML
129-
compile group: 'ws.schild', name: 'jave-core', version: '3.4.0'
130-
compile group: 'ws.schild', name: 'jave-nativebin-linux64', version: '3.4.0'
129+
compile group: 'ws.schild', name: 'jave-core', version: '3.5.0'
130+
compile group: 'ws.schild', name: 'jave-nativebin-linux64', version: '3.5.0'
131131
```
132132

133133
### Main Components of Jave2

jave-all-deps/pom.xml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<modelVersion>4.0.0</modelVersion>
66
<groupId>ws.schild</groupId>
77
<packaging>jar</packaging>
8-
<version>3.4.0</version>
8+
<version>3.5.0</version>
99
<artifactId>jave-all-deps</artifactId>
1010
<name>Jave all native dependencies package</name>
1111
<description>The JAVE (Java Audio Video Encoder) library is Java wrapper on the
@@ -154,47 +154,47 @@
154154
<dependency>
155155
<groupId>ws.schild</groupId>
156156
<artifactId>jave-core</artifactId>
157-
<version>3.4.0</version>
157+
<version>3.5.0</version>
158158
</dependency>
159159
<dependency>
160160
<groupId>ws.schild</groupId>
161161
<artifactId>jave-nativebin-win32</artifactId>
162-
<version>3.4.0</version>
162+
<version>3.5.0</version>
163163
</dependency>
164164
<dependency>
165165
<groupId>ws.schild</groupId>
166166
<artifactId>jave-nativebin-win64</artifactId>
167-
<version>3.4.0</version>
167+
<version>3.5.0</version>
168168
</dependency>
169169
<dependency>
170170
<groupId>ws.schild</groupId>
171171
<artifactId>jave-nativebin-linux32</artifactId>
172-
<version>3.4.0</version>
172+
<version>3.5.0</version>
173173
</dependency>
174174
<dependency>
175175
<groupId>ws.schild</groupId>
176176
<artifactId>jave-nativebin-linux64</artifactId>
177-
<version>3.4.0</version>
177+
<version>3.5.0</version>
178178
</dependency>
179179
<dependency>
180180
<groupId>ws.schild</groupId>
181181
<artifactId>jave-nativebin-osx64</artifactId>
182-
<version>3.4.0</version>
182+
<version>3.5.0</version>
183183
</dependency>
184184
<dependency>
185185
<groupId>ws.schild</groupId>
186186
<artifactId>jave-nativebin-osxm1</artifactId>
187-
<version>3.4.0</version>
187+
<version>3.5.0</version>
188188
</dependency>
189189
<dependency>
190190
<groupId>ws.schild</groupId>
191191
<artifactId>jave-nativebin-linux-arm32</artifactId>
192-
<version>3.4.0</version>
192+
<version>3.5.0</version>
193193
</dependency>
194194
<dependency>
195195
<groupId>ws.schild</groupId>
196196
<artifactId>jave-nativebin-linux-arm64</artifactId>
197-
<version>3.4.0</version>
197+
<version>3.5.0</version>
198198
</dependency>
199199
<!-- https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-api -->
200200
<dependency>

jave-core-test-java11/pom.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>ws.schild</groupId>
55
<packaging>jar</packaging>
6-
<version>3.4.0</version>
6+
<version>3.5.0</version>
77
<artifactId>jave-core-test-java11</artifactId>
88
<properties>
99
<maven.compiler.source>11</maven.compiler.source>
@@ -38,32 +38,32 @@
3838
<dependency>
3939
<groupId>ws.schild</groupId>
4040
<artifactId>jave-core</artifactId>
41-
<version>3.4.0</version>
41+
<version>3.5.0</version>
4242
</dependency>
4343
<dependency>
4444
<groupId>ws.schild</groupId>
4545
<artifactId>jave-nativebin-win32</artifactId>
46-
<version>3.4.0</version>
46+
<version>3.5.0</version>
4747
</dependency>
4848
<dependency>
4949
<groupId>ws.schild</groupId>
5050
<artifactId>jave-nativebin-win64</artifactId>
51-
<version>3.4.0</version>
51+
<version>3.5.0</version>
5252
</dependency>
5353
<dependency>
5454
<groupId>ws.schild</groupId>
5555
<artifactId>jave-nativebin-linux32</artifactId>
56-
<version>3.4.0</version>
56+
<version>3.5.0</version>
5757
</dependency>
5858
<dependency>
5959
<groupId>ws.schild</groupId>
6060
<artifactId>jave-nativebin-linux64</artifactId>
61-
<version>3.4.0</version>
61+
<version>3.5.0</version>
6262
</dependency>
6363
<dependency>
6464
<groupId>ws.schild</groupId>
6565
<artifactId>jave-nativebin-osx64</artifactId>
66-
<version>3.4.0</version>
66+
<version>3.5.0</version>
6767
</dependency>
6868
<!-- https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-api -->
6969
<dependency>

jave-core-test/pom.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<modelVersion>4.0.0</modelVersion>
66
<groupId>ws.schild</groupId>
77
<packaging>jar</packaging>
8-
<version>3.4.0</version>
8+
<version>3.5.0</version>
99
<artifactId>jave-core-test</artifactId>
1010
<properties>
1111
<maven.compiler.source>1.8</maven.compiler.source>
@@ -40,32 +40,32 @@
4040
<dependency>
4141
<groupId>ws.schild</groupId>
4242
<artifactId>jave-core</artifactId>
43-
<version>3.4.0</version>
43+
<version>3.5.0</version>
4444
</dependency>
4545
<dependency>
4646
<groupId>ws.schild</groupId>
4747
<artifactId>jave-nativebin-win32</artifactId>
48-
<version>3.4.0</version>
48+
<version>3.5.0</version>
4949
</dependency>
5050
<dependency>
5151
<groupId>ws.schild</groupId>
5252
<artifactId>jave-nativebin-win64</artifactId>
53-
<version>3.4.0</version>
53+
<version>3.5.0</version>
5454
</dependency>
5555
<dependency>
5656
<groupId>ws.schild</groupId>
5757
<artifactId>jave-nativebin-linux32</artifactId>
58-
<version>3.4.0</version>
58+
<version>3.5.0</version>
5959
</dependency>
6060
<dependency>
6161
<groupId>ws.schild</groupId>
6262
<artifactId>jave-nativebin-linux64</artifactId>
63-
<version>3.4.0</version>
63+
<version>3.5.0</version>
6464
</dependency>
6565
<dependency>
6666
<groupId>ws.schild</groupId>
6767
<artifactId>jave-nativebin-osx64</artifactId>
68-
<version>3.4.0</version>
68+
<version>3.5.0</version>
6969
</dependency>
7070
<!-- https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-api -->
7171
<dependency>

jave-core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<groupId>ws.schild</groupId>
77
<artifactId>jave-core</artifactId>
88
<packaging>jar</packaging>
9-
<version>3.4.0</version>
9+
<version>3.5.0</version>
1010
<name>Jave core package</name>
1111
<description>The JAVE (Java Audio Video Encoder) library is Java wrapper on the
1212
ffmpeg project. Developers can take take advantage of JAVE2 to transcode

jave-core/src/main/java/ws/schild/jave/Encoder.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
import ws.schild.jave.encode.ValueArgument;
4444
import ws.schild.jave.encode.VideoAttributes;
4545
import ws.schild.jave.encode.VideoFilterArgument;
46+
import ws.schild.jave.encode.enums.TuneEnum;
4647
import ws.schild.jave.encode.enums.VsyncMethod;
4748
import ws.schild.jave.encode.enums.X264_PROFILE;
4849
import ws.schild.jave.filters.FilterGraph;
@@ -354,7 +355,7 @@ public void encode(
354355
}
355356

356357
private static List<EncodingArgument> globalOptions =
357-
new ArrayList<EncodingArgument>(Arrays.asList(
358+
new ArrayList<>(Arrays.asList(
358359
new ValueArgument(ArgType.GLOBAL, "--filter_thread",
359360
ea -> ea.getFilterThreads().map(Object::toString)),
360361
new ValueArgument(ArgType.GLOBAL, "-ss", ea -> ea.getOffset().map(Object::toString)),

jave-core/src/main/java/ws/schild/jave/encode/VideoAttributes.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import java.util.Optional;
2424

2525
import ws.schild.jave.Encoder;
26+
import ws.schild.jave.encode.enums.TuneEnum;
2627
import ws.schild.jave.encode.enums.VsyncMethod;
2728
import ws.schild.jave.encode.enums.X264_PROFILE;
2829
import ws.schild.jave.filters.FilterGraph;
@@ -307,7 +308,7 @@ public Optional<TuneEnum> getTune() {
307308
return Optional.ofNullable(tune);
308309
}
309310
/**
310-
* @param TuneEnum the TuneEnum to set
311+
* @param tune the TuneEnum to set
311312
* @return this instance
312313
*/
313314
public VideoAttributes setTune(TuneEnum tune){

jave-core/src/main/java/ws/schild/jave/encode/enums/TuneEnum.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
package ws.schild.jave.encode.enums;
2+
13
public enum TuneEnum {
24
FILM("film"),//use for high quality movie content; lowers deblocking
35
ANIMATION("animation"),//good for cartoons; uses higher deblocking and more reference frames

jave-core/src/main/java/ws/schild/jave/progress/EncoderProgressAdapter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public void sourceInfo(MultimediaInfo info) {
1919

2020
@Override
2121
public void progress(int permil) {
22-
listener.onProgress(new Double(permil) / 100);
22+
listener.onProgress(Double.valueOf(permil) / 100);
2323
}
2424

2525
@Override

0 commit comments

Comments
 (0)