video frames extraction code running error - c#

i found an article on this site http://www.codeproject.com/Articles/9676/Extracting-still-pictures-from-movie-files-with-C
about video frames extraction.
i am trying to run the source code given here..
i created a new project added the given C# code in it.
then i added the given reference " interop.dexterlib.dll" in it.
it gives an error about MediaDetClass.
Error 1
Interop type 'DexterLib.MediaDetClass' cannot be embedded. Use the applicable interface instead.
i am not getting it how to solve this. please help.

Related

How do I Access Mediastore.images in Xamarin app

Attempting to write app that retrieves images from local storage (camera roll) on Android Mobile device. All research suggests using MediaStore.Images to accomplish this. Unable to get clean compile as keep getting error 'object cannot be found'
This is statement producing error : MediaStore.Images.Media.ExternalContentUri;
Also :
string path = cursor.GetString(cursor.GetColumnIndex(
MediaStore.Images.ImageColumns.Data));
Tried declaring separate Interface declaration to no avail
I believe these classes are defined in Android dll which I have reference to.
Very frustrating to a long time C# developer looking to write cross-platform Mobile apps.
looked for sample code on net that would illustrate solution showing exactly how to access/declare/use MediaShow.Images to no avail.
Surprised there does not appear to be a single example of a full solution illustrating its use

Unable to load a COM visible dll within a PHP based webpage as a COM object

Here's what I've done so far:
I wrote a little C# class library to run GET requests to a REST API.
I compiled it, made sure that it worked within another c# application before trying to import this thing into my webpage. Pulled what I wanted to, worked like a charm whilst operating within another c# console app.
I followed this guide to make sure my dll was COM interoperable and reachable:
http://timheuer.com/blog/archive/2007/03/10/14009.aspx
Now, I was given this PHP webpage by someone else, and while I am not an expert in PHP, from what I've gathered it doesn't take much to be.
The only real important stuff is here:
function APIGet($url) {
$object = new COM("API_Call.ApiCaller");
$result = $object->cURLGET($token, $url);
return $result;
}
I wrote that into my function file, which has many other functions that work just fine on the page. The dll contains the namespace API_Call and a public static class, ApiCaller, as well as some other classes that aren't used here.
So then I go to call it on the actual page itself here:
$output = APIGet($apicall);
echo $output;
From which I get this error (edited for readability):
Fatal error: Uncaught com_exception: Failed to create COM object `API_Call.ApiCall':
Invalid syntax in C:\xampp\htdocs\canvasAPI.php:32
Stack trace: #0 C:\xampp\htdocs\canvasAPI.php(32):
com->com('API_Call.ApiCal...') #1 C:\xampp\htdocs\CAForm.php(169):
APIGet('api/v1/courses') #2 {main} thrown in C:\xampp\htdocs\canvasAPI.php on line 32
I have my file, canvasAPI.php with all my functions in it and then the CAForm.php file is the form itself. I've searched high and low for an answer here, but everything either says make the class library COM visible and interoperable, or to enable [COM] com.allow_dcom in php.ini, both of which I already did.
For anyone googling this, I just ended up using C# the whole way. I didn't see a point in continuing down the path of messing with custom COM objects in PHP.

SDK Error: 0x8D07, while using Canon SDK in C#

I download the source only tutorial here. When I run it with connect my Canon 70D, I got the error below.
What is the point I missed?
The Error:
The error occurs on this line:
And here is how the folder which includes EXE file looks like:
I fixed this problem by letting the camera know there's enough disk space on the host.
Adding the line
CameraHandler.SetCapacity();
before
CameraHandler.TakePhoto();
should do the trick.
Error 0x8D07 stands for EDS_ERR_TAKE_PICTURE_CARD_NG
I'm not a 100% sure what it means but it's some sort of write error. To resolve this, format the card, switch off the camera and put out the battery for a few seconds.
This should fix the problem.

Exception from HRESULT: 0xC00D0072 in Desktop Recorder

i downloaded this source code , i tried to run it but when i click start recording it crash ! , i wonder what make it crash and what to do to avoid any further error in this code?
DesktopEncoder.PrepareToEncode(true);
Instead of blindly running other peoples code, please read their whole article:
Prerequisites:
In order to use this application, we require Media Player Encoder 9.
He even gives a download link.
Edit:
The error code says:
0xC00D0072
NS_E_NO_SPECIFIED_DEVICE
"No specified device driver is present."
It seems you are missing something important.

Issue with C# & C++ in a Windows 8 application

I have code that uses the Media Foundation Transform to apply effects to a video stream presented in XAML/C#. It is in fact the Media Capture sample supplied by Microsoft. I wanted to use the DirectX Toolkit so I added a reference to it in the C++ application. The build was successful however I faced the following error:
warning LNK4197: export 'DllGetActivationFactory' specified multiple times; using first specification
warning LNK4197: export 'DllCanUnloadNow' specified multiple times; using first specification
warning LNK4197: export 'DllGetActivationFactory' specified multiple times; using first specification
warning LNK4197: export 'DllCanUnloadNow' specified multiple times; using first specification
error LNK2005: _DllCanUnloadNow#0 already defined in dllmain.obj
error LNK1169: one or more multiply defined symbols found
It is described in more detail here:
Windows::Storage::ApplicationData::Current Not Found in C++
However after following the steps in that post I faced another error.
When the C# code tries to call the WinRT dll at
await m_mediaCaptureMgr.AddEffectAsync(Windows.Media.Capture.MediaStreamType.VideoPreview, "GrayscaleTransform.GrayscaleEffect", null);
it throws a new exception without any detail. The exception text is
System.Exception: Error in the DLL
at Windows.Media.Capture.MediaCapture.AddEffectAsync(MediaStreamType mediaStreamType, String effectActivationID, IPropertySet effectSettings)
All I've done is linked my DLL to the GreyscaleTransform via the compiler without any additional code being invoked yet.
Any thoughts on what could cause this or what is the best way to troubleshoot it?
Many thanks,
Stefan

Categories