<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 9pt;
font-family:新細明體
}
--></style>
</head>
<body class='hmmessage'>
Ok, I follow you instruction & patched Asterisk with AMR codec already, I think.<BR>
<BR>
But the result is the same, video is ok but no audio<BR>
<BR>
The console sow bellow:<BR>
<BR>
-- Executing [999@default:3] mp4play("SIP/cc100-0827a698", "/usr/vxi/asrvideo/video/welcome.3gp") in new stack<BR>[Mar 3 22:56:27] WARNING[15350]: channel.c:2781 set_format: Unable to find a codec translation path from unknown to amr<BR>[Mar 3 22:56:27] WARNING[15350]: app_mp4.c:564 mp4_play: mp4_play: Unable to set write format to AMR-NB!<BR>MP4ERROR: FindTrackId: Track index doesn't exist - track 2 type hint<BR>[Mar 3 22:56:27] WARNING[15350]: chan_sip.c:3707 sip_write: Asked to transmit frame type 8192, while native formats is 0x4 (ulaw)(4) read/write = 0x4 (ulaw)(4)/0x4 (ulaw)(4)<BR>[Mar 3 22:56:27] WARNING[15350]: chan_sip.c:3707 sip_write: Asked to transmit frame type 8192, while native formats is 0x4 (ulaw)(4) read/write = 0x4 (ulaw)(4)/0x4 (ulaw)(4)<BR>[Mar 3 22:56:28] WARNING[15350]: chan_sip.c:3707 sip_write: Asked to transmit frame type 8192, while native formats is 0x4 (ulaw)(4) read/write = 0x4 (ulaw)(4)/0x4 (ulaw)(4)<BR><BR>
The mp4info of welcome.3gp is as bellow:<BR>
# mp4info welcome.3gp<BR>mp4info version 1.5.0.1<BR>welcome.3gp:<BR>Track Type Info<BR>201 video H.263, 3.640 secs, 27 kbps, 176x144 @ 10.164835 fps<BR>65335 hint Payload H263-2000 for track 201<BR>101 audio AMR, 3.640 secs, 13 kbps, 8000 Hz<BR>65435 hint Payload AMR for track 101<BR>1 od Object Descriptors<BR>2 scene BIFS<BR><BR>
The result of core show codecs is as bellow<BR>
Disclaimer: this command is for informational purposes only.<BR> It does not indicate anything about your configuration.<BR> INT BINARY HEX TYPE NAME DESC<BR>--------------------------------------------------------------------------------<BR> 1 (1 << 0) (0x1) audio g723 (G.723.1)<BR> 2 (1 << 1) (0x2) audio gsm (GSM)<BR> 4 (1 << 2) (0x4) audio ulaw (G.711 u-law)<BR> 8 (1 << 3) (0x8) audio alaw (G.711 A-law)<BR> 16 (1 << 4) (0x10) audio g726aal2 (G.726 AAL2)<BR> 32 (1 << 5) (0x20) audio adpcm (ADPCM)<BR> 64 (1 << 6) (0x40) audio slin (16 bit Signed Linear PCM)<BR> 128 (1 << 7) (0x80) audio lpc10 (LPC10)<BR> 256 (1 << 8) (0x100) audio g729 (G.729A)<BR> 512 (1 << 9) (0x200) audio speex (SpeeX)<BR> 1024 (1 << 10) (0x400) audio ilbc (iLBC)<BR> 2048 (1 << 11) (0x800) audio g726 (G.726 RFC3551)<BR> 4096 (1 << 12) (0x1000) audio g722 (G722)<BR> 8192 (1 << 13) (0x2000) audio amr (AMR NB)<BR> 65536 (1 << 16) (0x10000) image jpeg (JPEG image)<BR> 131072 (1 << 17) (0x20000) image png (PNG image)<BR> 262144 (1 << 18) (0x40000) video h261 (H.261 Video)<BR> 524288 (1 << 19) (0x80000) video h263 (H.263 Video)<BR> 1048576 (1 << 20) (0x100000) video h263p (H.263+ Video)<BR> 2097152 (1 << 21) (0x200000) video h264 (H.264 Video)<BR><BR>
What else I can do? Million thanks for your kindly advise!<BR>
<BR>
Best Regard<BR>
Tony Wang<BR>
<BR> <BR>> Date: Wed, 3 Mar 2010 14:40:58 +0100<BR>> From: klaus.mailinglists@pernau.at<BR>> To: tonywang5671@hotmail.com<BR>> CC: asterisk-video@lists.digium.com<BR>> Subject: Re: [Asterisk-video] mp4play display video but no audio, help!<BR>> <BR>> Either you are using a wrong ASterisk version or you are not in the<BR>> Asterisk directory:<BR>> <BR>> <BR>> 3. ...<BR>> $ svn checkout http://svn.digium.com/svn/asterisk/branches/1.4 asterisk<BR>> $ cd asterisk/<BR>> <BR>> 4. add AMR to Asterisk<BR>> $ patch --dry-run -p0 < ../fontventa/amr/amr-asterisk-patch.txt<BR>> <BR>> <BR>> Or try to resolve it yourself: Take a look at the patch and see how the<BR>> files are referenced. Then make sure you are in the Asterisk source tree<BR>> and adjust the -p parameter of patch ("man patch" is your friend)<BR>> <BR>> klaus<BR>> <BR>> Am 03.03.2010 12:39, schrieb Wang Tony:<BR>> > Thank. May I ask what should I input when it ask file to patch for both <BR>> > commands:<BR>> > <BR>> > patch --dry-run -p0 < amr-asterisk-patch.txt<BR>> > can't find file to patch at input line 5<BR>> > Perhaps you used the wrong -p or --strip option?<BR>> > The text leading up to this was:<BR>> > --------------------------<BR>> > |Index: build_tools/embed_modules.xml<BR>> > |===================================================================<BR>> > |--- build_tools/embed_modules.xml (revision 81434)<BR>> > |+++ build_tools/embed_modules.xml (working copy)<BR>> > --------------------------<BR>> > File to patch:<BR>> > <BR>> > patch -p0 < amr-asterisk-patch.txt<BR>> > can't find file to patch at input line 5<BR>> > Perhaps you used the wrong -p or --strip option?<BR>> > The text leading up to this was:<BR>> > --------------------------<BR>> > |Index: build_tools/embed_modules.xml<BR>> > |===================================================================<BR>> > |--- build_tools/embed_modules.xml (revision 81434)<BR>> > |+++ build_tools/embed_modules.xml (working copy)<BR>> > --------------------------<BR>> > File to patch:<BR>> > <BR>> > Million thanks for your kindly advise!<BR>> > <BR>> > Best Regards<BR>> > Tony Wang<BR>> > <BR>> > <BR>> > > Date: Wed, 3 Mar 2010 12:32:03 +0100<BR>> > > From: klaus.mailinglists@pernau.at<BR>> > > To: tonywang5671@hotmail.com<BR>> > > CC: asterisk-video@lists.digium.com<BR>> > > Subject: Re: [Asterisk-video] mp4play display video but no audio, help!<BR>> > ><BR>> > > https://asteriskvideo.svn.sourceforge.net/svnroot/asteriskvideo/amr/<BR>> > ><BR>> > > Am 03.03.2010 12:04, schrieb Wang Tony:<BR>> > > > Hello Kiaus, thanks for our prompt reply.<BR>> > > ><BR>> > > > How to do that? Would you please advise the command or steps for that?<BR>> > > > Million thanks!<BR>> > > ><BR>> > > > Best Regard<BR>> > > > Tony Wang<BR>> > > ><BR>> > > > > Date: Wed, 3 Mar 2010 10:49:28 +0100<BR>> > > > > From: klaus.mailinglists@pernau.at<BR>> > > > > To: asterisk-video@lists.digium.com<BR>> > > > > CC: tonywang5671@hotmail.com<BR>> > > > > Subject: Re: [Asterisk-video] mp4play display video but no audio, <BR>> > help!<BR>> > > > ><BR>> > > > > Have you patched Asterisk with the AMR codec?<BR>> > > > ><BR>> > > > > klaus<BR>> > > > ><BR>> > > > > Am 03.03.2010 02:02, schrieb Wang Tony:<BR>> > > > > > Hello all, I am new to try app_mp4 at Asterisk & Ubuntu 8.04.<BR>> > > > > ><BR>> > > > > > I try to use mp4play to play a file, welcome.3gp at Asterisk <BR>> > v.14.21.1<BR>> > > > > > by xlite. The video display well on xlite but there is no audio.<BR>> > > > > ><BR>> > > > > > I found bellow message ar Asterisk console<BR>> > > > > ><BR>> > > > > > [Mar 3 08:53:02] WARNING[5920]: channel.c:2781 set_format: <BR>> > Unable to<BR>> > > > > > find a codec translation path from unknown to amr<BR>> > > > > > [Mar 3 08:53:02] WARNING[5920]: app_mp4.c:564 mp4_play: mp4_play:<BR>> > > > Unable<BR>> > > > > > to set write format to AMR-NB!<BR>> > > > > > [Mar 3 08:53:02] WARNING[5920]: chan_sip.c:3707 sip_write: Asked to<BR>> > > > > > transmit frame type 8192, while native formats is 0x4 (ulaw)(4)<BR>> > > > > > read/write = 0x4 (ulaw)(4)/0x4 (ulaw)(4)<BR>> > > > > > [Mar 3 08:53:02] WARNING[5920]: chan_sip.c:3707 sip_write: Asked to<BR>> > > > > > transmit frame type 8192, while native formats is 0x4 (ulaw)(4)<BR>> > > > > > read/write = 0x4 (ulaw)(4)/0x4 (ulaw)(4)<BR>> > > > > > [Mar 3 08:53:02] WARNING[5920]: chan_sip.c:3707 sip_write: Asked to<BR>> > > > > > transmit frame type 8192, while native formats is 0x4 (ulaw)(4)<BR>> > > > > > read/write = 0x4 (ulaw)(4)/0x4 (ulaw)(4)<BR>> > > > > ><BR>> > > > > > The result of mp4info of welcome.3gp is bellow<BR>> > > > > ><BR>> > > > > > # mp4info welcome.3gp<BR>> > > > > > mp4info version 1.5.0.1<BR>> > > > > > welcome.3gp:<BR>> > > > > > Track Type Info<BR>> > > > > > 201 video H.263, 3.640 secs, 27 kbps, 176x144 @ 10.164835 fps<BR>> > > > > > 65335 hint Payload H263-2000 for track 201<BR>> > > > > > 101 audio AMR, 3.640 secs, 13 kbps, 8000 Hz<BR>> > > > > > 65435 hint Payload AMR for track 101<BR>> > > > > > 1 od Object Descriptors<BR>> > > > > > 2 scene BIFS<BR>> > > > > ><BR>> > > > > > The result of codecs in Asterisk is bellow. It seems Asterisk have<BR>> > > > > > enabled amrnb<BR>> > > > > ><BR>> > > > > > core show codecs<BR>> > > > > > Disclaimer: this command is for informational purposes only.<BR>> > > > > > It does not indicate anything about your configuration.<BR>> > > > > > INT BINARY HEX TYPE NAME DESC<BR>> > > > > ><BR>> > > > <BR>> > --------------------------------------------------------------------------------<BR>> > > > > > 1 (1 << 0) (0x1) audio g723 (G.723.1)<BR>> > > > > > 2 (1 << 1) (0x2) audio gsm (GSM)<BR>> > > > > > 4 (1 << 2) (0x4) audio ulaw (G.711 u-law)<BR>> > > > > > 8 (1 << 3) (0x8) audio alaw (G.711 A-law)<BR>> > > > > > 16 (1 << 4) (0x10) audio g726aal2 (G.726 AAL2)<BR>> > > > > > 32 (1 << 5) (0x20) audio adpcm (ADPCM)<BR>> > > > > > 64 (1 << 6) (0x40) audio slin (16 bit Signed Linear PCM)<BR>> > > > > > 128 (1 << 7) (0x80) audio lpc10 (LPC10)<BR>> > > > > > 256 (1 << 8) (0x100) audio g729 (G.729A)<BR>> > > > > > 512 (1 << 9) (0x200) audio speex (SpeeX)<BR>> > > > > > 1024 (1 << 10) (0x400) audio ilbc (iLBC)<BR>> > > > > > 2048 (1 << 11) (0x800) audio g726 (G.726 RFC3551)<BR>> > > > > > 4096 (1 << 12) (0x1000) audio g722 (G722)<BR>> > > > > > 8192 (1 << 13) (0x2000) audio amr (AMR NB)<BR>> > > > > > 65536 (1 << 16) (0x10000) image jpeg (JPEG image)<BR>> > > > > > 131072 (1 << 17) (0x20000) image png (PNG image)<BR>> > > > > > 262144 (1 << 18) (0x40000) video h261 (H.261 Video)<BR>> > > > > > 524288 (1 << 19) (0x80000) video h263 (H.263 Video)<BR>> > > > > > 1048576 (1 << 20) (0x100000) video h263p (H.263+ Video)<BR>> > > > > > 2097152 (1 << 21) (0x200000) video h264 (H.264 Video)<BR>> > > > > ><BR>> > > > > > Any idea? Million thanks for help!<BR>> > > > > ><BR>> > > > > > Best Regard<BR>> > > > > > Tony Wang<BR>> > > > > ><BR>> > > > > ><BR>> > > > > ><BR>> > > > <BR>> > ------------------------------------------------------------------------<BR>> > > > > > 除了電子信箱,還有許多有用的功能。快來使用免費的 Windows Live<BR>> > > > Hotmail。<BR>> > > > > > 馬上註冊 <https://signup.live.com/signup.aspx?id=60969><BR>> > > > > ><BR>> > > ><BR>> > > > <BR>> > ------------------------------------------------------------------------<BR>> > > > Hotmail 信箱採用微軟資訊安全技術 現在就使用<BR>> > > > <https://signup.live.com/signup.aspx?id=60969><BR>> > <BR>> > ------------------------------------------------------------------------<BR>> > Hotmail 強大的垃圾信件管理功能,值得你信賴。 馬上註冊 <BR>> > <https://signup.live.com/signup.aspx?id=60969><BR>                                            <br /><hr />除了電子信箱,還有許多有用的功能。快來使用免費的 Windows Live Hotmail。 <a href='https://signup.live.com/signup.aspx?id=60969' target='_new'>馬上註冊</a></body>
</html>