1
0
mirror of https://github.com/rofafor/vdr-plugin-iptv.git synced 2023-10-10 13:37:03 +02:00

An attempt at more posix compliance in iptvstream.sh.

This commit is contained in:
Antti Seppälä 2007-11-22 17:25:20 +00:00
parent 9e630760f6
commit 61a588ed22

View File

@ -42,5 +42,13 @@ let VPID=${PARAMETER}+1
let APID=${PARAMETER}+2 let APID=${PARAMETER}+2
let SPID=${PARAMETER}+3 let SPID=${PARAMETER}+3
# Use 'exec' for capturing program pid for further management in IPTV plugin # Capture program pid for further management in IPTV plugin
exec vlc "${URL}" --sout "#transcode{vcodec=mp2v,acodec=mpga,vb=${VBITRATE},ab=${ABITRATE}}:standard{access=udp,mux=ts{pid-video=${VPID},pid-audio=${APID},pid-spu=${SPID}},dst=127.0.0.1:${PORT}}" --intf dummy vlc "${URL}" --sout "#transcode{vcodec=mp2v,acodec=mpga,vb=${VBITRATE},ab=${ABITRATE}}:standard{access=udp,mux=ts{pid-video=${VPID},pid-audio=${APID},pid-spu=${SPID}},dst=127.0.0.1:${PORT}}" --intf dummy &
PID=$!
trap 'kill -INT ${PID} 2> /dev/null' INT EXIT QUIT TERM
# Waiting for the given PID to terminate
wait $PID