directshow.net

C# control to display camera video with DirectShow.Net

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-04 19:55:06
I want to use DirectShow.Net to capture the stream from a webcam. What type of UI control can I use to display a the webcam video capture? I have seen an example that uses the whole window of a Form, but are there any other controls I can use: a Panel, PictureBox? yes. you can use pictureboxes or forms or panels. You need to call and use IVideoWindow. you can cast the directshow.net graph that is streaming/capturing to the IVideoWindow and then you can set it to being owned by whatever object you want to put your video stream into. just have to give it the objects handle and then set its

Audio Sync problems using DirectShow.NET

若如初见. 提交于 2019-12-04 09:24:28
I have started a thread on this at DirectShow.NET's forum, here is the link http://sourceforge.net/projects/directshownet/forums/forum/460697/topic/5194414/index/page/1 but unfortunately the problem still persists... I have an application that captures video from a webcam and audio from the microphone and save it to a file, for some reason the audio and video are never in-sync, i tried the following: 1. Started with ffdshow encoder and changed to AVI Mux - problem persists, audio is delayed and at the end of the video the picture remains frozen and the audio continues 2. Changed from AVI Mux

How can I learn a DirectShow programming? [closed]

邮差的信 提交于 2019-12-04 05:41:34
I'm a .Net C# Developer. I want to develop the media programming about video/audio codec, capture media from source, etc. I'm going to use the DirectShow Lib, but I read it on MSDN, and I'm very confused, because I'm a beginner. Do you have the best tutorials or some article that can make beginner understand to program in the DirectShow architecture? If so, please share them. You will find these useful: http://www.codeproject.com/KB/directx/PrgmngDirectShowappsCS.aspx http://www.codeproject.com/KB/directx/directshowmediaplayer.aspx http://www.codeproject.com/KB/directx/directshownet.aspx http:

how to use x264 encoder with directshow

自古美人都是妖i 提交于 2019-12-03 21:19:28
i can't figure out how to use x264 with directshow. i installed many thinks that pretend to have x264 encoder in with no use i downloaded the videoLAN x264 binary and when i run it, it shows so fast a console windows, and nothing happen after that these is the encoders that i have i am working on windows 8.1 x64 please help with this issue it's just going to make me crazy hhh, i wanna use x264 because the other encoders that i have installed, either didn't work or encode with so big size. x264 itself does not have DirectShow interface, so you need a wrapper (or, you need to implement it

FFmpeg Hardware Acceleration -> GPU + DirectShow

寵の児 提交于 2019-12-02 23:43:06
Is there a hardware accelerated version of FFmpeg (e.g. a version that utilizes the GPU)? Also, does anybody use FFmpeg with GPU support? Possibly for scaling and converting video format? Or, for example, use DirectShow for image scaling and displaying images on surfaces? If so anybody can provide small code samples? There are some VDPAU accelerated codecs for unixes with nVidia card. There is also an mpegvideo_xvmc codec using XvMC that can decode MPEG-1 and 2 on X11 if the driver has support for it, and also some codecs using VA API . For Windows, ffmpeg supports DXVA 2. If you want to use

Text overlay when video is recording using Directshow and C#

放肆的年华 提交于 2019-12-02 11:05:36
By using DirectShowLib i can able to record the video by using ASF writter here is the code to start recording try { IBaseFilter capFilter = null; IBaseFilter asfWriter = null; IFileSinkFilter pTmpSink = null; ICaptureGraphBuilder2 captureGraph = null; GetVideoDevice(); if (availableVideoInputDevices.Count > 0) { // //init capture graph // graphBuilder = (IFilterGraph2)new FilterGraph(); captureGraph = (ICaptureGraphBuilder2)new CaptureGraphBuilder2(); // //sets filter object from graph // captureGraph.SetFiltergraph(graphBuilder); // //which device will use graph setting // graphBuilder

Failure to play MP3 file with COM exception in IGraphBuilder.RenderFile

前提是你 提交于 2019-12-02 06:11:11
问题 I am new to direct show development. I am learning things about direct show. I am trying to write a method which plays some audio files. It works fine for many .mp3 files, but for some of my mp3 file the method RenderFile() of interface IGraphBuilder throws following exception COMException occured : "Pins cannot connect due to not supporting the same transport." My best guess is that I am missing some codec to play those files. Can anyone suggest what I am doing wrong. Is there any way to

Showing a semi-transparent Image object over an IVideoWindow in C# using DirectShow.NET

纵饮孤独 提交于 2019-12-02 04:41:51
I've been using DirectShow.NET to interface with a webcam in C# and so far everything has been going smoothly. However, right now I'm working on trying to set up a method to "crop" an image (while it's still being displayed as a webcam preview). Basically, I'm trying to show some kind of a mostly transparent image on top of the IVideoWindow object. Dealing with transparency in C#, however, has been pretty far from a cakewalk. So, how can I layer an Image object on top of an IVideoWindow? Thanks! There are two approaches how to achieve this: to use a video transformation filter and deliver

Capturing frames from webcam using DirectShow.NET

别等时光非礼了梦想. 提交于 2019-12-01 17:03:09
I am new at DirectShow, so some parts of this library i don't understand well. I already see the example DxSnap, but i need to capture frames without previewing it , for futher processing. How can i do it? you could build one yourself. If you look into the windows sdk 7.0~ folders you can go to samples > multimedia > directshow > and there should be a filters folder that shows you how to make generic filters and do w/e you want If your main concern is "access webcam" and not "access webcam with DirectShow", then I would have a look at the AForge.NET-Framework . I tried it with DirectShow once

Capturing frames from webcam using DirectShow.NET

末鹿安然 提交于 2019-12-01 16:42:29
问题 I am new at DirectShow, so some parts of this library i don't understand well. I already see the example DxSnap, but i need to capture frames without previewing it , for futher processing. How can i do it? 回答1: you could build one yourself. If you look into the windows sdk 7.0~ folders you can go to samples > multimedia > directshow > and there should be a filters folder that shows you how to make generic filters and do w/e you want 回答2: If your main concern is "access webcam" and not "access