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

24 lines
482 B
Bash
Raw Normal View History

#!/bin/sh
2007-10-19 23:36:27 +02:00
if [ $# -ne 2 ]; then
logger "$0: error: Invalid parameter count '$#' $*"
exit 1;
fi
# Channels.conf parameter
PARAMETER=${1}
# Iptv plugin listens this port
PORT=${2}
# Define stream address
URL=""
if [ -z "${URL}" ]; then
logger "$0: error: URL not defined!"
exit 1;
fi
2007-10-19 23:36:27 +02:00
# Use 'exec' for capturing script pid
exec vlc "${URL}" --sout "#transcode{vcodec=mp2v,acodec=mpga,vb=800,ab=192}:standard{access=udp,mux=ts,dst=127.0.0.1:${PORT}}" --intf dummy