File tmpDir = createTmpDir();
File outputDir = createTmpDir();
copyResource("/smoothstreaming/audio-96000.mp4", tmpDir);
copyResource("/smoothstreaming/video-128h-75kbps.mp4", tmpDir);
copyResource("/smoothstreaming/video-192h-155kbps.mp4", tmpDir);
copyResource("/smoothstreaming/video-240h-231kbps.mp4", tmpDir);
copyResource("/smoothstreaming/video-320h-388kbps.mp4", tmpDir);
FragmentFileSet fragmentFileSet = new FragmentFileSet();
File inputs[] = tmpDir.listFiles();
Assert.assertNotNull(inputs);
fragmentFileSet.inputFiles = Arrays.asList(inputs);
fragmentFileSet.outputDir = outputDir;
fragmentFileSet.run();
System.err.println(outputDir);
Assert.assertTrue(new File(outputDir, "Manifest").exists());
Assert.assertTrue(new File(outputDir, "video").exists());
Assert.assertTrue(new File(outputDir, "audio").exists());
// todo This is merely a smoke test. I should have a better test.
// but how does this better test look like? Get some samples?
// search first and last sample of each file for a start?