digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   Mencodeme: a newbie oriented GUI - 0.23 is out! (http://www.digitalfaq.com/archives/encode/9116-mencodeme-newbie-oriented.html)

vmesquita 04-14-2004 07:59 AM

Mencodeme: a newbie oriented GUI - 0.23 is out!
 
Hi everyone,

I created this GUI. It's simple and template based. The idea behind it is very simple: 95% of the time encoding, we use the encode with optimized parameters. Most of us don't touch the templates when using tmpgenc/CCE. So here's how this GUI works: keeping the process very simple for everyone to get great results. Please note that this is aimed to use mencoder internal filters, so no avisyth support right now (but it would be easier to add, I just wanted to focus on this). This GUI is also multiplataform, it was done in C++ and WxWidgets.

Needed software:
-=-=-=-=-=-=-=
DVDDecrypter if you going to encode DVDs. For AVIs, nothing else is needed to process video.

How to use it:

1) Ripping with DVDDecrypter (Skip this step if you are using an AVI)
a)Open DVDDecrypter, go to Tools/Settings/IFO Mode and change file splitting to none. This way DVDDecrypter will create a BIG VOB with the whole move, instead os splitting in 1GB pieces. If you are going to use a AVI source, skip this step. Please take note of the movie duration if you're going to use a DVD source, you're going to need it.
b)Click on the tab "Stream Processing", check "Enable Stream Processing". Now keep checked only the audio and videoboxes corresponding to the tracks you want. For each checked option, change mode to "Demux" instead of direct stream copy
c) Click on the "DVD to HD" graphic button.
d) After the ripping process is complete, go to folder where the files are and rename the .m2v to .vob

2) Load Mencode-ME.
a)Click on "..." and select your VOB or AVI.
b) Select the kind of media you are going to use: DVD/1x CD 80 Min, etc... Also select audio bitrate. And if you are using VOBs, you also need to input movie length (in minutes!)
c) Select the resolution.
d) Select the framerate. (No support for interlaced PAL/NTSC): 23.976 for NTSC movies, 25 for PAL movies. If you are doing a NTSC movie, also check "Forced Film"
e) Select the template corresponding to your conversion
f) Check two pass for best quality (or don't for faster and worse results)
g) Click encode and let it fly!

:D :D :D

Get it here:
Windows
----------
http://www.vmesquita.com
(Mencoder and MPlayer already included this time)

The package comes with compiled mencoder and templates.
Linux
------
Grab it here:
http://www.vmesquita.com
You need gtk1.2 to use this. GTK2 doesn't work. But don't worry, you can have both installed.
For Debian based distro (like knoppix and kurumin), do:
apt-get install libgtk1.2



It doesn't include mencoder, you need to have mencoder already installed and in the path. Just unpack whatever you like and use it.

What's new in 0.23:
-=-=-=-=-=-=-=-=
- VBV buffer is set correctly. This should also solve mpeg1 dct coeficients messages/mpeg1 desynch.
- 2 pass is fixed.
- IVTC working like a charm
- Comes with a non-cpu optmized Mencoder CVS build. This was needed for IVTC and DirectX preview to work.
- Preview is now done using directX as output of mplayer. This should work fast for everyone. But you need Directx 8 or higher,
- target templates adjusted.

black prince 04-14-2004 09:07 AM

Hi vmesquita,

Going to try your MEncoder GUI today and will let you know some
results soon. :)

-BP

Abond 04-14-2004 09:47 AM

Sorry, here not working.
Code:

C:\MPlayer>Mencoder.exe -include temp.conf -lavcopts vbitrate=933:vpass=PASS C:\
Program Files\Working\vts_02_1.vob -o C:\Program Files\Working\vts_02_1.m2v
MEncoder dev-CVS-040409-21:32-3.3.1 (C) 2000-2004 MPlayer Team

CPU: Intel Pentium 4/Xeon/Celeron Foster 2075 MHz (Family: 8, Stepping: 7)
Detected cache-line size is 64 bytes
CPUflags: Type: 8 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with Runtime CPU Detection - WARNING - this is not optimal!
To get best performance, recompile MPlayer with --disable-runtime-cpudetection.
Reading /cygdrive/c/Dokumente und Einstellungen/Nutzer/.mplayer/codecs.conf: Can
't open '/cygdrive/c/Dokumente und Einstellungen/Nutzer/.mplayer/codecs.conf': N
o such file or directory
Reading mplayer//codecs.conf: Can't open 'mplayer//codecs.conf': No such file or
 directory
Using built-in default codecs.conf.
File not found: 'frameno.avi'
Failed to open frameno.avi
Reading config file /cygdrive/c/Dokumente und Einstellungen/Nutzer/.mplayer/menc
oder: No such file or directory
Reading config file temp.conf
The vpass option must be an integer: PASS
Exiting... (error parsing cmdline)

Can you please make to type the bitrate in the window - I somehow can't reach the bitrate I want (892)
And the temp.conf file:
Code:

ovc=lavc=1
nosound=1
noskip=1
sws=2
vf=yuvcsp,scale=352:428:0:0:60,unsharp=l3x3:0.6,hqdn3d=3:6:8,unsharp=l3x3:-0.7:c3x3:-1.5,noise=2uh,expand=576:352:-1:-1:1
lavcopts=vcodec=mpeg1video:vrc_eq=tex:vmax_b_frames=2:vrc_maxrate=2500:keyint=18:vrc_buf_size=917
:preme=2:precmp=2:vstrict=-1:autoaspect=1:scplx_mask=0.3:vqblur=0:mbqmin=1:vqmin=1:mbqmin=1:lmin=1:intra_matrix=8
,9,12,22,26,27,29,34,9,10,14,26,27,29,34,37,12,14,18,27,29,34,37,38,22,26,27,31,36,37,38,40
,26,27,29,36,39,38,40,48,27,29,34,37,38,40,48,58,29,34,37,38,40,48,58,69,34,37,38,40,48,58,69,79:inter_matr
ix=16,18,20,22,24,26,28,30,18,20,22,24,26,28,30,32,20,22,24,26,28,30,32,34,22,24,26,30,32,32,34,36,24,26,2
8,32,34,34,36,38,26,28,30,32,34,36,38,40,28,30,32,34,36,38,42,42,30,32,34,36,38,40,42,44
sid=0
ofps=25
fps=25

Nice work. The settings are 352x576 kvcd 25 fps
EDIT: ops, another small thing: in the template is written expand WIDTH HEIGHT, but in the temp.conf it is height width. :wink:

vmesquita 04-14-2004 09:56 AM

Ok, stupid bug of mine. :( Edit the conf file you are using and replace
PASS
with
%%PASS%%
This should solve. About bitrate: you can fine-tune using the left and right directional keys. :wink:
I'll fix this later, unfortunatelly I am not at home right now.

Two things I remembered:
- GOP is always 18.
- A.R. is automatically calculated, but AR flag is always 1:1. This is very simple to fix, I actually forgot. :oops: You can fix the file later usign ReStream. I'll fix this bugs later, bug it's still usable. :D

Abond 04-14-2004 09:59 AM

vmesquita, I have edited my post a bit...

vmesquita 04-14-2004 10:05 AM

Quote:

Originally Posted by Abond
EDIT: ops, another small thing: in the template is written expand WIDTH HEIGHT, but in the temp.conf it is height width. :wink:

ooops... :oops: Another bug for me to fix when I get home. :lol: :lol: This way it will produce a 576x352 MPEG (as opposed to 352x576 8O ).

Sorry for the confusion, the whole GUI was conceived, programmed and (little) tested in less than 24 hours (considering thatI also did a lot of things in this time besides this). But these are simple problems (looks like I should sleep a little more. :lol: )

digitall.doc 04-14-2004 10:40 AM

vmesquita,
CoNgRaTuLaTiOn
cOnGrAtUlAtIoN
conGRAtuLAtion
CONgraTUlaTION
(... and so on) :lol: :lol:

Very nice interface, easy to manage.
There's some debugging to do. But as you said, not that bad for 24 hours :wink:
(even I know a newbie programmer that did it in just 2 days... :lol: :lol: :P )
Some suggestions else: option to change vob from 18 to 15 (PAL), option in KDVD to just crop and expand (not scale nor bicubic
resize when encoding KDVD 16:9), did you try lmax=10 as bilu advised? (lower quantizer peaks in first pass). Maybe scplx_mask
could be just an option (not always of a help).

And, of course, last but not list, an "advanced" GUI would be great, with more parameters to be adjusted as desired. You could
keep templates for general use, but the possibility to adjust it to our desire.

Very good job, man

jorel 04-14-2004 10:49 AM

V,
Mencoder-me deserve a sticky and the answers and questions in another thread, don't ?
:idea:

let me see.....it's for newbys.....then....it's for me!

thanks and congrats my friend !
8)

vmesquita 04-14-2004 10:52 AM

Quote:

Originally Posted by digitall.doc
(even I know a newbie programmer that did it in just 2 days... :lol: :lol: :P )

:lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol:
Quote:

Some suggestions else: option to change vob from 18 to 15 (PAL),
When I was in the bus today I remembered that I forgot about the GOP.
Quote:

option in KDVD to just crop and expand (not scale nor bicubic
resize when encoding KDVD 16:9),
Actually, I don't know how I could crop the black borders in mencoder. Detecting the crop area in a automated way is hard...
Quote:

did you try lmax=10 as bilu advised? (lower quantizer peaks in first pass). Maybe scplx_mask
could be just an option (not always of a help).
I think this options are beyond the scope of this GUI... As soon as we find the optimal parameters, we will probably not mess with them. Or maybe there will be a few that we will adjust according to the situation. I realized using mencoder that many parameters are useless or produce bad quality.

I haven't done any mencoder quality tests since sunday...

Quote:

And, of course, last but not list, an "advanced" GUI would be great, with more parameters to be adjusted as desired. You could
keep templates for general use, but the possibility to adjust it to our desire.
Maybe there could be a "Template Maker Tool" :D
Quote:

Very good job, man
Thanks! :D

@jorel
Enjoy! :D

digitall.doc 04-14-2004 10:58 AM

Quote:

Originally Posted by vmesquita
When I was in the bus today I remembered that I forgot about the GOP.

That's OK
Quote:

Actually, I don't know how I could crop the black borders in mencoder. Detecting the crop area in a automated way is hard...
You could leave the option to introduce it manually...
Quote:

As soon as we find the optimal parameters, we will probably not mess with them. Or maybe there will be a few that we will adjust according to the situation.
You're right
Quote:

Maybe there could be a "Template Maker Tool" :D
Very good idea.

Jellygoose 04-14-2004 11:14 AM

I get this Error by Mencoder in 2-pass mode. Mencoder creates a .stackdump file which contains the following:

Code:

Stack trace:
Frame    Function  Args
0022CFD8  77E59D6A  (00000000, 40800000, 40800000, 40800000)
0022D0D8  6108A370  (00001770, 0022D0F0, 0022D108, 610E8D26)
0022D198  6108A64A  (00001770, 00000006, 0022D1C8, 6108AA1D)
0022D1A8  6108A46C  (00000006, 00000000, 610F39E0, 00000003)
0022D1C8  6108AA1D  (61001020, 0072F0E0, 0072E242, 0000026A)
0022D1F8  61001117  (0072E242, 0000026A, 0072F0E0, FFFFFFFF)
 394518 [sig] mencoder 6000 handle_threadlist_exception: handle_threadlist_exception called with threadlist_ix -1
 411103 [sig] mencoder 6000 handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
Exception: STATUS_ACCESS_VIOLATION at eip=61024852
eax=610882AF ebx=610F2964 ecx=00000000 edx=00000006 esi=610F2994 edi=00000006
ebp=00BFE814 esp=00BFE810 program=E:\MPEG-Tools\MPlayer\mencoder.exe, pid 6000, thread sig
cs=001B ds=0023 es=0023 fs=0038 gs=0000 ss=0023
Stack trace:
Frame    Function  Args
00BFE814  61024852  (610F2964, 610248C8, FFFFFFFF, 00000000)
00BFE844  6102499C  (0022CEB8, 00000001, 00000001, 00000000)
00BFEB74  61026DAA  (00000708, 00BFEBBC, 000000A4, 00BFEBA8)
00BFF084  6108E30E  (610F1778, 00BFF0C8, 00BFF0A4, 00BFF0DC)
00BFF0A4  610030E6  (610F1778, 00BFF0DC, 61003080, 77E5FE11)
00BFF0D4  61003E24  (00000000, 00000000, 00020251, C00000BB)
00BFFFA4  61003DDA  (00000000, 00000000, 00000000, 00000000)
End of stack trace

1 pass works well. Thanks for your effort vmesquita!

incredible 04-14-2004 11:48 AM

Vmesquita ..... great job! :)

A question: As you provide your own compiling of mencoder.exe and cygwin1.dll ... how does your GUI call that mencoder?? Will it be like If I would create a bat file where it justs starts with the words "mencoder .....", or does your GUI call a setted Path?
Because I did set mencoders Folder in my system variables!, means if you just type mencoder it refers directly to C:/Program files/mplayer/mencoder.exe.
Would this mean I have to exchange the mencoder in that mentioned path above incl the adding of cygwin1.dll ??

Thanks!

Inc.

vmesquita 04-14-2004 12:01 PM

@digitall.doc
Mencoder has a -cropdetect switch (http://www.mplayerhq.hu/DOCS/HTML/en...dvd-mpeg4-crop)
that detects the proper cropping options. I may add this later.

@Jellygoose
Maybe mencoder is not being able to read the logfile from 1st pass for some reason... :? Anyone with this problem? Actually I haven't done a full test with my own tool yet... :oops: I'll do it later.

@incredible
The GUI just calls a mencode.exe in its folder. If you want to use another compilation, replace mencoder.exe in the tool's folder or remove the included mencoder.exe and put your mencoder in path (I don't know if this will work). :roll: You have to test. :wink:

incredible 04-14-2004 02:59 PM

The output of the m2v can't be read by Vdub, only if FFvfw is set as decoder for mpeg's in Avi files. So I did set that in FFvfw and it works. Is that ok?
(I never had to do it before, means when using the old build)

sertinell 04-14-2004 02:59 PM

Re: Mencoder-me: a newbie oriented GUI
 
Quote:

Originally Posted by vmesquita
This GUI is also multiplataform, it was done in C++ and WxWidgets.

Hi vmesquita. where is the source code?. I want try to compile it in my MDK 10.

Thanks

kwag 04-14-2004 03:37 PM

Re: Mencoder-me: a newbie oriented GUI
 
Quote:

Originally Posted by sertinell

Hi vmesquita. where is the source code?.

Deeply saved and guarded in his computer :mrgreen:

-kwag

rds_correia 04-14-2004 03:40 PM

Hi,
I suspect Vinicius is not releasing the source code until he thinks the tool is properly polished and only
needs minor arrangements.
In fact that's what I would do, anyway.
And maybe V wants it multiplatform but is not planing in releasing the code at all.
By that I mean he may be posting downloads for win32, linux, freebsd, etc...
BTW I didn't have the time to congratulate him on his newest baby.
:ole:
Thanks for this new toy V.

Wish-list:
Could you release just the GUI without MEncoder binaries?
My cable link has had so many downtime that I have been surfing the web on my old regular
56K modem.
And that's a pretty big packet to download under this kind of bandwidth.
Also could you spare some time to post a step by step best way to compile MEncoder with Cygwin?
If so could you also mention which packages to download on Cygwin setup?
Thanks man.
Guys like you make our community STRONG :D
Cheers

sertinell 04-14-2004 04:01 PM

@ Kwag

I need it to compile it in Linux :(

@Vmesquita

Will you post releases for linux? Only the gui please, I prefer compile mencoder from CVS.

Thanks !!

incredible 04-14-2004 04:34 PM

Vmesquita.

This baby rocks! Thanks a lot for this nice GUI! :D

A little suggestion in case of PAL 702x576 anamorph to 704x576 anamorph encoding: As pal 720x576 only has to be cropped at both sides by 8 to get the correct 704x576 by still correct AR keeped, I changed the Line in the DVD template from your scalers and expanders to just crop=704:576:8:0.
This gave me a recognisable speed advantage of 7fps!

Quote:

Originally Posted by Mencoder Readme
scale[=w:h[:c[:p]]] ____ Scales the image with the software scaler (slow) and performs a YUV<->RGB colorspace conversion (al- so see -sws option)

As I do see is, that there will be a Colorspaceconversion! 8O Don't ask me why .... :?:


Now Im playing with mencoders internal filters :twisted: (for shure).
Vmesquita, how can I output the pphelp log??? Means where do I have to put that -pphelp argument so it will show me mencoders postprocessing options at least on a minimal sliced test encoding ?

Thanks!

vmesquita 04-14-2004 04:57 PM

Quote:

Originally Posted by sertinell
Hi vmesquita. where is the source code?. I want try to compile it in my MDK 10.

Hi sertinell. I will release a linux compile (just need my knoppix working). About the source code, please read this thread to understand my position:
http://www.kvcd.net/forum/viewtopic....ghlight=source

Quote:

Originally Posted by incredible
The output of the m2v can't be read by Vdub, only if FFvfw is set as decoder for mpeg's in Avi files. So I did set that in FFvfw and it works. Is that ok?

VirtualDub is not supposed to read MPEG2, unless you are using VirtualDubMod. Are sure you were actually producing MPEG2VIDEO files... :?
Quote:

A little suggestion in case of PAL 702x576 anamorph to 704x576 anamorph encoding: As pal 720x576 only has to be cropped at both sides by 8 to get the correct 704x576 by still correct AR keeped, I changed the Line in the DVD template from your scalers and expanders to just crop=704:576:8:0.
This gave me a recognisable speed advantage of 7fps!
Yes, this is a nice idea! :D I'll do that.

Quote:

Now Im playing with mencoders internal filters (for shure).
Vmesquita, how can I output the pphelp log??? Means where do I have to put that -pphelp argument so it will show me mencoders postprocessing options at least on a minimal sliced test encoding ?
I think you have to use just "mencoder -pphelp". Just tested now and it works. :wink:
Please let me know if you find a good filters combo. :D

@rds_correa
Well, I am not planing to release the source code. But I do plan to to multiplataform compiles.
I'll release the next version in 2 packages, 1 featuring the GUI only. :wink:
About the compilation guide: I would like to do that but it will be a bit hard because I'll have to reinstall cygwin to find out what packages I already have. :lol: But I am planing a reinstall in my machine at work and I'll take the chance to write the guide.


All times are GMT -5. The time now is 04:10 PM  —  vBulletin © Jelsoft Enterprises Ltd

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.