Scan from memory

Dec 14, 2011 at 5:08 PM

I'm trying to use your interop library in a web service to take in a video file, and save it in a few other formats. In this use, I already have my file in memory, but the HandBrakeInstance object's StartScan method only takes a file path.

Is there currently a way to start a scan on a FileStream, MemoryStream, or a Byte array, or some similar method of scanning the file from memory? If not, how hard would it be to expose that type of functionality? Is this a limitation in your interop library, or in the hb.dll library?

I've tried to trace back how you're calling into hb.dll, but it's been a long time since I've dug into C++, much less C code. 



Ryan Brown

Dec 14, 2011 at 5:14 PM

It's a limitation of the hb.dll library. The only way to pass data is via a file path. Additional functionality would need to be added to the HandBrake core.

Dec 14, 2011 at 5:21 PM

That's kind of what I figured. Thanks.