Da bist du hier an der falschen Stelle, da hier niemand von Synology mit lieft. Wenn dich an den Support mit deiner bitte.Ich liebe die Mediathek App für den Mac.
Schöne wäre es aber doch, wenn man die Download Aufträge direkt der Synology Software übergeben könnte...
nohup su admin -c "vlc http://wstreaming.zdf.de/zdf/veryhigh/XXX.asx :sout=#standard{access=file,mux=asf,dst=/volume1/public/1.mp4} -I dummy --play-and-exit" &
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Input to start VLC</title>
</head>
<body>
<h1>Input to start VLC</h1>
<form action="vlc-input.cgi">
<table border="0" cellpadding="5" cellspacing="0" bgcolor="#E0E0E0">
<tr>
<td align="right">URL:</td>
<td><input name="URL" type="text" size="80" maxlength="100"></td>
</tr>
<tr>
<td align="right">File name:</td>
<td><input name="FILE" type="text" size="30" maxlength="40"></td>
</tr>
<tr>
<td align="right">Start vlc:</td>
<td>
<input type="submit" value=" Go!">
<input type="reset" value=" Reset">
</td>
</tr>
</table>
</form>
</body>
</html>
#!/bin/sh
#
if [ "${BASH_CHECK}" != 1 -a -f /opt/bin/bash ]
then
BASH_CHECK=1; export BASH_CHECK
/opt/bin/bash $0
exit $$
fi
showfile() {
FILE=$1;
BASE=${FILE##*/}
shift
if [ -f "${FILE}" ]
then
showcommand "${BASE}" "/bin/cat" "${FILE}"
fi
}
showcommand() {
NAME=$1
shift
PROG=$1
shift
if [ -f ${PROG} ]
then
echo "<h3>${NAME}</h3>"
echo "<pre>"
${PROG} "$@"
echo "</pre>"
fi
}
runprog() {
PROG=$1;
BASE=${PROG##*/}
shift
showcommand "${BASE}" "${PROG}" "$@"
}
cat << EOF
Content-type: text/html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="generator" content="sh" />
<title>Start VLC Recording</title>
</head>
<body>
<h2>VLC Recording has been started ...</h2>
<h3>URL:</h3>
EOF
QS=$(echo "$QUERY_STRING" | sed "s/%20/+/g")
QS=$(echo "$QS" | sed "s/%3A/:/g")
QS=$(echo "$QS" | sed "s/%2F/\//g")
QS=$(echo "$QS" | sed "s/|/:/g")
QS=$(echo "$QS" | sed "s/;/:/g")
QS=$(echo "$QS" | sed "s/%3A/:/g")
QS=$(echo "$QS" | sed "s/%3C/+/g")
QS=$(echo "$QS" | sed "s/%3E/+/g")
URL=$(echo "$QS" | sed -n 's/^.*URL=\([^&]*\).*$/\1/p' )
FILE=$(echo "$QS" | sed -n 's/^.*FILE=\([^&]*\).*$/\1/p' )
FILE=$(echo "Rec-$FILE.wmv" | sed "s/:/+/g" | sed "s/\//+/g" | sed "s/\\\/+/g")
CALL=$(echo "vlc $URL :sout=#standard{access=file,mux=asf,dst=/volume1/public/video/$FILE} -I dummy --play-and-exit")
echo $URL
echo '<h3>File Name:</h3>'
echo $FILE
echo '<h3>Call:</h3>'
echo '<small>'
echo $CALL
echo '</small>'
nohup su admin -c "$CALL" >vlc-input.out 2>vlc-input.error &
echo '<h3>Done.</h3>'
echo '<small>'
echo $QS
sleep 4
ps w | grep vlc | grep sout | grep -v -e "sh -c" > vlc-ps.log
showfile vlc-ps.log
showfile vlc-input.out
showfile vlc-input.error
echo '<br>'
echo '</body>'
echo '</html>'
Wenn du das Forum hilfreich findest oder uns unterstützen möchtest, dann gib uns doch einfach einen Kaffee aus.
Als Dankeschön schalten wir deinen Account werbefrei.