Standalone online TV player

pstreamplayer

by ross at 07:48:58 on September 29, 2013

There is LiveStreams addon for xbmc which allows you to watch online TV in xbmc.

I wrote this little wrapper to watch LiveStreams' channels without xbmc and LiveStreams itself.

pstreamplayer-thumb.pngThe second monitor of my workplace

Install dependencies:

# cd /usr/ports/multimedia/mplayer
# make install clean
Check VDPAU, uncheck GUI and SKINS

# cd /usr/ports/multimedia/rtmpdump
# make install clean

# cd /usr/ports/x11-toolkits/p5-Gtk2
# make install clean

Update librtmp:

# cd
# svn co svn://svn.mplayerhq.hu/rtmpdump/trunk rtmpdump-trunk
# cd rtmpdump-trunk
# make
# cd librtmp
# cp librtmp.a /usr/local/lib/
# cp librtmp.so.0 /usr/local/lib/

Create mplayer config (~/.mplayer/config):

vo=vdpau,
volume=100

Note the comma at the end of vo line — it means use vdpau if available.

Fetch the scripts:

# cd /usr/local/bin
# fetch http://daemon-notes.com/downloads/assets/scripts/live-stream-player
# chmod a+x live-stream-player
# fetch http://daemon-notes.com/downloads/assets/scripts/pstreamplayer
# chmod a+x pstreamplayer
# rehash

All you need now is a database in LiveStreams format (xml):

# fetch http://community-links.googlecode.com/svn/trunk/theStreamDB.xml

Run the player like this:

# pstreamplayer theStreamDB.xml

 

Comments