@Test
public void testFileWrite()
{
String copyFile = nullProtocolString+":"+this.getClass().getName()+"_"+this.getName()+".flv";
FfmpegIOHandle writeHandle = new FfmpegIOHandle();
int retval = -1;
// First, open the write writeHandle.
retval = FfmpegIO.url_open(writeHandle, copyFile, IURLProtocolHandler.URL_WRONLY_MODE);
assertTrue("could not open url: " + copyFile, retval >= 0);
// Now, create and open a read writeHandle.
// note that without a protocol string, should default to file:
FfmpegIOHandle handle = new FfmpegIOHandle();
retval = FfmpegIO.url_open(handle, sampleFile, IURLProtocolHandler.URL_RDONLY_MODE);
assertTrue("could not open url: " + sampleFile, retval == 0);
long bytesWritten = 0;
long bytesRead = 0;