directshow

Video Renderer Filter rejects sample

£可爱£侵袭症+ 提交于 2019-12-11 19:49:49
问题 Currently my filter just forwards data from one input pin to a renderer-filter. I am testing it in graphstudio. Now, everything seems to work just fine except that in the Deliver method of my output pin the call to the connected input pin returns a sample-rejected error code. ( VFW_E_SAMPLE_REJECTED 0x8004022B ) According to MSDN this can happen if one the following is true: The pin is flushing (see Flushing). The pin is not connected. The filter is stopped. Some other error occurred I don't

LNK1112 on Directshow C++ CLR project

丶灬走出姿态 提交于 2019-12-11 19:16:50
问题 i am trying to rebuild a program in CLR C++ from C++ and i get the linker error 1>strmbasd.lib(strmiids.obj) : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' my project is set to Win32 and the properties are set to target machine x86. i keep rebuilding baseclasses to match the Win32 and I don't know where or why its failing Linker command line looks like: /OUT:"C:\Users\ME\Documents\Code\X C++\Trial2\DirectshowC++\Debug\DirectshowC++.exe" /INCREMENTAL

How to set bitrate of IVP8Encoder filter in a DirectShow application

泄露秘密 提交于 2019-12-11 19:00:12
问题 How to set bitrate of vp8encoder filter in directshow application (c++ code). my graph looks like this. Webcam --->Webm VP8 encoder -->AVI mux --->file writer(.avi) I'm able to set bitrate in graphedit by right clicking vp8encoder->properties. But i want to set bitrate using c++ code in directshow application. I'm new to directshow please provide sample code . Thanks in advance 回答1: The subject suggests that you already have IVP8Encoder interface on hands (which also goes in line with the

Reconnect Directshow Filter Pin

故事扮演 提交于 2019-12-11 18:43:55
问题 How to reconnect Filter Pins? I created a resizer filter (c++) and added a property page with options Pal(720X576) and Ntsc(720X480).(default is Pal). In Graph Edit i selected a video file and added My resizer filter to it, when i played the graph it is working fine and showing video in Pal. when i tried to change it to Ntsc, it is not working correctly. To make it work correctly i need to first disconnect the Resizer filter pins and then change the output settings and then reconnect it.(i do

VB.Net Directshow Webcam Snapshot

帅比萌擦擦* 提交于 2019-12-11 18:13:11
问题 I am new to stackoverflow but I registered because I think here is the right place to get professional help for programming :) My goal is to create a webcam snapshot tool which directly saves the snapshot to a file. I don't need any preview in a picturebox or something like that. I am thinking about a application like this: A simple Interface with a Combobox for the connected webcam devices and one button which will take a snapshot and saves it to a file. I like to use DirectShow for this

Different approaches on getting captured video frames in DirectShow

好久不见. 提交于 2019-12-11 16:46:54
问题 I was using a callback mechanism to grab the webcam frames in my media application. It worked, but was slow due to certain additional buffer functions that were performed within the callback itself. Now I am trying the other way to get frames. That is, call a method and grab the frame (instead of callback). I used a sample in CodeProject which makes use of IVMRWindowlessControl9::GetCurrentImage. I encountered the following issues. In a Microsoft webcam, the Preview didn't render (only black

How to control the painting of the player

若如初见. 提交于 2019-12-11 16:30:48
问题 I am trying to draw something on a live video. The best way to do that in my opinion is to handle the WM_PIANT event. My purpose is to make the player draw first and after that the application. That way I will be able to draw on the video. It means that I want to be notified each time before we need to paint a new frame on the window and then handle the event. I use DirectshowNet so I am programming in C# (I have all the interfaces the c++'s API has). I understand that the graph manager

C# How Can I Play A Video From A Memory Stream Using DirectShow(quartz.dll)?

百般思念 提交于 2019-12-11 14:47:31
问题 I have a C# Visual Studio WinForms .NET app that plays video using the QuartzTypeLib (quartz.dll). With the code I've written, I can play any video file from the hard drive. Here's the code at the top that executes when the app starts: public const int WS_CHILD = 0x40000000; public const int WS_CLIPCHILDREN = 0x2000000; public QuartzTypeLib.IMediaControl mc; public QuartzTypeLib.IVideoWindow videoWindow = null; IMediaPosition mp = null; And here's the code that opens the video file: private

aacplus frame alignment problems

 ̄綄美尐妖づ 提交于 2019-12-11 14:04:07
问题 I have an application that rips aac+ audio streams, cutting them at every regular interval (i.e. 10 minutes). Sometimes files are playable OK, but sometimes, Windows Media Player just closes when trying to build DirectShow graph. I am using Orban aacplus plugin, and it works under directshow. When I play this file with winamp or vlc, that have it's own aacplus decoding engine, it works fine. However, I need it to work under directshow. Anyway, problematic file is here: http://www.videophill

VideoCamera get supported resolutions

别说谁变了你拦得住时间么 提交于 2019-12-11 13:50:24
问题 I'm using DirectShow library (DirectShowLib-2005.dll) with C# to capture a video camera image. When I'm definig the capture object's size, I have these parameters: const int VIDEOWIDTH = 640; // Depends on video device caps const int VIDEOHEIGHT = 480; // Depends on video device caps const int VIDEOBITSPERPIXEL = 24; // BitsPerPixel values determined by device capture = new Capture(0, VIDEOWIDTH, VIDEOHEIGHT, VIDEOBITSPERPIXEL, pictureBox1); I'm using this loop for getting the names of