Click here to Skip to main content
15,900,907 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello, I am using VC++ 6.0. How to record internet stream(video) in C++/COM? Are there any libraries/API for this task? internet stream can be in any format, or if still insisted, in .flv format. Any tutorial links or tips are welcome as well. So far I tried to establish a connection to a server using CMySession(derived from CInternetSession). But I am stuck here, how to detect a stream(from the server), and then write that stream into a file.
Posted
Updated 30-Apr-12 1:32am
v2

1 solution

How about DirectShow[^]?
 
Share this answer
 
Comments
stib_markc 2-May-12 0:22am    
DirectShow can be used for recording streams coming from an input device (say webcam, camcorder, dvds etc) but I am not sure if it works for recording internet media stream. I didn't find any articles/samples/tutorials on this topic.
Code-o-mat 2-May-12 3:22am    
As far as i know, it depends only on what you put in the graph. You can render streams from an URL, and to record it you can e.g. replace the renderer filter with a compressor and disk-writer filter. I see no reason why that wouldn't work.
stib_markc 2-May-12 3:52am    
Ok, if it works, what are the necessary components for the task? (I am new to COM and directshow as well. I am currently learning from tutorials provided by MSDN.)
Code-o-mat 2-May-12 4:43am    
Well, if by "components" you mean this, then all you will need is some version of Visual Studio (although you probably can use some other IDE if you like) and the Windows SDK (see here: http://msdn.microsoft.com/en-us/windows/aa904949.aspx ) which includes the DirectShow API.
stib_markc 2-May-12 4:52am    
No, I am currently working on VC++6.0, I do not hvae windows sdk, although i can install one after downloading. What I meant about components was "any specific api/classes/procedure or an example sample(if possible)"; also will SDK for Windows-7 work in XP/VS6.0??

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900