diff --git a/.gitignore b/.gitignore
index 1422232d8..653538131 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,8 +10,10 @@
target
isoparser/aac-sample.mp4
isoparser/ac3-sample.mp4
+/muxer/m2.mp4
+/muxer/output2.mp4
+/streaming/output.mp4
.classpath
.project
.settings
-
diff --git a/examples/pom.xml b/examples/pom.xml
index 4b37eed4f..f45df6eb2 100644
--- a/examples/pom.xml
+++ b/examples/pom.xml
@@ -35,7 +35,7 @@
commons-io
commons-io
- 2.5
+ 2.21.0
commons-lang
diff --git a/isoparser/pom.xml b/isoparser/pom.xml
index 3725b4c76..865289866 100644
--- a/isoparser/pom.xml
+++ b/isoparser/pom.xml
@@ -1,21 +1,16 @@
4.0.0
- org.mp4parser
isoparser
jar
ISO Parser
A generic parser and writer for all ISO 14496 based files (MP4, Quicktime, DCF, PDCF, ...)
- https://github.com/sannies/mp4parser
- 1.9.57-SNAPSHOT
+
mp4parser-project
org.mp4parser
1.9.57-SNAPSHOT
-
- UTF-8
-
@@ -24,7 +19,6 @@
true
- install
org.apache.maven.plugins
@@ -41,7 +35,6 @@
org.apache.maven.plugins
maven-dependency-plugin
- 3.3.0
copy-dependencies
@@ -62,7 +55,6 @@
org.codehaus.mojo
aspectj-maven-plugin
- 1.14.0
@@ -70,27 +62,16 @@
-
-
-
- org.aspectj
- aspectjtools
- 1.9.7
-
-
-
- 9
- 9
- 9
+ 1.8
+ 1.8
+ 1.8
--module-path
- ${project.build.directory}/alternateLocation/slf4-api.jar
+ ${project.build.directory}/alternateLocation/slf4j-api.jar
-
-
@@ -98,42 +79,38 @@
org.aspectj
aspectjrt
- 1.9.7
- org.slf4j
+ org.slf4j
slf4j-api
- 1.8.0-beta4
-
org.slf4j
slf4j-simple
- 1.8.0-beta4
-
test
- junit
- junit
- 4.12
- provided
+ org.junit.jupiter
+ junit-jupiter
+ test
+
+
+ org.junit.platform
+ junit-platform-suite
+ test
commons-io
commons-io
- 2.5
test
-
+
commons-codec
commons-codec
- 1.10
test
-
jenkins
https://sannies.ci.cloudbees.com/job/IsoParser/
@@ -150,25 +127,4 @@
github
https://github.com/sannies/mp4parser/issues
-
-
-
- sannies
- Sebastian.Annies@gmail.com
-
-
-
-
- https://github.com/sannies/mp4parser
- mp4parser-project-1.9.43
-
-
-
-
- Apache Software License - Version 2.0
- http://www.apache.org/licenses/LICENSE-2.0.txt
- repo
- A business-friendly OSS license
-
-
-
+
\ No newline at end of file
diff --git a/isoparser/src/test/java/com/coremedia/drm/packager/isoparser/RoundTripTest.java b/isoparser/src/test/java/com/coremedia/drm/packager/isoparser/RoundTripTest.java
index c7feba217..2e6d4fa75 100644
--- a/isoparser/src/test/java/com/coremedia/drm/packager/isoparser/RoundTripTest.java
+++ b/isoparser/src/test/java/com/coremedia/drm/packager/isoparser/RoundTripTest.java
@@ -16,7 +16,8 @@
package com.coremedia.drm.packager.isoparser;
-import junit.framework.TestCase;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
import org.mp4parser.IsoFile;
import org.mp4parser.support.BoxComparator;
import org.mp4parser.tools.ByteBufferByteChannel;
@@ -28,12 +29,12 @@
/**
* Tests ISO Roundtrip.
*/
-public class RoundTripTest extends TestCase {
+class RoundTripTest {
+
String defaultTestFileDir;
- @Override
- protected void setUp() throws Exception {
- super.setUp();
+ @BeforeEach
+ void setUp() {
defaultTestFileDir = this.getClass().getProtectionDomain().getCodeSource().getLocation().getFile();
/* Logger.getLogger("").setLevel(Level.ALL);
Handler[] handlers = Logger.getLogger("").getHandlers();
@@ -42,48 +43,58 @@ protected void setUp() throws Exception {
}*/
}
- /* public void testRoundDeleteMe() throws Exception {
+ /*
+ @Test
+ void testRoundDeleteMe() throws Exception {
testRoundTrip_1("/suckerpunch-distantplanet_h1080p.mov");
}*/
- public void testRoundTrip_TinyExamples_Old() throws Exception {
+
+ @Test
+ void testRoundTrip_TinyExamples_Old() throws Exception {
testRoundTrip_1(defaultTestFileDir + "/Tiny Sample - OLD.mp4");
}
- public void testRoundTrip_TinyExamples_Metaxed() throws Exception {
+ @Test
+ void testRoundTrip_TinyExamples_Metaxed() throws Exception {
testRoundTrip_1(defaultTestFileDir + "/Tiny Sample - NEW - Metaxed.mp4");
}
- public void testRoundTrip_TinyExamples_Untouched() throws Exception {
+ @Test
+ void testRoundTrip_TinyExamples_Untouched() throws Exception {
testRoundTrip_1(defaultTestFileDir + "/Tiny Sample - NEW - Untouched.mp4");
}
-
- public void testRoundTrip_1a() throws Exception {
+ @Test
+ void testRoundTrip_1a() throws Exception {
testRoundTrip_1(defaultTestFileDir + "/multiTrack.3gp");
}
- public void testRoundTrip_1b() throws Exception {
+ @Test
+ void testRoundTrip_1b() throws Exception {
testRoundTrip_1(defaultTestFileDir + "/MOV00006.3gp");
}
- public void testRoundTrip_1c() throws Exception {
+ @Test
+ void testRoundTrip_1c() throws Exception {
testRoundTrip_1(defaultTestFileDir + "/Beethoven - Bagatelle op.119 no.11 i.m4a");
}
- public void testRoundTrip_1d() throws Exception {
+ @Test
+ void testRoundTrip_1d() throws Exception {
testRoundTrip_1(defaultTestFileDir + "/test.m4p");
}
- public void testRoundTrip_1e() throws Exception {
+ @Test
+ void testRoundTrip_1e() throws Exception {
testRoundTrip_1(defaultTestFileDir + "/test-pod.m4a");
}
- public void testRoundTrip_QuickTimeFormat() throws Exception {
+ @Test
+ void testRoundTrip_QuickTimeFormat() throws Exception {
testRoundTrip_1(defaultTestFileDir + "/QuickTimeFormat.mp4");
}
-
- public void testRoundTrip_1(String originalFile) throws Exception {
+ void testRoundTrip_1(String originalFile) throws Exception {
long start1 = System.currentTimeMillis();
long start2 = System.currentTimeMillis();
@@ -116,9 +127,5 @@ public void testRoundTrip_1(String originalFile) throws Exception {
copyViaIsoFileReparsed.close();
// as windows cannot delete file when something is memory mapped and the garbage collector
// doesn't necessarily free the Buffers quickly enough we cannot delete the file here (we could but only for linux)
-
-
}
-
-
}
diff --git a/isoparser/src/test/java/com/googlecode/mp4parser/boxes/AbstractTrackEncryptionBoxTest.java b/isoparser/src/test/java/com/googlecode/mp4parser/boxes/AbstractTrackEncryptionBoxTest.java
index 82d43c33c..03776e746 100644
--- a/isoparser/src/test/java/com/googlecode/mp4parser/boxes/AbstractTrackEncryptionBoxTest.java
+++ b/isoparser/src/test/java/com/googlecode/mp4parser/boxes/AbstractTrackEncryptionBoxTest.java
@@ -1,8 +1,8 @@
package com.googlecode.mp4parser.boxes;
-import org.junit.Assert;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
import org.mp4parser.IsoFile;
import org.mp4parser.boxes.iso23001.part7.AbstractTrackEncryptionBox;
import org.mp4parser.tools.UUIDConverter;
@@ -31,11 +31,11 @@ public void testRoundTrip() throws IOException {
fc.close();
IsoFile iso = new IsoFile(new FileInputStream(f).getChannel());
- Assert.assertTrue(iso.getBoxes().get(0) instanceof AbstractTrackEncryptionBox);
+ Assertions.assertInstanceOf(AbstractTrackEncryptionBox.class, iso.getBoxes().get(0));
AbstractTrackEncryptionBox tenc2 = (AbstractTrackEncryptionBox) iso.getBoxes().get(0);
- Assert.assertEquals(0, tenc2.getFlags());
- Assert.assertTrue(tenc.equals(tenc2));
- Assert.assertTrue(tenc2.equals(tenc));
+ Assertions.assertEquals(0, tenc2.getFlags());
+ Assertions.assertEquals(tenc, tenc2);
+ Assertions.assertEquals(tenc2, tenc);
iso.close();
}
diff --git a/isoparser/src/test/java/com/googlecode/mp4parser/boxes/BoxRoundtripTest.java b/isoparser/src/test/java/com/googlecode/mp4parser/boxes/BoxRoundtripTest.java
index 962bca4d7..1bdce3d37 100644
--- a/isoparser/src/test/java/com/googlecode/mp4parser/boxes/BoxRoundtripTest.java
+++ b/isoparser/src/test/java/com/googlecode/mp4parser/boxes/BoxRoundtripTest.java
@@ -1,10 +1,9 @@
package com.googlecode.mp4parser.boxes;
-
-import org.junit.Assert;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.junit.runners.Parameterized;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
+import org.junit.jupiter.params.Parameter;
import org.mp4parser.Box;
import org.mp4parser.IsoFile;
import org.mp4parser.ParsableBox;
@@ -22,7 +21,6 @@
import java.util.HashMap;
import java.util.Map;
-@RunWith(Parameterized.class)
public abstract class BoxRoundtripTest {
/*
@@ -56,20 +54,29 @@ public static Collection