View Full Version : x264 encoder with inbuilt GUI added to SVN
bond
25th March 2006, 12:06
thanks to caro there is now a x264 encoder tool available in the x264 svn that directly uses the library and offers an own gui using gtk:
http://trac.videolan.org/x264/browser/trunk/gtk/
it should be possible to use this too on windows, but i havent tried it till now
enjoy!
max-holz
25th March 2006, 13:08
Well I don't know if it's exactly suitable (not tested by myself) but I have founded an article about how to setup a MinGW/GTK+ enviroment for compiling under Win32 here:
http://mail.gnome.org/archives/gtk-devel-list/2005-January/msg00091.html
Yong
25th March 2006, 13:12
Nice GUI.
Many thanks for the x264 devs/contributors :)
It works on win32(need some modify though), but compiling is a pain :D
Here is the binary, but need GTK runtime dlls in order to run it:
http://www.geocities.com/y0ngc/x264_gtk_encode.zip
Hellworm
25th March 2006, 13:19
http://www.plattenschleicher.de/screens/test1.png
http://www.plattenschleicher.de/screens/test2.png
http://www.plattenschleicher.de/screens/test3.png
http://www.plattenschleicher.de/screens/test4.png
http://www.plattenschleicher.de/screens/test5.png
http://www.plattenschleicher.de/screens/test6.png
Configuration seems to be a clone of the vfw, doesn't it ?
bob0r
25th March 2006, 13:52
Nice GUI.
...
It works on win32(need some modify though), but compiling is a pain :D
...
Would be nice if you told us what modifications, might come in handy!
@Hellworm
Yeah, VFW is a GUI by itself "Graphical User Interface".
This GTK Gui might inspire VFW developers for a new layout too, * looks at bond :cool:
Yong
25th March 2006, 14:11
@bob0r:
Open this file "x264_gtk_encode_main_window.c" ,
goto 4th line, change the <stdint.h> to <fcntl.h>.
Dont ask me why(???) :D
EDIT: sorry man, revert the changes :eek:
its add a new include file <fcntl.h>, not change the stdint.h to fcntl.h... :p
EDIT2: Not sure why the encoding doesnt work with x264 gtk gui,
its give me a 0byte mkv file, and cpu usage is 0% during encoding...
It is broked because of my modification? :O
max-holz
25th March 2006, 14:20
Configuration seems to be a clone of the vfw, doesn't it ?
Yes as I can see there is no no-fast-pskip option as in vfw.
Romario
25th March 2006, 22:27
I can't use this file x264_gtk_encode.exe because following message appears:
This application has failed to start because libglib-2.0-0.dll was not found. Re-installing the application may fix this problem.
ChronoCross
25th March 2006, 22:32
This gui is usable only in mingw....unless the dll are provided in the root folder. this gui is more for users of linux since there is no gui currently for it.
Romario
25th March 2006, 23:29
This gui is usable only in mingw....unless the dll are provided in the root folder. this gui is more for users of linux since there is no gui currently for it.
You say that this GUI won't work under Windows XP?
Where can I download DLL file which missing on my system?
ChronoCross
25th March 2006, 23:49
it requires the runtime libraries for gtk....evem I can't get it to compile as of yet because apparently there isn't a very good guide as to how to get gkt working on mingw.
but you can google the dll and it is on direct downlod.
Romario
26th March 2006, 00:16
Thanks ChronoCross, I just downloaded that DLL file.
BTW, where to copy that file, in System or System32 folder?
ChronoCross
26th March 2006, 00:19
System32
Romario
26th March 2006, 00:31
Thank you. Now, let get back on new GUI for x264. I don't know why someone built in SVN, but I suppose that this new GUI have numerous advantages.
What are main advantages that this new GUI have? Can someone,please,explain that in details. Thank you.
d'Oursse
26th March 2006, 00:41
1) yes, the gui is a vfw clone :)
2) there should be a patch for compilation with mingw (don't know if pengvado has put it in svn when I write those lines)
3) advantage : I can use it in the avisyth 3.0 gui now, without having to duplicate code. Other guys can propose other gui using the gtk configuration dialog. x264_gtk_encode uses the gtk configuration dialog. They are two independant things
4) And, the last one : it works on linux
5) the configuration options are saved in a file.
I have a gui with zones edition, but it has some prolems :)
edit : http://ftp.gtk.org/pub/gtk/v2.8/win32/ or http://www.gimp.org/~tml/gimp/win32/downloads.html for gtk on windows
bob0r
26th March 2006, 01:45
The runtimes:
http://gimp-win.sourceforge.net/stable.html
ChronoCross
26th March 2006, 03:26
I still can't get the thing to compile. it doesn't find the gtk runtimes even after I installed them. I attempted to add the dir to the pkg-config controller and the file gtk+-2.0.pc was put in C:\MinGW\lib\pkgconfig by the .zip files.....any suggestions?
ChronoCross
26th March 2006, 04:37
damnit...one final problem
http://www.chronocrossdev.com/images/gtkerror.png
this task is not for the weary. but now that it's working I can say that I like the way it looks. however I don't have a use for it atm.
hpn
26th March 2006, 06:04
@ChronoCross.
Maybe your libglib-2.0-0.dll build is old (and the whole GTK respectively). Try this one
http://mesh.dl.sourceforge.net/sourceforge/gimp-win/gtk+-2.8.15-setup.zip
(it's libglib-2.0-0.dll version 2.10.1.0, located in c:\Program Files\Common Files\GTK\2.0\bin\ after installation)
ChronoCross
26th March 2006, 06:56
yeah I got everything installed correctly. I had to remove some of th eold dll's from msys dir. works fine now.
JoeBG
26th March 2006, 09:01
There is a nice new build from Celtic Druid. (http://ffdshow.faireal.net/mirror/x264/)
I tried to start the encoder with a commandline. Seems to be not possible, but I would really like this. I always hoped for MeGUI becoming possible to do this (akapuma asked for this) - but it will not get realised.
Is it possible to add this function to this encoder here?
Yong
26th March 2006, 09:25
Still cant get this thing work,
Although the compiling is fine.
And the gui cosmetic problem still there.
noticed the Hellworm post? X264 configuration -> bitrate tab, the x264.png still missing)
Tried C_D build still same...
d'Oursse
26th March 2006, 09:34
for the missing png, is it on windows or linux ? On linux, you must run 'make install' to install the png file, so that it is found. It should work on windows, but i'm not sure of that
Yong
26th March 2006, 09:53
Win32 with mingw,
just tried make install and mingw give me:
install: `x264.png' and `./x264.png' are the same file
make: *** [install] Error 1 :confused:
But the main probem is, the encoding doesnt work...
One more problem,
the x264 debug options: log level,
doesnt show the error console beacuse of the LDFLAGS: -mwindows.
celtic_druid
26th March 2006, 11:24
You need to put the png in the same dir as the exe. If I can get it to actually encode, I will include the png next time.
d'Oursse
26th March 2006, 11:29
what's exactly the problem with the encoding ?
JoeBG
26th March 2006, 11:59
I think my english was too bad in my former post (sorry for that) so I got no answer. IŽll try it with other words if you all will give me a second chance:
Is it possible to add a cli function that makes it possible to start this encoder with a batchfile like the normal x264.exe?
I would really love this function. :)
Yong
26th March 2006, 12:19
Ok, the x264.png finally shown up :p
@d'Oursse:
I use the default options for encoding, loaded avs and set the output to desktop, pressed the execute, but the encoding status, video data always 0KB, current video frame, video rendering rate, time elapsed. totla time and the progress bar are show nothing, cpu usage is 0%.
tried mkv or H264 es out also same.
here is the x264 gtk console:
(x264_gtk_encode.exe:2124): Gtk-WARNING **: Could not find the icon 'stock_unkno
wn'. The 'hicolor' theme
was not found either, perhaps you need to install it.
You can get a copy from:
http://icon-theme.freedesktop.org/releases
Loading configuration from D:\.x264/x264.cfg
Writing configuration to D:\.x264\x264.cfg
file output : D:\Desktop/01.mp4
Loading configuration from D:\.x264/x264.cfg
encoding...
x264 [info]: using cpu capabilities MMX MMXEXT SSE SSE2
mp4 [info]: initial delay 0 (scale 30)
Am i missed something?
@JoeBG:
Why dont just use the CLI version of x264.exe?
d'Oursse
26th March 2006, 12:36
can you try an avisynth script, but just with a yuv raw file ? There are samples there :
http://www.tkn.tu-berlin.de/research/evalvid/cif.html
Yong
26th March 2006, 13:09
Ok, i load the rawyv12 avi and set the correct resolution and fps , encoding works now. :D
So this GUI encoder only work with raw yv12 video clips?
I havent try with avs+raw yuv avi because i dont know how to make it work with this gui...
d'Oursse
26th March 2006, 13:16
it should work with avisynth. Another guy has modified the app to used avs. But I can't check :/
d'Oursse
26th March 2006, 15:06
check also that the path of the video file is correct (use an absolute path to be sure)
Yong
26th March 2006, 15:27
i always use an absolute path for my avs file, and its play file with mpc or mplayer too.
Tried several options still cant get it to work with avs file :/
d'Oursse
26th March 2006, 22:56
there is a fix for avs input (rev 485)
Yong
27th March 2006, 00:11
Ok, now the encoding with avs indeed works :D
But still have bug,
1.http://img95.imageshack.us/img95/4900/x264gtk0uz.png
The "time elapsed" doesnt report correctly...
JoeBG
27th March 2006, 13:39
Sorry for asking again: No chance for commandlines? Makes it easier to integrate it in other programms.
d'Oursse
27th March 2006, 13:45
yong: i'll look at that
JoeBG: i don't plan to add it. I already have a not so small todo list on that small prog. Sorry
stax76
27th March 2006, 14:02
Sorry for asking again: No chance for commandlines? Makes it easier to integrate it in other programms.
Supporting all options from CLI is a huge task and since there is already a command line tool I see hardly benefit, maybe I'm missing something and you can describe a scenario. If this GUI becomes popular it would be interested to support it in StaxRip. On windows this should be done as COM automation server. In VB this is as easy as applying the Microsoft.VisualBasic.ComClass attribute to a class and enabling the 'Register for COM interop' in the project options. In C# it's easy as well, needs just some more attributes which the VB compiler automatically generates. In C++ it's not that easy in particularly if you don't got Visual Studio, ATL and C++/COM experience, hard to convince a Linux programmer to support this, Linux doesn't even know COM though there are similar things. Once you got a automation interface it's trivial to make command line inteface on top of that, MS did that for WMV using VBScript. A workaround would be if accesing the settings, like in case if XviD wich writes everything to the registry, does it persist settings using registry, ini or xml or anything other than binary?
emmel
28th March 2006, 19:23
Could someone please be so kind, and provide a small how-to-setup-your-gtk-env for building this app with mingw? Like which libs and where... thx.
emmel
ps. This gtk-stuff for windows is in a sense funny.. For making glib you need pkg-configure, and for building pkg-conf you need glib installed.. hehe.. I haven't encountered this chicken-egg problem for years :) Guess I'll have to stick to the precompiled runtime libraries for now.
Yong
28th March 2006, 20:01
pkg-config binary:
http://www.gimp.org/~tml/gimp/win32/pkg-config-0.20.zip ;)
If you are using the gtk devel package, remember to edit their pkg-config files (*.pc) to match your mingw environment(include dir, libs dir).
emmel
28th March 2006, 20:14
Thx! That was the chichen, though. The egg seems to be glib's dll, which is required by this app to run.
[edit] Oh I give up, not worth it. Too strange and home made for my taste. I mean the win-gtk-stuff, not the gui in question.
JoeBG
28th March 2006, 20:18
JoeBG: i don't plan to add it. I already have a not so small todo list on that small prog. Sorry :( I was really hoping.
bob0r
30th March 2006, 14:52
@emmel:
What i did:
(( Before you start its ALWAYS smart to backup old mingw/msys/other dirs that might update, before you update any files! ))
install GTK+ 2 Runtime Environment (version 2.8.9, for Windows 2000 and newer; updated installer)
http://gimp-win.sourceforge.net/stable.html
http://prdownloads.sourceforge.net/gimp-win/gtk%2B-2.8.9-setup-1.zip?download
grab the bin and dev files from http://www.gimp.org/~tml/gimp/win32/downloads.html
all files packed into 7-zip self extractor, extract in mingw/
http://files.x264.nl/gtk.exe
* used files:
atk-1.10.3.zip
atk-dev-1.10.3.zip
cairo-1.0.2.zip
cairo-dev-1.0.2.zip
gettext-0.14.5.zip
gettext-dev-0.14.5.zip
glib-2.8.6.zip
glib-dev-2.8.6.zip
gtk+-2.8.13.zip
gtk+-dev-2.8.13.zip
libiconv-1.9.1.bin.woe32.zip
libpng-1.2.8-bin.zip
libpng-1.2.8-lib.zip
pango-1.10.2.zip
pango-dev-1.10.2.zip
pkg-config-0.20.zip
Set Environment Variable:
(right mouse my computer/properties)Go to System Properties > Advanced > Environment Variables > User variables for user > New:
Variable name: PKG_CONFIG_PATH
Variable value: G:\MinGW\lib\pkgconfig <-- edit to fit your path!
Then hit OK a few times, so the settings are saved, restart mingw, if it was still running.
Now compile x264 like you normally did:
get source
cd x264
configure
make
cp -r x264.pc /g/MinGW/lib/pkgconfig #<-- edit to fit your path!
cp -r x264.h /g/MinGW/include #<-- edit to fit your path!
cd gtk
make
result: x264/gtk/x264_gtk_encode.exe ready to role
Yong
30th March 2006, 15:15
@bob0r:
We dont need to install the GTK+ 2 runtime environment(its for normal user only),
because the gtk binary pakage already contain the dlls we needed :)
Deinorius
30th March 2006, 16:31
About using the GUI in WinXP, I installed the GTK+ 2.8.15 (C:\Programs\common files\GTK\2.0\ just in german), but it didn't work. I copied every file from the "bin" Directory to system32. It stopped asking for the dll files, but now it displays the message about "read" couldn't be done.
How can I solve this problem?
leowai
30th March 2006, 17:56
Thanks bob0r!!! You're Super! :thanks:
With your excellent guide and repacked 7z, it done in less than 10 mins. :sly: I also almost give up after few hours of trying before reading your post!:devil:
emmel
30th March 2006, 18:28
bobOr, thanks for the clear instructions! Now you made it too easy, though... :) That gtk-installer of x264.nl is very nice.
[edit] Just realized, that this makes it possible to use SKINS with my mplayer on windows :eek:
Guilllo
8th May 2006, 18:05
How can I use this GUI to encode a vob file ?
Thanks
buzzqw
8th May 2006, 18:22
@Guilllo
No, you cannot dicertly encode a vob. This is a GUI for the CODEC not an encoding application.
X264.exe but be feeded with an avs. Use one of varius gui floating in "Mpeg4 Gui" subforum.
I can suggest my encoding suite or StaxRip or Megui.
All are able to deal with vobs.
BHH
d'Oursse
8th May 2006, 19:19
well, there's an avisynth input on windows, so you can ;)
In fact, i don't know if it's in svn yet. Pengvado has not reviewed my patch yet (one month...)
buzzqw
8th May 2006, 19:34
@d'Oursse
:p ops... don't want to mislead anyone ...
BHH
EDIT: tested 518 and avs is nicely supported !
d'Oursse
10th May 2006, 21:52
i ry to convince pengvado to look at it, but he is working on the core. The core is more important than that gui, I think :) So there's no problem with that.
I'm working on adding zones, right now.
buzzqw
11th May 2006, 08:16
i got some problem with bitrate.
I had encoded from command line an avs script at 1000 bitrate (1 pass encode) and got 1.5mb mp4 result, the same settings on your gui give me 300kb result.
:confused:
also in b-frames mode could be possible to add "auto" (or is a NON svn patch ?)
thanks !
BHH
d'Oursse
14th June 2006, 09:39
finally, the patch has been committed.
Kurtnoise
28th July 2006, 23:22
The French Mushroomeur (;) ) has submitted a new patch (http://www.via.ecp.fr/via/ml/x264-devel/2006-07/msg00068.html) for this x264_gtk_encode.
Here are the changes:
fixed :
* cleaning of Makefile
* time elapsed seems broken ('Total time' label replaced by 'Time
remaining')
* text entries of the status window is now not editable
added :
* compilation from x264 (add --enable-gtk option to configure)
* shared lib creation if --enable-shared is passed to configure
* x264gtk.pc file creation
* add --no-dct-decimate option
* add --b-rdo
Feel free to test it (http://kurtnoise.free.fr/misc/x264_gtk_encode.exe)...:)
leiming2006
30th July 2006, 14:42
The GUI like VFW......
The VFW seems more clean than MeGUI but it can't output mp4 directly. I have ever made one GUI like VFW :D
It's a little like this one
Here (http://forum.doom9.org/showthread.php?t=112770)
buzzqw
3rd July 2007, 17:21
no more update to this encoder/gui ? latest one is rev584..
BHH
d'Oursse
3rd July 2007, 17:30
i have fixed a seg fault
I plan to add zones to the configuration gui. I have already some code around
The problem is that I have not a lot of free time :(
buzzqw
3rd July 2007, 17:33
well no prob !
but this is one of more beautifull gui around and one of the smallest! i really like it!
take your time.. but don't forget us!
:thanks:
BHH
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.