[Asterisk-video] mp4play display video but no audio, help!

Wang Tony tonywang5671 at hotmail.com
Wed Mar 3 09:02:27 CST 2010


Ok, I follow you instruction & patched Asterisk with AMR codec already, I think.

 

But the result is the same, video is ok but no audio

 

The console sow bellow:

 

    -- Executing [999 at default:3] mp4play("SIP/cc100-0827a698", "/usr/vxi/asrvideo/video/welcome.3gp") in new stack
[Mar  3 22:56:27] WARNING[15350]: channel.c:2781 set_format: Unable to find a codec translation path from unknown to amr
[Mar  3 22:56:27] WARNING[15350]: app_mp4.c:564 mp4_play: mp4_play:     Unable to set write format to AMR-NB!
MP4ERROR: FindTrackId: Track index doesn't exist - track 2 type hint
[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)
[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)
[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)


The mp4info of welcome.3gp is as bellow:

# mp4info welcome.3gp
mp4info version 1.5.0.1
welcome.3gp:
Track   Type    Info
201     video   H.263, 3.640 secs, 27 kbps, 176x144 @ 10.164835 fps
65335   hint    Payload H263-2000 for track 201
101     audio   AMR, 3.640 secs, 13 kbps, 8000 Hz
65435   hint    Payload AMR for track 101
1       od      Object Descriptors
2       scene   BIFS


The result of core show codecs is as bellow

Disclaimer: this command is for informational purposes only.
        It does not indicate anything about your configuration.
        INT    BINARY        HEX   TYPE       NAME   DESC
--------------------------------------------------------------------------------
          1 (1 <<  0)      (0x1)  audio       g723   (G.723.1)
          2 (1 <<  1)      (0x2)  audio        gsm   (GSM)
          4 (1 <<  2)      (0x4)  audio       ulaw   (G.711 u-law)
          8 (1 <<  3)      (0x8)  audio       alaw   (G.711 A-law)
         16 (1 <<  4)     (0x10)  audio   g726aal2   (G.726 AAL2)
         32 (1 <<  5)     (0x20)  audio      adpcm   (ADPCM)
         64 (1 <<  6)     (0x40)  audio       slin   (16 bit Signed Linear PCM)
        128 (1 <<  7)     (0x80)  audio      lpc10   (LPC10)
        256 (1 <<  8)    (0x100)  audio       g729   (G.729A)
        512 (1 <<  9)    (0x200)  audio      speex   (SpeeX)
       1024 (1 << 10)    (0x400)  audio       ilbc   (iLBC)
       2048 (1 << 11)    (0x800)  audio       g726   (G.726 RFC3551)
       4096 (1 << 12)   (0x1000)  audio       g722   (G722)
       8192 (1 << 13)   (0x2000)  audio        amr   (AMR NB)
      65536 (1 << 16)  (0x10000)  image       jpeg   (JPEG image)
     131072 (1 << 17)  (0x20000)  image        png   (PNG image)
     262144 (1 << 18)  (0x40000)  video       h261   (H.261 Video)
     524288 (1 << 19)  (0x80000)  video       h263   (H.263 Video)
    1048576 (1 << 20) (0x100000)  video      h263p   (H.263+ Video)
    2097152 (1 << 21) (0x200000)  video       h264   (H.264 Video)


What else I can do? Million thanks for your kindly advise!

 

Best Regard

Tony Wang


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


More information about the asterisk-video mailing list