Compiling in LIVE.COM Streaming Media into mplayer.
I built RPM with mplayer with the LIVE.COM support for RTSP. I started with the .src.rpm provided at http://luna.cs.ccsu.edu/dominik/mplayer/rebuilding.html , and then patched the spec file to add in http://www.live.com/liveMedia/ I received an error when compiling, and tried the patch suggested at: http://zebra.fh-weingarten.de/~maxi/html/mplayer-dev-eng/2004-07/msg00347.ht... Unfortunately it did not work as I had hoped. There is a streaming provider http://www.akamai.com/ which is streaming the audio for Canada's public broadcaster http://www.cbc.ca/listen/ . Currently they are streaming using Microsoft's MMS protocol, and I had hoped to find out if the same service supported IETF standard RTSP. One of the audio streams (Ottawa, where I live) which works well is at: mplayer mms://a907.l961736906.c9617.g.lm.akamaistream.net/D/907/9617/v0001/reflector:36906 so I tried: mplayer rtsp://a907.l961736906.c9617.g.lm.akamaistream.net/D/907/9617/v0001/reflector:36906 Unfortunately mplayer output: Playing rtsp://a907.l961736906.c9617.g.lm.akamaistream.net/D/907/9617/v0001/reflector:36906. Resolving a907.l961736906.c9617.g.lm.akamaistream.net for AF_INET... Connecting to server a907.l961736906.c9617.g.lm.akamaistream.net[64.215.171.36]:554 ... rtsp_session: Not a Real server. Server type is 'WMServer/9.0.0.3372'. Not a Realmedia rtsp url. Trying standard rtsp protocol. Connected to server: a907.l961736906.c9617.g.lm.akamaistream.net This stream is non-cacheable Stream not seekable! Failed to initiate "audio/X-ASF-PF" RTP subsession: RTP payload format unknown or not supported Exiting... (End of file) ---cut--- Any thoughts appreciated. Does this service just not support RTSP, or is this an issue with mplayer or the LIVE.com libraries? Details of the RPM (I can post this if anyone wanted it), built on Fedora Core 1. This may be useful for Dominik Mierzejewski to incorporate into his RPM builds of mplayer. --- mplayer.spec 2004-07-27 13:49:49.000000000 -0400 +++ mplayer-rwm.spec 2004-09-22 18:47:38.000000000 -0400 @@ -47,7 +47,7 @@ %define cvsbuild 20040716 %define ffversion 20040716 -%define rel 2 +%define rel 2rwm %define cvs 0 @@ -102,6 +102,7 @@ Source3: n019003l.pfb Source4: http://icculus.org/~jcspray/gnome-mplayer.png Source5: http://www.mplayerhq.hu/~alex/svgalib_helper-1.9.17-mplayer.tar.bz2 +Source6: http://www.live.com/liveMedia/public/live.2004.09.22.tar.gz Patch1: %{name}-rpm-cvs.patch Patch2: %{name}-rpm-release.patch Patch3: 380sux.diff @@ -116,6 +117,7 @@ Patch12: %{name}-warnings-printf.patch Patch13: %{name}-enca.patch Patch14: %{name}-get_path-memleak.patch +Patch15: %{name}-live-streaming.patch Copyright: GPL Epoch: 2 BuildRoot: %{_tmppath}/%{name}-%{version}-root @@ -326,6 +328,7 @@ pushd libdha bzip2 -dc %{SOURCE5} | tar -xf - popd +gzip -dc %{SOURCE6} | tar -xf - %if%{cvs} %patch1 -p1 -b .r %patch3 -p1 -b .380sux @@ -343,6 +346,8 @@ %patch12 -p1 -b .printf %patch13 -p1 -b .enca %patch14 -p1 -b .get_path +%patch15 -p1 -b .live_streaming + %build %if %{!?_with_debug:1}%{?_with_debug:0} @@ -360,9 +365,16 @@ %endif LC_MESSAGES=C ; export LC_MESSAGES +# build LIVE.COM library +pushd live +./genMakefiles linux +make +popd + # build GUI version %if %{!?_without_gui:1}%{?_without_gui:0} ./configure \ + --enable-live --with-livelibdir=$PWD/live/ \ --enable-gui \ --prefix=%{_prefix} \ --bindir=%{_bindir} \ @@ -426,6 +438,7 @@ # now build regular version ./configure \ + --enable-live --with-livelibdir=$PWD/live/\ --prefix=%{_prefix} \ --bindir=%{_bindir} \ --datadir=%{_datadir}/%{name} \ ---cut--- [root@amadpur SOURCES]# cat mplayer-live-streaming.patch --- MPlayer-1.0pre5/libmpdemux/demux_rtp.cpp.live_streaming 2004-09-22 18:06:38.000000000 -0400 +++ MPlayer-1.0pre5/libmpdemux/demux_rtp.cpp 2004-09-22 18:08:16.000000000 -0400 @@ -407,7 +407,8 @@ delete rtpState->sdpDescription; delete rtpState; - delete env; delete scheduler; + env->reclaim(); + delete scheduler; } ////////// Extra routines that help implement the above interface functions: -- Russell McOrmond, Internet Consultant: <http://www.flora.ca/> Get Creative: iCommons Canada Launch Party : September 30, 2004 http://digital-copyright.ca/node/view/461 Creative Commons, Open Access, Free/Libre and Open Source Software: In Canada, Eh!
participants (2)
-
michael higgins -
Russell McOrmond