<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
pre
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Hi,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<pre><font size=2 face="Courier New"><span style='font-size:10.0pt'>My camera (a Vivotek PZ7152) is set to AMR audio and when app_rtsp connects it correctly identifies an audio track containing amr audio AMR/8000, but I get no audio, only video. I would appreciate some help or suggestions to get audio working.<o:p></o:p></span></font></pre>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>------------------------<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I compiled asterisk using the instructions to enable amr
audio<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><a href="http://sip.fontventa.com/svn/asterisk/amr/README">http://sip.fontventa.com/svn/asterisk/amr/README</a><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>and I added the octet-aligned setting, which according to
the sdp from the camera is the correct setting.<o:p></o:p></span></font></p>
<pre><font size=2 face="Courier New"><span style='font-size:10.0pt'>[amr]<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>octet-aligned=1<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>------------------------<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>I’ve done some debugging in app_rtsp.c and found that:<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>This comparision ‘<font
color=blue><span style='color:blue'>if</span></font> (sdp->audio->formats[i]->format & chan->nativeformats)’ in app_rtsp.c fails.<o:p></o:p></span></font></pre><pre><font
size=2 color=blue face="Courier New"><span style='font-size:10.0pt;color:blue'><o:p> </o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>the value of format is 0x00002000<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>the value of nativeformats is 0x00580004<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>I also get this warning<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>[Jul 11 16:36:45] WARNING[31498]: channel.c:2800 set_format: Unable to find a codec translation path from 0x580004 (ulaw|h263|h263p) to 0x0 (nothing)<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>I’m not sure why only ulaw,h263,h263p show up, but they are the only protocols I have enabled in xlite, so that could be it, but the 0x0 (nothing) I don’t know.<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>Some debug code (my app_rtsp line #’s might be off a bit as I added some debug statements)<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>[Jul 11 16:36:45] DEBUG[31498]: app_rtsp.c:421 RtspPlayerDescribe: >DESCRIBE [/live2.sdp]<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>[Jul 11 16:36:45] DEBUG[31498]: app_rtsp.c:442 RtspPlayerDescribe: <DESCRIBE [/live2.sdp]<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>[Jul 11 16:36:45] DEBUG[31498]: app_rtsp.c:1081 rtsp_play: -rtsp play loop [0]<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>[Jul 11 16:36:45] DEBUG[31498]: app_rtsp.c:1190 rtsp_play: -Receiving describe<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>[Jul 11 16:36:45] DEBUG[31498]: app_rtsp.c:744 CreateSDP: -line [v=0]<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>[Jul 11 16:36:45] DEBUG[31498]: app_rtsp.c:744 CreateSDP: -line [o=RTSP 1215786675 889 IN IP4 0.0.0.0]<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>[Jul 11 16:36:45] DEBUG[31498]: app_rtsp.c:744 CreateSDP: -line [s=RTSP server]<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>[Jul 11 16:36:45] DEBUG[31498]: app_rtsp.c:744 CreateSDP: -line [c=IN IP4 0.0.0.0]<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>[Jul 11 16:36:45] DEBUG[31498]: app_rtsp.c:744 CreateSDP: -line [t=0 0]<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>[Jul 11 16:36:45] DEBUG[31498]: app_rtsp.c:744 CreateSDP: -line [a=charset:Shift_JIS]<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>[Jul 11 16:36:45] DEBUG[31498]: app_rtsp.c:744 CreateSDP: -line [a=range:npt=0-]<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>[Jul 11 16:36:45] DEBUG[31498]: app_rtsp.c:744 CreateSDP: -line [a=control:*]<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>[Jul 11 16:36:45] DEBUG[31498]: app_rtsp.c:744 CreateSDP: -line [a=etag:1234567890]<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>[Jul 11 16:36:45] DEBUG[31498]: app_rtsp.c:744 CreateSDP: -line [m=video 0 RTP/AVP 96]<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>[Jul 11 16:36:45] DEBUG[31498]: app_rtsp.c:689 CreateMedia: -creating media [1,m=video 0 RTP/AVP 96]<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>[Jul 11 16:36:45] DEBUG[31498]: app_rtsp.c:744 CreateSDP: -line [b=AS:0]<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>[Jul 11 16:36:45] DEBUG[31498]: app_rtsp.c:744 CreateSDP: -line [a=rtpmap:96 MP4V-ES/30000]<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>[Jul 11 16:36:45] DEBUG[31498]: app_rtsp.c:744 CreateSDP: -line [a=control:trackID=2]<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>[Jul 11 16:36:45] DEBUG[31498]: app_rtsp.c:744 CreateSDP: -line [a=fmtp:96 profile-level-id=3;config=000001B003000001B2464D5F5047204D6F6465000001B509000001000000012000C48881F450A041E1463F;decode_buf=76800]<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>[Jul 11 16:36:45] DEBUG[31498]: app_rtsp.c:744 CreateSDP: -line [m=audio 0 RTP/AVP 97]<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>[Jul 11 16:36:45] DEBUG[31498]: app_rtsp.c:689 CreateMedia: -creating media [1,m=audio 0 RTP/AVP 97]<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>[Jul 11 16:36:45] DEBUG[31498]: app_rtsp.c:744 CreateSDP: -line [b=AS:13]<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>[Jul 11 16:36:45] DEBUG[31498]: app_rtsp.c:744 CreateSDP: -line [a=rtpmap:97 AMR/8000]<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>[Jul 11 16:36:45] DEBUG[31498]: app_rtsp.c:744 CreateSDP: -line [a=control:trackID=4]<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>[Jul 11 16:36:45] DEBUG[31498]: app_rtsp.c:744 CreateSDP: -line [a=maxptime:200]<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>[Jul 11 16:36:45] DEBUG[31498]: app_rtsp.c:744 CreateSDP: -line [a=fmtp:97 decode_buf=400;octet-align=1]<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>[Jul 11 16:36:45] DEBUG[31498]: app_rtsp.c:744 CreateSDP: -line [1F450A041E1463F;decode_buf=76800]<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>[Jul 11 16:36:45] DEBUG[31498]: app_rtsp.c:744 CreateSDP: -line [m=audio 0 RTP/AVP 97]<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>[Jul 11 16:36:45] DEBUG[31498]: app_rtsp.c:689 CreateMedia: -creating media [1,m=audio 0 RTP/AVP 97]<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>[Jul 11 16:36:45] DEBUG[31498]: app_rtsp.c:744 CreateSDP: -line [b=AS:13]<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>[Jul 11 16:36:45] DEBUG[31498]: app_rtsp.c:744 CreateSDP: -line [a=rtpmap:97 AMR/8000]<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>[Jul 11 16:36:45] DEBUG[31498]: app_rtsp.c:744 CreateSDP: -line [a=control:trackID=4]<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>[Jul 11 16:36:45] DEBUG[31498]: app_rtsp.c:744 CreateSDP: -line [a=maxptime:200]<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>[Jul 11 16:36:45] DEBUG[31498]: app_rtsp.c:744 CreateSDP: -line [a=fmtp:97 decode_buf=400;octet-align=1]<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>[Jul 11 16:36:45] DEBUG[31498]: app_rtsp.c:1249 rtsp_play: -audio [8192,97,trackID=4]<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>[Jul 11 16:36:45] DEBUG[31498]: app_rtsp.c:1264 rtsp_play: !(sdp->audio->formats[i]->format & chan->nativeformats) fmt 00002000 nfmt 00580004 -audio [97,trackID=4]<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>[Jul 11 16:36:45] DEBUG[31498]: app_rtsp.c:1274 rtsp_play: -video [4194304,96,trackID=2]<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>[Jul 11 16:36:45] WARNING[31498]: channel.c:2800 set_format: Unable to find a codec translation path from 0x580004 (ulaw|h263|h263p) to 0x0 (nothing)<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>[Jul 11 16:36:45] DEBUG[31498]: app_rtsp.c:505 RtspPlayerSetupVideo: -SETUP VIDEO [trackID=2]<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>[Jul 11 16:36:45] DEBUG[31498]: app_rtsp.c:557 RtspPlayerPlay: -PLAY [/live2.sdp]<o:p></o:p></span></font></pre></div>
</body>
</html>