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 1, 2, 3, 4, 5, 6, 7  Next
Reply to topic
Author Message
freebird73717
Member


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

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

I have created a GUI for HCbatch. It creates ini files to be run inside a bat file. HCbatchGUI should allow for easy batch processing with HC without having to write a batch script. The program and source code are available at the HCbatchGUI page on SourceForge ~~written in c++. Comments, suggestions, and criticisms are welcome.

Edit This project has changed considerably since I first released it. It now will not only encode your avs to m2v , it can also process the created m2v with batchDGpulldown and process the audio to AC3 with aften. There is also a GTK version for linux written in wxwidgets C++. To see what HCbatchGUI looks like now click here.






Download latest release at sourceforge
http://sourceforge.net/projects/hcbatchgui

Look here for the user guide.
_________________
My Tools My Guides

Registered Linux user 467258
Registered Ubuntu user 20876


Last edited by freebird73717 on Jun 18, 2008 09:02, edited 41 times in total


freebird73717
Member


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

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

Here is a simple guide for HCbatchGUI.

http://forum.videohelp.com/topic337887.html
_________________
My Tools My Guides

Registered Linux user 467258
Registered Ubuntu user 20876


Last edited by freebird73717 on Dec 11, 2007 07:34, edited 4 times in total


gadgetguy
Contestant


Joined: 14 Feb 2002
Location: Michigan, USA

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

Looks good, but of course I have some suggestions which are completely based on my own opinions and preferences, so do with them what you want.

Selecting auto gop should disable the gop length scroll and ideally the auto selected value should be displayed, but I don't think that you can do that (since you won't have feedback from HC). Deselecting auto gop should enable the scroll.
The interlaced fields frame should not be visible unless interlaced is checked. When visible the TFF/BFF options should be radio buttons since it has to be one or the other.
Is there a way to view the job list from within the GUI? It may be useful if you get interrupted and forget where you left off.
And maybe the ability to edit the job list to be able to remove duplicate entries.
Does the ini file display allow for direct editing to add tweaks or comments not covered by the gui, (like chapter points)?
Can you select a line and turn it into a comment instead of completely deleting it?
Also automatically deleting the ini files should be an option, unless there is some way it can detect the drive filling up (or some other error) and stop the batch accordingly. In my experience a batch will keep running even though HC errors out and automatically deleting the ini files means starting from scratch.
_________________
"Shut up Wesley!"
-- Captain Jean-Luc Picard


freebird73717
Member


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

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

Thanks for the reply. This is my first attemp at a gui so it's a learning process...that and I've only been coding for about two weeks now.

gadgetguy wrote:

Selecting auto gop should disable the gop length scroll and ideally the auto selected value should be displayed, but I don't think that you can do that (since you won't have feedback from HC). Deselecting auto gop should enable the scroll.


I tried to mimic the auto gop function in hc. Will look into it further.

Quote:

The interlaced fields frame should not be visible unless interlaced is checked. When visible the TFF/BFF options should be radio buttons since it has to be one or the other.


I agree and will change that in the next release.

Quote:

Is there a way to view the job list from within the GUI? It may be useful if you get interrupted and forget where you left off.
And maybe the ability to edit the job list to be able to remove duplicate entries.


The "job list" is actually just the individual saved ini files. While I'm sure there is a way to do what you are suggesting I'm not quite sure how but will look into it.

Quote:

Does the ini file display allow for direct editing to add tweaks or comments not covered by the gui, (like chapter points)?
Can you select a line and turn it into a comment instead of completely deleting it?


I should be able to add that. Will do some searching to find out how.

Quote:

Also automatically deleting the ini files should be an option, unless there is some way it can detect the drive filling up (or some other error) and stop the batch accordingly. In my experience a batch will keep running even though HC errors out and automatically deleting the ini files means starting from scratch.


I was on the fence about that one. My main reason for auto deleting the ini files after the encode was that newbies may not know to go in and manually delete them after the encode so that they won't encounter errors when starting a new batch encode. But I should be able to add a button to click so that the user can delete the files his/herself.

Thanks for the feedback. It's helping me improve the app! I will work on implementing the suggestions. I can only code in my part time so it may be a week or so before changes are made. Would you be willing to evaluate the next release for me?
_________________
My Tools My Guides

Registered Linux user 467258
Registered Ubuntu user 20876


gadgetguy
Contestant


Joined: 14 Feb 2002
Location: Michigan, USA

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

Keep posting back here, and I'll keep reading, trying, and commenting. biggrin.gif I don't really do a lot of batch processing, but I've always got a few unprocessed videos hanging around that I can test with.
_________________
"Shut up Wesley!"
-- Captain Jean-Luc Picard


freebird73717
Member


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

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

Second release is out.
edit outdated don't download. Go to sourceforge to download latest.
hcbatchgui_release_2

Changes made.

#Added button and dropdown box to change/select the matrix
#Added manual gop selection. When auto gop is unchecked man gop becomes visible. When man. gop is checked auto gop becomes invisible.
#Interlaced fields option is only visible when interlaced is checked.
#Added ability to select a line and replace it with your own text.
#Removed auto delete ini funtion (so files would not be lost in case of an error)
#Added Delete all ini button to remove ini files after sucessful encode.

#TO DO
Add ability to view current job list.
_________________
My Tools My Guides

Registered Linux user 467258
Registered Ubuntu user 20876


Last edited by freebird73717 on Apr 21, 2008 14:48, edited 2 times in total


gadgetguy
Contestant


Joined: 14 Feb 2002
Location: Michigan, USA

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

My prior comments were based on your screenshots and comments. I actually tried to install and run it this time. Installed OK, but won't run without .NET framework v2. I'm running W2K and don't have the .NET framework installed. What .NET features are you using and is it really necessary?

I can try it on my laptop when I get a chance, but that's not the computer that I do most of my video editing on and I would be unlikely to actually use your program there. I am also unlikely to install .NET on my primary PC. wink.gif
_________________
"Shut up Wesley!"
-- Captain Jean-Luc Picard


freebird73717
Member


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

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

I programmed it using sharpdevelope 2.0 (primarily because it is opensource) using C# as the language. The code i have is based loosely off several tutorials found on the net. Chose it because it seemed the easiest to learn. Still very new to this.
_________________
My Tools My Guides

Registered Linux user 467258
Registered Ubuntu user 20876


freebird73717
Member


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

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

3rd release is out.
edit outdated. go to sourceforge to download latest.
hcbatchgui 3rd release

#Added Text box/review of job list. Allows for opening saved ini files and reviewing them.
#Fixed Modify selected line. Now if you select a line in the ini display box it also puts that text in the Modify box so you can directly edit the line.
_________________
My Tools My Guides

Registered Linux user 467258
Registered Ubuntu user 20876


Last edited by freebird73717 on Apr 21, 2008 14:49, edited 1 time in total


gadgetguy
Contestant


Joined: 14 Feb 2002
Location: Michigan, USA

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

I still haven't gotten around to trying it on my laptop, but a suggestion I made earlier about GOP and AutoGOP should be re-examined because I misunderstood the AutoGOP feature and how it works. (You got me thinking and reading.) Autogop allows you to specify a maximum GOP length of between 12 and 18 so there should be a way to set that. (Again, haven't actually seen it yet, maybe you already did this.)
_________________
"Shut up Wesley!"
-- Captain Jean-Luc Picard


freebird73717
Member


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

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

gadgetguy wrote:
Autogop allows you to specify a maximum GOP length of between 12 and 18 so there should be a way to set that. (Again, haven't actually seen it yet, maybe you already did this.)


Yep now fixed. You can set the autogop max from 12 to 18 or uncheck the autogop and "Man. GOP" will become visible allowing you to set fixed GOP length.

I hope the .net requirement doesn't put too many people off. Didn't realize that C# required .net when I started learning it. After researching programming languages it just seemed the easiest to learn. I am also looking into C++ to try and make the app more standalone (but don't expect it anytime soon).

Thanks for all the input! All of your suggestions have been good ones.
_________________
My Tools My Guides

Registered Linux user 467258
Registered Ubuntu user 20876


gadgetguy
Contestant


Joined: 14 Feb 2002
Location: Michigan, USA

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

I'm only marginally knowledgeable about C (in any flavor) in that I can read the code and usually figure out most of what it's doing, but I don't program in it and don't have any compilers, so I'm speculating here (and would be happy to be corrected by someone who knows for sure), but I don't think any of them should actually require .net be a requirement in the applications they build. However it is probably M$ default to include reference to the .net libraries even if they aren't used in the code and that makes any application made with it require .net be installed. If you can figure out how to remove the library references from the compiled application, .net shouldn't be required.
Having said that, you may not have that option in the compiler version you have.
_________________
"Shut up Wesley!"
-- Captain Jean-Luc Picard


freebird73717
Member


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

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

I used Sharpdevelop. You can read up about it here. It requires .net.

However I have read about a compiler called the MONO project that will compile C# without .net. Read about it here. I will read up on it myself and if I can get it working I will compile a .net free version as I want this app to be as stand alone as possible.
_________________
My Tools My Guides

Registered Linux user 467258
Registered Ubuntu user 20876


AlanHK
Member


Joined: 25 Apr 2006
Location: Hong Kong

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

I haven't installed this, not having NET2, but a small comment:

One annoyance with HC's own GUI is that the default output file remains the same, even when you change the input file. Thus a few times when neglecting that I've overwritten a file. (One reason I wrote my own primitive batch scripter, mentioned elsewhere.) It looks like this has the same behaviour.

I suggest the default output file name be changed automatically, to have the same root name as the input AVS file. And maybe a check to warn if the output file already exists.


freebird73717
Member


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

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

Yes that is the default setting of the save file dialog. I will have to look into changing that because I like your idea of setting the output name the same as the input name. Will try to implement it in the next release.

Thanks for the input AlanHK!
_________________
My Tools My Guides

Registered Linux user 467258
Registered Ubuntu user 20876


freebird73717
Member


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

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

edit. confirmed still requiring .net as of right now.

Gadgetguy or AlanHK. Would either of you be willing to test my next release. I have read up on compiling C# with the mono project (runs off of mono runtimes instead of .net) so you should be able to use the app on computers without .net installed. You can read the article here

hcbatchgui_no_dot_net_test.exe

Thanks for all your help guys. It is much appreciated.

AlanHK I looked into changing the default save filename but couldn't change it the way you suggested. I could set a default name that would show up everytime like"your file.m2v" but that wouldn't really solve anything so I left it alone. It's to bad too because I liked the suggestion.
_________________
My Tools My Guides

Registered Linux user 467258
Registered Ubuntu user 20876


Last edited by freebird73717 on Sep 07, 2007 14:22, edited 1 time in total


gadgetguy
Contestant


Joined: 14 Feb 2002
Location: Michigan, USA

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

I tried the hcbatchgui_no_dot_net_test.exe. Install goes OK, but as soon as you try to start the app, the error message about needing .net framework v2 pops up and execution stops. So it's still requiring .net to run.

P.S. Check your PM
_________________
"Shut up Wesley!"
-- Captain Jean-Luc Picard


freebird73717
Member


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

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

Crap. Well I'll keep at it. Would be great if I could get it working without .net. Thanks for the PM. I will look into it.
_________________
My Tools My Guides

Registered Linux user 467258
Registered Ubuntu user 20876


freebird73717
Member


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

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

Fourth release is out.

fixed typo in matrix combobox.

hcbatchgui_setup_4.exe

I'm also in the process of re-writing the whole gui in c++ to eliminate the need for .net. Should post it in about a week.
_________________
My Tools My Guides

Registered Linux user 467258
Registered Ubuntu user 20876


freebird73717
Member


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

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

Baldrick
Administrator


Joined: 09 Aug 2000
Location: Sweden

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

I added a link to the hcbatchgui to the hc encoder tool page.

gadgetguy
Contestant


Joined: 14 Feb 2002
Location: Michigan, USA

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

Baldrick wrote:
I added a link to the hcbatchgui to the hc encoder tool page.


How come it doesn't show in the new tools list?
_________________
"Shut up Wesley!"
-- Captain Jean-Luc Picard


Baldrick
Administrator


Joined: 09 Aug 2000
Location: Sweden