Re: [Opalvoip-user] Write opal codec based on Direct Show filter ?
Brought to you by:
csoutheren,
rjongbloed
From: Robert J. <ro...@vo...> - 2010-05-07 22:03:48
|
If you write a true plug in (that is a separate DLL that is loaded at run time) it might be a little easier that integrating at the OPAL source code level. That way you can use pre-built executables that use OPAL such as OpenPhone. I have been meaning to add a "template" file for people to start with when writing new plug ins, I will try and get that done in the next 24 hours. As for the DirectShow graphs, yes, that is pretty much exactly what is required. Provided there are such things as an RTP_Source_Filter and RTP_Writer. I know I couldn't see such things when I was looking. Mind you I wasn't looking THAT hard either. Robert Jongbloed OPAL/OpenH323/PTLib Architect and Co-founder. _____ From: Quyet Nguyen Duc [mailto:qu...@ne...] Sent: Saturday, May 08, 2010 7:15 AM To: opa...@li... Subject: Re: [Opalvoip-user] Write opal codec based on Direct Show filter ? Unfortunately I'm far from an expert in DirectShow. But since I'm getting paid working on it, I hoped that I can have things contributed back to the community at the end of the project. We're working on a HD conference system and my current task is to make a prototype, given a Directshow video encoder. I was attracted by opal's rich feature and decided to choose it as underlying API. I've spent some time on the opal lib and I must say I'm a little overwhelmed by how big opal is. Afaik, this *might* be a solution to my problem: I'll need to write a plugin codec: Let call it MyH264Transcoder:: OpalStreamedTranscoder, OpalPluginTranscoder Since it's based on DirectShow, MyH264Transcoder should have a filter graph, and since the Convert function take RTP_DataFrame as input/output, the graph should be like this: RTP_Source_Filter --> Scaler_Filter --> My_DS_H264_Filter --> RTP_Writer Am I misunderstood something ? And compare to the "normal" DS app: Capture_Source --> Video_Encoder --> Writer, should there be a performance hit ? Thanks and best regards, On Fri, May 7, 2010 at 11:47 PM, Robert Jongbloed <ro...@vo...> wrote: Unfortunately, there is no quick and dirty way. At least not quick, definitely dirty! :-) I tried a while back to do an OPAL plug in for DirectShow filters, but there was simply not enough information/documentation on DirectShow for me to figure it out in less than weeks. The main thing I could not figure out was how to inject YUV into the graph. Getting data out was OK as the camera grabber examples showed that. Are you an expert in DirectShow? Robert Jongbloed OPAL/OpenH323/PTLib Architect and Co-founder. _____ From: Quyet Nguyen Duc [mailto:qu...@ne...] Sent: Friday, May 07, 2010 8:23 PM To: opa...@li... Subject: [Opalvoip-user] Write opal codec based on Direct Show filter ? Hi everyone, I have a H264 encoder in DirectShow filter form. Any quick and dirty way to wrap it as opal codec ? Thanks and best regards, ----------- Quyet Nguyen Duc NextG Solutions Mobile: (84)983587112 Skype: quyet.nguyenduc ---------------------------------------------------------------------------- -- _______________________________________________ Opalvoip-user mailing list Opa...@li... https://lists.sourceforge.net/lists/listinfo/opalvoip-user ----------- Quyet Nguyen Duc NextG Solutions Mobile: (84)983587112 Skype: quyet.nguyenduc |