domingo, 10 de noviembre de 2013

Televisión con mplayer

Ubuntu ya está haciendo de las suyas. 

Avermedia AverTV volar green HD no está soportada por un núcleo menor del 3.10.0, pero para eso están los backports. 

Los canales se sintonizan con w_scan y un fichero de configuración es-localidad y se genera un archivo ~/.mplayer/channels.conf.ter 

 Mplayer es un programa majestuoso.

#!/bin/bash

#############################
# Para grabar
#
# tzap -c .mplayer/channels.conf -r "La 1"
#
# cat /dev/dvb/adapter0/dvr0 > pelicula.ts
#
# mplayer pelicula.ts
#
# Para editar el archivo se puede hacer con avidemux.
#
#############################


echo -n " 1 ONDA CERO"
echo -n " 2 EUROPA FM"
echo " 3 ONDA MELODÍA"
echo -n " 4 NITRO"
echo -n " 5 Antena3 HD"
echo " 6 13 TV"
echo -n " 7 COPE"
echo -n " 8 TVE-HD Pruebas"
echo " 9 TDP"
echo -n " 10 Radio Clasica HQ"
echo -n " 11 Radio 3"
echo " 12 Canal Ingenieria"
echo -n " 13 Boing"
echo -n " 14 Telecinco HD"
echo " 15 MTV"
echo -n " 16 Paramount Channel"
echo -n " 17 La 1"
echo " 18 La 2"
echo -n " 19 24h"
echo -n " 20 Clan"
echo " 21 Radio Nacional CyL"
echo -n " 22 Radio 5"
echo -n " 23 laSexta"
echo " 24 CUATRO"
echo -n " 25 DIVINITY"
echo -n " 26 NUEVE"
echo " 27 Telecinco"
echo -n " 28 FDF"
echo -n " 29 LaSiete"
echo " 30 Disney Channel"
echo -n " 31 Intereconomía"
echo -n " 32 esRadio"
echo " 33 Radio Intereconomía"
echo -n " 34 Radio Inter"
echo -n " 35 ABC Punto Radio"
echo " 36 ANTENA 3"
echo -n " 37 NEOX"
echo -n " 38 NOVA"
echo " 39 Discovery MAX"
echo -n " 40 AXN"
echo -n " 41 GUIDE PLUS+"
echo " 42 RADIO MARCA"
echo " 43 Vaughan Radio"

echo -n " CANAL SELECCIONADO: "

read canal

case $canal in
1)
mplayer dvb://"ONDA CERO" -framedrop -autosync 30 -cache 1024
;;
2)
mplayer dvb://"EUROPA FM" -framedrop -autosync 30 -cache 1024
;;
3)
mplayer dvb://"ONDA MELODÍA" -framedrop -autosync 30 -cache 1024
;;
4)
mplayer dvb://"NITRO" -framedrop -autosync 30 -cache 1024
;;
5)
mplayer dvb://"Antena3 HD" -framedrop -autosync 30 -cache 1024
;;
6)
mplayer dvb://"13 TV" -framedrop -autosync 30 -cache 1024
;;
7)
mplayer dvb://"COPE" -framedrop -autosync 30 -cache 1024
;;
8)
mplayer dvb://"TVE-HD Pruebas" -framedrop -autosync 30 -cache 1024
;;
9)
mplayer dvb://"TDP" -framedrop -autosync 30 -cache 1024
;;
10)
mplayer dvb://"Radio Clasica HQ" -framedrop -autosync 30 -cache 1024
;;
11)
mplayer dvb://"Radio 3" -framedrop -autosync 30 -cache 1024
;;
12)
mplayer dvb://"Canal Ingenieria" -framedrop -autosync 30 -cache 1024
;;
13)
mplayer dvb://"Boing" -framedrop -autosync 30 -cache 1024
;;
14)
mplayer dvb://"Telecinco HD" -framedrop -autosync 30 -cache 1024
;;
15)
mplayer dvb://"MTV" -framedrop -autosync 30 -cache 1024
;;
16)
mplayer dvb://"Paramount Channel" -framedrop -autosync 30 -cache 1024
;;
17)
mplayer dvb://"La 1" -framedrop -autosync 30 -cache 1024
;;
18)
mplayer dvb://"La 2" -framedrop -autosync 30 -cache 1024
;;
19)
mplayer dvb://"24h" -framedrop -autosync 30 -cache 1024
;;
20)
mplayer dvb://"Clan" -framedrop -autosync 30 -cache 1024
;;
21)
mplayer dvb://"Radio Nacional CyL" -framedrop -autosync 30 -cache 1024
;;
22)
mplayer dvb://"Radio 5" -framedrop -autosync 30 -cache 1024
;;
23)
mplayer dvb://"laSexta" -framedrop -autosync 30 -cache 1024
;;
24)
mplayer dvb://"CUATRO" -framedrop -autosync 30 -cache 1024
;;
25)
mplayer dvb://"DIVINITY" -framedrop -autosync 30 -cache 1024
;;
26)
mplayer dvb://"NUEVE" -framedrop -autosync 30 -cache 1024
;;
27)
mplayer dvb://"Telecinco" -framedrop -autosync 30 -cache 10240 -menu
;;
28)
mplayer dvb://"FDF" -framedrop -autosync 30 -cache 1024
;;
29)
mplayer dvb://"LaSiete" -framedrop -autosync 30 -cache 1024
;;
30)
mplayer dvb://"Disney Channel" -framedrop -autosync 30 -cache 1024
;;
31)
mplayer dvb://"Intereconomía" -framedrop -autosync 30 -cache 1024
;;
32)
mplayer dvb://"esRadio" -framedrop -autosync 30 -cache 1024
;;
33)
mplayer dvb://"Radio Intereconomía" -framedrop -autosync 30 -cache 1024
;;
34)
mplayer dvb://"Radio Inter" -framedrop -autosync 30 -cache 1024
;;
35)
mplayer dvb://"ABC Punto Radio" -framedrop -autosync 30 -cache 1024
;;
36)
mplayer dvb://"ANTENA 3" -framedrop -autosync 30 -cache 1024
;;
37)
mplayer dvb://"NEOX" -framedrop -autosync 30 -cache 1024
;;
38)
mplayer dvb://"NOVA" -framedrop -autosync 30 -cache 1024
;;
39)
mplayer dvb://"Discovery MAX" -framedrop -autosync 30 -cache 1024
;;
40)
mplayer dvb://"AXN" -framedrop -autosync 30 -cache 1024
;;
41)
mplayer dvb://"GUIDE PLUS+" -framedrop -autosync 30 -cache 1024
;;
42)
mplayer dvb://"RADIO MARCA" -framedrop -autosync 30 -cache 1024
;;
43)
mplayer dvb://"Vaughan Radio" -framedrop -autosync 30 -cache 1024
;;
*)
echo -n "No tenemos ese canal"
;;
esac
exit 0


No hay comentarios:

Publicar un comentario