<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:΢ÈíÑźÚ
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi,<br><strong><br></strong>I wrote a wrapper shell script for multicat to do loop playback.<br><strong><br>multicat</strong> will <strong>NOT</strong> do any remultiplexing to
streams.<br>It can stream the streams just like what the field headend does. <br>So <strong>multicat</strong> is more suitable for test purpose than VLC. <br><br>But for test purpose, loop playback is usually needed, so I wrote one wrapper script.<br>Hope it can be useful for someone.<br><br><br>#!/bin/bash<br><br>echo '--------------------------------------------------'<br>echo '| multicat-loop 1.0.0'<br>echo '| Wrapper shell script for loop playback purpose.'<br>echo '| 2012, No.9'<br>echo '--------------------------------------------------'<br><br>OPTIONS="$@"<br><br>function sigint_handler {<br> echo "Interrupted by Ctrl + C"<br> exit<br>}<br><br>trap sigint_handler SIGINT<br><br>i=0<br>for (( ; ; ))<br>do<br> i=`expr $i + 1`<br><br> echo "#$i multicat $OPTIONS"<br> multicat $OPTIONS<br> RETVAL=$?<br><br> [ $RETVAL -ne 0 ] && exit $?<br>done<br><br><br>Regards!<br><br> </div></body>
</html>