Click here to Skip to main content
14,331,612 members
Rate this:
Please Sign up or sign in to vote.
See more:
Hi everyone,

I am now developing an conferencing application which use webcam as a video device. I am able to preview the webcam and capture image from it using directshow following the article here: DirectX.Capture Class Library[^]

The directshow lib saves the video directly to my disk and I cannot find a way to get the video stream directly from it. I try to send the video by sending it frame by frame in JPEG format using RTP. These frames are images I captured from the webcam. I know that I should compress it as MJPEG or MPEG but I cannot find any codec capable of doing so. And unfortunately, I even cannot successfully viewing the video on the receiver side. There is error said "Invalid parameters" when I try to save received RTP packets back to JPEG format for viewing.

So could you tell me which step I have to do to get this done? I searched google for a days and cannot find an answer. Please help me out.
Thanks in advance.
Posted
Updated 23-Feb-11 0:09am
v3
Comments
mohamedhbmaam 25-Feb-11 23:31pm
   
i have a project uses the webcam to send pictures repeatedly thats appear like a video
compress the pics by 7ZIP(open source) the receiver receive the img decompressed and print it
here the project http://www.megaupload.com/?d=T2UQNBJY hope this kind of help

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

try x624 codec, it's very usefull for things like that

VLC streams quite nice on rtp
   

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




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100