home *** CD-ROM | disk | FTP | other *** search
Text File | 2000-08-04 | 35.0 KB | 1,433 lines |
- <%@ Language=VBScript CODEPAGE=65001 %>
-
- <html>
- <head>
- <meta NAME="GENERATOR" Content="Microsoft FrontPage 4.0">
- <meta http-equiv="Content-Language" content="en-us">
- <meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
- <title>Remote Admin</title>
- <style>
-
- TD.clsNgHead
- {
- BACKGROUND-COLOR: #6699cc;
- BORDER-LEFT: #99ccff 2px outset;
- BORDER-RIGHT: #99ccff 2px outset;
- BORDER-TOP: #99ccff 2px outset;
- COLOR: #ffffff;
- FONT-FAMILY: verdana;
- FONT-SIZE: xx-small;
- FONT-WEIGHT: bold
- }
- TD.clsNgHead A
- {
- COLOR: #ffffff;
- FONT-SIZE: 95%;
- TEXT-DECORATION: none
-
- }
-
- TD.clsTab
- {
- BACKGROUND-COLOR: #003366;
- BORDER-BOTTOM: #99ccff 2px inset;
- BORDER-LEFT: #6699cc 1px solid;
- BORDER-RIGHT: #6699cc 1px solid;
- BORDER-TOP: #003366 2px solid;
- CURSOR: hand
-
- }
- TD.clsTab A
- {
- COLOR: #ffffff;
- FONT-SIZE: 95%;
- TEXT-DECORATION: none
- }
- TD.clsTab A:hover
- {
- COLOR: #ffffff;
- FONT-SIZE: 95%;
- TEXT-DECORATION: none
- }
- TD.clsTab A:active
- {
- COLOR: #ffffff;
- FONT-SIZE: 95%;
- TEXT-DECORATION: none
- }
- </style>
-
-
-
- <script LANGUAGE="javascript">
- <!--
-
- function fnTabClickTTSub( nTab )
- {
- event.cancelBubble=true
- nTab = parseInt(nTab)
- for(i = 0; i < 3 ;i++){
- tabsTTSub[i].className="clsTab";
- TabTable[i].style.display = "none"
- }
- TabTable[nTab].style.display = "block"
- tabsTTSub[nTab].className="clsNgHead";
- event.returnValue = false;
- }
-
- function GetNew(){
- RunEnc.Comm.value=0
- WaitProcess.style.display=""
-
- RunEnc.submit()
- }
- function refr_PageRefresh(){
- RunEnc.Comm.value=0
- WaitProcess.style.display=""
- RunEnc.submit()
- }
- function Start(){
- RunEnc.Comm.value=1
- WaitProcess.style.display=""
- RunEnc.submit()
- }
- function Stop(){
- RunEnc.Comm.value=2
- WaitProcess.style.display=""
- RunEnc.submit()
- }
- function Mute(){
- RunEnc.Comm.value=3
- WaitProcess.style.display=""
- RunEnc.submit()
- }
-
- function ClearProfileList(){
- var i
- for (i=0;i<document.RunEnc.sProfile.options.length;i++)
- RunEnc.sProfile.options.remove(i)
- }
- function AddProfileList(sName,sValue,iSelect){
- var oOption=document.createElement("OPTION")
- RunEnc.sProfile.options.add(oOption)
- oOption.innerText=sName
- oOption.value=sValue
- if (iSelect==1)
- {
- var Len=RunEnc.sProfile.length
- RunEnc.sProfile.selectedIndex=Len-1
- }
- }
- function ClearSelectList(){
- var i=RunEnc.sStream.options.length
- while (i>=0){
- RunEnc.sStream.options.remove(i)
- i=i-1
- }
-
- //for(i=0;i< document.RunEnc.slctStream.options.length;i++)
- // RunEnc.slctStream.options.remove(i)
- }
- function AddSlectList(sName,sValue){
- var oOption=document.createElement("OPTION")
- RunEnc.sStream.options.add(oOption)
- oOption.innerText=sName
- oOption.value=sValue
- RunEnc.sStream.selectedIndex=0
-
- }
- function Start_Disable(){
- RunEnc.cmdStart.disabled=true
- RunEnc.cmdStop.disabled=false
- RunEnc.sProfile.disabled=true
- RunEnc.cmdMute.disabled=false
-
-
-
- //RunEnc.bAStart.disabled=false
- //RunEnc.bAstop.disabled=false
- //RunEnc.bAPause.disabled=false
- }
- function Stop_Disable(){
- RunEnc.cmdStart.disabled=false
- RunEnc.cmdStop.disabled=true
- RunEnc.sProfile.disabled=false
- RunEnc.cmdMute.disabled=true
-
-
-
- RunEnc.bAStart.disabled=true
- RunEnc.bAstop.disabled=true
- RunEnc.bAPause.disabled=true
-
- }
-
- function Unable_Error(){
- alert("Cant Start This Encoder No source Groups Defined or No existing sources")
- }
- function AStart(){
- RunEnc.bAStart.disabled=true
-
- RunEnc.bAstop.disabled=false
- RunEnc.bAPause.disabled=false
- RunEnc.bChange.disabled=true
-
- RunEnc.Comm.value=4
- WaitProcess.style.display=""
- RunEnc.submit()
-
- }
- function AStop(){
- RunEnc.bAStart.disabled=false
- RunEnc.bAstop.disabled=true
- RunEnc.bAPause.disabled=true
- RunEnc.bChange.disabled=false
-
- RunEnc.Comm.value=5
- WaitProcess.style.display=""
- RunEnc.submit()
- }
- function APause(){
- RunEnc.bAStart.disabled=false
- RunEnc.bAstop.disabled=false
- RunEnc.bAPause.disabled=true
- RunEnc.bChange.disabled=false
-
- RunEnc.Comm.value=6
- WaitProcess.style.display=""
- RunEnc.submit()
-
- }
- function ArchiveStarted(){
- RunEnc.bAStart.disabled=true
- RunEnc.bAstop.disabled=false
- RunEnc.bAPause.disabled=false
- RunEnc.bChange.disabled=true
-
- }
- function DisableArchive(){
- RunEnc.bAStart.disabled=true
- RunEnc.bAstop.disabled=true
- RunEnc.bAPause.disabled=true
- RunEnc.bChange.disabled=false
-
- }
- function ArchivePaused(){
- RunEnc.bAStart.disabled=false
- RunEnc.bAstop.disabled=false
- RunEnc.bAPause.disabled=true
- RunEnc.bChange.disabled=false
-
- }
- function ArchiveStopped(){
- RunEnc.bAStart.disabled=false
- RunEnc.bAstop.disabled=true
- RunEnc.bAPause.disabled=true
- RunEnc.bChange.disabled=false
-
- }
- function CrtEncoder(){
- document.location.href="NewEncoderMain.asp"
- }
-
- function DstEncoder(){
- document.location.href="DestroyEncoder.asp?SlctEnc=" + RunEnc.lstRunning.options.value
- }
-
- function LoadEncoder(){
- document.location.href="NewLoadEncoderMain.asp"
- }
- function ChangePath(){
- var Ret
- Ret=prompt("Enter Archive Path","C:\\temp\\foo.asf")
- if ((Ret==null) || (Ret=="")){
- alert("Invalid Input")
- return
- }
- else {
- RunEnc.tPath.value=Ret
- RunEnc.Comm.value=7
- WaitProcess.style.display=""
- RunEnc.submit()
- }
-
- }
- function ManualArch(){
- RunEnc.Comm.value=8
- WaitProcess.style.display=""
- RunEnc.submit()
-
- }
- function DisHint(){
- if (RunEnc.sProfile.disabled==true){
- Tip.style.pixelLeft=350
- Tip.style.pixelTop=100
- Tip.style.display=""
- }
- }
- function HideHint(){
- Tip.style.display="none"
- }
-
-
- function AddSrcGrp(sPos,sName,iStat){
-
- if (iStat==1){
- var iButton = '<INPUT type="button" id="iSrcGrp" name="iSrcGrp" onclick="ChangeSrcGrp('+ sPos + ' )" value ="' + sName + '" style="BACKGROUND-COLOR: blue;color: white;HEIGHT: 24px; WIDTH: 76px;"><BR>'
- SrcGrps.insertAdjacentHTML("BeforeEnd",iButton)
- }
- else{
-
- var iButton='<INPUT type="button" id="iSrcGrp" name="iSrcGrp" style="HEIGHT: 24px; WIDTH: 76px;" value="' + sName + '" onclick="ChangeSrcGrp(' + sPos + ')" ><BR>'
- SrcGrps.insertAdjacentHTML("BeforeEnd",iButton)
- }
- }
-
- function ChangeSrcGrp(index){
- RunEnc.Comm.value=9
- WaitProcess.style.display=""
-
- for (i=0;i<RunEnc.iSrcGrp.length;i++)
- {
- RunEnc.iSrcGrp[i].style.backgroundColor="#d4d0c9"
- RunEnc.iSrcGrp[i].style.color="black"
- }
- if( index < RunEnc.iSrcGrp.length )
- {
- RunEnc.iSrcGrp[parseInt(index)].style.backgroundColor="blue"
- RunEnc.iSrcGrp[parseInt(index)].style.color="white"
- RunEnc.tSrcGrp.value=RunEnc.iSrcGrp[parseInt(index)].value
- }
-
- RunEnc.submit()
-
- }
- function SlctStream(){
- RunEnc.Comm.value=10
- WaitProcess.style.display=""
- RunEnc.submit()
-
- }
- function StreamDisplay(sStreamName){
- var i=RunEnc.sStream.options.length
- while (i>=0){
- sStreamCurr=RunEnc.sStream.options.value
- if (sStreamCurr==sStreamName){
-
- RunEnc.sStream.value=sStreamCurr
- return
- }
-
- i=i-1
- }
-
- }
- function ProfileDisplay(sProfileName){
- var i=RunEnc.sProfile.options.length
- while (i>=0){
- sPrfCurr=RunEnc.sProfile.options.item(i)
- if (sPrfCurr.value==sProfileName){
-
- RunEnc.sProfile.value=sPrfCurr
- return
- }
-
- i=i-1
- }
- }
- function Error_Display(iNum,sDesc){
- if (iNum!=0){
- alert(sDesc)
- }
-
- }
-
- //-->
- </script>
-
-
-
- </head>
- <body>
-
-
- <div id="Prop">
- <p>
- <table width="100%" align="center" bgcolor="Black" bordercolordark="Black" bordercolorlight="Black" bordercolor="Black" cellpadding="0" cellspacing="0">
-
- <tr bgcolor="Black">
-
- <td align="left" width="50%"><font color="White" size="3"><strong><em>Machine: <%=Session("MchNameSess")%></em></strong></font></td>
- <td align="right" width="50%"><strong><font color="White" size="3"><em> </em></font></strong> </td>
-
- </tr>
- <tr bgcolor="Gold">
-
- <td colspan="2" height="3">
- </td>
-
- </tr>
-
- </table></p><form name="RunEnc" action="RemoteRefresh.asp" target="RemoteRefresh" method="post">
-
-
-
- <input type="hidden" id="tPath" name="tPath">
- <input type="hidden" name="Comm" value="0">
- <input type="hidden" id="tSrcGrp" name="tSrcGrp">
-
- <%
- on Error Resume Next
-
- MchName=Session("MchNameSess")
- ArchStatus="Archiving Stopped"
-
-
- set AgentLoc=Session("AgentLocSess")
-
- set EncAgent=AgentLoc.GetAgent(MchName)
- if Err.number <> 0 then
- ErrorNum=1
- ErrorDesc=Err.description
- Err.Clear
- end if
- set EncCol=EncAgent.EncoderNamesCollection
-
- Cnt=EncCol.count
-
- if Cnt>0 then
-
- Name=EncCol.item(I)
-
- SlctEnc=Name
-
- set Enc=EncAgent.GetEncoder(SlctEnc)
- if Err.number <> 0 then
- ErrorNum=1
- ErrorDesc=Err.description
- Err.Clear
- end if
- set Stat=Enc.Statistics
- if Err.number <> 0 then
- ErrorNum=1
- ErrorDesc=Err.description
- Err.Clear
- end if
-
- if Enc.Runstate <> 5 then
-
- State="Encoder Running"
- Set Brdcst = Enc.Broadcast
- Prt=Brdcst.PortNumber(1)
- if Err.number <> 0 then
- ErrorNum=1
- ErrorDesc=Err.description
- Err.Clear
- end if
-
- if Prt<>0 and Prt<>"" then
- set NetStat=Stat.NetConnectionStats
- Connection=NetStat.ClientCount
- if Err.number <> 0 then
- ErrorNum=1
- ErrorDesc=Err.description
- Err.Clear
- end if
- end if
-
- else
- State="Encoder Stopped"
-
- end if
-
- set Stat=Enc.Statistics
- if Err.number <> 0 then
- ErrorNum=1
- ErrorDesc=Err.description
- Err.Clear
- end if
-
-
-
- set DisInfo=Enc.DisplayInfo
- if Err.number <> 0 then
- ErrorNum=1
- ErrorDesc=Err.description
- Err.Clear
- end if
- Title=DisInfo.Title
- if Err.number <> 0 then
- ErrorNum=1
- ErrorDesc=Err.description
- Err.Clear
- end if
- if Title="" then
- Title="-"
- end if
-
- Author=DisInfo.Author
-
- if Author="" then
- Author="-"
- end if
-
- Copyright=DisInfo.Copyright
-
- if Copyright="" then
- Copyright="-"
- end if
-
- Description=DisInfo.Description
-
- if Description="" then
- Description=""
- end if
-
- Rating=DisInfo.Rating
-
- if Rating="" then
- Rating="-"
- end if
- if Err.number <> 0 then
- ErrorNum=1
- ErrorDesc=Err.description
- Err.Clear
- end if
- set SrcGrpCol=Enc.SourceGroupCollection
- if Err.number <> 0 then
- ErrorNum=1
- ErrorDesc=Err.description
- Err.Clear
- end if
-
- cntStream=0
-
- if SrcGrpCol.Count > 0 then
-
- set SrcGrp=SrcGrpCol.Active
-
- SrcCnt=SrcGrp.SourceCount(2)
-
- if SrcCnt >= 1 then
-
- set Aud=SrcGrp.Source(1, 0)
-
- set Vid=SrcGrp.Source(2, 0)
-
- SchemeAud=Aud.GetInput(Cstr(StrIn1Aud),Cstr(StrIn2Aud))
-
- SchemeVid=Vid.GetInput(Cstr(StrIn1Vid),Cstr(StrIn2Vid))
-
- Pos=InstrRev(SchemeAud,"\")
- SchemeAud=mid(SchemeAud,Pos+1)
-
- Pos=InstrRev(SchemeVid,"\")
- SchemeVid=mid(SchemeVid,Pos+1)
-
- cntStream=stat.StreamOutputCount(2, 0)
-
- else
-
- set Aud=SrcGrp.Source(1, 0)
-
- SchemeAud=Aud.GetInput(Cstr(StrIn1Aud),Cstr(StrIn2Aud))
-
- Pos=InstrRev(SchemeAud,"\")
-
- SchemeAud=mid(SchemeAud,Pos+1)
-
- SchemeVid="-"
-
- end if
-
- else
-
- SchemeAud="-"
-
- SchemeVid="-"
-
- end if
- if Err.number <> 0 then
- ErrorNum=1
- ErrorDesc=Err.description
- Err.Clear
- end if
-
-
- ElapTime=stat.EncodingTime
-
- if Err.number <> 0 then
- ErrorNum=1
- ErrorDesc=Err.description
- Err.Clear
- end if
- if ElapTime<>"" then
-
- ElapTime=ElapTime*10000
- ElapTime=ElapTime\1000
- if ElapTime>=60 then
- Min=ElapTime\60
- Sec=ElapTime mod 60
- if Min >=60 then
- Hr=Min\60
- Min=Min mod 60
- ElapTime=Hr& "hours " & Min & "Mins" & Sec & "Secs"
- else
- ElapTime=Min & "Mins " & Sec & "Secs"
- end if
- else
- ElapTime=ElapTime & "Secs"
- end if
-
- else
- ElapTime="0 Secs"
- end if
-
-
-
- set OutStat=stat.WMFOutputStats
- if Err.number <> 0 then
- ErrorNum=1
- ErrorDesc=Err.description
- Err.Clear
- end if
-
-
- AvgBitrate=OutStat.AverageBitrate
- AvgBitrate=AvgBitrate/1000
- AvgBitrate=AvgBitrate & "kbps"
- ExpBitrate=OutStat.ExpectedBitrate
- ExpBitrate=ExpBitrate/1000
- ExpBitrate=ExpBitrate & "kbps"
- Bandwidth=AvgBitrate & "[" & ExpBitrate & "]"
-
- FrameRate=0
- if SrcCnt>=1 then
- FrameRate=OutStat.AverageSampleRate
- FrameRate=FrameRate\1000
- end if
-
- FramesDrp=OutStat.DroppedSampleCount
-
- set ArchFile=Enc.File
-
- ArchPath=ArchFile.LocalFileName
-
- if Enc.EnableAutoArchive=false then
-
- ArchMode="Manual"
-
- else
-
- ArchMode="Auto"
-
- end if
- if Err.number <> 0 then
- ErrorNum=1
- ErrorDesc=Err.description
- Err.Clear
- end if%>
-
- <script LANGUAGE="javascript">
- <!--
- RunEnc.tPath.value="<%=Server.HTMLEncode(ArchPath)%>"
- //-->
- </script>
-
- <%if Enc.RunState=2 and Enc.ArchiveState(1)=1 then
- ArchStatus="Archive On"
- end if
- if Enc.RunState=2 and Enc.ArchiveState(1)=2 then
- ArchStatus="Archive Paused"
- end if
-
- if Enc.RunState=2 and Enc.ArchiveState(1)=3 then
- ArchStatus="Archive Stopped"
- end if%>
-
-
-
- <p>
- <table border="1" cellPadding="0" cellSpacing="0" width="100%">
- <tr>
- <td bgcolor="#1184d0"><font COLOR="white">Encoders</font>
- </td>
- <td bgcolor="#1184d0"><font COLOR="white">Sources </font>
- </td>
- <td bgcolor="#1184d0"><font COLOR="white">Monitor</font>
- </td>
- </tr>
- <tr>
- <td width="15%" valign="top"><select id="lstRunning" name="lstRunning" size="2" style="HEIGHT: 116px; WIDTH: 104px" onclick="GetNew()">
-
-
- <%if Cnt>=1 then
-
- for I=0 to Cnt-1
-
- Name=EncCol.item(I)
-
- if I=0 then
-
- SlctEnc=Name%>
-
- <option VALUE="<%=Name%>" selected><%=Name%></option>
-
- <%else%>
-
- <option VALUE="<%=Name%>"><%=Name%> </option>
-
- <%end if
- next
-
- Else%>
-
- <option VALUE="No Encoders Running On That Machine"> "No Encoders Running On That Machine" </option>
-
- <%end if%>
-
-
- </select>
- </td>
- <td id="SrcGrps" width="10%" valign="top">
- <%if SrcGrpCol.Count > 0 then
-
- SrcGrpCnt=SrcGrpCol.Count
-
- for Grp=0 to SrcGrpCnt-1
-
- set SrcGrp1=SrcGrpCol.Item(Grp)
-
- If SrcGrp1.Name=SrcGrpCol.Active.Name then%>
-
- <input id="iSrcGrp" name="iSrcGrp" type="button" value="<%=SrcGrp1.Name%>" style="BACKGROUND-COLOR: blue;color: white;HEIGHT: 24px; WIDTH: 76px;" onclick="ChangeSrcGrp('<%=Grp%>')"><BR>
-
- <%else%>
-
- <input id="iSrcGrp" name="iSrcGrp" style="HEIGHT: 24px; WIDTH: 76px;" type="button" value="<%=SrcGrp1.Name%>" onclick="ChangeSrcGrp('<%=Grp%>')"><BR>
-
- <%end if
- next
- else%>
-
-
- <em><strong>No Source groups defined</strong></em>
-
-
- <%end if%>
-
- </td>
-
- <td width="75%">
-
- <table>
- <tr>
- <td>
-
- <table border="0" cellpadding="0" cellspacing="0" width="100%" id="TabTable" style="display:block;">
- <tr>
- <td>
- <table border="1" cellPadding="1" cellSpacing="1" width="100%" bgColor="black">
- <tr>
- <td width="33%" valign="top">
- <table border="1" cellPadding="0" cellSpacing="0" width="100%">
-
- <tr>
- <td colspan="2" bgcolor="#dcdcdc"><strong>Inputs</strong>
- </td>
- </tr>
-
-
- <tr>
- <td bgcolor="#a0a0a0" width="20%"> <strong>Video:</strong>
- </td>
-
- <td id="SchemeVid" width="80%">
- <font color="White"><%=SchemeVid%></font>
- </td>
- </tr>
-
- <tr>
- <td bgcolor="#a0a0a0" width="20%"><strong>Audio:</strong>
- </td>
-
- <td id="SchemeAud" width="80%">
- <font color="White"><%=SchemeAud%></font>
- </td>
-
- </tr>
-
- </table>
- </td>
-
- <td width="33%" valign="top">
- <table border="1" cellPadding="0" cellSpacing="0" width="100%">
-
- <tr>
- <td colspan="2" bgcolor="#dcdcdc"><strong>Outputs</strong>
- </td>
- </tr>
-
-
- <tr>
- <td bgcolor="#a0a0a0" width="20%"> <strong>Archive:</strong>
- </td>
-
- <td id="ArchPath" width="80%">
- <%Pos=InstrRev(ArchPath,"\")
- ArchPath=mid(ArchPath,Pos+1)%>
- <font color="White"><%=ArchPath%></font>
-
- </td>
- </tr>
-
- <tr>
- <td bgcolor="#a0a0a0" width="20%"><strong>HTTP:</strong>
- </td>
-
- <td id="Prt" width="80%">
- <%Set Brdcst = Enc.Broadcast
- Prt=Brdcst.PortNumber(1)%>
- <font color="White"><%=Prt%></font>
- </td>
-
- </tr>
-
- <tr>
- <td bgcolor="#a0a0a0" width="20%"><strong>Connections:</strong>
-
- </td>
-
- <td id="Connection" width="80%">
- <font color="White"><%=Connection%>
- </td>
-
- </tr>
-
- </table>
-
- </td>
-
- <td width="33%" valign="top">
- <table border="1" cellPadding="0" cellSpacing="0" width="100%">
-
- <tr>
- <td colspan="2" bgcolor="#dcdcdc"><strong>Progress</strong>
- </td>
- </tr>
-
-
- <tr>
- <td bgcolor="#a0a0a0" width="20%"> <strong>Elapsed Time:</strong>
- </td>
-
- <td id="ElapTime" width="80%">
- <font color="White"><%=ElapTime%></font>
-
- </td>
- </tr>
-
- <tr>
- <td bgcolor="#a0a0a0" width="20%"><strong>Total Time:</strong>
- </td>
-
- <td width="80%">
- </td>
-
- </tr>
-
- <tr>
- <td bgcolor="#a0a0a0" width="20%"><strong>Percent:</strong>
-
- </td>
-
- <td width="80%">
-
- </td>
- </tr>
- </table>
- </td>
- </tr>
-
- </td>
-
-
- </tr>
-
-
- <tr>
- <td>
- <tr>
- <td width="100" colspan="3">
- <table border="1" cellPadding="0" cellSpacing="0" width="100%" style="HEIGHT: 124px; WIDTH: 620px">
-
- <tr>
- <td colspan="2" bgcolor="#dcdcdc"><strong>Encoding</strong>
- </td>
- </tr>
-
-
- <tr>
- <td bgcolor="#a0a0a0" width="20%"> <strong>Bandwidth:</strong>
- </td>
-
- <td id="Bandwidth" width="80%">
- <font color="White"><%=Bandwidth%></font>
- </td>
- </tr>
-
- <tr>
- <td bgcolor="#a0a0a0" width="20%"><strong>Current FPS:</strong>
- </td>
-
- <td id="FrameRate" width="80%">
- <font color="White"><%=FrameRate%></font>
- </td>
-
- </tr>
-
- <tr>
- <td bgcolor="#a0a0a0" width="20%"><strong>Profile:</strong>
-
- </td>
-
- <td width="80%">
- <select id="sProfile" name="sProfile" style="HEIGHT: 22px; WIDTH: 447px" onmouseover="DisHint()" onmouseout="HideHint()">
-
- <%if SrcGrpCol.Count > 0 then
-
- set PrfCol=Enc.ProfileCollection
-
- set Prf=SrcGrp.Profile
-
- PrfName=Prf.Name%>
-
- <option selected value="<%=PrfName%>"><%=PrfName%></option>
-
- <%for each Prf in PrfCol
-
- if Prf.Name<>PrfName then%>
-
- <option value="<%=Prf.Name%>"><%=Prf.Name%></option>
-
- <%end if
-
- next
-
- else
-
- set PrfCol=Enc.ProfileCollection
- if Err.number <> 0 then
- ErrorNum=1
- ErrorDesc=Err.description
- Err.Clear
- end if
- for each Prf in PrfCol%>
-
- <option><%=Prf.Name%></option>
-
- <%next
-
- end if %>
-
- </select>
-
-
- </td>
- </tr>
- </table>
-
- </td>
-
- </tr>
- </table>
-
-
-
- </td>
-
-
- </tr>
-
- </table>
-
-
-
- </td>
-
- </tr>
-
-
- <tr>
- <td width="100%">
-
- <table border="0" cellpadding="0" cellspacing="0" width="100%" id="TabTable" style="display:none;" bgcolor="Black" height="300">
- <tr>
- <td bgcolor="#dcdcdc" colspan="2"><strong>Display information</strong>
- </td>
-
-
- </tr>
-
- <tr>
- <td bgcolor="#a0a0a0" width="20%"> <strong> Title:</strong>
- </td>
- <td width="80%" id="Title">
- <font color="White"><%=Title%></font>
- </td>
- </tr>
-
- <tr>
- <td bgcolor="#a0a0a0" width="20%"> <strong>Author:</strong>
- </td>
- <td width="80%" id="Author">
- <font color="White"><%=Author%></font>
- </td>
- </tr>
-
- <tr>
- <td bgcolor="#a0a0a0" width="20%"> <strong>Copyright:</strong>
- </td>
- <td width="80%" id="Copyright">
- <font color="White"><%=Copyright%></font>
- </td>
- </tr>
-
- <tr>
- <td bgcolor="#a0a0a0" width="20%"> <strong>Rating:</strong>
- </td>
- <td width="80%" id="Rating">
- <font color="White"><%=Rating%></font>
- </td>
- </tr>
-
- <tr>
-
- <td bgcolor="#a0a0a0" width="20%"> <strong>Description:</strong>
- </td>
-
-
- <td width="80%" id="Description">
- <font color="White"><%=Description%></font>
- </td>
-
- </tr>
- </table>
-
- </td>
-
- </tr >
- <tr>
- <td>
- <table border="1" cellPadding="1" cellSpacing="1" width="100%" id="TabTable" style="display:none;">
-
- <tr>
- <td bgcolor="black">
- <font color="lime">Stream:
- </font>
-
- <select id="sStream" name="sStream" style ="HEIGHT: 22px; WIDTH: 414px">
-
- <%for j=0 to cntStream-1
-
- DisplayText="Stream " & j
-
- if j=0 then%>
-
- <option selected value="<%=DisplayText%>">
-
- <%=DisplayText%></option>
-
- <%else%>
-
- <option value="<%=DisplayText%>">
-
- <%=DisplayText%></option>
-
- <%end if
-
- next%>
-
- </select>
- <INPUT type="button" value="Go" id=bGo name=bGo onclick="SlctStream()">
- </td>
- </tr>
-
-
- <tr>
- <td>
- <table border="1" cellPadding="1" cellSpacing="1" width="100%" bgcolor="Black">
-
- <tr>
- <td bgcolor="#dcdcdc" colspan="3" align="center">
- <strong>Encoding</strong>
- </td>
-
- </tr>
- <tr>
- <td bgcolor="#a0a0a0" width="20%" colspan="3">
- <strong>Video:</strong>
- </td>
-
- </tr>
- <tr>
- <td>
- </td>
- <td bgcolor="#a0a0a0" width="20%" colspan="0">
- <strong>Bandwidth:</strong>
- </td>
-
- <td id="StreamBandwidthVid">
- <%set SrcGrpCol=Enc.SourceGroupCollection
- if Err.number <> 0 then
- ErrorNum=1
- ErrorDesc=Err.description
- Err.Clear
- end if
- if SrcGrpCol.Count > 0 then
-
- set SrcGrp=SrcGrpCol.Active
-
- SrcCnt=SrcGrp.SourceCount(2)
-
- if Enc.Runstate <> 5 then
- if SrcCnt >= 1 then
-
-
-
- set StreamStat=Stat.StreamOutputStats(2,0,0)
- if Err.number <> 0 then
- ErrorNum=1
- ErrorDesc=Err.description
- Err.Clear
- end if
- AvgBitrate=StreamStat.AverageBitrate
- AvgBitrate=AvgBitrate/1000
- AvgBitrate=AvgBitrate & "kbps"
- ExpBitrate=StreamStat.ExpectedBitrate
- ExpBitrate=ExpBitrate/1000
- ExpBitrate=ExpBitrate & "kbps"
- StreamBandwidthVid=AvgBitrate & "[" & ExpBitrate & "]"
- StreamFrameRateVid=StreamStat.AverageSampleRate
- StreamFrameRateVid=StreamFrameRateVid/1000
- set StreamStat=Stat.StreamOutputStats(1,0,0)
- AvgBitrate=StreamStat.AverageBitrate
- AvgBitrate=AvgBitrate/1000
- AvgBitrate=AvgBitrate & "kbps"
- ExpBitrate=StreamStat.ExpectedBitrate
- ExpBitrate=ExpBitrate/1000
- ExpBitrate=ExpBitrate & "kbps"
- StreamBandwidthAud=AvgBitrate & "[" & ExpBitrate & "]"
- StreamFrameRateAud=StreamStat.AverageSampleRate
- StreamFrameRateAud=StreamFrameRateAud/1000
- else
- StreamBandwidthVid="-"
- StreamFrameRateVid="-"
- set StreamStat=Stat.StreamOutputStats(1,0,0)
- AvgBitrate=StreamStat.AverageBitrate
- AvgBitrate=AvgBitrate/1000
- AvgBitrate=AvgBitrate & "kbps"
- ExpBitrate=StreamStat.ExpectedBitrate
- ExpBitrate=ExpBitrate/1000
- ExpBitrate=ExpBitrate & "kbps"
- StreamBandwidthAud=AvgBitrate & "[" & ExpBitrate & "]"
- StreamFrameRateAud=StreamStat.AverageSampleRate
- StreamFrameRateAud=StreamFrameRateAud/1000
- end if
- else
- StreamBandwidthVid="-"
- StreamFrameRateVid="-"
- StreamBandwidthAud="-"
- StreamFrameRateAud="-"
- end if
- end if
- if Err.number <> 0 then
- ErrorNum=1
- ErrorDesc=Err.description
- Err.Clear
- end if%>
-
- <font color="white"><%=StreamBandwidthVid%></font>
-
- </td>
-
- </tr>
-
- <tr>
- <td>
- </td>
- <td bgcolor="#a0a0a0" width="20%">
- <strong>Current FPS:</strong>
- </td>
-
- <td id="StreamFPSVid">
- <font color="white"><%=StreamFrameRateVid%></font>
- </td>
-
- </tr>
- <tr>
- <td bgcolor="#a0a0a0" width="20%" colspan="3">
- <strong>Audio:</strong>
- </td>
-
- </tr>
- <tr>
- <td>
- </td>
- <td bgcolor="#a0a0a0" width="20%">
- <strong>Bandwidth:</strong>
- </td>
- <td id="StreamBandwidthAud">
- <font color="white"><%=StreamBandwidthAud%></font>
- </td>
- </tr>
- <tr>
- <td>
- </td>
- <td bgcolor="#a0a0a0" width="20%">
- <strong>Current FPS:</strong>
- </td>
- <td id="StreamFPSAud">
- <font color="white"><%=StreamFrameRateAud%></font>
- </td>
- </tr>
- </table>
- </td>
- </tr>
-
- </table>
- </td>
- </tr>
-
-
- <tr>
- <td>
-
- <table border="0" cellpadding="0" cellspacing="0" width="100%">
- <tr>
- <td width="25%" class="clsNgHead" id="tabsTTSub" onclick="fnTabClickTTSub('0');"><a href="javascript.void()" onclick="fnTabClickTTSub('0');">General</a></td>
- <td width="25%" class="clsTab" id="tabsTTSub" onclick="fnTabClickTTSub('1');"><a href="javascript.void()" onclick="fnTabClickTTSub('1');">Display Infomation</a></td>
- <td width="25%" class="clsTab" id="tabsTTSub" onclick="fnTabClickTTSub('2');"><a href="javascript.void()" onclick="fnTabClickTTSub('2');">Stream Information</a></td>
- <td>
- <input type="button" value="Refresh" id="cmdRefresh" name="cmdRefresh" onclick="refr_PageRefresh()">
- </td>
- </tr>
- </table>
-
-
- </td>
-
- </tr>
-
-
- </table>
-
-
-
-
-
-
-
-
-
-
- </td>
- <tr>
- <td bgcolor="#1184d0" colspan="2">
- <strong><font color="white">Encoder Control:</font></strong><br>
-
- <input type="button" value="Start" id="cmdStart" name="cmdStart" onclick="Start()">
- <input type="button" value="Stop" id="cmdStop" name="cmdStop" onclick="Stop()">
- <input type="button" value="Mute" id="cmdMute" name="cmdMute" onclick="Mute()">
-
- <br>
- <input type="button" value="New" id="bNewEnc" name="bNewEnc" onclick="CrtEncoder()">
- <INPUT type="button" value="Remove Encoder" id=bDestroy name=bDestroy onclick="DstEncoder()">
- <INPUT type="button" value="Load" id=bLoad name=bLoad onclick="LoadEncoder()" >
-
- </td>
-
- <td bgcolor="#1184d0" valign="bottom">
- <strong><font color="white">Archive Control:</font></strong><br>
- <input type="button" value="Start" id="bAStart" name="bAStart" onclick="AStart()">
- <input type="button" value="Stop" id="bAstop" name="bAstop" onclick="AStop()">
- <input type="button" value="Pause" id="bAPause" name="bAPause" onclick="APause()">
- <br>
- <input type="button" value="Manual" id="bManual" name="bManual" onclick="ManualArch()">
- <input type="button" value="Path" id="bChange" name="bChange" onclick="ChangePath()">
-
- <!--METADATA TYPE="DesignerControl" startspan
- <OBJECT classid="clsid:61EAA0F0-4988-11D1-8C43-00A0C959BC0A" id=TimeLines1 style="LEFT: 0px; TOP: 0px">
- <PARAM NAME="TimeLine1" VALUE="refr,1">
- <PARAM NAME="TimeLine1Action1" VALUE="0,PageRefresh,1,60000,0,50,1,1,0,0"></OBJECT>
- -->
- <OBJECT classid=clsid:B0A6BAE2-AAF0-11D0-A152-00A0C908DB96 id=SeqMgr VIEWASTEXT></OBJECT>
-
- <SCRIPT LANGUAGE="JavaScript">
- <!--
- function _TimeLineObject ( seqmgr, name ) {
- this.seqmgr = seqmgr;
- this.name = name;
- }
-
- function _TimeLine_Method_At ( time, event, loop, interval, tiebreak, threshold ) {
- if ( 2 == arguments.length )
- this.seqmgr.item(this.name).at( time, event );
- else if ( 3 == arguments.length )
- this.seqmgr.item(this.name).at( time, event, loop );
- else if ( 4 == arguments.length )
- this.seqmgr.item(this.name).at( time, event, loop, interval );
- else if ( 5 == arguments.length )
- this.seqmgr.item(this.name).at( time, event, loop, interval, tiebreak );
- else if ( 6 == arguments.length )
- this.seqmgr.item(this.name).at( time, event, loop, interval, tiebreak, threshold );
- }
-
- function _TimeLine_Method_Pause () {
- this.seqmgr.item(this.name).pause ();
- }
-
- function _TimeLine_Method_Play () {
- this.seqmgr.item(this.name).play ();
- }
-
- function _TimeLine_Method_Seek ( t ) {
- this.seqmgr.item(this.name).seek ( t );
- }
-
- function _TimeLine_Method_Stop () {
- this.seqmgr.item(this.name).stop ();
- }
-
- function _TimeLine_GetProp_PlayState () {
- return this.seqmgr.item(this.name).playstate;
- }
-
- function _TimeLine_GetProp_Time () {
- return this.seqmgr.item(this.name).time;
- }
- // -->
- </SCRIPT>
-
- <script language="JavaScript" FOR="SeqMgr" event="oninit">
- _TimeLineObject.prototype.at = _TimeLine_Method_At;
- _TimeLineObject.prototype.pause = _TimeLine_Method_Pause;
- _TimeLineObject.prototype.play = _TimeLine_Method_Play;
- _TimeLineObject.prototype.seek = _TimeLine_Method_Seek;
- _TimeLineObject.prototype.stop = _TimeLine_Method_Stop;
- _TimeLineObject.prototype.playstate = _TimeLine_GetProp_PlayState;
- _TimeLineObject.prototype.time = _TimeLine_GetProp_Time;
-
- refr = new _TimeLineObject(SeqMgr, "refr");
-
- refr.at(0.000,"refr_PageRefresh",-1,60.000);
-
- refr.play();
- </script>
-
- <!--METADATA TYPE="DesignerControl" endspan-->
-
-
- </td>
- </tr>
- <tr>
- <td id="ArchMode" bgcolor="#d4d0c9" colspan="2">
- Archive Mode:<%=ArchMode%>
- </td>
-
- <td id="State" bgcolor="#d4d0c9">
- <%=State%>
- </td>
- </tr>
-
-
- </table></p></form>
- <%if State="Encoder Running" then%>
- <script LANGUAGE="javascript">
- <!--
- Start_Disable()
-
- //-->
- </script>
-
- <%else%>
- <script LANGUAGE="javascript">
- <!--
- Stop_Disable()
- //-->
- </script>
-
- <%end if
-
-
- if ArchPath<>"" then
-
- if Enc.RunState=2 and Enc.ArchiveState(1)=1 then%>
-
- <script LANGUAGE="javascript">
- <!--
-
- ArchiveStarted()
- //-->
- </script>
-
-
- <%end if%>
-
- <%if Enc.RunState=2 and Enc.ArchiveState(1)=2 then%>
-
- <script LANGUAGE="javascript">
- <!--
- ArchivePaused()
- //-->
- </script>
-
- <%end if%>
-
- <%if Enc.RunState=2 and Enc.ArchiveState(1)=3 then%>
-
- <script LANGUAGE="javascript">
- <!--
- ArchiveStopped()
- //-->
- </script>
-
- <%end if%>
-
- <%else%>
- <script LANGUAGE="javascript">
- <!--
-
- DisableArchive()
-
- //-->
- </script>
-
-
- <%end if%>
- <%if ErrorNum<>0 then%>
- <SCRIPT LANGUAGE=javascript>
- <!--
- Error_Display("<%=ErrorNum%>","<%=ErrorDesc%>")
- //-->
- </SCRIPT>
-
-
- <%end if
- else
- Response.Write("No Encoders Running on the Given Machine")%>
- <BR>
- <input type="button" value="New Encoder" id="bNewEnc" name="bNewEnc" style="height=25;width=100" onclick="CrtEncoder()">
- <INPUT type="button" value="Load" id=bLoad name=bLoad onclick="LoadEncoder()" >
-
- <%end if%>
-
-
- </div>
- <div id="WaitProcess" align="center" style="display:none;"><em> <font color="Red">Processing Please Wait...</font></em></div>
- <div id="Tip" style="BACKGROUND-COLOR: #ffdead; FONT-FAMILY: verdana,arial; FONT-SIZE: 12px; HEIGHT: 20px; PADDING-BOTTOM: 5px; PADDING-LEFT: 5px; PADDING-RIGHT: 5px; PADDING-TOP: 5px; POSITION: absolute; TEXT-DECORATION: none;Display:none;">Stop Encoder to change Profiles</div>
-
-
- </body>
- </html>
-