Fixed profiles, profile listing.
}
static void go_click(object obj, EventArgs args) {
- if (profiles.ActiveText == null) {
- Console.WriteLine("NULL!");
+ if (browse.Filename == null) {
+ status.Text = "No file selected!";
return;
}
profiles.Sensitive = false;
go.Sensitive = false;
- Console.WriteLine(encoder_commands[profiles.ActiveText]);
- string outfile = Path.Combine("output",Path.ChangeExtension(Path.GetFileName(browse.Filename), "mp4"));
+ string outfile = Path.Combine("output", Path.ChangeExtension(Path.GetFileName(browse.Filename), "mp4"));
Process p = new Process();
p.StartInfo.FileName = "ffmpeg";
public static int Main(string[] args) {
FileFilter filter;
load_encoder_commands();
+ if (encoder_commands.Count == 0) {
+ Console.WriteLine("Couldn't find any encoder commands. Do you have profiles.txt?");
+ return 1;
+ }
Application.Init();
profiles = ComboBox.NewText();
foreach (string k in encoder_commands.Keys)
profiles.AppendText(k);
+ profiles.Active = 0;
options.Attach(profiles, 1, 2, 1, 2);
go = new Button("Go!");
go.Clicked += new EventHandler(go_click);
-x264 lossless : -i {0} -vcodec x264 -cqp 0 {1}
-xvid q=1 : -i {0} -vcodec xvid -qscale 1 {1}
+x264 lossless : -i "{0}" -vcodec h264 -cqp 0 "{1}"
+xvid q=1 : -i "{0}" -vcodec xvid -qscale 1 "{1}"