app_rtsp problem

Hi everybody !

I’m trying to test the rtsp application on my Asterisk 1.4.15

I’m using live555media server to stream and it works great with a vlc client.

Here is my dialplan :

exten => 5003,1,Answer()
exten => 5003,n,Rtsp(rtsp://192.168.1.21:8554/drunkdrivin.amr)
exten => 5003,n,Hangup()

exten => 5004,1,Answer()
exten => 5004,n,Transcode(,s@vlc,h263@qcif/fps=10/kb=52/qmin=4/qmax=12/gs=50)
exten => 5004,n,Hangup()

[vlc]
exten => s,1,Answer()
exten => s,n,Rtsp(rtsp://192.168.1.21:8554/drunkdrivin.amr)
exten => s,n,Hangup()

I’m using the WengoPhone softphone and Ekiga for my tests.

When i call the 5003, there is this error :

    -- Executing [5003@default:1] Answer("SIP/paul-09154f80", "") in new stack
    -- Executing [5003@default:2] rtsp("SIP/paul-09154f80", "rtsp://192.168.1.21:8554/drunkdrivin.amr") in new stack
[Apr  2 16:42:57] WARNING[7411]: app_rtsp.c:1037 rtsp_play: >rtsp play
[Apr  2 16:42:57] WARNING[7411]: channel.c:3013 set_format: [b]Unable to find a codec translation path from alaw to unknown[/b]
[Apr  2 16:42:57] ERROR[7411]: app_rtsp.c:1273 rtsp_play: No media found
[Apr  2 16:42:57] WARNING[7411]: app_rtsp.c:1535 rtsp_play: <rtsp_play    -- Executing [5003@default:3] Hangup("SIP/paul-09154f80", "") in new stack
  == Spawn extension (default, 5003, 3) exited non-zero on 'SIP/paul-09154f80'

And when i call the 5004, there is the error, before Asterisk crashes :

 -- Executing [5004@default:1] Answer("SIP/paul-08e7f520", "") in new stack
    -- Executing [5004@default:2] transcode("SIP/paul-08e7f520", "|s@vlc|h263@qcif/fps=10/kb=52/qmin=4/qmax=12/gs=50") in new stack
    -- Executing [s@vlc:1] Answer("Local/s@vlc-dd1f,2", "") in new stack
    -- Executing [s@vlc:2] rtsp("Local/s@vlc-dd1f,2", "rtsp://192.168.1.21:8554/drunkdrivin.amr") in new stack
[Apr  2 17:10:06] WARNING[7964]: app_rtsp.c:1037 rtsp_play: >rtsp play
[Apr  2 17:10:06] WARNING[7962]: app_transcoder.c:963 app_transcode: >Transcoding [,s@vlc,h263@qcif/fps=10/kb=52/qmin=4/qmax=12/gs=50]
[Apr  2 17:10:06] ERROR[7962]: app_transcoder.c:611 VideoTranscoderCreate: [b]Error opening encoder[/b]
[Apr  2 17:10:06] WARNING[7962]: app_transcoder.c:373 VideoTranscoderDestroy: -joining thread

It’s the same if i stream a mp4, 3gp, mp3 or wav file.

So, at first, can app_rtsp work without app_transcoder ? What formats can be read by app_rtsp ?

Please give me your help.

Thank you in advance

Paul

Reading the file app_transcoder.c we can see that the error “error opening encoder” comes when app_transcoder can’t open the encoder of libavcodec.
That’s strange because if have installed this library. And there is no errors when I compile Asterisk…

I’m on a Debian 5 Lenny.

Problem resolved !

I used Darwin Stream Server to stream a video in mp4 format.

Using app_transcoder and app_rtsp play the video on my X-Lite.

Yeah !