I was running a sample java program from google code of mp4parser.
I have included the respective jar file isoviewer-2.0-RC-15.jar from mp4parser site
Do I need to add any other jar??
but I am getting error at line 32 and 34 for the class IsoOutputStream and IsoBufferWrapperImpl
How and which library to include for these two classes.
Here is program-
package com.coremedia.iso.boxes;
import com.coremedia.iso.IsoBufferWrapperImpl;
import com.coremedia.iso.IsoOutputStream;
import junit.framework.Assert;
import junit.framework.TestCase;
import java.io.ByteArrayOutputStream;
import java.nio.ByteBuffer;
import java.util.LinkedList;
import java.util.List;
/**
* Created by IntelliJ IDEA.
* User: sannies
* Date: 24.02.11
* Time: 12:41
* To change this template use File | Settings | File Templates.
*/
public class SampleToChunkBoxTest extends TestCase {
public void testParse() throws Exception {
SampleToChunkBox stsc = new SampleToChunkBox();
List<SampleToChunkBox.Entry> l = new LinkedList<SampleToChunkBox.Entry>();
for (int i = 0; i < 5; i++) {
SampleToChunkBox.Entry e = new SampleToChunkBox.Entry(i, 1, i * i);
l.add(e);
}
stsc.setEntries(l);
ByteArrayOutputStream baos = new ByteArrayOutputStream();
stsc.getBox(new IsoOutputStream(baos));
byte[] content = baos.toByteArray();
SampleToChunkBox stsc2 = new SampleToChunkBox();
stsc2.parse(new IsoBufferWrapperImpl(ByteBuffer.wrap(content, 8, content.length - 8)), content.length + 8, null, null);
Assert.assertEquals(content.length, stsc2.getSize());
}
}
Your reply will be highly appreciated.
Thanks
Check this link out. They do have their own IsoOutputStream class.
You can get one jar from Here
Check out this link too.