digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   Mencoder: Mencoder GUI (http://www.digitalfaq.com/archives/encode/8176-mencoder-mencoder-gui.html)

incredible 02-22-2004 11:17 AM

Amenophis my Friend! You did a very very amazing work!

I in a very big testing phase TmpgEnc-CCE-Mencoder-FFvfw and I really do love mencoder using the settings your GUI does output!

But I got problems to let run mencoder.exe with the commandline your GUI did output.

As you see below I had to change to the dir of where mencoder does exist, so I took your GUI's output, add him the alternate Matrix and the "cd" command at the beginning.

Code:

cd C:\Programme\MPlayer\
C:
mencoder -of mpeg  -ovc lavc -lavcopts vcodec=mpeg2video: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_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:mbd=0:vbitrate=3000:vrc_maxrate=8000:vrc_minrate=800:vrc_buf_size=1835:keyint=15:vqmin=2:vqmax=24:vmax_b_frames=2:vb_qfactor=1.2:vi_qfactor=0.8:vb_qoffset=0.75:vqblur=0.3:vlelim=-4:vcelim=2:vfdct=6:aspect=4/3 -nosound "H:\Capture encodingtest_704x576.avi" -o "H:\Capture encodingtest_704x576.mpg"
bbdmux "H:\Capture encodingtest_704x576.mpg" 0xe0 "H:\Capture encodingtest_704x576_mencoder_8000.m2v"
del "H:\Capture encodingtest_704x576.mpg"
pause

I did find out that this encoder with the new figuredout settings frome here does encode awesome dark underwater movieareas!

Not mention the speed!! 3x faster than TmpgEnc and a touch faster than CCE, even when using the FFvfw MakeAvis engine. HELL! :D

And when I do inspect the diff encoders outputs in Bitrateviewer, mencoder does output a very much better Q curve!!! More calm and changing in parts where it makes sense! Where on the other side in TmpgEnc or CCE the Q curve sometimes JUMPS up to 7-8 where mencoder keeps the Q in a range of 2-4.

Ill do try your new GUI right now!
Thanks again!

Inc.

rds_correia 02-22-2004 12:45 PM

Hi Inc,
Please post your methods using doMe.
I think I'm missing something with PGC ripping.
But I have other questions beside this one too.
You're use makeAVIS right?
What script do you load?
The script you load is for resizing purposes only or are you using MA script?
Do we need vlelim=-4 & vcelim=2 even if we're using avs scripts like MA?
Does anybody have a problem when erasing the fake avi made by makeAVIS?
Whenever I try to erase mine windows gives me a message saying that "an error has occured
and it will have to close the explorer.exe". Then I pick "don't send to microsoft" as usual.
Thanks

incredible 02-22-2004 01:06 PM

Hi RDS!

Well the script above is the method I used in doMe

but the problem was that I couldn' get the bat running! It closed immediately. Only when I did apply at the beginning
Code:

cd C:\Programme\MPlayer\
C:
mencoder -of mpeg  -ovc lavc -lavcopts

Means the pointer to mencoder.exe.
So I never Could make the encoding starting directly from the GUI, I had to make the line addings afterwards and then it worked.
The Script I'm using where I do the fake AVI from is just an import script, no resizing! Just a minimal TemporalSoften and switching to YUY2, thats all.

rds_correia 02-22-2004 01:57 PM

@Inc
Hi buddy,
But we have to resize right?
For instance. I have a DVD that is 720x552 without black bands.
Using FitCD v1.1.3pre1 and you're precious hints on using it, I made up a script like this:
Code:

Mpeg2Source("D:\YYYYY\D2V_AC3\XXXXX.d2v")
undot()
Limiter()
asharp(1, 4)
BicubicResize(688,400,0,0.6,4,12,712,552)
STMedianFilter(3, 3, 1, 1 )
MergeChroma(blur(1.5))

MA_Routine() # or maybe MAJustSoft() instead

AddBorders(8,80,8,96)
Limiter()

I'm shooting for a non anamorphic KDVD of 704x576 with overscan=1.
So I figured: if I'm already filtering inside the avs script, there's no point on going filtering with mencoder, right?
From the man page of mencoder I understood that vlelim=-4 & vcelim=2 are both filters.
My question is: if I'm already filtering in the avs script I should drop those?
If so are there others I should drop in the mencoder CLI?
I haven't started using doMe because I don't know how to use ReAuthorist but as soon as I get it, I'll try it ASAP to give my feedback.
Also, looking at mencoder while it's encoding I get the sense that using makeAVIS avi it is switching to YUY2, am I right?
Isn't it better using YV12 instead? How do we switch to YV12?
Any problems deleting avi's created by makeAVIS?
Again, thanks for bearing with all my noob questions.
Cheers

Amenophis 02-22-2004 02:41 PM

Quote:

Originally Posted by incredible
Hi RDS!

Well the script above is the method I used in doMe

but the problem was that I couldn' get the bat running! It closed immediately. Only when I did apply at the beginning
Code:

cd C:\Programme\MPlayer\
C:
mencoder -of mpeg  -ovc lavc -lavcopts


Sorry for that, i forgot that most people haven't registered the the mencoder dir as an environment variable. i did that before i made the GUI, so it was working for me. you can do this my doing the steps shown in the image below, then you can access the mencoder command in the dos box from every dir. nevertheless, the 0.6 will let you specify the dir of the mencoder binary.

http://www.digitalfaq.com/archives/error.gif

incredible 02-22-2004 07:32 PM

Exactly in that Variable name: Path I got the Variable Value:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\Sy stem32\Wbem


???? Do should I just add the C:\mplayer there ??? Or the whole path to mplayer?


@ RDS...

You script looks fine, I did not resize cause of a correct captured stream at 704x576 pal just for testing but this night I will do my first full encoding on "The Rock" which was broadcasted this evening, ok that one I resized to overscan 2 so FitCD was used ;-)

In case of Colorconvversation via FFfvw, well YUY2 would be best as its the best one for mencoder as I saw in the command window.

I don't know any encoder which works best with YV12!

TmpgEnc uses rgb24
CCE uses YUY2

.. and mencoder IMHO also uses internally YUY2 to get to thge YV12 4:2:0 final m2v.

And its correct that u use Liniter() as as default mencoder uses a 0-255 Luma range encoding IMHO.

I everytime use a well configured Levels() Command to tweak to the right luma range and that command also gots a safe internally not to clip over the legal TV luma range.
And BTW Levels() or ColorYUV() use proportional luma range scaling, where on the other side Limiter() just "cuts"! the luma range. So be careful.

Amenophis 02-22-2004 08:41 PM

Quote:

Originally Posted by incredible
Exactly in that Variable name: Path I got the Variable Value:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\Sy stem32\Wbem

???? Do should I just add the C:\mplayer there ??? Or the whole path to mplayer?

You've to enter the path to the directory, where the binaries are located. p.e. in my case, the mencoder binary is "c:\mplayer\mencoder.exe". Each directory which is part of the variable value must be separated by a ;

rds_correia 02-23-2004 08:18 AM

Quote:

Originally Posted by incredible
In case of Colorconvversation via FFfvw, well YUY2 would be best as its the best one for mencoder as I saw in the command window.

I don't know any encoder which works best with YV12!

TmpgEnc uses rgb24
CCE uses YUY2

.. and mencoder IMHO also uses internally YUY2 to get to thge YV12 4:2:0 final m2v.

Hmm, its odd. Try using a VOB file instead of an AVI and you'll see that mencoder only uses YV12 from the begining and until the end of the whole process...
And since DVD is YV12 based, and the less with mess with colorspacing the better, I thought there could be a way to work in YV12 all the time.
I'm quite sure that Phil would highly advise us to go on YV12 the whole time :wink:

Quote:

Originally Posted by incredible
And its correct that u use Liniter() as as default mencoder uses a 0-255 Luma range encoding IMHO.

I everytime use a well configured Levels() Command to tweak to the right luma range and that command also gots a safe internally not to clip over the legal TV luma range.
And BTW Levels() or ColorYUV() use proportional luma range scaling, where on the other side Limiter() just "cuts"! the luma range. So be careful.

Ok, ok. Now I don't quite get it.
You mean I'm doing the right thing by using Limiter() in my script but you would advise me to use Levels() or ColorYUV() instead because these are not so radical?
Could you elaborate a bit on this one, please?
Cheers

incredible 02-23-2004 10:18 AM

Quote:

Originally Posted by rds_correia
Hmm, its odd. Try using a VOB file instead of an AVI and you'll see that mencoder only uses YV12 from the begining and until the end of the whole process...
And since DVD is YV12 based, and the less with mess with colorspacing the better, I thought there could be a way to work in YV12 all the time.
I'm quite sure that Phil would highly advise us to go on YV12 the whole time :wink:

Well Phil, I and many others to say thats its best to avoid Colorconversations as far as possible! Cause every colorconversation means quality loss. Example: I got a YUY2 based mjpeg Capture. In this case I try to do the WHOLE job in avisynth in YUY2 if I would use CCE later.

mjpeg = YUY2 :arrow: Avisynth in YUY2 :arrow: Going into CCE which keeps the YUY2 as it treats internally also the video in YUY2 :arrow: final mpeg output in YV12.

YUY2= 4:2:2 means 16Bit

YUY12=4:2:0 means 12bit and a differend Chroma subsampling.

And if you import a YV12 DVD d2v source you should keep the YV12 by using YV12 filtering, but anyhow ie. TmpgEnc processes internally in RGB24 so the way would be YV12 :arrow: YV12 :arrow: RGB24 :arrow: YV12

You see that you can't avoid a colorconverstion in the editing/encoding process seen as a whole, but you can avoid adding more conversations as really needed ;-)

Quote:

You mean I'm doing the right thing by using Limiter() in my script but you would advise me to use Levels() or ColorYUV() instead because these are not so radical?
Could you elaborate a bit on this one, please?
Cheers
Well Limiter() in case of encoding with tmpgenc afterwards makes (at the end of the script) no sense, maybe as a little compensation before using filtering in the script, but if you set the encoder to do a TV compilant lumarange encode he automatically scales the luma by itself and in your case this would mean DOUBLE luma scaling!

I did underline your "purpose" in the script cause to me it seems that mencoder in his defaults does not scale the luma to right TV specs settings.

;-)[/quote]

incredible 02-23-2004 11:00 AM

Sometimes I get during encoding some error lines containing:

PTS to SCR delay 8755 is too little!A-V:0.000 [821:0]

And If I don't set at DVD compilant encoding the min bitrate to maximal 300, ... a lot of buffer underrun errors do occur, larger values = buffer underrun!

?????

What happened? 8O

rds_correia 02-23-2004 06:58 PM

Same here buddy.
I always set vrc_minrate=300 otherwise those buffer underflows tend to appear...
As to the PTS SCR, I really haven't come up to a conclusion as why these appear. But these don't show up so often...
Anyone experiencing the same??
C ya

digitall.doc 02-24-2004 03:00 AM

Hi all:
related to those PTS .... SCR ... yep, the same here. I make my tests with a 1000 frame
sample, and they aways appear between frame 619-637 (I should look at the source
and see what happens in this frames).
I think they slow down the encoding.
And they appeared in all my tests, with very different settings.

Hydeus 02-24-2004 05:02 AM

I got PTS SCR on "hungry for bitrate" scenes (high motion, high complexity). Thats all I can say.

rds_correia 02-24-2004 07:19 AM

Yep,
So this is infact happening to a lot of us.
I could tell you that I have tried full encodes with with mencoder without those messages, and I've tried it with 5min clips and have seen those.
Also think it has something to do with the source.
Oh well. Maybe that doesn't matter much now.
Cheers

incredible 02-24-2004 07:28 AM

Well I took the GUI and its default settings, where Bmin is set to zero. In the resulted command line there is no bmin defined! Only Vbitrate and VmaxBitrate.

This gave me no more buffer underflows! Problem solved. Afterwards inspecting the final whole movie in Bitrateviewer, the min Bitrate was never going under 800kbit.

I tweaked a bit the I-Quantizer and B-Quantizer Factor and of course the Vbitrate value to finally get to my needed final size of 1900 MB wich was wanted at 704x576 :arrow: result is amazing for a capture! Encoding Speed was 23fps!! Almost realtime.
Bitrateviewer gives me very nice dynamic Q curve, dynamically on those parts where it has to be. The Bitrate allocation is very good!

But Still there came up while encoding these few errors about PTS SCR Delay. Well I did ignore it and after encoding I opened that m2v in Restream to reset the GOP timestamps.

Both Streams, the one with and the other without resetted timestamps I muxed each using Mplex.exe with the assigned mp2 to DVD specs.

No errors came out and playback and synchronity using WinDVD was well.

I also did one encoding of 352x576 to one CDr before, where I first got many underflows when muxing that, but I cured it using a bigger bitratevalue in Mplex instead of the default and instead of the recommended ZERO.

Inc.


All times are GMT -5. The time now is 04:39 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.