1
0
mirror of https://github.com/rofafor/vdr-plugin-iptv.git synced 2023-10-10 13:37:03 +02:00
vdr-plugin-iptv/iptv/iptvstream.sh
Antti Seppälä 5b91ea05eb Exec doesn't need that much escaping. The url should be however wrapped
in quotation marks because it may contain spaces.
2007-10-18 20:18:33 +00:00

16 lines
332 B
Bash
Executable File

#!/bin/sh
URL=""
if [ -z "${URL}" ]; then
logger "$0: error: URL not defined!"
exit 1;
fi
if [ $# -ne 1 ]; then
logger "$0: error: Invalid parameter count '$#' $*"
exit 1;
fi
exec vlc "${URL}" --sout "#transcode{vcodec=mp2v,acodec=mpga,vb=800,ab=192}:standard{access=udp,mux=ts,dst=127.0.0.1:${1}}" --intf dummy