Questions tagged [dspack]

DSPack is a set of Components and class to write Multimedia Applications using MS Direct Show and DirectX technologies. DSPack 2.3 is designed to work with DirectX 9 on Win9X, ME, 2000, and Windows XP operating systems using Delphi 5,6,7 and BCB6.

It is an easy to use component set that lets you create DirectShow applications in Delphi way. For simple graphs, you just set properties in design time and run the graph. Sometimes all you need is one line to run your graph.

FilterGraph1.Play;

You can even use RenderFile method to create a basic media player.

FilterGraph1.RenderFile('Eine Kleine Nacht Muzik.mp3', Nil);
FilterGraph1.Play;
59 questions
2
votes
1 answer

DSPACK example for converting audio sample rate on the fly?

I am using DSPACK with Delphi 6 Pro. I am looking for a good sample that shows how to create a filter graph that will convert the sample rate of an audio stream to a desired format (sample rate, bit depth, and number of channels) in real time. Does…
Robert Oschler
  • 14,153
  • 18
  • 94
  • 227
2
votes
0 answers

SetPositions stop Audio and Video not simulaneously

I'm using DirectShow via Delphis'w wrapper called DsPack. I want to play some video from StartPosition till EndPosition: MediaSeeking.SetPositions(Start, AM_SEEKING_AbsolutePositioning, Stop, AM_SEEKING_AbsolutePositioning); It works except…
SiberianGuy
  • 24,674
  • 56
  • 152
  • 266
2
votes
1 answer

How to capture and save to file from webcam using DSPack and Delphi 5

right now I'm trying to make a program using Delphi 5 to take a photo from webcam. I'm using delphi 5 and DSPack 2.3.1 because many people suggest it, and yes this is my first time programming multimedia with delphi. I've been able to list and add…
user2720515
  • 21
  • 1
  • 2
2
votes
1 answer

How do you render a video from a MemoryStream using DSPack?

I'm able to render a video from the file system using a TFilterGraph and a TVideoWindow within Delphi 2010. I'd like to render the video from a MemoryStream instead of directly from the file system. Here's the concept: Store the video in a database…
2
votes
0 answers

How to Prevent Black Background When Resizing a DSPack TVideoWindow

Is there a way to prevent the black background when resizing the window while a video is playing? I've tried setting the TVideoWindow.Color and the TVideoWindow.Canvas.Color to white but every time the window is resized a black background appears…
1
vote
1 answer

Why does adding a renderer to my DirectShow Filter Graph smooth out audio input to the graph?

I have a DirectShow filter graph in my Delphi 6 application built with the DSPACK component library. The structure of the graph is as follows: Custom push source audio filter Sample Grabber Tee Filter (but only when I turn on both the WAV File…
Robert Oschler
  • 14,153
  • 18
  • 94
  • 227
1
vote
1 answer

What Directshow filter event can I use to unblock the source stream thread upon filter shutdown?

I have a DirectShow filter written in Delphi 6 using the DSPACK component library. It is a push source video filter. The filter blocks on an event that is signaled in another thread that generates the video frames. When a frame is ready, it is…
Robert Oschler
  • 14,153
  • 18
  • 94
  • 227
1
vote
2 answers

Getting stuttering during rendering of my DirectShow filter despite output file being "smooth"

I have a DirectShow application written in Delphi 6 using the DSPACK component library. I have two filter graphs that cooperate with each other. The primary filter graph has this structure: Capture Filter with 100 ms buffer size. (connected to) A…
Robert Oschler
  • 14,153
  • 18
  • 94
  • 227
1
vote
1 answer

Why is DirectShow dragging in unnecessary intermediate filters when making multiple input connections to my DirectShow Transform filter?

I have a DirectShow Transform filter written in Delphi 6 using the DSPACK component library. It is a simple audio mixer that creates a new input pin whenever a new connection is attempted. I say simple because once its media format is set, all…
Robert Oschler
  • 14,153
  • 18
  • 94
  • 227
1
vote
1 answer

Can I safely assume that the destination Sample received by my DirectShow Transform Filter will have memory already allocated to it?

I've written a DirectShow Transform filter using Delphi 6 and the DSPACK library. I've examined the DSPACK base Filter classes and the code belonging to their 'WAV Dest' sample app, which is a Transform filter example. As far as I can tell, memory…
Robert Oschler
  • 14,153
  • 18
  • 94
  • 227
1
vote
1 answer

How to debug an unspecified error ($80004005) during DirectShow put_Enable call on Capture filter?

I have a DirectShow application written in Delphi 6 using the DSPACK component library. I am having a strange problem enabling an input line on a Filter. I search the pins until I find the input line, in this case named 'Microphone', and call…
Robert Oschler
  • 14,153
  • 18
  • 94
  • 227
1
vote
3 answers

Can't find pin in DirectShow filter by name/ID despite it being the ID returned by QueryPinInfo

I'm having a weird problem while developing my DirectShow application. I am using Delphi 6 with the DSPACK DirectShow component library. One of the IBaseFilter instances doesn't seem to recognize a pin that it owns when I try to find the pin in…
Robert Oschler
  • 14,153
  • 18
  • 94
  • 227
1
vote
1 answer

What is the correct sample size for a DirectShow push source filter that provides only audio?

I have a Delphi 6 Pro program using the DSPACK library to do DirectShow filter work. I am creating my first Push Source Filter that would provide audio from a custom audio source. Currently my biggest question is how to determine the amount of…
Robert Oschler
  • 14,153
  • 18
  • 94
  • 227
1
vote
1 answer

What to do with NIL response for legacy filter 'Wav Dest' in Delphi 6 DSPACK program?

I am trying to create a Delphi 6 program with DSPACK that records audio from the PC input devices (Windows XP) and then writes the captured audio to a MS format WAV file. The problem I am having is that I am getting NIL back when I try to get the…
Robert Oschler
  • 14,153
  • 18
  • 94
  • 227
1
vote
2 answers

Should I use DSPACK to record audio (only) from Direct3D devices with Delphi 6?

I'm trying to save time on a project I'm beginning that will record audio from the connected audio input devices on a Windows XP or Windows 7 PC. In the past I have used the DSPACK components for Delphi 6 Pro to do video capture on a Windows PC,…
Robert Oschler
  • 14,153
  • 18
  • 94
  • 227