Writing a Direct Show Source Filter - directshow

I should have to write a Direct Show Filter which
takes input(video,audio) from live source.
And it should give the data(video,audio : which are encoded) to a decoder Filter
MyCustomDirectShowSourceFilter --->
Decoder
Any real working examples which i can build my own source filter and any suggestion for implementation?
Best Wishes
Update:
Basically i want a source filter which takes streams from network and let to handle the parsing and decoding of video stream by another filter.
So when i modify Microsoft sample Push Source Filter and connect to a decoder it does not call FilllBuffer method. The graph simply does not work. I need a source filter example which the output is connected to a decoder not a video renderer or Mux.

The Windows SDK (7.1) contains DirectShow sample filter code, including a source filter, which I've successfully used to build source filters for live devices.
If you have the latest Windows SDK installed, it should be here:
C:\Program Files\Microsoft SDKs\Windows\v7.1\Samples\multimedia\directshow\filters\pushsource
Also, MSDN has great reference material on this topic:
http://msdn.microsoft.com/en-us/library/dd757807(v=vs.85).aspx
If you are still stuck, the March Hare also provides great samples to get peopel started:
http://tmhare.mvps.org/downloads.htm

You can see sample push source mentioned at
https://learn.microsoft.com/en-us/windows/win32/directshow/push-source-filters-sample
Source code for sample push source filter is at
https://github.com/microsoft/Windows-classic-samples/tree/master/Samples/Win7Samples/multimedia/directshow/filters/pushsource

Related

Device MFT Implementation

I would like to implement Device DMFT based on this Microsoft article.
Did anyone has any experience with it and could share code sample?
I did find some “Driver MFT” code samples on the Microsoft website but none for “Device MFT”.
Here's the sample code from MSFT.
You can compile and register using the dll file generated.

How to support mxf file formats in mediafoundation source Reader and sink writer

I am creating a transcoder application using windows mediafoundation API. I am using Source Reader and Sink Writer API's for transcoding. Now I need to add support for media types like(.mxf) , which is not supported by mediafoundation . Media foundation documentation says, "Third parties can support additional formats by writing custom plug-ins." Can anyone help with documentations or example on how to get started writing custom plug ins.
You need your own implementation of IMFMediaSource to read such files and IMFMediaSink to write.
For sources, MSDN entry points are:
Writing a Custom Media Source
Case Study: MPEG-1 Media Source and there is a source code in the form of a mpeg1source sample
For sinks it is:
Media Sinks
Your implementation of Media Foundation primitives could be used with higher level APIs like Source Reader, Sink Writer and also Media Foundation Media Session.
The samples also include wavsource and wavsink which are also good examples for the mentioned above.

Custom Report in alfresco?

Currently i am generating a report (we are getting files are uploaded within a time stamp).
I am getting all files and folders.Iterating the result and checking created date one by one.That is taking too much time approx 8 min to revert with resuls.Can anyone tell me is there any alfresco report api that i can use? or using solr how to fetch the result?
I like to follow an approach which is maybe not really orthodox. Usually, you don't want to report on all documents, only document using a specific type or aspect. So, what I do is to create a Java behaviour on onCreate, onUpdate and onDelete that updates a custom database with only the metadata that I'm interested in. Then, I can connect any OOTB reporting tools such as Pentaho, Jasper or Tableau. You have of couse some other traditional alternatives, such as:
Using this module developed by a community member: http://fcorti.com/alfresco-audit-analysis-reporting/
Or using the module provided by Alfresco: http://docs.alfresco.com/analytics/concepts/analytics-using.html
SOLR/Lucene is not an option, querying DB directly is not an option either (performance wise).
I would suggest using one of the options available (AAAR for instance) or developing something on your own following the same principles.
I did little bit investigation on this and found below link.
http://docs.alfresco.com/4.0/tasks/audit-recording-values.html
I think you can user auditService in alfresco and get your things done.There are few alfresco webservices(related to audit) already available which will allow you to filter response.In case if you need to customize it , than you can create webscript and use auditService in it.
You can use below url for browsing all your alfresco webservice.
http://localhost:8080/alfresco/service/index

SAP NetWeaver 7 trial and .NET connector 3.0 - available functions?

I am using the .NET Connector 3.0 to connect to some NetWeaver instance running on another machine. It all works nice, but the tutorial only connects to one function called STFC_CONNECTION. To do this, I am using this code:
function = destination.Repository.CreateFunction("STFC_CONNECTION");
Problem is, how do I know what other functions I can call? I there an overview of the available functions and return values? I have a login for the SAP site, so thats not a problem.
Thanks :)
If you want to know all function that can be called, you can check the table TFDIR with parameter FMODE ='R' (for Remote) using transaction se16. However, this will clearly be far too much info, since there is no explanation of what the functions do, or how they relat to each others.
another possibility is to use the BAPI transaction to get info on disponible operation by functionnal area.
Last, if you know some functions that interest you, you can search for function with the same prefix, or inportant part (ie INFTY for HR for exemple) using transaction se37. Please note that in this case, returned function can be inaccessible by RFC : you will have to check in the function's properties if the execution type is 'Remote'.
Regards
Guillaume
You'll need access to the SAP system using the SAP GUI, otherwise you won't be able to read the documentation. Use the transaction SE80 / Repository Explorer to search for function modules. Clicking on the + button will extend the selection screen. In the additional selection options, make sure to select only RFC-enabled function modules.
EDIT: Also check out this question...
I figured it out ... just type SE37 as transaction and use a filter in the search box like STFC_* and it will find all the functions including the parameters and return values.
The description at Consuming SAP XI Web Service with Microsoft Visual C# 2008 Express Edition provides a sample worked example for Visual Studio 2008.
SAP support either the RFC stack (SOAP, WSDL, UDDI) or the direct .NET Connector.
There is also the bapi explorer transaction "BAPI" who will show you the BAPI functions divided into functional areas.

Selenium-Flex API sample problem

I'm trying the sample demo of selenium flex API. After following the instructions on the main page for compiling the project with sfpi.swc and taking the generated selben.swf in bin directory and trying to run some test(assertFlexText) using Selenium IDE, I get the following error:
[error] Function getFlexText not found on the External Interface for
the flash object selben
I have tried several other flex tests and got error messages similar to the one mentioned above.
For some reason I believe that the generated selben.swf through the automatic build of project in flex builder is not the desired one, though it didn't indicate any build problem after including sfpi.swc.
Any idea?
I use SeleniumFlex Api and SeleniumIde for my projecy with excellent result BUT using my own version of each of one. Your error maybe is for not include the lib of SeleniumFlexApi in the compile time( -include-libraries "libs\SeleniumFlexAPI.swc" ).
After that u can enable capture and replay with SeleniumIde change the main source (read this post) and use the user-extensions.js (in the SeleniumFlexApi project) with the SeleniumIde user option. Its really easy.
With these change u can capture and replay in firefox (v 3.06 or minor) and after that, if u use java, u can use Flex-UI-Selenium, Flash-Selenium for ur integration test with SeleniumRC.
I hope this information be usefull. I u have any question let me know.

Resources