Hi. I am going to add h264 capability to h323 endpoint. i create a class that drive from H323VideoCapability,
--------------------------------------------------------------------------------------------------------------------------------------
class My_H264Capability : public H323VideoCapability { PCLASSINFO(My_H264Capability,H323VideoCapability) public: My_H264Capability();
virtual PObject * Clone() const;
virtual PString GetFormatName() const;
virtual H323Codec* CreateCodec(H323Codec::Direction direction) const;
virtual unsigned int GetSubType() const;
virtual PBoolean OnSendingPDU(H245_VideoMode&) const; };
H323_REGISTER_CAPABILITY(My_H264Capability,"h.264")
----------------------------------------------------------------------------------------------------------------------------
and when i add it to endpoint capability via AddCapability(new My_H264Capability()) ;
it does not work.
what should i do ? Help me please.
I’m confused, why would you not use the H.264 codec plugin in the plugin directory?
You will need to compile both the helper and library and you will need FFMPEG and X264. Drop the helper executable and .so or .dll (with FFMEG/X264) into your application directory or set the PTLIBPLUGINDIR environmental variable.
If you are using windows you can use this precompiled version.
http://www.h323plus.org/source/download/ffmpeg_x264.zip
There has been some reports that x264 v107 is a little buggy but if you compile with a version between 101 and 106 that you should be fine.
Simon
From: h323plus-bounces@lists.packetizer.com [mailto:h323plus-bounces@lists.packetizer.com] On Behalf Of Majid Sadeghi Alavijeh Sent: 03 September 2011 02:34 To: h323plus@lists.packetizer.com Subject: [h323plus] Help About Add H.264 Capability
Hi. I am going to add h264 capability to h323 endpoint. i create a class that drive from H323VideoCapability,
--------------------------------------------------------------------------------------------------------------------------------------
class My_H264Capability : public H323VideoCapability { PCLASSINFO(My_H264Capability,H323VideoCapability) public: My_H264Capability();
virtual PObject * Clone() const;
virtual PString GetFormatName() const;
virtual H323Codec* CreateCodec(H323Codec::Direction direction) const;
virtual unsigned int GetSubType() const;
virtual PBoolean OnSendingPDU(H245_VideoMode&) const; };
H323_REGISTER_CAPABILITY(My_H264Capability,"h.264")
----------------------------------------------------------------------------------------------------------------------------
and when i add it to endpoint capability via AddCapability(new My_H264Capability()) ;
it does not work.
what should i do ? Help me please.
participants (2)
-
Majid Sadeghi Alavijeh
-
Simon Horne