[matroska] r1148 - in trunk/mkNETtools: CLI MuxEngine
| Newsgroups | gmane.comp.multimedia.matroska.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: jcsston
Date: 2005-04-20 09:12:46 +0400 (Wed, 20 Apr 2005)
New Revision: 1148
Modified:
trunk/mkNETtools/CLI/CLI.csproj.user
trunk/mkNETtools/MuxEngine/MuxThread.cs
Log:
Added percent status messages
(Old uncommited changes)
Modified: trunk/mkNETtools/CLI/CLI.csproj.user
===================================================================
--- trunk/mkNETtools/CLI/CLI.csproj.user 2005-04-19 20:55:02 UTC (rev 1147)
+++ trunk/mkNETtools/CLI/CLI.csproj.user 2005-04-20 05:12:46 UTC (rev 1148)
@@ -11,7 +11,7 @@
RemoteDebugEnabled = "false"
RemoteDebugMachine = ""
StartAction = "Project"
- StartArguments = '-i:"D:\My Music\Eliza Wren - Living on the Outiside.mka" -o:"D:\My Music\Eliza Wren - Living on the Outiside_.mp3"'
+ StartArguments = '-i:"D:\My Music\Switchfoot - The Beautiful LetDown MP3 128kbps LAME.mka" -o:"D:\My Music\Switchfoot - The Beautiful LetDown MP3 128kbps LAME_.mp3"'
StartPage = ""
StartProgram = ""
StartURL = ""
Modified: trunk/mkNETtools/MuxEngine/MuxThread.cs
===================================================================
--- trunk/mkNETtools/MuxEngine/MuxThread.cs 2005-04-19 20:55:02 UTC (rev 1147)
+++ trunk/mkNETtools/MuxEngine/MuxThread.cs 2005-04-20 05:12:46 UTC (rev 1148)
@@ -122,8 +122,9 @@
{
double totalDuration = this.LongestTrackDuration;
double lastTimecode = 0.0;
- int lastPercent = 0;
+ int lastPercent = -1;
+ Console.Out.WriteLine("Muxing " + totalDuration + " seconds...");
while (!m_bExit)
{
bool bEOF = true;
@@ -147,13 +148,15 @@
int percent = (int)((100.0 / totalDuration) * lastTimecode);
if (percent != lastPercent)
{
- Console.Out.WriteLine(percent + "%");
+ Console.Out.Write(percent + "% ");
lastPercent = percent;
}
//Thread.Sleep(10);
if (bEOF)
break;
}
+ Console.Out.WriteLine("");
+ Console.Out.WriteLine("Muxed " + lastTimecode + " seconds...");
// Close the output file
m_Output.Plugin.Close();
}