/streaming-pt

Live TV :tv: and Radio :radio: shell scripts from Portugal :portugal:.

Primary LanguageShellMIT LicenseMIT

streaming-pt

Live Portuguese TV and radio.

Disclaimer:
All streams are official.

Please add a new issue to report broken links or suggest new streams.

Requirements

If you need assistance please check installing dependencies.

Usage

$ ./tv.sh 
1) RTP 1                7) TVI24              13) SIC Radical
2) RTP 2                8) RTP Memoria        14) SIC K
3) SIC                  9) RTP Internacional  15) ARTV
4) TVI                 10) RTP Madeira        16) Porto Canal
5) RTP 3               11) RTP Acores         17) Euronews
6) SIC Noticias        12) RTP Africa         18) Kuriakos TV
Which TV channel do you want to watch?
$ ./radio.sh
1) Antena1       6) Kiss FM     11) Renascenca  16) Vodafone
2) Antena2       7) M80         12) RFM         17) Zero
3) Antena3       8) Mega Hits   13) RUC
4) Cidade FM     9) MEO Music   14) Smooth
5) Comercial    10) Radar       15) TSF
Which radio do you want to listen? 

Installing dependencies

# Debian / Ubuntu
$ apt-get install mpv
# Arch Linux
$ pacman -S mpv
# Mac OS X (two alternatives)
$ brew install mpv
$ port install mpv

How to catch RTMP streams

For this you will need iptables and rtmpdump.

# redirect outgoing RTMP traffic to localhost
$ iptables -t nat -A OUTPUT -p tcp --dport 1935 -j REDIRECT
# start rtmpsrv
$ rtmpsrv

Now open a web page containing media streamed over RTMP.
RTMP requests will be caught by iptables and logged by rtmpsrv.

# remove redirection of outgoing RTMP traffic
$ iptables -t nat -D OUTPUT -p tcp --dport 1935 -j REDIRECT