linphone-developers
[Top][All Lists]
Advanced

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

Re: [Linphone-developers] how to use mediastreamer2 tutorial program-- m


From: Wu Shan
Subject: Re: [Linphone-developers] how to use mediastreamer2 tutorial program-- mediastream.c
Date: Wed, 29 Aug 2012 22:40:23 +0800

Hi, 
       I figured out that if I want to make example program, mediastream work, 

I should issue command at two different machines:

Machine A  ./mediastream --local 5010 --remote 10.10.104.199:6014 --payload 110
Machine B  ./mediastream --local 6014 --remote 10.10.104.198:5010 --payload 110

thus these two machines should have an rtp session with codec speex_nb[1] then machine A and B 

should be able to talk to each other. 

reference: http://blog.sina.com.cn/s/blog_59d649610100diua.html

[1] payload type index is set by function rtp_profile_set_payload( ) defined in payloadtype.h 

        rtp_profile_set_payload(&av_profile,110,&payload_type_speex_nb);
        rtp_profile_set_payload(&av_profile,111,&payload_type_speex_wb);
        rtp_profile_set_payload(&av_profile,112,&payload_type_ilbc);
        rtp_profile_set_payload(&av_profile,113,&payload_type_amr);
        rtp_profile_set_payload(&av_profile,114,args->custom_pt);
        rtp_profile_set_payload(&av_profile,115,&payload_type_lpc1015);
#ifdef VIDEO_ENABLED
#if defined (__ios) && defined (HAVE_X264)
        libmsx264_init(); /*no plugin on IOS*/
#endif
        rtp_profile_set_payload(&av_profile,26,&payload_type_jpeg);
        rtp_profile_set_payload(&av_profile,98,&payload_type_h263_1998);
        rtp_profile_set_payload(&av_profile,97,&payload_type_theora);
        rtp_profile_set_payload(&av_profile,99,&payload_type_mp4v);
        rtp_profile_set_payload(&av_profile,100,&payload_type_x_snow);
        rtp_profile_set_payload(&av_profile,102,&payload_type_h264);
        rtp_profile_set_payload(&av_profile,103,&payload_type_vp8);

  Please let me know if I understand it in a wrong way. Thank you very much !!



2012/8/28 Wu Shan <address@hidden>
Hi all, 

         I was trying to learn how to use mediastreamer2 library to make an easy

rtp program to send and receive the rtp packet. Based on the usage instruction, 

I issued command

#less /proc/asound/cards 

and figured out my sound card's name is  ENS1371

then I run the program with following input command:

#sudo ./mediastream --local 222 --remote TargetIP:222 --capture-card ENS1371

and it throws following ortp warning messages to me:


Remote addr: ip=TargetIP port=222
ortp-message-Mediastreamer2 2.8.2 (git: 2.8.2-120-g985da5a) starting.
ortp-message-Registering all soundcard handlers
ortp-message-Card 'OSS: /dev/dsp' added
ortp-message-Registering all webcam handlers
ortp-message-Webcam StaticImage: Static picture added
ortp-message-Loading ms plugins from [/usr/local/lib/mediastreamer/plugins]
ortp-message-Cannot open directory /usr/local/lib/mediastreamer/plugins: No such file or directory
ortp-message-ms_init() done
ortp-warning-no card with id ens1371
ortp-warning-cannot set noise gate mode to [0] because no volume send
ortp-warning-cannot set echo limiter to mode [0] because no volume send



Please teach me how to issue to correct command, so I can run this example program...

thanks in advance!!

                                                                                                                                           cheers!!
 



--
“This life always seems to me to be a continuing process of education 

and development. What we are preparing for, none of us can be sure.

But, that we must do our best while we are here and develop all our 

capacities is absolutely certain. We face whatever we have to face in

 this life. And if we do it bravely and sincerely, we’re probably

 accomplishing that growth which we were put here to accomplish.”

~Eleanor Roosevelt 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]