Re: [RFC] RTMP (flash streaming) support
Anders Eriksson <[email protected]>
| Newsgroups | gmane.comp.video.freevo.devel |
|---|---|
| Message-ID | <[email protected]> |
[email protected] said: > I just happened to setup a freevo box at home, connected to a TV. As it turns > out, TV live streaming was important for my own purposes so I decided to > quickly hack rtmp support (lots of live free TV services are rtmp) into > freevo. Since this might be useful for others too, I decided to share my > setup. Thanks for looking into this. I came across the same issue, and came up with this mplayer wrapper script. It effectively makes the wrapper also accept rtmp* URLs in addition to mplayer's normal ones. #!/bin/bash FIFO=/tmp/mplayer_rtmpdump.$$ RTMPDUMP=$HOME/rtmpdump-2.2d/rtmpdump ARGS=("$@") RTMP=0 for i in `seq 0 $#` ; do if [[ "${ARGS[$i]}" =~ "rtmp" ]] ; then [ -p $FIFO ] || mkfifo $FIFO RTMP=1 $RTMPDUMP -o $FIFO -r "${ARGS[$i]}" 2> /dev/null 1>&2 & #sleep 3 ARGS[$i]=$FIFO fi done /usr/bin/mplayer "${ARGS[@]}" [ X"$RTMP" = X1 ] && kill -9 %1 && rm $FIFO A typical fxd looks like: <?xml version="1.0" ?> <freevo> <copyright>(C) SVT.SE</copyright> <movie title="The Event"> <cover-img source="http://media.svt.se/download/mcc/flash/20101002/PG-1141269-002A-EVENTTHE1-01/PG-1141269-002A-EVENTTHE1-01_start_0.jpg">/media/tv/SVTPlay/.covers/http___media.svt.se_download_mcc_flash_20101002_PG-1141269-002A-EVENTTHE1-01_PG-1141269-002A-EVENTTHE1-01_start_0.jpg</cover-img> <video mplayer-options="-user-agent NSPlayer/4.1.0.3856 -cache-min 1 "> <url id="f1">rtmpe://fl11.c90909.cdn.qbrick.com/90909/_definst_/kluster/20101002/PG-1141269-002A-EVENTTHE1-01-mp4-e-v1.mp4</url> <player>mplayer</player> </video> <info><rating></rating> <plot></plot> <tagline>Del 2 av 13 -- -- (rtmp...)</tagline> <recording_timestamp></recording_timestamp> <year></year> <genre>Film och drama</genre> <runtime></runtime> </info> </movie> </freevo> (Automatically created fxd from http:/svtplay.se/. Lot's of hacky scripts behind this one... :-) ) Anyone knwos if rtmpe support is anywhere near making it into mplayer? I've failed to come up with a way to make this seekable, but I guess a full integration in mplayer would fix that. /Anders ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev