Newsflash
The H324M library has reached it's first milestone.
Audio, video an dtmf are finally working!!!
app_transcoder Installation PDF Print E-mail
Friday, 09 March 2007

Compiling

This document explains how to install and setup the app_transcoder application.
First, you need to have the source code of your Asterisk correctly installed on your system and the development libraries from the ffmpeg project.

Copy the app_transcoder.c file into de Asterisk apps directory and append the following lines to the Makefile in the same directory:

app_transcoder.so : app_transcoder.o
$(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} -lavcodec
Depending on the version you are using could have add the include directory and change the #include of the avcodec.h to match yours.

Goto the Asterisk parent directory and

make
make install

Setup

Enable video support and preferred codecs in sip.conf
videosupport=yes

disable=all
allow=ulaw
allow=alaw
allow=h263
allow=h263p
Now, you can use the application functions in your dialpan, a setup example with integraton with appr_rtsp could be:
[default]
exten => 201,1,Answer
exten => 201,2,transcode(,s@camera,h263@qcif/fps=10/kb=52/qmin=4/qmax=12/gs=50)
exten => 201,3,HangUp

[camera] exten => s,1,Answer
exten => s,2,rtsp(http://192.168.1.2/live.sdp)
exten => s,3,HangUp

Calling 201 will create a new channel placed in the camera context, it will transcode the incoming MPEG4-ES into an H263 encoded one with the specified parameters.

Copyright 2006 - Sergio García Murillo
Powered by Mambo