r5921 - /vdr/vdr-plugin-iptv/trunk/debian/vlc2iptv

tiber-guest at users.alioth.debian.org tiber-guest at users.alioth.debian.org
Wed Nov 21 20:28:22 UTC 2007


Author: tiber-guest
Date: Wed Nov 21 20:28:22 2007
New Revision: 5921

URL: http://svn.debian.org/wsvn/pkg-vdr-dvb/?sc=1&rev=5921
Log:
fixed transcoding script to use channel names

Modified:
    vdr/vdr-plugin-iptv/trunk/debian/vlc2iptv

Modified: vdr/vdr-plugin-iptv/trunk/debian/vlc2iptv
URL: http://svn.debian.org/wsvn/pkg-vdr-dvb/vdr/vdr-plugin-iptv/trunk/debian/vlc2iptv?rev=5921&op=diff
==============================================================================
--- vdr/vdr-plugin-iptv/trunk/debian/vlc2iptv (original)
+++ vdr/vdr-plugin-iptv/trunk/debian/vlc2iptv Wed Nov 21 20:28:22 2007
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-if [ $# -ne 2 ]; then
+if [ $# -ne 3 ]; then
     logger "$0: error: Invalid parameter count '$#' $*"
     exit 1;
 fi
@@ -11,11 +11,14 @@
 # Iptv plugin listens this port
 PORT=${2}
 
+# Channel name parameter
+CHANNEL=${3}
+
 # Default bitrates for stream transcoding
 VBITRATE=2400
 ABITRATE=320
 
-conf="/etc/vdr/plugins/iptv/vlcinput/$PARAMETER.conf"
+conf="/etc/vdr/plugins/iptv/vlcinput/$CHANNEL.conf"
 
 if [ -e $conf ] ; then
     . $conf
@@ -30,4 +33,5 @@
 [ -z $SPID ] && let SPID=${PARAMETER}+3
 
 # Use 'exec' for capturing program pid for further management in IPTV plugin
+echo 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 >/tmp/xxx
 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




More information about the pkg-vdr-dvb-changes mailing list