473,659 Members | 3,117 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DirectShow

Airslash
221 New Member
Hello,

I'm currently trying to do something with DirectShow in the hope of replacing something from Delphi.

We currently have a program written in Delphi that relies on the components from ASTASip to create an AVI stream from jpg files.
The idea behind this is that one application overwrites a jpg file constantly with a new file and that another application reads the file and builds an AVI stream with it to send it over TCP.

I've been reading up about DirectShow and it has the ability to transmit AVI files and work with various media types.
I cannot find an example anywhere or an explanation to see if it is possible to have one thread read the jpg file constantly and add it to the DirectShow graph and build a AVI movie with it.

Anyone have an idea if this is possible or where I can find some information about it? The MSDN is rather vague about the while DirectShow stuff...
May 20 '10 #1
2 2916
mac11
256 Contributor
I worked with directshow (more specifically, the directshow.net wrapper library) to make a program using webcams some time ago.

I don't know exactly how to go about converting a bunch of .jpg to .avi using directshow, but since nobody has replied I figure I have to ask:

Why not just skip the whole .jpg step and make the first program simply stream the video from it's source? It doesn't solve the problem, but it sure would remove some complexity.
May 24 '10 #2
Airslash
221 New Member
Because that's not really an option I'm afraid;

We support 2 types of cameras, one analogue type that delivers an mjpeg stream directly to the hardware grabber card which in turn breaks it up in jpgs and saves it on harddisk, and digital cameras where we manually grab jpg images.
Either way due technical limits it's not always possible to grab a concrete videostream from the camera.

I've currently figured something out in the likes of this:
- source filter uses UDP to communicate with our application and ask by UDP every run where an image has been stored.
- that image gets added to the stream of data and passed to the avi mux
- the avi mux converts it to avi stream
- custom output filter puts the stream/frames on a socket
- client reads the frames and displayes them on the screen.
May 25 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
4294
by: agrsaurabh | last post by:
Hello Everybody, I have created an AVI Player using DirectShow. This player is working fine. I have also created a View Window (with class name CViewWnd) using CFrameWnd class. This view window is used in an application which plays its own customised files (of some other extensions) on this view window. Now:
0
2075
by: pps | last post by:
I've been away from MSFT s/w for a few years... I need to develop some filter and higher-level control code work for MCE 2005. Which development tool environment do I need to get in order to do this? I installed Visual Studio 2005 Express, but it doesn't include ATL (which the DirectShow samples use). So I'm ready to go shell out $$$ to buy the right tool - but I'm not sure what to get - it is not clear from MSFT's site, as they are...
4
2030
by: Tamir Khason | last post by:
Question: I have some custom video card with custom driver, which does not support DirectShow. How it possible (if it is) implement program using it within .NET enviroment? TNX -- Tamir Khason You want dot.NET? Just ask: "Please, www.dotnet.us "
0
1559
by: Nick Z. | last post by:
I need to use DirectShow and it is just a pain in the butt with C#. (since the managed version of dx doesnt have directshow) I'm thinking of different ways of getting DirectShow functionality. I just had this idea. What if I make a dll(?) in C++ that does all the DirectShow interaction and then I interop functions from this dll in my C# application? Is this possible? Anything I need to know before attempting this? I need some advice,...
0
1961
by: sengkok | last post by:
hi, i am using the directshow in C# to built a karaoke system,but i am facing a problem with the audio play in the video file (DAT format), some of the video file , i can control the music and vocal play by using the BALANCE in the directshow. but some of the video file will only play the music and without the vocal . i have no idea why this happen , it that because of different of mpeg format ? how can i know what mpeg format are using...
2
2321
by: Andrew Bullock | last post by:
Hi, I'm trying to use direct show to grab arbitrary frames from a DV .avi. I'm using the PlayWnd code from this example: http://www.codeproject.com/cs/media/directshownet.asp Currently an IGraphBuiler is cast to an IVideoWindow, which is passed the Handle of a picturebox to display the video in.
1
11604
by: Michael A. Covington | last post by:
I asked about this several months ago and got some useful advice, but now that we've had 4 months of progress and turnover, let me ask again... What's involved in using DirectShow to edit video? I have a collection of AVI files and need to write a program that will extract portions of the AVI files and segment them together in a specified way. I also need to preview them on-screen. I've been using Video for Windows (VfW, a.k.a....
7
4238
by: Dave | last post by:
Hi, can I use directshow in c#??? dose Microsoft still support direct show sdk or there is a new technology today??? what is the best way to draw on playing video and how can I do that??? Thanks
5
2704
by: Gustavo Arriola | last post by:
Hi! How I can reproduce a file of video using DirectShow? Thanks! Gustavo
4
26282
by: ink | last post by:
Hi All, I am trying to build an image capture user control using DirectShow to be used in an existing C# application. It needs to have a view finder/ preview window and be able to take still images.
0
8335
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8851
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8747
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8528
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8627
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7356
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6179
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
1737
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.