Create Video media stream

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Nanang ;

Actually i have embedded h263 codec into the media codec list.

v=0
o=- 3431149464 3431149464 IN IP4 192.168.0.220
s=pjmedia
c=IN IP4 192.168.0.220
t=0 0
m=audio 4000 RTP/AVP 103  102  104  117  3  34  0  8  9  101
a=rtcp:4001 IN IP4 192.168.0.220
a=rtpmap:103 speex/16000
a=rtpmap:102 speex/8000
a=rtpmap:104 speex/32000
a=rtpmap:117 iLBC/8000
a=fmtp:117 mode=30
a=rtpmap:3 GSM/8000
*a=rtpmap:34 H263/90000*
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:9 G722/8000
a=sendrecv
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15

Now i am trying to make the video media line . But i guess there is a
problem with fmt_count number with video.. I d like to see "
"m=video 4000  " some where in the sdp file when i code "pj_strdup(pool,
&mvideo->desc.media, &STR_VIDEO); "

am i wrong ?

Regards
Muge


On Mon, Sep 22, 2008 at 10:57 PM, Nanang Izzuddin <nanang at pjsip.org> wrote:

> Hi,
>
> The doc of pjmedia SDP API:
> http://www.pjsip.org/pjmedia/docs/html/group__PJMEDIA__SDP.htm. It
> seems you need to add some formats of the video media, e.g: video
> codec and its attributes, you can see how pjmedia_endpt_create_sdp()
> adds some media formats to audio media. Adding video feature could be
> a very long long way, e.g: you may need to create a separate stream
> module for video stream. Good luck!
>
> Regards,
> nanang
>
>
> On Tue, Sep 23, 2008 at 1:44 AM, P.Muge Ersoy <muge.ersoy at gmail.com>
> wrote:
> > Hi All;
> >
> > I am trying to add video codecs to PJSIP.. I am editing endpoint.c file.
> I
> > added    pjmedia_sdp_media *maudio;     pjmedia_sdp_media *mvideo;
>  together
> > , also made all allocations which was made for the only
> pjmedia_sdp_media.
> > But when i write "sdp->media_count = 2;" it gaves sdp validation
> assertion
> > because of the 0 fmt_count. My question is ,   Is there any APIs of pjsua
> to
> > edit pjmedia sdp media struct to add video line in sdp?
> >
> > My question would be so general i would be please if you lead me to
> useful
> > way.
> >
> > Thanks
> > Muge
> >
> > _______________________________________________
> > Visit our blog: http://blog.pjsip.org
> >
> > pjsip mailing list
> > pjsip at lists.pjsip.org
> > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
> >
> >
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080923/96fb1d3c/attachment-0001.html 


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux