thus these two machines should have an rtp session with codec speex_nb[1] then machine A and B
[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