Log in

View Full Version : Leiming's x264 GUI Last version [AVS/Other Media to x264 & AAC in MKV/MP4]


Pages : [1] 2 3 4

leiming2006
24th June 2006, 10:09
This is a GUI for x264 which is just like the x264VFW.

"x264.exe" is needed. Put "x264.exe" together with this GUI.

At first, without AviSynth x264.exe can only support uncompressed input.
If you want to use the audio encoder you must have "bepipe.exe" and select an audio encoder between "enc_aacplus.exe(dll)" or "neroaacenc(_sse2).exe" or both.
If you want to muxer the audio into final file, you need "mkvmerge.exe", "mp4box.exe" or "mp4creator.exe"
(STRONGLY RECOMMEND that use "No mux" mode, it's most stable, but it's not convenient anyway)
If these programs are not in the same directory with this gui, you may like to edit the "setpath.ini".

If you feed it non-avs file, you can choose an avs file in "avsinc" directory to deal with the input files.
So you can create avs files in "avsinc" directory as you want. ("fs" stands for the filename and "mfn" stands for the filename without its extension)

If this package damage your rights you can tell me, I'll stop offer the package at once.
------------------------------------------------------------------------------------------
Feature:
*Very VFW-liked.
*Add awful number of files once.
*Support AVS Script preset, so using non-avs files as input is possible.
*Conditional double passes, estimating the right Q means finishing in only one pass.
*Support audio encoding and automated muxing.
*Support automated double passes.
*Support shutdown after jobs done.
*Support log recoding.
*Can work as an audio encoding GUI
*Bitrate calculated automated.
------------------------------------------------------------------------------------------
DISCUSSION: http://forum.doom9.org/showthread.php?t=112770
------------------------------------------------------------------------------------------
What does the new button, checkbox and ect. from the VFW mean?
1.Bitrate page
Input file and output file: as it is
Refresh: check if there are new avs script presets and new config presets
checkbox Size: tick this, you can type the final size directly. the bitrate will be calculated when you press the "add" button.
The two combo boxes: in the left one there are avs script presets, in the right one there are config presets
The "S" and "L" button in the right: "S" stands for "save" and "L" stands for "Load", save config and load config. preset's name can be input into the right combo box
Files input: Add more than 1 files once, how to operate please see below.
logfile: If a file is in the text box, when encoding all information x264 output is recoded into the file.
2.More page
Checkbox Audio: tick this, the audio will be encoded, too.
The two combo boxes below: the left one is to select an audio encoder and the right one is to select a muxer.
*WARNING* I strongly recommend to use "no mux" mode, in case it didn't work well the file x264 output would be delete incorrectly. x264 always works slowly so when it happened it's very terrible.
------------------------------------------------------------------------------------------
How to batch encoding:
1. Set all options well.
2. Press "Files input" button.
3. Select a folder to output.
4. Select input file, you can hold Ctrl key to select more than 1 file or press "Ctrl+A" to select all files in current folder.
5. Go to the "job" page and do what you should do.
------------------------------------------------------------------------------------------
New mode:
Automated double passes: as it says. with "fast" means in the first pass it's faster.
1P-CRF: means in the first pass it uses "--crf" to get the stat file.
------------------------------------------------------------------------------------------
What is "Conditional Double Passes"?
"Conditional Double Passes", or "Size Mode", is used for those who use "Automated double passes(1P-CRF)" and the purpose of using "double passes" is to reach a certain size.
The difference between these is that the 1st pass of "Size mode" will output file and if the size of this file is in a certain range the 2nd pass will be cancelled to save time.
*NOTICE* The max. and min. size means only the video, and if you tick "Size", the "size" downer will take audio into consideration.
------------------------------------------------------------------------------------------
About the Presets:
They are converted from MeGUI's Profiles manually, I can't guarantee that they are all converted correctly.
Please recheck it before usage.
------------------------------------------------------------------------------------------
Warning:
USING THIS PROGRAM IS ALL AT YOUR OWN RISK!!!

LeiMing

http://img301.imageshack.us/img301/259/clipboard1fs2.jpg
http://img91.imageshack.us/img91/6550/clipboard2uk9.jpg
http://img90.imageshack.us/img90/8727/clipboard3es5.jpg
http://img90.imageshack.us/img90/7555/clipboard4ne6.jpg
http://img88.imageshack.us/img88/8848/clipboard5zh7.jpg

Changelog:
2009-04-18
Remove: direct8x8

NOTICE: This project will not be continued. A new one in C++ is planning.

2008-10-04:
Change: the first pass of automated double passes mode is changed, to provide better quality. (qyq)
ps. the fast automated double passes is not fast as before, but will provide more quality than before.

2008-10-03:
Removed: NeroAacenc's sse2 item is removed. (uc0083)

2008-10-02:
(!)NOTICE: FOR X264 VER 996 OR HIGHER ONLY!
Change: Some changes in Motion Decision Option are made, and Bi-me is removed to fit the x264 ver 996.
NOTICE: ABOUT THE PRESETS, MOTION DECISION 7 ARE AUTOMATED CHANGED TO MOTION DECISION 7B AND 7B IS CHANGED TO 8!

2008-09-25:
Bug fixed: Optimal adaptive B-frame decision’s state will not be written into configure files.

2008-09-24:
NOTICE: FOR X264 VER 977 OR HIGHER ONLY!
Change: Window is bigger than before to contain new options.
New: Psyrd is supported, new AQ is supported, new adaptive B-frame decision method is supported.
(!)Change: The default of direct prediction changed to 8x8.
(!)Change: The first pass of double passes is the "fast" one before, the fast first pass of double passes is the "turbo level 2" described in Mplayer's document.

2008-07-22:
New: Level option is added. BUT IT ONLY ADDS A PARAMETER, IT DOESN'T LIMIT YOUR CONFIGURE.
Update: Presets are updated. I found that yesterday I used the profiles which MeGUI used years ago to make LMx264GUI's presets.

........................


Press here to download previous version of binary and source code (http://leiming.fre3.com/2008/10/04/leimings-x264-gui-20081004/)

Last version's update patch (http://leiming.fre3.com/2009/04/16/lmx264gui-last/)

Download page in Free-codecs (http://www.free-codecs.com/download/Leiming_x264_GUI.htm) (may be not up to time)

killerhex
24th June 2006, 18:30
how about predefined profiles/configuration

leiming2006
25th June 2006, 02:42
Now it's here:
More -> Misc. Option -> Save&Load Config

killerhex
25th June 2006, 03:08
is there a good way to config so i get a 100mb file wehn i finish encoding

leiming2006
25th June 2006, 03:49
Thanks MeteorRain to offer the config.
I have changed it a bit.
bf 5/ref 5/mixref/cabac/no trellis/analysis all/direct s/motion hex/chromaME/partiton decision 5/no filter/
With subtitle:quantizer 24
without subtitle: quantizer 20

daverc
25th June 2006, 18:22
I think you are pretty close to the perfect one click encoder.

Maybe you can add a way to select filesizes instead of bitrates.

Sirber
26th June 2006, 03:30
can I see a screenshot? thanks!

unskinnyboy
26th June 2006, 04:11
Here..

http://img74.imageshack.us/img74/6321/x264gui15go.jpghttp://img46.imageshack.us/img46/9541/x264gui29sq.jpg
http://img46.imageshack.us/img46/2135/x264gui31nw.jpghttp://img46.imageshack.us/img46/6372/x264gui44ww.jpg
http://img46.imageshack.us/img46/821/x264gui54tg.jpg

DarkZell666
26th June 2006, 07:53
Looks neat :)

Have you recreated it from scratch ? if so it would be great that you add all the vfw-missing features ;)

Just one "bug" I noticed clicking a bit everywhere : in the job tab, clicking on "make bat" and pressing "cancel" leaves an empty ".bat" file in x264gui.exe's directory (nothing to worry about really, but ... ;))

This is great stuff indeed, simple and straightforward.
Just one thing : enc_AacPlus.dll is part of the winamp package if I'm not mistaken, is it available with the *light* version or should we purchase the *pro* one ?

MeteorRain
26th June 2006, 10:21
DarkZell666: the aac encoder shouldn't be included in the package because of its license. thus ppl should download them theirselves.


EDIT(DarkZell666:
I'm not sure if i misunderstand you. Are you talking about that winamp has 2 versions, one is the light and another is the pro, and asking whether the encoder platform matches the light one or the pro?)

leiming2006
26th June 2006, 10:28
?????
I have removed this, only enc_aacplus.exe is there.

Could you please check this again?
I have update the file lmx264gui.7z

foxyshadis
26th June 2006, 10:59
Winamp has three versions, light (free), full (free), and pro, it's in the full and pro versions.

leiming2006
26th June 2006, 13:39
Only the main exe and txts this time.
The bug about "Make Bat" is fixed.
Thanks for the bug report.

MeteorRain
26th June 2006, 13:58
Winamp has three versions, light (free), full (free), and pro, it's in the full and pro versions.
so how about the encoder part between the full & pro version? are they in the same interface? or different?

JoeBG
26th June 2006, 14:19
Does it have commandline functions?

Sharktooth
26th June 2006, 19:39
it's quite silly to ask for command line functions in a gui for a command line encoder... dont you think?

leiming2006
27th June 2006, 13:03
2006-06-27: Add the changelog. Thanks all that help me before.
Bug fixed: the function that makes bat file will procedure none except a bat file without filename.
Function added: neroAacEnc is supported.

DarkZell666
29th June 2006, 09:19
@MeteorRain :

In fact, the readme says that we need encAacPlus.dll with a nice "(you'll have to get this yourself)", and there was indeed only encAacPlus.exe (which is useless without the corresponding DLL I suppose ;))

I wanted to figure out in which versions of winamp I would be able to get it (thx foxyshadis for the investigation ;))

it's quite silly to ask for command line functions in a gui for a command line encoder... dont you think?
rofl, I've seen this somewhere already concerning MeGUI, so who came first then ? the chicken or the egg ? ;)

The truth is elsewere ...

@leiming2006 : what features do you plan to add next ? *curious*

leiming2006
29th June 2006, 14:12
2006-06-29:
Bug fixed: "KeyFrame boost" is useless.
Bug fixed: "B-frames reduction" is useless.
Bug fixed: "Bitrate variability" is useless.
Bug fixed: Quantizer can be "0" which means loseless.
Function added: CRF is support.

DarkZell666
30th June 2006, 14:12
Great, I'm starting to like this ;)

leiming2006
6th July 2006, 16:04
Download Source Code (http://2.fsphost.com/lm2006/lmx264GUISC.7z)
GPL GPL GPL......

bratao
30th July 2006, 01:53
leiming2006,
Not working the source code site and the gui too !
Maybe you can send to another site, like rapidshare

woah!
30th July 2006, 05:48
i had it sitting on my drive so here you go;

http://tinyurl.com/mkqx9

leiming2006
30th July 2006, 14:02
http://popgo.net/bbs/images/smilies/KH.GIF

The files I stored in the site are all lost!
I will edit the first one, you can find it there.

PS: I want to know how to get the information about the encoding progress.

bratao
30th July 2006, 15:38
leiming2006,
The source is incomplete, "Form1.pb" is needed !

Can you send the right source ?
Thank you !

leiming2006
31st July 2006, 06:04
I'm sorry. I forgot this file.
Please try again.
http://img226.imageshack.us/img226/5538/jiongkd8.png (http://imageshack.us)

YouDontKnowMe
31st July 2006, 17:51
could you plz make the sound bitrate kbits ? would be much easier and I think would be easy to change for you.

Anyways nice app ;-)

(btw my first post xD)

leiming2006
1st August 2006, 06:16
Yes. It's quite easy.
Source code and binary have been updated.

YouDontKnowMe
1st August 2006, 12:11
and would be nice if you could provide the links to the needed externals tools like mp4creator.exe cause I googled yesterday for hours and couldn't find it -.-

(the links you could write in the readme or could make a "full packet" with everything in it)

leiming2006
2nd August 2006, 05:29
About this, I can't make sure which link that can keep available for a long time. So I have to wait someone offers one. Sorry.

YouDontKnowMe
2nd August 2006, 15:28
why dont you ask the developers to adding their apps to your "package" ? would be better for all ;-)

leiming2006
3rd August 2006, 05:50
GPL.

If they want, they can do this.

buzzqw
3rd August 2006, 07:20
also... if you want i have ported the source to purebasic 4...

www.64k.it/andres/data/l/Leimings_x264_SRC_PB4.rar

BHH

leiming2006
3rd August 2006, 11:59
I'm considering whether to rewrite it using VS.net 2003.

By the way, I lost the PBV file and updating the window is difficult. It's the biggest problem.

2nd by the way, what "BHH" means?

buzzqw
3rd August 2006, 12:18
By the way, I lost the PBV file and updating the window is difficult. It's the biggest problem

search in purebasic forum for gdesign , is a very nice utility for editing gui without have the pbv

and BHH is part of my sign, is an acrostic and old story :)

BHH

leiming2006
3rd August 2006, 14:39
Wow, the gdesign is quite wonderful.
Thanks for the information.

leiming2006
1st October 2006, 04:23
link for download is in the first thread

Changelog:

2006-09-25
New feature: The encoder will run in idle.
New feature: Reading AviSynth in a alone thread is added.
Remove feature: When encoding, the main window will not be hidden.

2006-09-14
Bug fixed: "Threads" is useless.

2006-09-13
New feature: When encoding, the main window is hidden.
Other: "Auto" is added to Direct Mode.

dumbuser
4th October 2006, 10:35
I have been trying this for the last few hours. Made a 5 min vob to test it out on and wrote a avs script that sets up audio and video to your program. I find that CT needs NSCRT.dll or it won't run and Nero only creates an MP4 file that MP4Creator will not accept as input. Have you considered MP4Box as an alternative? It also accepts chapters and subs :)

Oh! BTW the internal bat file ends rather strangely with error at end it seems you are trying to delete the work file(s) twice and it would be nice if it closed the DOS box. :)

I do like this little program as it allows me to write and prove my own scripts in close to real time using AVSEdit and then feed it straight away to the encoder for finishing. Chapters, Subs and perhaps second audio tracks as options would be a nice touch. I think someone else suggested profiles or getting the program to save and load profiles. In the Oct 1 version this is still not working as well as the reset function.

Does anyone know the settings or range of settings for basic QuiickTime compatibility? Or perhaps a link!

Thanks for the hard work!

DarkZell666
4th October 2006, 11:30
Lately I've tried to open an .avi file for encoding (which was in XviD format, using "XVID" fourCC), but x264 only supports YV12 in avi. (and so the encoding didn't take place normally).

It would be great if your GUI could generate a dumb temporary avs file that would contain one single line like : return DirectShowSource("theAVIfile.avi") and open that avs file instead of the avi file. I'd hate having to create an avs file for each clean avi file that doesn't need avisynth processing ... =)

It took me a while to figure out why the bat file didn't work.
I had to execute manually each cmdline to see the problem.

Great work though, this is the quickest avs to avc+aac solution i've seen so far, after Mencoder264 (except that it doesn't expose all x264's options in the GUI, the settings ini file needs to be modified by hand).

I'll have another try later on with an avs file.
Edit after having tried : I ran into the same problem(s) dumbuser described.

leiming2006
6th October 2006, 10:09
Changelog:

2006-10-06
New feature: Auto input the stat filename.
New feature: "Default" button is available. (dumbuser)
PS: In fact it's me that forget this.
New feature: Input file can be general file. (DarkZell666)
New feature: Input files is available.
New feature: Using "mp4box.exe" instead of "mp4creator.exe" when muxing. (dumbuser)
New feature: After adding a job the input and output filename will be cleaned.
Bug fixed: After loading a config some disabled gadget won't be enabled.
Bug fixed: MP4 extension doesn't match the extension "AAC" when muxing.
Bug fixed: Job batch file will not be removed after use.

2006-10-05
New feature: Auto create a simple avs file if the input file is not a AVS script. (DarkZell666)
Bug fixed (maybe): Job batch file will not be removed after use. (dumbuser)
Bug fixed: If no input file is selected, the output box will show ".mp4"


The download link isn't changed.

dumbuser
7th October 2006, 10:34
OK! Nice work! I tried several short encodes tonight and It worked well :) I have been finding CT a bit smother video wise than ND but that has nothing to do with your work. As I recall ND is ABR or VBR only and that's probably the reason.

I work allot with the AVS script to get things right and then do short samples of the difficult sections so I'm going to make some suggestions here that may or may not be applicable to others. Please take this with good intent, there is no pressure here! :)

1. The files input would be best served on the 4th page under More and the load/save (that can be used to create and recall profiles) moved to the first page as this would serve work flow better.

2. It would be nice if when you pressed the add button the input and output did not go away. Perhaps a "Job" button instead of an add button or may be "Enqueue" would be more accurate. I do realize that if it does not clear, the next job is a bit harder to setup. But it is also difficult when you just want to come back and make a few changes and run the script again or have made a few changes to the script.

3. I have so much stuff on my desk top when I work with video it is truly pathetic as I keep loosing things and often I think Windows stacks things in a horrible way :) but I'm going to ask if it is possible to do away with one of those DOS boxes?? If you can't, couldn't it be minimized at least. It would look allot more professonal if the x264 configuration menu would just turn into an information screen when you started the encode and at the end, wait with the results on screen until you cleared it.

I made about 3 or 4 profiles tonight and have run the first few and it seems to work well. The last one I ran as a manual bat file and noticed the second DOS box didn't appear.

BTW Thanks for a nice small tool and the quick response. :D

leiming2006
7th October 2006, 13:35
I will improve the DOS box problem firstly.
Thanks for your support.

BTW, because of the College Entrance Exam I may have only a little time or little time to get online.

dumbuser
7th October 2006, 20:50
Ya! I understand. :)

This morning I tried to run a CE-Baseline profile I made last night and it wouldn't allow it. The error was no input. So I cleared the job and chose another profile and the program became confused locking out functions that shouldn't be locked. ??? I restarted the program and everything was OK! Then I checked the profile I made for CE-Baseline and couldn't find anything wrong but it still wouldn't run. So erased the profile and remade it but to no avail. :( The rest of the few profiles I made were OK! Well, except the one I made and called it "Default" representing My Defaults but you got there before I did and erased it! :) I do understand this one and will call it something else.

I may be a bit dense on this one! What was (is) the intent of "Files Input"? It makes two directories (Stats & AVS) then asks me for an AVS file and after I select one it does nothing???? If you intended it to be the stats storage for second pass then shouldn't it also load the avs file as input? Even then I'm not quite sure of the purpose of the avs directory. I generally store avs files with the the files for the project. Except for avs templets.

leiming2006
8th October 2006, 05:15
After you press "Files input", it ask you for a output folder then you can select more than one file (hold "ctrl"). then press "Open" so that the file you selected will be added to the job list.

The "Default,ini" is used to make exe. When you press the "Default", a default.ini will be created then loaded then deleted.

I am in a little exam at the moment. And after the summer break the pay for the access to the internet changed from 68 yuan per month to 2 yuan per hour so I can't get online often. Would you have the mind that editing the source code by yourself and try it. According to the GPL you can do nearly everything on the source code.

There are so many bugs in the config-loading and config-saving system. And there are so much to be improved. So until next time I update the file may be a long time.

PS: There may be something I can't express clearly causing that some function foreigners can't understand. I'm sorry for my bad English. XD


2006-10-07
Something improved: Only one DOS box will be show.
Something improved: Temp BAT file will be removed after use.

dumbuser
8th October 2006, 05:30
OK! I will check it out when I can over come the new problem I'm having. Has been driving me NUTS all afternoon and have finally pinpointed the problem.

On the MBs&Frames Page under Partitions
8x8 Transform = P8x8
P8x8 = b8x8
b8x8 = 8x8dct

The rest appear to be OK! This is probably why I was having some strange problems last night too. :(

leiming2006
8th October 2006, 07:41
2006-10-08
Bug fixed: The Auto-created AVS can't be loaded.
Bug fixed: (dumbuser)
{
On the MBs&Frames Page under Partitions
8x8 Transform = P8x8
P8x8 = b8x8
b8x8 = 8x8dct
}

DarkZell666
8th October 2006, 09:37
Last time I tried to use this GUI x264 kept saying "invalid input format (DIB )", which I can't understand. Something has gone b0rked recently on my system so I'll figure it's my fault. Will try more extensively.

I actually had a look at the source code and PureBasic has a wierd syntax imho (I come from Java and C#.NET environments ^^) but I'll have a try.

Anyway, Good luck for your exam man !

dumbuser
8th October 2006, 09:48
The last changes work! :)

But somewhere in these changes Trellis is checked but grayed out. This was happening to me randomly when changing profiles. But now is permanent.

leiming2006
8th October 2006, 10:19
Last time I tried to use this GUI x264 kept saying "invalid input format (DIB )", which I can't understand. Something has gone b0rked recently on my system so I'll figure it's my fault. Will try more extensively.

I actually had a look at the source code and PureBasic has a wierd syntax imho (I come from Java and C#.NET environments ^^) but I'll have a try.

Anyway, Good luck for your exam man !


The problem caused by the wrong source code.
I think it has been fixed. Pleasy try again~

dumbuser
8th October 2006, 19:10
That's quite a change for Internet access. I know every time I go get groceries here the prices are different, always higher. The government keeps telling us everything is OK! But I think we all know it's not.

On a brighter note, I haven't found any more bugs. The Trellis box on the More page under Misc. options is grayed and not settable under any conditions. This seems to be the last bug. So if you get the opportunity to find this one it would be great. :)

No rush or pushing here. Just a thanks for being a nice person with great little tool for h264. Much better than the other x264GUI floating around here that took some 6 or 7 developers to do it. :)