Directshow video render to two windows - directshow

I am using a directshow player which renders onto a panel using C++ Builder. I wish to duplicate what is playing onto a second monitor. Does directshow support any sort of events to say when a frame has been rendered by the renderer?
I am using the standard Microsoft player example which chooses the first available renderer which will work for the AVI file EVR, VRM9 this plays and renders fine. I would like to copy the rendered images as they update (50fps or 60fps max) and put them on a second screen which doesn't have all my other associated buttons and panels.

You need to configure EVR or VMR9 to use windowless render mode and implement a Custom Presenter for EVR which will be responsible for rendering of each received frame (texture). You'll then be able to render this texture on separate windows.
Here is a link to implementing a Custom Presenter for VMR9 as well, but IMO EVR is better to be used especially in Win 7 and higher.

Related

How to get image from preview panel, DirectShow.Net

i am writing an app that preview then capture video from a Video Device (ex:Cam), i didn't found a solution to take a snapshot during capturing with a ASF format.
so i thought i could take a picture from the preview panel but the background-image didn't contain it, and the image property of is null if i use a Picturebox .
do anyone knew how Directshow use the panel or Picturebox to preview video?
Typical solution for capture with preview is to add a tee (smart tee) and then do writing and presentation on the outputs of that tee respectively. PlayCap DirectShow.NET sample shows how to visualize video feed. Video renderer provides methods to read back last presented video frame, so that you could make a snapshot out of it.
Separate parts of this task have been discussed many times, including here:
Preview a camera in DirectShow and capture a still image - in VB.net
VB.Net Directshow Webcam Snapshot
Capturing pictures from webcam at high resolution while previewing at a lower one using DirectShow.Net
DirectShow - Capture Webcam While Viewing It?

What is the purpose of Print device layout in Sitecore (or How do I use it properly)?

I have created a print button in my application that opens a new window that goes to print device layout by appending the current url with QueryString of Print device(?p=1 in my case) and onload it calls window.print() function. But this is useless because all the data user has entered will be lost when it opens a new window containing print device layout of the current page.
I can't think of a way by which I can use the print device layout and pre-populate the page with data user has entered. Can anyone help me with this?
Thanks in advance.
The point of the Print Device to be able to have a different set of Presentation components for display or print. Sometimes it is sufficient (and easier) to just use a print stylesheet, which hides/restyles certain elements: https://stackoverflow.com/a/12773239/19112
Obviously Devices works fine for non-form pages, or forms that have been posted and a confirmation page is shown (no input boxes, just text).
An alternative would be to use Rendering Parameters to set on each control, which could add a .print or .do-not-print class to then be used by the print stylesheet. You would then have to set the appropriate styles in the stylesheet to hide those elements. Note however that you cannot style the iframe content from the parent, you must link a separate stylesheet to the iframe src page if you want to style when printing.
You can append the user inputs to the print URL query string using javascript, for example:
var url = 'Current-Page-URL' + '?p=1' + '&input1=[INPUT1]'+ '&input2=[INPUT2]' etc..
Then in Page load event, you can set these inputs in the corresponding text/dropdown elements
Like mentioned above that device is a different set of presentation that can be used for many purpose. Early years when there weren’t responsive design, I used device to rendering different mobile device. You can use device to render rss feed or anything you want where you want to have different render set.
Another example if you have multi sites and want to rendering them differently you can use device as well.
Sitecore is very flexible that’s why I love it so much. There are always other ways to get same or similar results. From your context I don’t know what you are trying to achieve. If I want to have different set of presentation
here is some approach I will look into, Lavage rendering rules, tap into request pipeline, swap rendering controls in code, on item level specify style sheet…
If you can tell us what you are trying to achieve, I am sure someone will provide you their own solution. Then you will have more options to choose from and get the best fit to your project.
Hope this help.

Apply a Filter to a Camera video stream publishing to Media Server

I am Trying to Apply some information Like text and An Image as an overlay to create a overlay effect as lice a security camera with time and date on the video along with a png based Logo.
I can record VIDEO Using Flex and FMS or any other Media Server. But I want to save a modified version of the stream being uploaded.
Use camTwist (mac) or webcammax (pc) as your video input...you can use that program to use the webcam and then add whatever over it (text, date). Use Flash Media Live Encoder and select camTwist as your video source. Stream and save your recordings using that FMLE.
Sorenson Squeeze is pretty awesome for this and is cross platform. Camtwist is cool but it's not really a 'pro' app, that makes me sound way snobbish. It's actually pretty fun and a good suggestion for a simple result but I haven't found anything better than Sorenson Squeeze for the features and control it gives you.

Flex video/audio chat for a site

Looking for a component which can be embedded inside my site (PHP, ASP.NET...whatever) and give a support for video chat.
I'm not a flex developer and would like to use a component. There are some/many video chats available, like flashcoms, red5chat...but all of those are heavy(monolit) components.
What I would like to have on my site is just a small video showing output from my camera (me) and another video showing the other party...but those videos should be split, not in the same flash component, but separate (two different EMBED tags on my page).
Are there any components available to do that (of course with support from appropriate media server)? Are there any good guides on how to develop such a component?
Thank you very much!
You will have to program in flash, there is no stright direct components just waiting to be implemented, you can use flash CS3 instead of flex!!
Which let you built an small video object to display the camera, publish it, and then capturing on another swf with an small video object but there you play a NetStream Object and add it to an Video Object and voila!!!

flex contextmenu items in tamil

I am developing a desktop RIA. I have a context menu which shows the suggested words. Now I getting boxes
http://www.freeimagehosting.net/uploads/ba90d08e6f.png
Please have a look to the above url.
I am using sqlite as embedded database. I am getting the suggested words in an array, that array items are added in context menu items.
I have to display text in context menu for almost all different languages.
Please suggest me how can I get the actual text instead of the boxes?
Reply ASAP
Thanks in advance
Boxes mean (most likely) bad font.
But the menu is a system menu, is not rendered by Flash/Flex/AIR.
So it looks like your system is not configured to render Tamil (font fallback)
Since Tamil is supported since Windows 2000, it is (probably) not installed properly.
Check here: http://www.southasia.upenn.edu/tamil/unicodehelp.html
(just a guess, I don't have enough info)
In the long run, you might also discover that you have some problems with the rendering of Tamil in Flash/Flex/AIR. This is because the old Flash text engine does not handle complex scripts.
There is a new engine in Flash 10.0, but to use it you will have to download and use a helper library (http://labs.adobe.com/technologies/textlayout/), or use Flex 4 (which uses the new text engine by default in the new Spark controls)

Resources