[asterisk-bugs] [Asterisk 0015484]: [branch] RTMP support in Asterisk
Asterisk Bug Tracker
noreply at bugs.digium.com
Wed Jul 21 14:17:20 CDT 2010
A NOTE has been added to this issue.
======================================================================
https://issues.asterisk.org/view.php?id=15484
======================================================================
Reported By: phsultan
Assigned To: phsultan
======================================================================
Project: Asterisk
Issue ID: 15484
Category: Channels/NewFeature
Reproducibility: N/A
Severity: feature
Priority: normal
Status: ready for testing
Target Version: 1.8
Asterisk Version: SVN
JIRA: SWP-1477
Regression: No
Reviewboard Link:
SVN Branch (only for SVN checkouts, not tarball releases): trunk
SVN Revision (number only!):
Request Review:
======================================================================
Date Submitted: 2009-07-10 07:30 CDT
Last Modified: 2010-07-21 14:17 CDT
======================================================================
Summary: [branch] RTMP support in Asterisk
Description:
I created a new branch that implements Adobe's RTMP (Real Time Media
Protocol).
It allows Asterisk to connect as a client to an RTMP media server like
Red5 or FMS (Flash Media Server), and then publish or receive media streams
from such server. I only tested the connection with Red5.
To install the branch, you'll need several libavcodec, included in FFMPEG
version 0.6. Be careful to configure FFMPEG's sources with the
--enable-shared option activated in the configure script.
Prior to install Asterisk, you need to have librtmp on your system.
librtmp is part of the rtmpdump program : http://rtmpdump.mplayerhq.hu/
To install it :
# wget http://rtmpdump.mplayerhq.hu/download/rtmpdump-2.2e.tar.gz [^]
# tar zxvf rtmpdump-2.2e.tar.gz
# cd rtmpdump-2.2e/
# make
# make install
To install Asterisk :
# svn co http://svn.digium.com/svn/asterisk/team/phsultan/rtmp-support
asterisk-rtmp
# cd asterisk-rtmp
# ./configure
# make menuselect
[check here that chan_rtmp is eligible for installation]
# make
# make install
======================================================================
----------------------------------------------------------------------
(0124820) jtodd (administrator) - 2010-07-21 14:17
https://issues.asterisk.org/view.php?id=15484#c124820
----------------------------------------------------------------------
Do I need rtmpdump any more? I've updated to the latest branch code.
I've moved to ffmpeg 0.6, removed SVN versions of ffmpeg, and with your
compile options(--enable-shared --enable-swscale --disable-mmx
--disable-optimizations--enable-debug) on ffmpeg 0.6 I get the same errors.
I'm on Debian 9.04.
Here's the compile warnings:
[CC] app_ffplayback.c -> app_ffplayback.o
app_ffplayback.c: In function â??ff_playstreamâ??:
app_ffplayback.c:195: warning: passing argument 2 of
â??ast_rtp_instance_get_remote_addressâ?? from incompatible pointer type
app_ffplayback.c:196: warning: passing argument 2 of
â??ast_rtp_instance_get_remote_addressâ?? from incompatible pointer type
app_ffplayback.c:215: warning: passing argument 2 of
â??ast_rtp_instance_get_local_addressâ?? from incompatible pointer type
app_ffplayback.c: In function â??video_threadâ??:
app_ffplayback.c:454: warning: â??avcodec_decode_videoâ?? is deprecated
(declared at /usr/local/include/libavcodec/avcodec.h:3452)
app_ffplayback.c:475: warning: passing argument 2 of â??sws_scaleâ??
from incompatible pointer type
app_ffplayback.c: In function â??audio_threadâ??:
app_ffplayback.c:577: warning: pointer targets in passing argument 2 of
â??avcodec_decode_audio3â?? differ in signedness
app_ffplayback.c:578: warning: pointer targets in passing argument 2 of
â??audio_resampleâ?? differ in signedness
app_ffplayback.c:578: warning: pointer targets in passing argument 3 of
â??audio_resampleâ?? differ in signedness
app_ffplayback.c: In function â??video_threadâ??:
app_ffplayback.c:365: warning: â??frame_rgbâ?? may be used uninitialized
in this function
[LD] app_ffplayback.o -> app_ffplayback.so
Here's what the CLI shows:
== Registered custom function 'CALENDAR_WRITE'
res_calendar.so => (Asterisk Calendar integration)
[Jul 20 14:22:50] WARNING[27615]: loader.c:387 load_dynamic_module: Error
loading module 'app_ffplayback.so': /usr/local/lib/libavformat.so.52:
symbol av_new_packet, version LIBAVCODEC_52 not defined in file
libavcodec.so.52 with link time reference
[Jul 20 14:22:50] WARNING[27615]: loader.c:819 load_resource: Module
'app_ffplayback.so' could not be loaded.
== Registered file format g729, extension(s) g729
Issue History
Date Modified Username Field Change
======================================================================
2010-07-21 14:17 jtodd Note Added: 0124820
======================================================================
More information about the asterisk-bugs
mailing list