INDEX  F.A.Q.  SEARCH  LATEST POSTS     Rules  Register  Profile  Private messages  Login


Search all forums or this forum: Advanced search
HCbatchGUI - (batch processor for HCenc and Aften). Development Thread.

Forum Index -> Video -> Programming Printer-friendly version
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8  Next
Reply to topic
Author Message
freebird73717
Member


Joined: 09 Dec 2003
Location: Buckle of the Bible Belt

Post Posted: Sep 21, 2007 11:14 Posts Comp View users profile Send private message Reply with quote

Gadgeguy (or anyone who doesn't have .net installed) would you be willing one more time to try testing for me. I finally got a good compile of the program with no errors using C# with the mono runtime. Hopefully this will eliminate the need for the .net framework (although after further reading you may have to download the mono framework {it is for .net what xvid is to divx} - to get it to work).


For anyone downloading this It may not work as it is a test version.
hcbatchgui_test_2_no_net.exe

To get the latest stable release (currently requires .net 2.0 framework) go to http://sourceforge.net/projects/hcbatchgui
_________________
My Tools

Ready to Learn?


gadgetguy
Contestant


Joined: 14 Feb 2002
Location: Michigan, USA

Post Posted: Sep 21, 2007 14:53 Posts Comp View users profile Send private message Reply with quote

I'm still getting the .net error asking for version 2.0.
_________________
"Shut up Wesley!"
-- Captain Jean-Luc Picard


freebird73717
Member


Joined: 09 Dec 2003
Location: Buckle of the Bible Belt

Post Posted: Sep 21, 2007 15:30 Posts Comp View users profile Send private message Reply with quote

Okay. Was worth a shot. I'm still working on the c++ version. But it is taking longer than I expected. C++ is not as easy a language as C#. I'm approximately 3/4 the way through with it. Still plugging away at it.

For everyone with .net installed the latest release posted at http://sourceforge.net/projects/hcbatchgui seems to be working out well... at least for me. I've had no other feedback so I can only assume no news is good news!

Thanks gadetguy for taking the time to help on this project. I really appreciate it!
_________________
My Tools

Ready to Learn?


gadgetguy
Contestant


Joined: 14 Feb 2002
Location: Michigan, USA

Post Posted: Sep 21, 2007 15:43 Posts Comp View users profile Send private message Reply with quote

No problem. I did look into it and it looks like it's simply a requirement for anything developed in C#. Apparently all of the user controls (check boxes, radio buttons, command buttons, etc) in C# are .net controls. Using an older development package (pre-.net) seems to be the only way to develop without requiring the .net framework. This is unfortunate for a situation such as this where you are just creating a GUI for an application that doesn't require .net.
_________________
"Shut up Wesley!"
-- Captain Jean-Luc Picard


freebird73717
Member


Joined: 09 Dec 2003
Location: Buckle of the Bible Belt

Post Posted: Sep 25, 2007 11:17 Posts Comp View users profile Send private message Reply with quote

Okay here is the first look at the c++ version. I did not use any clr language so there should be no requirement for .net. I does everything the .net version does except start the batch file for you. Basically all this does is creates the batch file for you and promts you go to your avs source directory and double click "hcbatch.bat". I'm Still working on getting the program to run the batch for you but am running into a few problems. Anyway for those that want it here it is.

Note: this is a test version.
hcbatchgui_c++_test_setup.exe
for the latest stable release (requires .net framework) please go to http://sourceforge.net/projects/hcbatchgui
_________________
My Tools

Ready to Learn?


Last edited by freebird73717 on Sep 25, 2007 11:53, edited 1 time in total


gadgetguy
Contestant


Joined: 14 Feb 2002
Location: Michigan, USA

Post Posted: Sep 25, 2007 11:35 Posts Comp View users profile Send private message Reply with quote

Well, I didn't get the .net error. I got this instead...

_________________
"Shut up Wesley!"
-- Captain Jean-Luc Picard


freebird73717
Member


Joined: 09 Dec 2003
Location: Buckle of the Bible Belt

Post Posted: Sep 25, 2007 11:55 Posts Comp View users profile Send private message Reply with quote

Okay I fixed the call for the dll.

Here is the fixed version.
hcbatchgui_c++_test_setup.exe
_________________
My Tools

Ready to Learn?


gadgetguy
Contestant


Joined: 14 Feb 2002
Location: Michigan, USA

Post Posted: Sep 25, 2007 15:14 Posts Comp View users profile Send private message Reply with quote

I still get the same error as my last post.
_________________
"Shut up Wesley!"
-- Captain Jean-Luc Picard


freebird73717
Member


Joined: 09 Dec 2003
Location: Buckle of the Bible Belt

Post Posted: Sep 25, 2007 15:49 Posts Comp View users profile Send private message Reply with quote

Hmm. That's weird. Okay I'll look into it and try to find out whats going on.
_________________
My Tools

Ready to Learn?


freebird73717
Member


Joined: 09 Dec 2003
Location: Buckle of the Bible Belt

Post Posted: Sep 26, 2007 13:53 Posts Comp View users profile Send private message Reply with quote

Okay I think I've got it figured out. Hopefully..... helps to RTFM

Quote:

See menu Project>Options>Linker tab, untick "Use dynamic RTL" and Project>Options>Packages tab, untick "Build with runtime packages" (rebuild with Project>Build) to have one complete .exe without .dll's for portability.


Also fixed it where HCbatchGUI c++ version will now start the batch file for you.

Note this is a test version written in c++ not requiring .net. If it verifies working I will upload it to the sourceforge download page. The .net version is stable and working and available for download at http://sourceforge.net/projects/hcbatchgui

hcbatchgui_c++_test4_setup.exe

This version was tested and verified working not only on my main system (win xp) but also a very old secondary system i have (win me).
_________________
My Tools

Ready to Learn?


gadgetguy
Contestant


Joined: 14 Feb 2002
Location: Michigan, USA

Post Posted: Sep 26, 2007 17:09 Posts Comp View users profile Send private message Reply with quote

Success!! It installs and opens OK now. I'll try it out when I get a little more time and let you know how it goes.
_________________
"Shut up Wesley!"
-- Captain Jean-Luc Picard


freebird73717
Member


Joined: 09 Dec 2003
Location: Buckle of the Bible Belt

Post Posted: Sep 26, 2007 17:23 Posts Comp View users profile Send private message Reply with quote

Sweet! Could have saved myself a lot of heartache if I would have just done a little reading.

What aggravates me is that the default settings of my ide (c++ builder) set the program up to require dll. All it took was just unticking two checkboxes and recompiling the program to get it to work.


Now that I (somewhat) have a handle on c++ I think I am going to re-write my other .net app (batchDGpulldown).

I appreciate your help with this gadetguy.
_________________
My Tools

Ready to Learn?


gadgetguy
Contestant


Joined: 14 Feb 2002
Location: Michigan, USA

Post Posted: Sep 26, 2007 18:47 Posts Comp View users profile Send private message Reply with quote

I had a chance to try it and here are my observations...

My first impression was that the window is too big. I understand that it's that large to hold all of the controls and selecting the "Show the settings Controls" checkbox displays them, but that's not what I'm referring to. The window does not fit on my screen, (1024x768), so I have to resize it. That's ok, but I find it annoying that I have to do that every time I open the program. I would also prefer it if the window resized shorter when the controls are not being displayed.

What is the purpose of the Source Drive drop-down? If I select, for example drive E:, and then click "Source Directory" it defaults to the C: drive anyway.

Personally, I find the method of editing the ini Template a little clumsy, but it is functional. All of the controls function to add lines to the template, but having to scroll through the template window caused me to miss duplicate and/or conflicting entries.

If I cancel "Save Template" I don't need a message telling me I clicked "Cancel" or pressed "Esc".

You have a label telling me I can select the # of B frames for manual GOP, but I don't see a control to allow it.

You should restrict the bitrate text boxes to numerals only. Right now you can accidentally enter letters which will cause an HC error when the batch is executed. You should also limit them to 5 digits.

If Average and/or Maximum bitrate are blank, they should not be included in the command line of the batch. It causes an error in HC.

These HC errors caused an endless loop on my PC. HC would display the error, countdown and try again. I had to reboot to get it to stop (could not determine the process that was stuck). I don't think this is directly related to your program since once the batch is executed it's no longer under your program's control, but it emphasizes the need for you to prevent possible errors in the batch.
_________________
"Shut up Wesley!"
-- Captain Jean-Luc Picard


freebird73717
Member


Joined: 09 Dec 2003
Location: Buckle of the Bible Belt

Post Posted: Sep 26, 2007 21:59 Posts Comp View users profile Send private message Reply with quote

Quote:
My first impression was that the window is too big


I agree. I was thinking of using tabs so that on opening the program tab one showed the directories and whatnot and tab 2 showed the settings.


Quote:
What is the purpose of the Source Drive drop-down?


That is a workaround to get the batch file to start. Without it you just get a brief dos box flashing. That isn't present in the .net version. The difference in the syntax allowed me to directly start the batch. Couldn't do it in c++ without the workaround.

Quote:
All of the controls function to add lines to the template, but having to scroll through the template window caused me to miss duplicate and/or conflicting entries.


I used a listbox for the template. Yes you can accidentally duplicate entrys. I'm looking for away to auto check for duplicates and alert the user.


Quote:
If I cancel "Save Template" I don't need a message telling me I clicked "Cancel" or pressed "Esc".


Opps. Thought I deleted that.

Quote:
You have a label telling me I can select the # of B frames for manual GOP, but I don't see a control to allow it.


Opps again. They are there just not visible. Thought I fixed that but I guess not.

Quote:
You should restrict the bitrate text boxes to numerals only. Right now you can accidentally enter letters which will cause an HC error when the batch is executed. You should also limit them to 5 digits.

Good ideas.

Quote:
If Average and/or Maximum bitrate are blank, they should not be included in the command line of the batch. It causes an error in HC.


I gotta admit I'm confused about this one. Why would you leave the bitrates blank? How can you encode without specifying a bitrate?

Thanks for the pointers. All good ones and I will work on the changes.
_________________
My Tools

Ready to Learn?


gadgetguy
Contestant


Joined: 14 Feb 2002
Location: Michigan, USA

Post Posted: Sep 27, 2007 07:18 Posts Comp View users profile Send private message Reply with quote

If they are left blank and you open a template to add to the batch, it creates a command line that causes errors. This shouldn't be allowed. The bitrates can be specified within the ini file. If I use an existing template that specifies the bitrate within the ini file, I don't want to duplicate that effort on the command line. It might be useful to offer a warning that those fields are blank before allowing the command line to be added to the batch, but could get annoying if that's your common practice. You might also consider adding the bitrates to the ini template rather than placing them on the command line.
_________________
"Shut up Wesley!"
-- Captain Jean-Luc Picard


freebird73717
Member


Joined: 09 Dec 2003
Location: Buckle of the Bible Belt

Post Posted: Sep 27, 2007 08:19 Posts Comp View users profile Send private message Reply with quote

Okay I understand where you are coming from now. However the reason I didn't add the bitrates to the ini templates was that your template would be a basic one. Here is one of the templates I created for my own personal use.
I named this 4_3 interlaced TFF.ini
Code:

*PROFILE   best
*DC_PREC     9
*MATRIX     mpeg
*AUTOGOP     12
*INTERLACED
*TFF
*ASPECT   4:3


I do a lot of interlaced encodes but the bitrates I choose vary quite often. Adding the bitrates to the ini would require saving new templates for any project with a different bitrate. The idea of someone adding the bitrates to the ini never occurred to me. I can understand the advantages of it if you do alot of encodes with the same bitrates. I'll see if I can add an "if else" statement to the code so that if the bitrate boxes are left blank they wont be added to the command line.

Thanks for the explanation and the insight.
_________________
My Tools

Ready to Learn?


gadgetguy
Contestant


Joined: 14 Feb 2002
Location: Michigan, USA

Post Posted: Sep 27, 2007 09:09 Posts Comp View users profile Send private message Reply with quote

freebird73717 wrote:
Quote:
What is the purpose of the Source Drive drop-down?


That is a workaround to get the batch file to start. Without it you just get a brief dos box flashing. That isn't present in the .net version. The difference in the syntax allowed me to directly start the batch. Couldn't do it in c++ without the workaround.


I got to thinking about this. Is any input required by the end user, or do you just need to have the control on the form? If no input is required then it should be invisible. If input is required, then I think an explanation for the user is in order since it's not as straight forward as the other controls.
_________________
"Shut up Wesley!"
-- Captain Jean-Luc Picard


freebird73717
Member


Joined: 09 Dec 2003
Location: Buckle of the Bible Belt

Post Posted: Sep 27, 2007 09:48 Posts Comp View users profile Send private message Reply with quote

Yeah user input is required. I was going to put a tool tip that explains it when you hover the cursor over it. I also wrote a small guide to add into the next setup routine that mentions it as well.

Edit...
That control is no longer needed and has been removed.
_________________
My Tools

Ready to Learn?


Last edited by freebird73717 on Oct 04, 2007 20:22, edited 1 time in total


freebird73717
Member


Joined: 09 Dec 2003
Location: Buckle of the Bible Belt

Post Posted: Sep 27, 2007 14:50 Posts Comp View users profile Send private message Reply with quote

Okay did some re-working.
Added tool tips explaining functions.
Changed gui to use two tabbed pages so not to take up so much screen space.
Added ability to enter bitrates directly to the ini template.
Added ability to open template with or without ini by adding new button. Commandline is different for each button.
Made manual gop spinners visible.
Limited bitrates to 5 characters (still haven't figured out how to limit it to numbers only yet)
Added reset application button.

hcbatchgui_c++_test6_setup.exe

redface.gif if you downloaded test5 then redownload test6. Test5 did not have one of the required open dialogs.
_________________
My Tools

Ready to Learn?


freebird73717
Member


Joined: 09 Dec 2003
Location: Buckle of the Bible Belt

Post Posted: Sep 27, 2007 16:47 Posts Comp View users profile Send private message Reply with quote

gadgetguy
Contestant


Joined: 14 Feb 2002
Location: Michigan, USA

Post Posted: Sep 27, 2007 20:36 Posts Comp View users profile Send private message Reply with quote

"GroupBox7" ???
_________________
"Shut up Wesley!"
-- Captain Jean-Luc Picard


freebird73717
Member


Joined: 09 Dec 2003
Location: Buckle of the Bible Belt

Post Posted: Sep 27, 2007 21:42 Posts Comp View users profile Send private message Reply with quote

gadgetguy wrote:
"GroupBox7" ???
biggrin.gif

Yep missed that!
_________________
My Tools

Ready to Learn?


freebird73717
Member


Joined: 09 Dec 2003
Location: Buckle of the Bible Belt

Post Posted: Oct 02, 2007 00:23 Posts Comp View users profile Send private message Reply with quote

Release 8 now ready for download. Added batchDGpulldown capabilities.

http://sourceforge.net/projects/hcbatchgui/


_________________
My Tools

Ready to Learn?