[Asterisk-video] 2 newbie questions
Ivo Zivkov
asterisk at avmedia.org
Sun Nov 11 15:58:58 CST 2007
Sorry if this has been covered. I am just looking for a directions on
how to approach this, not an actual solution.
2 questions:
1. What do I use to transcode mp3 stream to a codec asterisk understands?
2. Even if the codec of the file matches, still cannot hear it. what I
am doing wrong?
I am using live555MediaServer. In the first case, obviously codec
negotiation fails, as can be seen from the asterisk output below. I
assume I need some transcoding or translating module. What is it, and
how do I install it.
Here is my dailplan entry:
exten => 900,2,rtsp(rtsp://192.168.1.240/lili.mp3)
Here is the asterisk output:
[Nov 11 16:40:17] WARNING[12875]: app_rtsp.c:1166 rtsp_play: responseLen
<163>
[Nov 11 16:40:17] WARNING[12875]: app_rtsp.c:749 CreateSDP: -line [v=0]
[Nov 11 16:40:17] WARNING[12875]: app_rtsp.c:749 CreateSDP: -line [o=-
1194821877196139 1 IN IP4 192.168.1.240]
[Nov 11 16:40:17] WARNING[12875]: app_rtsp.c:749 CreateSDP: -line
[s=MPEG-1 or 2 Audio, streamed by the LIVE555 Media Server]
[Nov 11 16:40:17] WARNING[12875]: app_rtsp.c:749 CreateSDP: -line
[i=lili.mp3]
[Nov 11 16:40:17] WARNING[12875]: app_rtsp.c:749 CreateSDP: -line [t=0 0]
[Nov 11 16:40:17] WARNING[12875]: app_rtsp.c:749 CreateSDP: -line
[a=tool:LIVE555 Streaming Media v2007.07.01]
[Nov 11 16:40:17] WARNING[12875]: app_rtsp.c:749 CreateSDP: -line
[a=type:broadcast]
[Nov 11 16:40:17] WARNING[12875]: app_rtsp.c:749 CreateSDP: -line
[a=control:*]
[Nov 11 16:40:17] WARNING[12875]: app_rtsp.c:749 CreateSDP: -line
[a=range:npt=0-190.351]
[Nov 11 16:40:17] WARNING[12875]: app_rtsp.c:749 CreateSDP: -line
[a=x-qt-text-nam:MPEG-1 or 2 Audio, streamed by the LIVE555 Media Server]
[Nov 11 16:40:17] WARNING[12875]: app_rtsp.c:749 CreateSDP: -line
[a=x-qt-text-inf:lili.mp3]
[Nov 11 16:40:17] WARNING[12875]: app_rtsp.c:749 CreateSDP: -line
[m=audio 0 RTP/AVP 14]
[Nov 11 16:40:17] WARNING[12875]: app_rtsp.c:694 CreateMedia: -creating
media [1,m=audio 0 RTP/AVP 14]
[Nov 11 16:40:17] WARNING[12875]: app_rtsp.c:749 CreateSDP: -line [c=IN
IP4 0.0.0.0]
[Nov 11 16:40:17] WARNING[12875]: app_rtsp.c:749 CreateSDP: -line
[a=control:track1]
[Nov 11 16:40:17] WARNING[12875]: app_rtsp.c:749 CreateSDP: -line [.351]
[Nov 11 16:40:17] WARNING[12875]: app_rtsp.c:749 CreateSDP: -line
[a=x-qt-text-nam:MPEG-1 or 2 Audio, streamed by the LIVE555 Media Server]
[Nov 11 16:40:17] WARNING[12875]: app_rtsp.c:749 CreateSDP: -line
[a=x-qt-text-inf:lili.mp3]
[Nov 11 16:40:17] WARNING[12875]: app_rtsp.c:749 CreateSDP: -line
[m=audio 0 RTP/AVP 14]
[Nov 11 16:40:17] WARNING[12875]: app_rtsp.c:694 CreateMedia: -creating
media [1,m=audio 0 RTP/AVP 14]
[Nov 11 16:40:17] WARNING[12875]: app_rtsp.c:749 CreateSDP: -line [c=IN
IP4 0.0.0.0]
[Nov 11 16:40:17] WARNING[12875]: app_rtsp.c:749 CreateSDP: -line
[a=control:track1]
[Nov 11 16:40:17] WARNING[12875]: app_rtsp.c:1203 rtsp_play: INZ:
chan->nativeformats [68] [unknown]
[Nov 11 16:40:17] WARNING[12875]: app_rtsp.c:1211 rtsp_play: -audio
[0,-1,track1] name [unknown]
[Nov 11 16:40:17] WARNING[12875]: app_rtsp.c:1248 rtsp_play: INZ:
app_rtsp, setting audioFormat <0>, videoFormat <0>
[Nov 11 16:40:17] WARNING[12875]: channel.c:2991 set_format: INZ: Unable
to find a codec translation path from unknown to unknown, fmt <0>
[Nov 11 16:40:17] ERROR[12875]: app_rtsp.c:1262 rtsp_play: No media found
===================================
For the secind question, I am trying to play ulaw-encoded wav file, I am
still not hearing anything. Here is the asterisk output:
[Nov 11 16:54:20] WARNING[13095]: app_rtsp.c:1034 rtsp_play: >rtsp play
[Nov 11 16:54:20] WARNING[13095]: app_rtsp.c:421 RtspPlayerDescribe:
>DESCRIBE [/M1F1-mulaw-AFsp.wav]
[Nov 11 16:54:20] WARNING[13095]: app_rtsp.c:446 RtspPlayerDescribe:
<DESCRIBE [/M1F1-mulaw-AFsp.wav]
[Nov 11 16:54:20] WARNING[13095]: app_rtsp.c:1075 rtsp_play: -rtsp play loop
[Nov 11 16:54:20] WARNING[13095]: app_rtsp.c:1137 rtsp_play: -Receiving
describe
[Nov 11 16:54:20] WARNING[13095]: app_rtsp.c:953 RecvResponse:
RecvResponse: before recv, <16383> bytes
[Nov 11 16:54:20] WARNING[13095]: app_rtsp.c:955 RecvResponse:
RecvResponse: after recv, got <600>
[Nov 11 16:54:20] WARNING[13095]: app_rtsp.c:1151 rtsp_play:
RecvResponse len <174>
[Nov 11 16:54:20] WARNING[13095]: app_rtsp.c:1166 rtsp_play: responseLen
<174>
[Nov 11 16:54:20] WARNING[13095]: app_rtsp.c:749 CreateSDP: -line [v=0]
[Nov 11 16:54:20] WARNING[13095]: app_rtsp.c:749 CreateSDP: -line [o=-
1194822719406021 1 IN IP4 192.168.1.240]
[Nov 11 16:54:20] WARNING[13095]: app_rtsp.c:749 CreateSDP: -line [s=WAV
Audio Stream, streamed by the LIVE555 Media Server]
[Nov 11 16:54:20] WARNING[13095]: app_rtsp.c:749 CreateSDP: -line
[i=M1F1-mulaw-AFsp.wav]
[Nov 11 16:54:20] WARNING[13095]: app_rtsp.c:749 CreateSDP: -line [t=0 0]
[Nov 11 16:54:20] WARNING[13095]: app_rtsp.c:749 CreateSDP: -line
[a=tool:LIVE555 Streaming Media v2007.07.01]
[Nov 11 16:54:20] WARNING[13095]: app_rtsp.c:749 CreateSDP: -line
[a=type:broadcast]
[Nov 11 16:54:20] WARNING[13095]: app_rtsp.c:749 CreateSDP: -line
[a=control:*]
[Nov 11 16:54:20] WARNING[13095]: app_rtsp.c:749 CreateSDP: -line
[a=range:npt=0-2.947]
[Nov 11 16:54:20] WARNING[13095]: app_rtsp.c:749 CreateSDP: -line
[a=x-qt-text-nam:WAV Audio Stream, streamed by the LIVE555 Media Server]
[Nov 11 16:54:20] WARNING[13095]: app_rtsp.c:749 CreateSDP: -line
[a=x-qt-text-inf:M1F1-mulaw-AFsp.wav]
[Nov 11 16:54:20] WARNING[13095]: app_rtsp.c:749 CreateSDP: -line
[m=audio 0 RTP/AVP 96]
[Nov 11 16:54:20] WARNING[13095]: app_rtsp.c:694 CreateMedia: -creating
media [1,m=audio 0 RTP/AVP 96]
[Nov 11 16:54:20] WARNING[13095]: app_rtsp.c:749 CreateSDP: -line [c=IN
IP4 0.0.0.0]
[Nov 11 16:54:20] WARNING[13095]: app_rtsp.c:749 CreateSDP: -line
[a=rtpmap:96 PCMU/8000/2]
[Nov 11 16:54:20] WARNING[13095]: app_rtsp.c:749 CreateSDP: -line
[a=control:track1]
[Nov 11 16:54:20] WARNING[13095]: app_rtsp.c:749 CreateSDP: -line [V
Audio Stream, streamed by the LIVE555 Media Server]
[Nov 11 16:54:20] WARNING[13095]: app_rtsp.c:749 CreateSDP: -line
[a=x-qt-text-inf:M1F1-mulaw-AFsp.wav]
[Nov 11 16:54:20] WARNING[13095]: app_rtsp.c:749 CreateSDP: -line
[m=audio 0 RTP/AVP 96]
[Nov 11 16:54:20] WARNING[13095]: app_rtsp.c:694 CreateMedia: -creating
media [1,m=audio 0 RTP/AVP 96]
[Nov 11 16:54:20] WARNING[13095]: app_rtsp.c:749 CreateSDP: -line [c=IN
IP4 0.0.0.0]
[Nov 11 16:54:20] WARNING[13095]: app_rtsp.c:749 CreateSDP: -line
[a=rtpmap:96 PCMU/8000/2]
[Nov 11 16:54:20] WARNING[13095]: app_rtsp.c:749 CreateSDP: -line
[a=control:track1]
[Nov 11 16:54:20] WARNING[13095]: app_rtsp.c:1203 rtsp_play: INZ:
chan->nativeformats [4] [ulaw]
[Nov 11 16:54:20] WARNING[13095]: app_rtsp.c:1211 rtsp_play: -audio
[4,96,track1] name [ulaw]
[Nov 11 16:54:20] WARNING[13095]: app_rtsp.c:1248 rtsp_play: INZ:
app_rtsp, setting audioFormat <4>, videoFormat <0>
[Nov 11 16:54:20] WARNING[13095]: app_rtsp.c:457 RtspPlayerSetupAudio:
-SETUP AUDIO [track1]
[Nov 11 16:54:20] WARNING[13095]: app_rtsp.c:1270 rtsp_play: -Recv audio
response
[Nov 11 16:54:20] WARNING[13095]: app_rtsp.c:953 RecvResponse:
RecvResponse: before recv, <16383> bytes
[Nov 11 16:54:20] WARNING[13095]: app_rtsp.c:955 RecvResponse:
RecvResponse: after recv, got <197>
[Nov 11 16:54:20] WARNING[13095]: app_rtsp.c:561 RtspPlayerPlay: -PLAY
[/M1F1-mulaw-AFsp.wav]
[Nov 11 16:54:20] WARNING[13095]: app_rtsp.c:953 RecvResponse:
RecvResponse: before recv, <16383> bytes
[Nov 11 16:54:20] WARNING[13095]: app_rtsp.c:955 RecvResponse:
RecvResponse: after recv, got <188>
[Nov 11 16:54:20] ERROR[13095]: app_rtsp.c:1376 rtsp_play: -Started
playback [0]
[Nov 11 16:54:20] WARNING[13095]: app_rtsp.c:1087 rtsp_play: Played <0>
[Nov 11 16:54:20] WARNING[13095]: app_rtsp.c:1093 rtsp_play: Playback
finished
Your help is appreciated.
Ivo
More information about the asterisk-video
mailing list