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)

Zyphon 04-14-2004 05:13 PM

Thanks vmesquita for making this GUI for newbs like me, now hopefully I can finally get to grips with Mencoder. :D

incredible 04-14-2004 05:24 PM

Quote:

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

Well I know that, I do use VdubMod and had never problems when loading the demuxed or even not demuxed m2v/mpg's when using my old build.
Even Bitrateviewer says "Illegal Stream Format" ... just to test what the right window says.

SO wil that stream be totally DVD conform??

BTW: Here are the Postprocessing options of mencoder:

http://www.digitalfaq.com/archives/i.../2004/04/1.gif

sertinell 04-14-2004 05:27 PM

Quote:

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
Hi

Ok. I respect your opinion about source code. thanks for the linux compile :)

vmesquita 04-14-2004 05:36 PM

Quote:

Originally Posted by incredible
Well I know that, I do use VdubMod and had never problems when loading the demuxed or even not demuxed m2v/mpg's when using my old build.
Even Bitrateviewer says "Illegal Stream Format" ... just to test what the right window says.

SO wil that stream be totally DVD conform??

This problems never happended to me... Please check the folowing: sometimes mencoder don't understand the command-line because there's a syntax error, and in this cases it produces.. Divx output! So check when you are encoding if you see right before the line showing the status of the encode
[mpeg2video] or something like that.
If you see [DIVX] it's because mencoder is doing DivX. I had this problem and may seem obvious but it took me some time to figure out. :D

incredible 04-14-2004 05:41 PM

Quote:

Originally Posted by vmesquita
So check when you are encoding if you see right before the line showing the status of the encode
[mpeg2video] or something like that.
If you see [DIVX] it's because mencoder is doing DivX.

My tweaked PAL 720x576 anamorph to 704x576 anamorph .config file

of=rawvideo=1
ovc=lavc=1
nosound=1
noskip=1
vf=yuvcsp,pp=hb:100:100/vb/dr,crop=704:576:8:0,hqdn3d=10:0:5 :arrow: a noisy dvd!
sws=9
lavcopts=vcodec=mpeg2video:vrc_eq=tex
:vmax_b_frames=2:vrc_maxrate=9800:
keyint=15:vrc_buf_size=1835: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,2 9,
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_matrix=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,28,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
ofps=%%FPS%%
fps=%%FPS%%




This is my output :

Code:

[mpeg2video @ 0x902050]rc buffer underflowmin  0mb  A-V:0.000 [0:0]
Pos:  2.2s    56f ( 1%)  28fps Trem:  1min  17mb  A-V:0.000 [1106:0]

Means mpeg2video .... but still I'm confused that a m2v capable reading appl. like Bitrateviewer doesn't accept that one 8O

Gspot tells me this:
http://www.digitalfaq.com/archives/i.../2004/04/2.gif

An avi container :lol:

I tried to demux that one the BBdemux.exe way (commandline) ... but it doesnt work .... command log "stands still" and nothing happens.
I also did one test and did apply of=mpeg=1 ..... no success

Now .... I tried to load it into DVDlab .... not accepted :!:
(as recommended by DVDlab I tried to use the DVDlab tool "Fix stream headers" .... :arrow: headers can't be fixed 8O

bigggt 04-14-2004 06:27 PM

Great job vmesquita,looks pretty easy to use but i am still having a problem with the end result,can i email someone a 1mb of the finished product to help me out :D

If so please pm me

vmesquita 04-14-2004 10:04 PM

New version out! Now everything should be working properly.

Changelog:
-of=mpeg was not being used, that's why m2v were invalids. Fixed
-Gop selection box
-Aspect Ratio now being properly set
-width/height and cropped/final dimentions swap bug fixed.
-now using ivtc for InverseTelecine instead of detc.

And added a new CVS compile "MEncoder dev-CVS-040414-23:25", that I just did right now. I also updated libavcodec. And this time, it comes with latest manpage. :D

Get it here:
http://www.jltoca.uaivip.com.br/files/MencodeMe011.zip

@incredible and bigggt
The first line of the template wasn't being read (bug) and because of that, it was using a AVI container... :( Get the new release, now it should work fine.
:wink:

incredible 04-15-2004 01:07 AM

:D Thanks!!
Ill test it this evening.

Anerboda 04-15-2004 01:30 AM

After a quick look at the latest vers. it seems to miss the option of choosing a Final Resolution of 480x576, which I use for most of my KSVCD's :D

But it looks very nice...thanks.

Anerboda

incredible 04-15-2004 02:42 AM

1.

As I yesterday the first time took a look at mencoders internal postprocessing options like cropping resizing, expanding etc .... maybe my point of view is wrong but ...

Vmesquita, you choose resizing/bordering as followed .... Scaling ... expanding ....
Im a bit confused WHY mencoder does a colorconversation when doing a scaling. But I think it would make sense if the image proportion preparing by mencoder would be done in the order FitCD does it like .... Crop .... scale ... addingborders. That would mean we could enter in fields of MEncoderGUI the values given by FitCD as also suggested by Kwag.
But that would mean to have three fields in your GUI and doing all calculations in FitCD before :?
But you already did a routine which also autodetects borders etc. in Avisynth, would it be possible (I know Im crazy now cause that means work) to implementate a calculation routine within your programming, which auto fills those mentioned fields? Maybe Muaddib can offer you the needed source? (just a crazy thought)

As always, if you need help .... ring the bell :)


2.

The postprocessing Filters of mencoder are very powerful at the first view and tests! The hq3denoiser is very powerful but slow. But I saw that the pp postprocessing routines of mencoder also got an integrated temporal denoiser ... but I dont get in the settings as just mentioned there are 1. 2. 3. ? Well time will bring it ;-)
As you see bove I still do load a makeAvis avi from a mpeg2source importing avs script but NO filters at all aplied. The encoding speed at 25fps 704x576 2.35:1 gots 58fps! 8O :D
If I do apply the hq3denoiser, the speed drops down significantly to about 29 fps! .... And I did a comparison of speed if the temporal denoising is done within the makeavis Avisynth script .... and that resulted a bit faster!

3.

The output of the mencoder log still says something about the CPU runtime detection .... is it possible to offer two compilings, one for athlon XP and one for Intel based machines... or did I understand something wrong?

Thanks a lot in advance Vmesquita!
I know you already dont get sleep as you are attacked by DIKO suggestions and now you got another baby to take care of .... great work!

PS: I do love the "template" way you offer in MEncoderGUI!
By this we can share optimal templates for special purposes like optimal scripts for AVS in here!! So If someone gots a new better filter etc. setting, we just can offer it in here as a template, thats all and YOU don't have to worry to re-encode your code as this would happen if you would have coded a ALLinOne Code appl. like Qenc. :D

vmesquita 04-15-2004 06:22 AM

@Anerboda
I forgot that resolution. I'll add to the next version. :D

@incredible
1-Actually I a not cropping black borders yet.In order to do that via mencoder, I have to first run a mencoder -include opts.conf -vf autocrop which will tell me the correct cropping values. :wink: I found out this yesterday. I don't think FitCD is needed for that, because righth now I already calulate this inside the program, only crop, ovescan and macroblock optimization is missing. But I will add this.

2-Maybe using mencoder filters is not as fast as I thought... :( Another things I wanted to do is a command-line MakeAvis. I already managed to re-compile MakeAvis but I still don't know exactly how it works. :?

3-I'll offer a AtlhonXP . Actually I'd like to offer builds for every plataform The only problem is that I am just one. :lol: :lol: :lol:

About DIKO, I think this project is mean to be a lot simpler than DIKO. I want to provide a simple, yet effective way for people to use mencoder, including newbies. The template thing has exactly the spirit you thought, make it easy to share and use. And easy to develop, too. :lol: :lol:

digitall.doc 04-15-2004 06:25 AM

Good job, vinicius :wink:
Already downloading, I'll test as soon as I can...
And it's nice we have a new compilation and a new man_page. I hope it'll be clearer tahn in previous versions :?

incredible 04-15-2004 06:51 AM

Quote:

Originally Posted by vmesquita
1-Actually I a not cropping black borders yet.In order to do that via mencoder, I have to first run a mencoder -include opts.conf -vf autocrop which will tell me the correct cropping values. :wink: I found out this yesterday. I don't think FitCD is needed for that, because righth now I already calulate this inside the program, only crop, ovescan and macroblock optimization is missing. But I will add this.

:)
Well lets see if we can trust on the autocrop engine of mencoder 8)
I think .... .... .... uops! (I stop here as you are already filled up with suggestions and so on :lol: )

Ill do tests these days using FitCD parameters in mencoders internal engines and I will do a comparison between Quality and speed of the mencoder internal resizing way and the makeavis (resized via AVS) way.

Cause these mencoder filter options would be GREAT as it also contains a de-logo engine! So if the filters of mencoder will output better, we could just take capts, delete the commercials out resafe them via Vdub direct stream copy (faaaast) and everything else would be don internal of mencoder!
BUT I have to find out IF the filters in Mencoder like delogo wont change into another colorspce as AVS delogo filters do that!
And thats a VERY big issue if I did understand right, that Scale: of mencoder does a colorspace conversion EVEN into RGB!
That would be very worse as a colorspace resampling from YUV to RGB is VERY tricky! as colors are separated totally different.

vmesquita 04-15-2004 07:27 AM

Inc,

You woundn't need to delete via VirtualDub. This can also be done via mencoder with sb, endpos and ss. Then you can simply join the generated M2Vs using copy/b (this is valid, if I remember correctly). Or maybe it's possible to specify more than I set of endpos/ss, who knows... :?

Edit: The RGB coneversion would be really bad... :cry:

incredible 04-15-2004 08:01 AM

Quote:

Originally Posted by vmesquita
Inc,

You woundn't need to delete via VirtualDub. This can also be done via mencoder with sb, endpos and ss.

That would had be my next question! :) As I also thought about that and its nice that mencoder does such things have integrated :D

incredible 04-15-2004 03:52 PM

If it would possible to do sliced encodings using a special mencoder command line ... we could proceed as followed:

1. Open the capture in Vdub and cut the commercials out.
2. Do safe the processing settings in Vdub as the cut points also will be safed
3. An import tab in MEncoderGUI could load the .vdf file and read out the cut points.
4. In the command line we will have the count of encodings called and each one will got the specified range and on every coding will a suffix added like .1 .2 .3
5 at the end of the command line a copy/b command will exist which merges the streams again and deletes the sliced encodings.
(thats also nice if DIKO is used to burn multiple captures to DVD-R using mencoder :) )

I whish I could do encode :cry:

:)

PS: Right now testing your latest release: Avicontainer Problem is fixed! Thanx! But I do see that you determine the %%aspect%% and also you do an autoaspect=1 afterwards .. is that ok?

EDIT: I got the right settet AR of 16/9 ... so its ok! :)

Zyphon 04-15-2004 04:09 PM

!!Warning Newb Alert!!

I used this tool to do a quick conversion of a DivX conversion i did years ago and I got a resulting m2v video file.

I used AVI2WAV to extract the audio and BeSweet to convert to MP2.

What should I use to mux them TMPGEnc???

Also I ripped a small VOB from my Austin Powers 3 DVD the Hard knock life music vid with Minnie Me and Dr Evil and tried to test that with this app.

I used DVD Decrypter to rip it to my HDD and when I tried to convert it to KDVD the DOS box flashed up quickly and nothing happened so im puzzled. :?: :?:

Sorry for being such a newb but this encoder is totally new to me. :oops:

incredible 04-15-2004 04:25 PM

Quote:

Originally Posted by Zyphon
!!Warning Newb Alert!!

I used this tool to do a quick conversion of a DivX conversion i did years ago and I got a resulting m2v video file.

I used AVI2WAV to extract the audio and BeSweet to convert to MP2.

What should I use to mux them TMPGEnc???

Better u do test mplex.exe a appl. which does the same like BBmpeg but much easier to get into the wanted/muxing screen/engine.
So do mux your m2v and mp2 using mplex.exe, or BBmpeg or TmpgEnc, guides for muxing you find in this forum.

Quote:

Also I ripped a small VOB from my Austin Powers 3 DVD the Hard knock life music vid with Minnie Me and Dr Evil and tried to test that with this app.

I used DVD Decrypter to rip it to my HDD and when I tried to convert it to KDVD the DOS box flashed up quickly and nothing happened so im puzzled. :?: :?:

Sorry for being such a newb but this encoder is totally new to me. :oops:
Be shure you did rip the VOB as ONE file by setting in DVD decrypter NO filesplitting! And shure u use the IFO mode.

So the Command Box just flashes and no more? But as your Divx encoding was successful the path to mencoder.exe was found and it cant be guilty for that.

--------------------------
@ All
Also we should make some tests on mencoders lame audio engine as it could be useful to directly encode the mp2 out of the VOB too incl, a mplex.exe command line version engine call to mux it as Ksvcd.
And if that doesnt work than a special!! build of ffmpeg can decode ac3 and encode it into AC3 again or mp2. That ffmpeg build can be found at doom9.org at "other mpeg encoders" and then search for the thread "daily ffmpeg builds"

black prince 04-15-2004 04:30 PM

@vm,

Tried MEncoderME v0.11. I have some questions??

1) I used avs MA script and used FakeAVIS as input. The program
failed with stack errors. Is your program only for Divx or VOB's.

2) I tried using just 1 vob for test purposes. The bitrate setting is
what? (Max, Min, or Average).

3) After setting DVD4:3 to VCD4:3, force film checked, GOP 18,
width= 352, height=240 (352X240), my output file was always
"movie.m2v" instead of "movie.m1v". Did I do something wrong?

Comments:

Good first start for the short time development. 8) My video results
will need more work. The movie would speed-up every 5 seconds and
go back to normal. It has a solarized display with some blockiness
especially water and fire scenes. :)

-BP

incredible 04-15-2004 04:36 PM

Im not Vmesquita, but .... well ;-)
Quote:

Originally Posted by black prince
1) I used avs MA script and used FakeAVIS as input. The program
failed with stack errors. Is your program only for Divx or VOB's.

I dont have problems when doing the MencoderGUI way by using MakeAvis and no matter which routines the internal Avs script does provide (till now). So what errors do occur??

Quote:


2) I tried using just 1 vob for test purposes. The bitrate setting is
what? (Max, Min, or Average).
Do the avg bitrate calculation using for example calcumatic to be found at the CQ matic thread. Min and Max are already set to the purpose oif the encoding format like Ksvcd or kvcd or Kdvd
Quote:


3) After setting DVD4:3 to VCD4:3, force film checked, GOP 18,
width= 352, height=240 (352X240), my output file was always
"movie.m2v" instead of "movie.m1v". Did I do something wrong?
In the state now MencoderGUI calls a mpeg2 engine of mencoder. So thats why you end up with a m2v!

Quote:

The movie would speed-up every 5 seconds and
go back to normal. It has a solarized display with some blockiness
especially water and fire scenes. :)
:?:
Post a pic! As I want to interprete your "solarisation" definition well ;-)

VCD (in regular) comes as CBR where such issues do come up but as we never do CBR that would mean something diff. is going wrong.
Seems that the Bitrate was set too low.
So tell your avg bitrate value you did enter in MencoderGUI for that 352x240 resolution.
Do you encode using 2pass or one pass?


All times are GMT -5. The time now is 10:47 AM  —  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.