delete converter stuff

This commit is contained in:
Brett Sanderson 2016-03-07 20:27:09 -05:00
parent 84412a122a
commit 8ba905e256
22 changed files with 0 additions and 1475 deletions

View File

@ -1,7 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6" />
</startup>
</configuration>

View File

@ -1,131 +0,0 @@
using System;
using System.Drawing;
using System.IO;
using System.Text.RegularExpressions;
using System.Windows.Forms;
using AviFile;
using CdgLib;
namespace KaraokeConverter
{
public class ExportAVI
{
public delegate void StatusEventHandler(string message);
public void CDGtoAVI(string aviFileName, string cdgFileName, string mp3FileName, double frameRate,
string backgroundFileName = "")
{
Bitmap backgroundBmp = null;
Bitmap mergedBMP = null;
VideoStream aviStream = null;
var myCDGFile = new GraphicsFile(cdgFileName, FileMode.Open, FileAccess.Read);
myCDGFile.RenderAtPosition(0);
var bitmap__1 = (Bitmap) myCDGFile.RgbImage;
if (!string.IsNullOrEmpty(backgroundFileName))
{
try
{
if (IsMovie(backgroundFileName))
backgroundBmp = MovieFrameExtractor.GetBitmap(0, backgroundFileName, GraphicsFile.FullWidth,
GraphicsFile.FullHeight);
if (IsGraphic(backgroundFileName))
backgroundBmp = GraphicUtil.GetCdgSizeBitmap(backgroundFileName);
}
catch (Exception ex)
{
}
}
var aviManager = new AviManager(aviFileName, false);
if (backgroundBmp != null)
{
mergedBMP = GraphicUtil.MergeImagesWithTransparency(backgroundBmp, bitmap__1);
aviStream = aviManager.AddVideoStream(true, frameRate, mergedBMP);
mergedBMP.Dispose();
if (IsMovie(backgroundFileName))
backgroundBmp.Dispose();
}
else
{
aviStream = aviManager.AddVideoStream(true, frameRate, bitmap__1);
}
var count = 0;
var frameInterval = 1000/frameRate;
var totalDuration = myCDGFile.GetTotalDuration();
double position = 0;
while (position <= totalDuration)
{
count += 1;
position = count*frameInterval;
myCDGFile.RenderAtPosition(Convert.ToInt64(position));
bitmap__1 = (Bitmap) myCDGFile.RgbImage;
if (!string.IsNullOrEmpty(backgroundFileName))
{
if (IsMovie(backgroundFileName))
backgroundBmp = MovieFrameExtractor.GetBitmap(position/1000, backgroundFileName,
GraphicsFile.FullWidth, GraphicsFile.FullHeight);
}
if (backgroundBmp != null)
{
mergedBMP = GraphicUtil.MergeImagesWithTransparency(backgroundBmp, bitmap__1);
aviStream.AddFrame(mergedBMP);
mergedBMP.Dispose();
if (IsMovie(backgroundFileName))
backgroundBmp.Dispose();
}
else
{
aviStream.AddFrame(bitmap__1);
}
bitmap__1.Dispose();
var percentageDone = (int) (position/totalDuration*100);
if (Status != null)
{
Status(percentageDone.ToString());
}
Application.DoEvents();
}
myCDGFile.Dispose();
aviManager.Close();
if (backgroundBmp != null)
backgroundBmp.Dispose();
AddMP3toAVI(aviFileName, mp3FileName);
}
public static void AddMP3toAVI(string aviFileName, string mp3FileName)
{
/*
string newAVIFileName = Regex.Replace(aviFileName, "\\.avi$", "MUX.avi", RegexOptions.IgnoreCase);
string cmdLineArgs = "-ovc copy -oac copy -audiofile \"" + mp3FileName + "\" -o \"" + newAVIFileName + "\" \"" + aviFileName + "\"";
using (Process myProcess = new Process()) {
string myCMD = "\"" + System.AppDomain.CurrentDomain.BaseDirectory() + "mencoder.exe \"" + cmdLineArgs;
myProcess.StartInfo.FileName = "\"" + System.AppDomain.CurrentDomain.BaseDirectory() + "mencoder.exe\"";
myProcess.StartInfo.Arguments = cmdLineArgs;
myProcess.StartInfo.UseShellExecute = false;
myProcess.StartInfo.CreateNoWindow = true;
myProcess.Start();
myProcess.PriorityClass = ProcessPriorityClass.Normal;
myProcess.WaitForExit();
}
if (File.Exists(newAVIFileName)) {
File.Delete(aviFileName);
File.Move(newAVIFileName, aviFileName);
}
*/
}
public static bool IsMovie(string filename)
{
return Regex.IsMatch(filename, "^.+(\\.avi|\\.mpg|\\.wmv)$", RegexOptions.IgnoreCase);
}
public static bool IsGraphic(string filename)
{
return Regex.IsMatch(filename, "^.+(\\.jpg|\\.bmp|\\.png|\\.tif|\\.tiff|\\.gif|\\.wmf)$",
RegexOptions.IgnoreCase);
}
public event StatusEventHandler Status;
}
}

View File

@ -1,305 +0,0 @@
namespace KaraokeConverter
{
partial class Form1
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.tbFileName = new System.Windows.Forms.TextBox();
this.btBrowseCDG = new System.Windows.Forms.Button();
this.OpenFileDialog1 = new System.Windows.Forms.OpenFileDialog();
this.Panel1 = new System.Windows.Forms.Panel();
this.GroupBox3 = new System.Windows.Forms.GroupBox();
this.chkBackGraph = new System.Windows.Forms.CheckBox();
this.tbBackGroundImg = new System.Windows.Forms.TextBox();
this.btBrowseImg = new System.Windows.Forms.Button();
this.chkBackGround = new System.Windows.Forms.CheckBox();
this.tbBackGroundAVI = new System.Windows.Forms.TextBox();
this.btBackGroundBrowse = new System.Windows.Forms.Button();
this.lbSaveAs = new System.Windows.Forms.Label();
this.tbAVIFile = new System.Windows.Forms.TextBox();
this.btOutputAVI = new System.Windows.Forms.Button();
this.tbFPS = new System.Windows.Forms.TextBox();
this.lbFPS = new System.Windows.Forms.Label();
this.btConvert = new System.Windows.Forms.Button();
this.GroupBox2 = new System.Windows.Forms.GroupBox();
this.GroupBox1 = new System.Windows.Forms.GroupBox();
this.pbAVI = new System.Windows.Forms.ProgressBar();
this.SaveFileDialog1 = new System.Windows.Forms.SaveFileDialog();
this.Panel1.SuspendLayout();
this.GroupBox3.SuspendLayout();
this.GroupBox2.SuspendLayout();
this.GroupBox1.SuspendLayout();
this.SuspendLayout();
//
// tbFileName
//
this.tbFileName.Location = new System.Drawing.Point(9, 13);
this.tbFileName.Name = "tbFileName";
this.tbFileName.ReadOnly = true;
this.tbFileName.Size = new System.Drawing.Size(475, 20);
this.tbFileName.TabIndex = 0;
//
// btBrowseCDG
//
this.btBrowseCDG.Location = new System.Drawing.Point(490, 11);
this.btBrowseCDG.Name = "btBrowseCDG";
this.btBrowseCDG.Size = new System.Drawing.Size(68, 23);
this.btBrowseCDG.TabIndex = 1;
this.btBrowseCDG.Text = "Browse...";
this.btBrowseCDG.UseVisualStyleBackColor = true;
this.btBrowseCDG.Click += new System.EventHandler(this.btBrowseCDG_Click);
//
// OpenFileDialog1
//
this.OpenFileDialog1.FileName = "OpenFileDialog1";
//
// Panel1
//
this.Panel1.Controls.Add(this.GroupBox3);
this.Panel1.Controls.Add(this.GroupBox2);
this.Panel1.Controls.Add(this.GroupBox1);
this.Panel1.Dock = System.Windows.Forms.DockStyle.Top;
this.Panel1.Location = new System.Drawing.Point(0, 0);
this.Panel1.Name = "Panel1";
this.Panel1.Size = new System.Drawing.Size(649, 255);
this.Panel1.TabIndex = 3;
this.Panel1.Paint += new System.Windows.Forms.PaintEventHandler(this.Panel1_Paint);
//
// GroupBox3
//
this.GroupBox3.Controls.Add(this.chkBackGraph);
this.GroupBox3.Controls.Add(this.tbBackGroundImg);
this.GroupBox3.Controls.Add(this.btBrowseImg);
this.GroupBox3.Controls.Add(this.chkBackGround);
this.GroupBox3.Controls.Add(this.tbBackGroundAVI);
this.GroupBox3.Controls.Add(this.btBackGroundBrowse);
this.GroupBox3.Controls.Add(this.lbSaveAs);
this.GroupBox3.Controls.Add(this.tbAVIFile);
this.GroupBox3.Controls.Add(this.btOutputAVI);
this.GroupBox3.Controls.Add(this.tbFPS);
this.GroupBox3.Controls.Add(this.lbFPS);
this.GroupBox3.Controls.Add(this.btConvert);
this.GroupBox3.Location = new System.Drawing.Point(3, 53);
this.GroupBox3.Name = "GroupBox3";
this.GroupBox3.Size = new System.Drawing.Size(571, 145);
this.GroupBox3.TabIndex = 18;
this.GroupBox3.TabStop = false;
this.GroupBox3.Text = "AVI Settings";
//
// chkBackGraph
//
this.chkBackGraph.AutoSize = true;
this.chkBackGraph.Location = new System.Drawing.Point(7, 79);
this.chkBackGraph.Name = "chkBackGraph";
this.chkBackGraph.Size = new System.Drawing.Size(122, 17);
this.chkBackGraph.TabIndex = 23;
this.chkBackGraph.Text = "Background graphic";
this.chkBackGraph.UseVisualStyleBackColor = true;
this.chkBackGraph.CheckedChanged += new System.EventHandler(this.chkBackGraph_CheckedChanged);
//
// tbBackGroundImg
//
this.tbBackGroundImg.Enabled = false;
this.tbBackGroundImg.Location = new System.Drawing.Point(128, 77);
this.tbBackGroundImg.Name = "tbBackGroundImg";
this.tbBackGroundImg.Size = new System.Drawing.Size(356, 20);
this.tbBackGroundImg.TabIndex = 21;
//
// btBrowseImg
//
this.btBrowseImg.Enabled = false;
this.btBrowseImg.Location = new System.Drawing.Point(490, 75);
this.btBrowseImg.Name = "btBrowseImg";
this.btBrowseImg.Size = new System.Drawing.Size(75, 23);
this.btBrowseImg.TabIndex = 22;
this.btBrowseImg.Text = "Browse...";
this.btBrowseImg.UseVisualStyleBackColor = true;
this.btBrowseImg.Click += new System.EventHandler(this.btBrowseImg_Click);
//
// chkBackGround
//
this.chkBackGround.AutoSize = true;
this.chkBackGround.Location = new System.Drawing.Point(7, 51);
this.chkBackGround.Name = "chkBackGround";
this.chkBackGround.Size = new System.Drawing.Size(115, 17);
this.chkBackGround.TabIndex = 20;
this.chkBackGround.Text = "Background movie";
this.chkBackGround.UseVisualStyleBackColor = true;
this.chkBackGround.CheckedChanged += new System.EventHandler(this.chkBackGround_CheckedChanged);
//
// tbBackGroundAVI
//
this.tbBackGroundAVI.Enabled = false;
this.tbBackGroundAVI.Location = new System.Drawing.Point(128, 49);
this.tbBackGroundAVI.Name = "tbBackGroundAVI";
this.tbBackGroundAVI.Size = new System.Drawing.Size(356, 20);
this.tbBackGroundAVI.TabIndex = 17;
//
// btBackGroundBrowse
//
this.btBackGroundBrowse.Enabled = false;
this.btBackGroundBrowse.Location = new System.Drawing.Point(490, 47);
this.btBackGroundBrowse.Name = "btBackGroundBrowse";
this.btBackGroundBrowse.Size = new System.Drawing.Size(75, 23);
this.btBackGroundBrowse.TabIndex = 18;
this.btBackGroundBrowse.Text = "Browse...";
this.btBackGroundBrowse.UseVisualStyleBackColor = true;
this.btBackGroundBrowse.Click += new System.EventHandler(this.btBackGroundBrowse_Click);
//
// lbSaveAs
//
this.lbSaveAs.AutoSize = true;
this.lbSaveAs.Location = new System.Drawing.Point(76, 22);
this.lbSaveAs.Name = "lbSaveAs";
this.lbSaveAs.Size = new System.Drawing.Size(46, 13);
this.lbSaveAs.TabIndex = 16;
this.lbSaveAs.Text = "Save as";
//
// tbAVIFile
//
this.tbAVIFile.Location = new System.Drawing.Point(128, 19);
this.tbAVIFile.Name = "tbAVIFile";
this.tbAVIFile.Size = new System.Drawing.Size(356, 20);
this.tbAVIFile.TabIndex = 9;
//
// btOutputAVI
//
this.btOutputAVI.Location = new System.Drawing.Point(490, 17);
this.btOutputAVI.Name = "btOutputAVI";
this.btOutputAVI.Size = new System.Drawing.Size(75, 23);
this.btOutputAVI.TabIndex = 10;
this.btOutputAVI.Text = "Browse...";
this.btOutputAVI.UseVisualStyleBackColor = true;
this.btOutputAVI.Click += new System.EventHandler(this.btOutputAVI_Click_1);
//
// tbFPS
//
this.tbFPS.Location = new System.Drawing.Point(128, 108);
this.tbFPS.Name = "tbFPS";
this.tbFPS.Size = new System.Drawing.Size(67, 20);
this.tbFPS.TabIndex = 15;
this.tbFPS.Text = "15";
//
// lbFPS
//
this.lbFPS.AutoSize = true;
this.lbFPS.Location = new System.Drawing.Point(201, 111);
this.lbFPS.Name = "lbFPS";
this.lbFPS.Size = new System.Drawing.Size(94, 13);
this.lbFPS.TabIndex = 12;
this.lbFPS.Text = "frames per second";
//
// btConvert
//
this.btConvert.Location = new System.Drawing.Point(490, 106);
this.btConvert.Name = "btConvert";
this.btConvert.Size = new System.Drawing.Size(75, 23);
this.btConvert.TabIndex = 13;
this.btConvert.Text = "Create AVI";
this.btConvert.UseVisualStyleBackColor = true;
this.btConvert.Click += new System.EventHandler(this.btConvert_Click);
//
// GroupBox2
//
this.GroupBox2.Controls.Add(this.tbFileName);
this.GroupBox2.Controls.Add(this.btBrowseCDG);
this.GroupBox2.Location = new System.Drawing.Point(3, 3);
this.GroupBox2.Name = "GroupBox2";
this.GroupBox2.Size = new System.Drawing.Size(571, 40);
this.GroupBox2.TabIndex = 17;
this.GroupBox2.TabStop = false;
this.GroupBox2.Text = "MP3 + CDG File";
//
// GroupBox1
//
this.GroupBox1.Controls.Add(this.pbAVI);
this.GroupBox1.Location = new System.Drawing.Point(3, 204);
this.GroupBox1.Name = "GroupBox1";
this.GroupBox1.Size = new System.Drawing.Size(571, 48);
this.GroupBox1.TabIndex = 16;
this.GroupBox1.TabStop = false;
this.GroupBox1.Text = "Progress";
//
// pbAVI
//
this.pbAVI.Location = new System.Drawing.Point(7, 19);
this.pbAVI.Name = "pbAVI";
this.pbAVI.Size = new System.Drawing.Size(555, 23);
this.pbAVI.TabIndex = 14;
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(649, 255);
this.Controls.Add(this.Panel1);
this.Name = "Form1";
this.Text = "MP3+CDG To Video Converter";
this.Load += new System.EventHandler(this.Form1_Load);
this.Panel1.ResumeLayout(false);
this.GroupBox3.ResumeLayout(false);
this.GroupBox3.PerformLayout();
this.GroupBox2.ResumeLayout(false);
this.GroupBox2.PerformLayout();
this.GroupBox1.ResumeLayout(false);
this.ResumeLayout(false);
}
private System.Windows.Forms.TextBox tbFileName;
private System.Windows.Forms.Button btBrowseCDG;
private System.Windows.Forms.OpenFileDialog OpenFileDialog1;
private System.Windows.Forms.Panel Panel1;
private System.Windows.Forms.GroupBox GroupBox2;
private System.Windows.Forms.GroupBox GroupBox1;
private System.Windows.Forms.ProgressBar pbAVI;
private System.Windows.Forms.TextBox tbFPS;
private System.Windows.Forms.Button btConvert;
private System.Windows.Forms.Label lbFPS;
private System.Windows.Forms.Button btOutputAVI;
private System.Windows.Forms.TextBox tbAVIFile;
private System.Windows.Forms.GroupBox GroupBox3;
private System.Windows.Forms.SaveFileDialog SaveFileDialog1;
private System.Windows.Forms.TextBox tbBackGroundAVI;
private System.Windows.Forms.Button btBackGroundBrowse;
private System.Windows.Forms.Label lbSaveAs;
private System.Windows.Forms.CheckBox chkBackGround;
private System.Windows.Forms.CheckBox chkBackGraph;
private System.Windows.Forms.TextBox tbBackGroundImg;
private System.Windows.Forms.Button btBrowseImg;
#endregion
}
}

View File

@ -1,237 +0,0 @@
using System;
using System.Drawing;
using System.IO;
using System.Text.RegularExpressions;
using System.Windows.Forms;
using CdgLib;
namespace KaraokeConverter
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
#region "Events"
private void mExportAVI_Status(string message)
{
pbAVI.Value = Convert.ToInt32(message);
}
#endregion
#region "Private Declarations"
private GraphicsFile mCDGFile;
private CdgFileIoStream mCDGStream;
private string mCDGFileName;
private string mMP3FileName;
private string mTempDir;
private ExportAVI withEventsField_mExportAVI;
private ExportAVI mExportAVI
{
get { return withEventsField_mExportAVI; }
set
{
if (withEventsField_mExportAVI != null)
{
withEventsField_mExportAVI.Status -= mExportAVI_Status;
}
withEventsField_mExportAVI = value;
if (withEventsField_mExportAVI != null)
{
withEventsField_mExportAVI.Status += mExportAVI_Status;
}
}
}
#endregion
#region "Control Events"
private void btOutputAVI_Click_1(object sender, EventArgs e)
{
SelectOutputAVI();
}
private void btBackGroundBrowse_Click(object sender, EventArgs e)
{
SelectBackGroundAVI();
}
private void btConvert_Click(object sender, EventArgs e)
{
ConvertAVI();
}
private void tbFPS_KeyPress(object sender, KeyPressEventArgs e)
{
/*
if ((Strings.Asc(e.KeyChar) >= Keys.D0 & Strings.Asc(e.KeyChar) <= Keys.D9) | Strings.Asc(e.KeyChar) == Keys.Back | e.KeyChar == ".") {
e.Handled = false;
} else {
e.Handled = true;
}
*/
}
private void btBrowseCDG_Click(object sender, EventArgs e)
{
OpenFileDialog1.Filter = "CDG or Zip Files (*.zip, *.cdg)|*.zip;*.cdg";
OpenFileDialog1.ShowDialog();
tbFileName.Text = OpenFileDialog1.FileName;
}
private void chkBackGraph_CheckedChanged(object sender, EventArgs e)
{
if (chkBackGround.Checked && chkBackGraph.Checked)
{
chkBackGround.Checked = false;
}
ToggleCheckBox();
}
private void chkBackGround_CheckedChanged(object sender, EventArgs e)
{
if (chkBackGraph.Checked && chkBackGround.Checked)
{
chkBackGraph.Checked = false;
}
ToggleCheckBox();
}
private void btBrowseImg_Click(object sender, EventArgs e)
{
SelectBackGroundGraphic();
}
#endregion
#region "Private Methods"
private void SelectOutputAVI()
{
SaveFileDialog1.Filter = "AVI Files (*.avi)|*.avi";
SaveFileDialog1.ShowDialog();
tbAVIFile.Text = SaveFileDialog1.FileName;
}
private void SelectBackGroundAVI()
{
OpenFileDialog1.Filter = "Movie Files (*.avi, *.mpg, *.wmv)|*.avi;*.mpg;*.wmv";
OpenFileDialog1.ShowDialog();
tbBackGroundAVI.Text = OpenFileDialog1.FileName;
}
private void SelectBackGroundGraphic()
{
OpenFileDialog1.Filter = "Graphic Files|*.jpg;*.bmp;*.png;*.tif;*.tiff;*.gif;*.wmf";
OpenFileDialog1.ShowDialog();
tbBackGroundImg.Text = OpenFileDialog1.FileName;
}
private void ConvertAVI()
{
try
{
PreProcessFiles();
if (string.IsNullOrEmpty(mCDGFileName) | string.IsNullOrEmpty(mMP3FileName))
{
MessageBox.Show("Cannot find a CDG and MP3 file to convert together.");
return;
}
}
catch (Exception ex)
{
//Do nothing for now
}
mExportAVI = new ExportAVI();
pbAVI.Value = 0;
var backGroundFilename = "";
if (chkBackGraph.Checked)
backGroundFilename = tbBackGroundImg.Text;
if (chkBackGround.Checked)
backGroundFilename = tbBackGroundAVI.Text;
mExportAVI.CDGtoAVI(tbAVIFile.Text, mCDGFileName, mMP3FileName, Convert.ToDouble(tbFPS.Text),
backGroundFilename);
pbAVI.Value = 0;
try
{
CleanUp();
}
catch (Exception ex)
{
//Do nothing for now
}
}
private void CleanUp()
{
if (!string.IsNullOrEmpty(mTempDir))
{
try
{
Directory.Delete(mTempDir, true);
}
catch (Exception ex)
{
}
}
mTempDir = "";
}
private void PreProcessFiles()
{
string myCDGFileName = "";
if (Regex.IsMatch(tbFileName.Text, "\\.zip$")) {
string myTempDir = Path.GetTempPath() + Path.GetRandomFileName();
Directory.CreateDirectory(myTempDir);
mTempDir = myTempDir;
myCDGFileName = Unzip.UnzipMP3GFiles(tbFileName.Text, myTempDir);
} else if (Regex.IsMatch(tbFileName.Text, "\\.cdg$")) {
myCDGFileName = tbFileName.Text;
PairUpFiles:
string myMP3FileName = System.Text.RegularExpressions.Regex.Replace(myCDGFileName, "\\.cdg$", ".mp3");
if (File.Exists(myMP3FileName)) {
mMP3FileName = myMP3FileName;
mCDGFileName = myCDGFileName;
mTempDir = "";
}
}
}
private void ToggleCheckBox()
{
tbBackGroundAVI.Enabled = chkBackGround.Checked;
btBackGroundBrowse.Enabled = chkBackGround.Checked;
tbBackGroundImg.Enabled = chkBackGraph.Checked;
btBrowseImg.Enabled = chkBackGraph.Checked;
}
#endregion
private void Panel1_Paint(object sender, PaintEventArgs e)
{
}
private void Panel2_Paint(object sender, PaintEventArgs e)
{
}
private void Form1_Load(object sender, EventArgs e)
{
}
}
}

View File

@ -1,126 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="OpenFileDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="SaveFileDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>159, 17</value>
</metadata>
</root>

View File

@ -1,147 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{2821C26D-52D8-43D9-BEF4-7CE4DFA60776}</ProjectGuid>
<OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>KaraokeConverter</RootNamespace>
<AssemblyName>KaraokeConverter</AssemblyName>
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>x86</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="AviFile, Version=1.0.3823.11378, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>lib\AviFile.dll</HintPath>
</Reference>
<Reference Include="DirectShowLib-2005, Version=2.1.0.0, Culture=neutral, PublicKeyToken=67e7b740cdfc2d3f, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>lib\DirectShowLib-2005.dll</HintPath>
</Reference>
<Reference Include="ICSharpCode.SharpZipLib, Version=0.86.0.518, Culture=neutral, PublicKeyToken=1b03e6acf1164f73, processorArchitecture=MSIL">
<HintPath>..\packages\SharpZipLib.0.86.0\lib\20\ICSharpCode.SharpZipLib.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Interop.DexterLib, Version=1.0.0.0, Culture=neutral">
<SpecificVersion>False</SpecificVersion>
<EmbedInteropTypes>False</EmbedInteropTypes>
<HintPath>lib\Interop.DexterLib.dll</HintPath>
</Reference>
<Reference Include="NReco.VideoConverter, Version=1.0.8.0, Culture=neutral, PublicKeyToken=395ccb334978a0cd, processorArchitecture=MSIL">
<HintPath>..\packages\NReco.VideoConverter.1.0.8.0\lib\net20\NReco.VideoConverter.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="NReco.VideoInfo, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>lib\NReco.VideoInfo.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Drawing.Design" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="ExportAVI.cs" />
<Compile Include="Form1.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Form1.Designer.cs">
<DependentUpon>Form1.cs</DependentUpon>
</Compile>
<Compile Include="MovieFrameExtractor.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Unzip.cs" />
<EmbeddedResource Include="Form1.resx">
<DependentUpon>Form1.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime>
</Compile>
<None Include="packages.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<Content Include="lib\AviFile.dll">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="lib\DirectShowLib-2005.dll">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="lib\Interop.DexterLib.dll">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="lib\mencoder.exe">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="lib\NReco.VideoInfo.dll" />
<Content Include="lib\NReco.VideoInfo.XML" />
<None Include="Resources\Google.png" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\CdgLib\CdgLib.csproj">
<Project>{3203dfd2-da5b-47b3-b009-18dd9c401fc3}</Project>
<Name>CdgLib</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>

View File

@ -1,32 +0,0 @@
using System;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using DexterLib;
using DirectShowLib.DMO;
using NReco.VideoConverter;
namespace KaraokeConverter
{
public class MovieFrameExtractor
{
public static Bitmap GetBitmap(double position, string movieFileName, int width, int height)
{
var stopWatch = new Stopwatch();
stopWatch.Start();
var ffProbe = new NReco.VideoInfo.FFProbe();
var mediaInfo = ffProbe.GetMediaInfo(movieFileName);
var videoDuration = (int)mediaInfo.Duration.TotalSeconds;
var ffMpeg = new FFMpegConverter();
using (var ms = new MemoryStream())
{
ffMpeg.GetVideoThumbnail(movieFileName, ms, (float)position % videoDuration);
var bitmap = new Bitmap(ms);
stopWatch.Stop();
Debug.Print(stopWatch.ElapsedMilliseconds.ToString());
return bitmap;
}
}
}
}

View File

@ -1,19 +0,0 @@
using System;
using System.Windows.Forms;
namespace KaraokeConverter
{
internal static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
private static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
}
}

View File

@ -1,39 +0,0 @@
using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("KaraokeConverter")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("KaraokeConverter")]
[assembly: AssemblyCopyright("Copyright © 2016")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("2821c26d-52d8-43d9-bef4-7ce4dfa60776")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

View File

@ -1,73 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace KaraokeConverter.Properties {
using System;
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources() {
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("KaraokeConverter.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap Google {
get {
object obj = ResourceManager.GetObject("Google", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
}
}

View File

@ -1,124 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="Google" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Google.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>

View File

@ -1,30 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace KaraokeConverter.Properties
{
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
{
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default
{
get
{
return defaultInstance;
}
}
}
}

View File

@ -1,8 +0,0 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
<Profiles>
<Profile Name="(Default)" />
</Profiles>
<Settings />
</SettingsFile>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.1 KiB

View File

@ -1,30 +0,0 @@
using System;
using System.IO;
using ICSharpCode.SharpZipLib.Zip;
namespace KaraokeConverter
{
public class Unzip
{
public static string UnzipMP3GFiles(string zipFilename, string outputPath)
{
string functionReturnValue = null;
functionReturnValue = "";
try
{
var myZip = new FastZip();
myZip.ExtractZip(zipFilename, outputPath, "");
var myDirInfo = new DirectoryInfo(outputPath);
var myFileInfo = myDirInfo.GetFiles("*.cdg", SearchOption.AllDirectories);
if (myFileInfo.Length > 0)
{
functionReturnValue = myFileInfo[0].FullName;
}
}
catch (Exception ex)
{
}
return functionReturnValue;
}
}
}

Binary file not shown.

View File

@ -1,162 +0,0 @@
<?xml version="1.0"?>
<doc>
<assembly>
<name>NReco.VideoInfo</name>
</assembly>
<members>
<member name="T:NReco.VideoInfo.FFProbeException">
<summary>
The exception that is thrown when FFProbe process retruns non-zero error exit code
</summary>
</member>
<member name="P:NReco.VideoInfo.FFProbeException.ErrorCode">
<summary>
Get FFMpeg process error code
</summary>
</member>
<member name="T:NReco.VideoInfo.FFProbe">
<summary>
Provides information about media streams, video or audio files (wrapper for FFProbe command line tool)
</summary>
</member>
<member name="M:NReco.VideoInfo.FFProbe.#ctor">
<summary>
Create new instance of HtmlToPdfConverter
</summary>
</member>
<member name="M:NReco.VideoInfo.FFProbe.GetMediaInfo(System.String)">
<summary>
Returns information about local media file or online stream (URL).
</summary>
<param name="inputFile">local file path or URL</param>
<returns>Structured information about media</returns>
</member>
<member name="P:NReco.VideoInfo.FFProbe.ToolPath">
<summary>
Gets or sets path where FFProbe.exe is extracted
</summary>
<remarks>
By default this property initialized with folder with application assemblies.
For ASP.NET applications it is recommended to use "~/App_Code/".
</remarks>
</member>
<member name="P:NReco.VideoInfo.FFProbe.FFProbeExeName">
<summary>
Get or set FFProbe tool executive file name ('ffprobe.exe' by default)
</summary>
</member>
<member name="P:NReco.VideoInfo.FFProbe.CustomArgs">
<summary>
Get or set custom WkHtmlToImage command line arguments
</summary>
</member>
<member name="P:NReco.VideoInfo.FFProbe.ProcessPriority">
<summary>
Gets or sets FFProbe process priority (Normal by default)
</summary>
</member>
<member name="P:NReco.VideoInfo.FFProbe.ExecutionTimeout">
<summary>
Gets or sets maximum execution time for running FFProbe process (null is by default = no timeout)
</summary>
</member>
<member name="P:NReco.VideoInfo.FFProbe.IncludeFormat">
<summary>
Include information about file format.
</summary>
</member>
<member name="P:NReco.VideoInfo.FFProbe.IncludeStreams">
<summary>
Include information about media streams.
</summary>
</member>
<member name="T:NReco.VideoInfo.MediaInfo">
<summary>
Represents information about media file or stream.
</summary>
</member>
<member name="M:NReco.VideoInfo.MediaInfo.GetAttrValue(System.String)">
<summary>
Returns attribute value from FFProbe XML result.
</summary>
<param name="xpath">XPath selector</param>
<returns>attribute value or null</returns>
</member>
<member name="P:NReco.VideoInfo.MediaInfo.FormatName">
<summary>
Media container format identifier.
</summary>
</member>
<member name="P:NReco.VideoInfo.MediaInfo.FormatLongName">
<summary>
Human-readable container format name.
</summary>
</member>
<member name="P:NReco.VideoInfo.MediaInfo.FormatTags">
<summary>
List of media container tags.
</summary>
</member>
<member name="P:NReco.VideoInfo.MediaInfo.Streams">
<summary>
List of media streams.
</summary>
</member>
<member name="P:NReco.VideoInfo.MediaInfo.Duration">
<summary>
Total duration of the media.
</summary>
</member>
<member name="P:NReco.VideoInfo.MediaInfo.Result">
<summary>
FFProble XML result.
</summary>
</member>
<member name="T:NReco.VideoInfo.MediaInfo.StreamInfo">
<summary>
Represents information about stream.
</summary>
</member>
<member name="P:NReco.VideoInfo.MediaInfo.StreamInfo.Index">
<summary>
Stream index
</summary>
</member>
<member name="P:NReco.VideoInfo.MediaInfo.StreamInfo.CodecName">
<summary>
Codec name identifier
</summary>
</member>
<member name="P:NReco.VideoInfo.MediaInfo.StreamInfo.CodecLongName">
<summary>
Human-readable codec name.
</summary>
</member>
<member name="P:NReco.VideoInfo.MediaInfo.StreamInfo.CodecType">
<summary>
Codec type (video, audio).
</summary>
</member>
<member name="P:NReco.VideoInfo.MediaInfo.StreamInfo.PixelFormat">
<summary>
Video stream pixel format (if applicable).
</summary>
<remarks>Null is returned if pixel format is not available.</remarks>
</member>
<member name="P:NReco.VideoInfo.MediaInfo.StreamInfo.Width">
<summary>
Video frame width (if applicable).
</summary>
</member>
<member name="P:NReco.VideoInfo.MediaInfo.StreamInfo.Height">
<summary>
Video frame height (if applicable)
</summary>
</member>
<member name="P:NReco.VideoInfo.MediaInfo.StreamInfo.FrameRate">
<summary>
Video frame rate per second (if applicable).
</summary>
</member>
</members>
</doc>

Binary file not shown.

View File

@ -1,5 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="NReco.VideoConverter" version="1.0.8.0" targetFramework="net46" />
<package id="SharpZipLib" version="0.86.0" targetFramework="net46" />
</packages>