Posted: Mon Jul 14, 2008 7:09 pm Post subject: [Asterisk-video] amr audio continued
Hi Klaus,
I just tried ignoring the audio check and setting the
audioType,audioFormat,audioControl parameters anyways and then app_rtsp
will start getting the audio stream and I do hear audio in xlite. It's
a bit delayed and the quality is awful, but I can make out enough to
confirm that it is the actual audio stream from the camera. This also
means amr audio must be working in my asterisk install because the
camera sends amr and x-lite only has g711u enabled.
So apparently the check "if (sdp->audio->formats[i]->format &
chan->nativeformats)" shouldn't be failing. The question becomes, is
the check not written properly, or is my install of asterisk not
configured properly or not setting the nativeformats parameter properly?
I installed asterisk using the directions from http://sip.fontventa.com/
to build it with amr audio support. It's version 1.4.21
The value for sdp->audio->formats[i]->format is hex 0x2000 (8192 dec)
which is the proper value for amr so I don't think that is a problem.
My sip.conf enables all codecs and is very basic so it appears ok to me.
I am fairly new to asterisk and new to app_rtsp so I could be making a
total newb mistake.
Send asterisk-video mailing list submissions to
asterisk-video@lists.digium.com
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.digium.com/mailman/listinfo/asterisk-video
or, via email, send a message with subject or body 'help' to
asterisk-video-request@lists.digium.com
You can reach the person managing the list at
asterisk-video-owner@lists.digium.com
When replying, please edit your Subject line so it is more specific
than "Re: Contents of asterisk-video digest..."
Message: 1
Date: Mon, 14 Jul 2008 10:46:32 +0200
From: Klaus Darilion <klaus.mailinglists@pernau.at>
Subject: Re: [Asterisk-video] can't hear amr audio
To: Development discussion of video media support in Asterisk
<asterisk-video@lists.digium.com>
Message-ID: <487B1268.80606@pernau.at>
Content-Type: text/plain; charset=windows-1252; format=flowed
Which codec is: fmt 00002000 ? I think this is 2>>13 = AMR.
Thus I am irritated by " 0x580004 (ulaw|h263|h263p) to 0x0 (nothing)"
The 0x0 should be 0x2000 (AMR) - try to find out why the AMR bitmask
flag is lost when calling set_format().
regards
klaus
Andrew Buchanan schrieb:
Quote:
Hi,
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.
Quote:
------------------------
I compiled asterisk using the instructions to enable amr audio
Posted: Tue Jul 15, 2008 7:04 am Post subject: [Asterisk-video] amr audio continued
Andrew Buchanan wrote:
Quote:
Hi Klaus,
I just tried ignoring the audio check and setting the
audioType,audioFormat,audioControl parameters anyways and then app_rtsp
will start getting the audio stream and I do hear audio in xlite. It's
a bit delayed and the quality is awful, but I can make out enough to
confirm that it is the actual audio stream from the camera. This also
means amr audio must be working in my asterisk install because the
camera sends amr and x-lite only has g711u enabled.
Could you make some tests -e.g. playback of a video file with AMR audio
stream to verify if the quality is still bad (use mp4_play(), .3gp
videos for testing can be found with google)
You can also try to record the stream from the camera using mp4_save()
and then watch the stream using another player, e.g. VLC.
Have you tried connecting to the webcam directly e.g. with VLC? How is
the audioquality?
Quote:
So apparently the check "if (sdp->audio->formats[i]->format &
chan->nativeformats)" shouldn't be failing. The question becomes, is
the check not written properly, or is my install of asterisk not
configured properly or not setting the nativeformats parameter properly?
I think it is a bug in app_rtsp.
regards
Klaus
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum