Click here to Skip to main content
Page 1 of 5
Page Size: 10 · 25 · 50


Author filtered by: Maxim Kartavenkov [x]
Re: how to Grab single frame? by Maxim Kartavenkov
Forum Message 12 May 2013  
Hello, You can check DxGrapper application in samples it uses SampleGrabber filter to hook frames with specified format. You can create your own filter and connect it to the output pin. You can c
Forum Message 6 May 2013  
Yes, you can contact me in there.
Forum Message 6 May 2013  
You should perform capture from real device inside filter using separate graph and make output from that. Maxim.
Forum Message 3 May 2013  
One camera supports the colorspace requires for filter another one - not. You are not inspecting the results of an operations that's why you not getting any errors. Maxim.
Forum Message 25 Apr 2013  
I think you should better to read DirectShow documentation.
Forum Message 21 Apr 2013  
Hello, You can do playing media files inside filters like in particular application so you can update output camera buffer from the played file active frame. Regards, Maxim.
Re: How to use in WPF by Maxim Kartavenkov
Forum Message 21 Apr 2013  
Hi, Right now I have no sample code for WPF but you can check the WPFMediaKit. Maybe later I extend my library with helper classes for WPF. Regards, Maxim.
Forum Message 21 Apr 2013  
Hi Mario, Sorry for late responce I was on vacations. Some properties you can't change at runtime that's why you received error message. For "Ximea" cameras I hardcode some properties which are no
Re: Excellent Work... by Maxim Kartavenkov
Forum Message 4 Apr 2013  
Welcome.
How to instantiate a COM dll by Maxim Kartavenkov
Answer 3 Apr 2013   license: CPOL
In additionallyHow to initialize object from existing DLL without registering see my answer here: importing com dll dynmaically[^]The CoCreateInstance and CoCreateInstanceEx used if case you object registered in a system or on remote PC. Once your object is OLE control or document which...
A problem about directX texture. by Maxim Kartavenkov
Answer 30 Mar 2013   license: CPOL
1. GetFrontBufferData does not recommended to use as it slow.2. You are getting screen into system memory and what for you copy it back to the texture?3. You copy via Locking which is not good.To solve your issues see:This API D3DXLoadSurfaceFromSurface usd to copy from one surface to...
Answer 26 Mar 2013   license: CPOL
Better converting not to double but to DWORD or ULONGLONG (in .NET it uint and ulong).And make high version part to be at high bit order so you can compare that 2 numbers only.In .NET it will looks:public uint GetVersion(string _version){ uint uiVersion = 0; string[] aVersion =...
Answer 26 Mar 2013   license: CPOL
You can play one file via DirectShow and use Inf Tee Filter on video stream with multiple video renderers, or use one VMR9/EVR with custom allocator presenter and present target surface on couple render targets at the same time. So you will need to control one graph and one file playback only...
Re: Propertydialogs crash by Maxim Kartavenkov
Forum Message 26 Mar 2013  
Not sure but probably some additional release called and as result the object already released then _Release called. If you research more and provide more details I can check and solve that if it my i
Answer 26 Mar 2013   license: CPOL
You should create UDP socket for each NIC and bind to every adapter.See my answer here:UDP broadcast on multiple ethernet interfaces/adapters[^]
C++
how to detect the services in vc++ by Maxim Kartavenkov
Answer 25 Mar 2013   license: CPOL
That is very easy, you just need to use 2 WinAPI: OpenSCManager and EnumServicesStatus. First one is used to obtain service control manager handle, and the second one to enumerate services based on given status and type.Regards,Maxim.
Answer 25 Mar 2013   license: CPOL
You can build the .NET source code dynamically and compile it on server side without problemsFor that you can use one of CodeDomProvider classes example CSharpCodeProvider or VBCodeProvider fill the CompilerParameters structure and call...
Re: Color Space Converter by Maxim Kartavenkov
Forum Message 25 Mar 2013  
Hi, Chris Sure I know why the Color Space converter can be inserted. Main reason: The filter have output format which is not compatible with renderer and changing it not allowed by the filter. Ex
Answer 24 Mar 2013   license: CPOL
In additionally to previous answers.A a; // object created in stackA * pa = &a; // But it still have a pointer and you can get it next way// Now if you call any method of the those 2 instances you call it on same object.a.Method();pa->Method();// And set property performed also on...
File system Minifilter Driver by Maxim Kartavenkov
Answer 24 Mar 2013   license: CPOL
That will be not so simple for you to start with drivers.The major documentation which you should use is WDK. Not worry if it will be hard to read at start but as you have objective to learn it you will win.Getting started with drivers development[^]The main part of it for you is IFS....
C++
Answer 24 Mar 2013   license: CPOL
I already anwering you abt that you should know filter interface which used to control it properties. After query that interface froom your filter object and use it methods to modify filter settings.IBaseFilter * _filter; // initialized by CoCreateInstanceIFilterControl * _interface;//...
how to set resolution of web cam by Maxim Kartavenkov
Answer 24 Mar 2013   license: CPOL
It is not only biWidth and biHeight necessary to set for the resolution change.In additionally to parameters which require to change (this in case you uses the format which you get previously) you should set the biSizeImage = biWidth * biHeight * biBitCount / 8.Note: you can't set the...
Answer 24 Mar 2013   license: CPOL
Well, this bcs of your system does not know abt your files.You should just specify handlers for that in registry:HKCR\{your extension} - in here you can put the information abt your extension and how it should be handled (including opening displaying in shell and so on)Actually I think...
Forum Message 24 Mar 2013  
Don't worry abt that warnings. Search by filter name which you can see in source code in Legacy AM Filter Category. Note: the filter builded explicit as 32-bit so you should use 32-bit GraphEdit
Re: Save property page settings by Maxim Kartavenkov
Forum Message 22 Mar 2013  
Also keep in mind that Save called 2 times: 1st to determine the size of required for data to be saved and 2nd is for an actual data saving. Maxim.
Already defined .obj problem. by Maxim Kartavenkov
Answer 22 Mar 2013   license: CPOL
You should declare variables in .h files but initialize them in .cpp file.Otherwise you include header 2 times and then it is initialize 2 times.Note: do not forget to use #pragma once or via definition avoid doublbe declaration.//example: .h#pragma once// declare variable so...
Answer 22 Mar 2013   license: CPOL
You should know COM interface for that filter which if used for configuring it via property pages. If filter have typelibrary embedded you can easy see the controlling interface (for example in OLE COOM Object viewer tool by choosing load typelibrary in menu), if filter does not expose...
Re: Save property page settings by Maxim Kartavenkov
Forum Message 21 Mar 2013  
Sure it not will be called bcs you have not saved anything - what you are want to load in that case?
Answer 21 Mar 2013   license: CPOL
Shared memory used mostly for interprocess comunications.But for you comunicate in same process.There are a lot of ways for such comunications that implemented much easy. (NOTE: interprocess mechanisms are also works within single process)You can make call back function and pass the...
Re: Save property page settings by Maxim Kartavenkov
Forum Message 20 Mar 2013  
My classes already have embedded ability for that. You should read article proper - there is even topic for that. Maxim.
Answer 15 Mar 2013   license: CPOL
You should get connected media type of your renderer and get information from VIDEOINFOHEADER structure.double GetFPS(IBaseFilter * _filter){ double _fps = 0; if (_filter) // Check if the filter passed { IEnumPins * _enum; // Query Enum pins if...
Re: while (true) MyVote++; by Maxim Kartavenkov
Forum Message 14 Mar 2013  
Your file played fine, and seems you not testing nor in my that I told you to do application nor in winamp. But it may not played for you as some applications check for data size and I didn't specify
Re: while (true) MyVote++; by Maxim Kartavenkov
Forum Message 13 Mar 2013  
Can you upload the wav file you have produced so I can check if that file correct or not?
Re: while (true) MyVote++; by Maxim Kartavenkov
Forum Message 13 Mar 2013  
You probably have any bug filter which performs output data with PCM subtype but no PCM stream which cause of writing wrong data into a file.
Re: while (true) MyVote++; by Maxim Kartavenkov
Forum Message 13 Mar 2013  
Does it not play in winamp or wavplay example?
Re: while (true) MyVote++; by Maxim Kartavenkov
Forum Message 12 Mar 2013  
WavExtract does not check for 16 bit 24 bit or 32 bit audio. To check your type see CheckMediaType method of writer filter. Maxim.
Re: Please Advice by Maxim Kartavenkov
Forum Message 10 Mar 2013  
You can build you own multiplexor in directshow for that purpose in DirectShow.
Forum Message 27 Feb 2013  
You can write output WMV manualy with WMF SDK and without WM ASF writer filter or makes dynamic reconnection or makes 2 filters to connect graphs or use GMF bridge.
Forum Message 25 Feb 2013  
Yep, strange 1.0.0.6 the latest one. Use the sources to build all things, I'll modify content later.
Forum Message 25 Feb 2013  
Latest baseclasses here[
Re: texture filtering by Maxim Kartavenkov
Forum Message 22 Feb 2013  
Use IDirect3D9->CheckDeviceFormat with D3DUSAGE_QUERY_FILTER to check if filtering is supported by your GPU. In additionaly you can read abt field D3DCAPS9.StretchRect
Forum Message 19 Feb 2013  
Article described how to build H264 Encoder directshow filter in C# and how to use NVIDIA Encoder API in .NET. It does not have task of transcoding something or comparing encoding quality or advertisi
Forum Message 19 Feb 2013  
Try to rebuild filter with latest version of BaseClasses as I didn't update sources and binaries here once I did changes in there. Filter should work without problems up to 1080p - try to use differen
Re: reverse playback by Maxim Kartavenkov
Forum Message 19 Feb 2013  
I didn't use such things for playback. I did seeking with preview but not playback. As example you can read video from AVI via API by frames if it uncompressed without any problems in reverse.
Re: reverse playback by Maxim Kartavenkov
Forum Message 18 Feb 2013  
Reverse playback not mostly available in particular way. But that is possible with making your own splitter/source and with uncompressed data. In particular way it can be determined via IMediaSeeking.
Forum Message 13 Feb 2013  
It works same way but from .NET point. You have media sample: IMediaSampleImpl and can get it buffer by calling GetPointer method. Now you can write data to that pointer di
Forum Message 13 Feb 2013  
DirectShow interfaces marshaled in different ways in DirectShowLib nd in my classes. You can use my classes instead or create object and wrap it into real COM proxy with RCW. 1. Create object with .
USB Programming in C++ by Maxim Kartavenkov
Answer 12 Feb 2013   license: CPOL
1. you should specify function fully as long you are loading them directly GetProcAddress(hSetUpApi, "SetupDiGetClassDevsW"); for unicode as function "SetupDiGetClassDevs" does not exists in setup api dll. Along with it you should passing unicode structure declaration into functions (with "W" at...
C++
Answer 12 Feb 2013   license: CPOL
Hello,I think you should check if dialog resource is valid and exists with ID you specify, if exists and loads properly problem could be with dialog styles. Regards,Maxim.
C++
Answer 12 Feb 2013   license: CPOL
Additionally, to all answers:1. In my articles there is an example to drawing text over the video, yes it is in C# but in old DirectX SDK you can find similar examples in C++.2. Another way you can capture frames with Sample Grabber and draw text this way.3. Easy way is to use VMR...

Page 1 of 5
1 2 3 4 5


Advertise | Privacy | Mobile
Web03 | 2.6.130513.1 | Last Updated 14 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid