Adding video to PJSIP by libvlc

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

 



"start_video_encode" this is the function you have to code yourself with the
VLC tutorial.You will set the video ports and ips .. and start video
capturing /  video streaming..

Muge

On Fri, Aug 21, 2009 at 3:22 PM, SIDIMOULAY <sidimoulay2000 at hotmail.fr>wrote:

> Hi,
>
> Thank you very much, but I still have this:
>
> ../src/pjsua/pjsua_app.c: In function ?on_call_state?:
> ../src/pjsua/pjsua_app.c:2310: attention : implicit declaration of function ?start_video_encode?
> ../src/pjsua/pjsua_app.c:2285: attention : unused variable ?lvlcport?
> ../src/pjsua/pjsua_app.c:2282: attention : unused variable ?lvlcip?
> ../src/pjsua/pjsua_app.c:2274: attention : unused variable ?si?
> if test ! -d ../bin; then mkdir -p ../bin; fi
> gcc -o ../bin/pjsua-i686-pc-linux-gnu \
> 	     output/pjsua-i686-pc-linux-gnu/main.o  output/pjsua-i686-pc-linux-gnu/pjsua_app.o -L/home/ucef/Bureau/pjproject-1.4/pjlib/lib -L/home/ucef/Bureau/pjproject-1.4/pjlib-util/lib -L/home/ucef/Bureau/pjproject-1.4/pjnath/lib -L/home/ucef/Bureau/pjproject-1.4/pjmedia/lib -L/home/ucef/Bureau/pjproject-1.4/pjsip/lib -L/home/ucef/Bureau/pjproject-1.4/third_party/lib  -lpjsua-i686-pc-linux-gnu -lpjsip-ua-i686-pc-linux-gnu -lpjsip-simple-i686-pc-linux-gnu -lpjsip-i686-pc-linux-gnu -lpjmedia-codec-i686-pc-linux-gnu -lpjmedia-i686-pc-linux-gnu -lpjmedia-audiodev-i686-pc-linux-gnu -lpjnath-i686-pc-linux-gnu -lpjlib-util-i686-pc-linux-gnu -lresample-i686-pc-linux-gnu -lmilenage-i686-pc-linux-gnu -lsrtp-i686-pc-linux-gnu -lgsmcodec-i686-pc-linux-gnu -lspeex-i686-pc-linux-gnu -lilbccodec-i686-pc-linux-gnu -lg7221codec-i686-pc-linux-gnu -lportaudio-i686-pc-linux-gnu -lpj-i686-pc-linux-gnu -lm -lnsl -lrt -lpthread  -lasound
> output/pjsua-i686-pc-linux-gnu/pjsua_app.o: In function `on_call_state':
> pjsua_app.c:(.text+0x15be): undefined reference to `start_video_encode'
> collect2: ld a retourn? 1 code d'?tat d'ex?cution
> make[2]: *** [../bin/pjsua-i686-pc-linux-gnu] Erreur 1
> make[2]: quittant le r?pertoire ? /home/ucef/Bureau/pjproject-1.4/pjsip-apps/build ?
> make[1]: *** [pjsua] Erreur 2
> make[1]: quittant le r?pertoire ? /home/ucef/Bureau/pjproject-1.4/pjsip-apps/build ?
> make: *** [all] Erreur 1
>
> Regards
>
>
>
>
>
>
> pjsua_call is in the pjsua_internal.h
>
> write #include <pjsua-lib/pjsua_internal.h> at the top of the page
>
> Muge
>
>
>
> On Thu, Aug 20, 2009 at 9:14 PM, youssef azzouzi
> <sidimoulay2000 at hotmail.fr <http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org>>wrote:
>
> >*  Hi,
> *>*
> *>* I added this code to pjsua_app.c just after the call have been confirmed,
> *>* and it shows me this error:
> *>*
> *>* ../src/pjsua/pjsua_app.c: In function ?on_call_state?:
> *>* ../src/pjsua/pjsua_app.c:2280: erreur: ?pjsua_call? undeclared (first use in this function)
> *>* ../src/pjsua/pjsua_app.c:2280: erreur: (Each undeclared identifier is reported only once
> *>* ../src/pjsua/pjsua_app.c:2280: erreur: for each function it appears in.)
> *>* ../src/pjsua/pjsua_app.c:2280: erreur: ?call? undeclared (first use in this function)
> *>* ../src/pjsua/pjsua_app.c:2288: attention : implicit declaration of function ?acquire_call?
> *>* ../src/pjsua/pjsua_app.c:2310: attention : implicit declaration of function ?start_video_encode?
> *>* ../src/pjsua/pjsua_app.c:2285: attention : unused variable ?lvlcport?
> *>* ../src/pjsua/pjsua_app.c:2282: attention : unused variable ?lvlcip?
> *>* ../src/pjsua/pjsua_app.c:2274: attention : unused variable ?si?
> *>* make[2]: *** [output/pjsua-i686-pc-linux-gnu/pjsua_app.o] Erreur 1
> *>* make[2]: quittant le r?pertoire ? /home/ucef/Bureau/pjproject-1.4/pjsip-apps/build ?
> *>* make[1]: *** [pjsua] Erreur 2
> *>* make[1]: quittant le r?pertoire ? /home/ucef/Bureau/pjproject-1.4/pjsip-apps/build ?
> *>* make: *** [all] Erreur 1
> *>*
> *>* Please any ideas?
> *>* Regards
> *>*
> *>* --------------------------------------------------
> *>* From: "SIDIMOULAY" <sidimoulay2000@xxxxxxxxxx <http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org>>
> *>* Sent: Wednesday, August 19, 2009 3:09 PM
> *>* To: <pjsip at lists.pjsip.org <http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org>>
> *>* Subject: Adding video to PJSIP by libvlc
> *>*
> *>* > Hi,
> *>* >
> *>* > Thank you very much, I am working now to test your code, I hope that it
> *>* > does not bug in Linux
> *>* > The link bellow does not work:
> *>* > wiki.videolan.org/LibVLC_Tutorial_086c
> *>* >
> *>* > Regards
> *>* >>
> *>* >> ------------------------------
> *>* >>
> *>* >> Date: Wed, 19 Aug 2009 13:56:12 +0300
> *>* >> From: "P.Muge Ersoy" <muge.ersoy@xxxxxxxxx <http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org>>
> *>* >> Subject: Re: Adding video to PJSIP by libvlc
> *>* >> To: pjsip list <pjsip at lists.pjsip.org <http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org>>
> *>* >> Message-ID:
> *>* >> <ad39e2590908190356g7b2d846doea133ba91b27c809 at mail.gmail.com <http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org>>
> *>* >> Content-Type: text/plain; charset="utf-8"
> *>* >>
> *>* >> Hi;
> *>* >>
> *>* >> This is my sample code ;
> *>* >>
> *>* >> if (call_info.state == PJSIP_INV_STATE_CONFIRMED)
> *>* >>    {
> *>* >>        pjmedia_session *si = pjsua_call_get_media_session(call_id);
> *>* >>
> *>* >>
> *>* >>        const pjmedia_sdp_session *remote_sdp;
> *>* >>        const pjmedia_sdp_session *local_sdp;
> *>* >>        pj_status_t status;
> *>* >>        pjsua_call *call;
> *>* >>        pjsip_dialog *dlg;
> *>* >>        char *lvlcip;
> *>* >>        char *rvlcip;
> *>* >>
> *>* >>        int lvlcport;
> *>* >>        int rvlcport;
> *>* >>
> *>* >>        status = acquire_call("on_call_state()", call_id, &call, &dlg);
> *>* >>        if (status != PJ_SUCCESS){
> *>* >>        printf("acquire call edemedik\n\n");
> *>* >>        }
> *>* >>
> *>* >>        status = pjmedia_sdp_neg_get_active_remote(call->inv->neg,
> *>* >> &remote_sdp);
> *>* >>        if (status != PJ_SUCCESS){
> *>* >>        printf("Remote SDP alamad?k\n\n");
> *>* >>        }
> *>* >>        status = pjmedia_sdp_neg_get_active_local(call->inv->neg,
> *>* >> &local_sdp);
> *>* >>        if (status != PJ_SUCCESS){
> *>* >>        printf("Local SDP alamad?k\n\n");
> *>* >>        }
> *>* >>
> *>* >>     rvlcip = (char *) malloc ( remote_sdp->conn->addr.slen + 1);
> *>* >>
> *>* >> strncpy(rvlcip,remote_sdp->conn->addr.ptr,remote_sdp->conn->addr.slen);
> *>* >>     rvlcip[remote_sdp->conn->addr.slen] = '\0';
> *>* >>     printf("Remote IP %s \n\n", rvlcip );
> *>* >>     rvlcport = remote_sdp->media[1]->desc.port;
> *>* >>
> *>* >>
> *>* >>
> *>* >>      start_video_encode(rvlcip,rvlcport);
> *>* >>
> *>* >>
> *>* >>
> *>* >>
> *>* >>    }
> *>* >>
> *>* >> You can catch the port and ip from sdp negotiating..
> *>* >>
> *>* >> start_video_encode is using libvlc
> *>* >> http://wiki.videolan.org/LibVLC_Tutorial_086c might give you idea of what
> *>* >> you are trying to do..
> *>* >>
> *>* >> Regards
> *>* >> Muge
> *>* >>
> *>* >> On Wed, Aug 19, 2009 at 12:20 PM, youssef azzouzi
> *>* >> <sidimoulay2000 at hotmail.fr <http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org>
> *>* >>> wrote:
> *>* >>
> *>* >>>  Hi,
> *>* >>>
> *>* >>> I am trying to make PJSIP send video, I found that there are two ways,
> *>* >>> the
> *>* >>> first is to edit endpoint.c file and the other is to link libvlc with
> *>* >>> PJSIP,
> *>* >>> I am looking to add the video but I did not find any topic that can
> *>* >>> help.
> *>* >>> Waiting for your suggestions
> *>* >>>
> *>* >>> Regards
> *>* >>> ------------------------------
> *>* >>
> *>* >>
> *>* >>
> *>* >>
> *>* >
> *>* > __________ Information provenant d'ESET Smart Security, version de la base
> *>* > des signatures de virus 4347 (20090819) __________
> *>* >
> *>* > Le message a ?t? v?rifi? par ESET Smart Security.
> *>* >
> *>* > http://www.eset.com
> *>* >
> *>* >
> *>* >
> *>* >
> *>* > __________ Information provenant d'ESET Smart Security, version de la base
> *>* > des signatures de virus 4351 (20090820) __________
> *>* >
> *>* > Le message a ?t? v?rifi? par ESET Smart Security.
> *>* >
> *>* > http://www.eset.com
> *>* >
> *>* >
> *>* >
> *>*
> *>* __________ Information provenant d'ESET Smart Security, version de la base des signatures de virus 4351 (20090820) __________
> *>*
> *>* Le message a ?t? v?rifi? par ESET Smart Security.
> *>*
> *>* http://www.eset.com
> *>*
> *>*
> *>*
> *>* ------------------------------
> *>* Partagez vos souvenirs sur le Web avec les personnes de votre choix les
> *>* personnes de votre choix.<http://www.microsoft.com/northafrica/windows/windowslive/products/photos-share.aspx?tab=1>
> *>*
> *>* _______________________________________________
> *>* 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>
> *>* http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
> *>*
> *>*
> *
>
>
> ------------------------------
> Partagez vos souvenirs sur le Web avec les personnes de votre choix les
> personnes de votre choix.<http://www.microsoft.com/northafrica/windows/windowslive/products/photos-share.aspx?tab=1>
>
> __________ Information provenant d'ESET Smart Security, version de la base
> des signatures de virus 4354 (20090821) __________
>
> Le message a ?t? v?rifi? par ESET Smart Security.
>
> http://www.eset.com
>
>
> __________ Information provenant d'ESET Smart Security, version de la base
> des signatures de virus 4354 (20090821) __________
>
> Le message a ?t? v?rifi? par ESET Smart Security.
>
> http://www.eset.com
>
> _______________________________________________
> 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/20090821/ec529036/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