Quantcast Codecs: Libavcodec Progress Thread - Page 3 - digitalFAQ.com Forums [Archives]
  #41  
03-15-2006, 05:32 PM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by rds_correia
Ooops, wait a minute Gamma.
If Sagittaire's MPEG file reads a lot of errors on DVD Verifier but the demuxed M2V doesn't, then I would say that those errors were introduced by the authoring tool which doesn't make much sense...
Why not ? the verifier can check different things depending on the source type (muxed or elementary streams). And then, yes, that means that the muxer has a problem.
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #42  
03-16-2006, 01:46 AM
gamma gamma is offline
Free Member
 
Join Date: Nov 2003
Location: Rotterdam (The Netherlands)
Posts: 237
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Dialhot
Quote:
Originally Posted by rds_correia
Ooops, wait a minute Gamma.
If Sagittaire's MPEG file reads a lot of errors on DVD Verifier but the demuxed M2V doesn't, then I would say that those errors were introduced by the authoring tool which doesn't make much sense...
Why not ? the verifier can check different things depending on the source type (muxed or elementary streams). And then, yes, that means that the muxer has a problem.
Indeed, that's why I posted in my earlier results only the elementary stream. It seems muxers produce various errors. I was very amazed that even commercial DVD's produces errors . But that was an ILVU disc so maybe that's the problem (star wars 3).

Interesting would be: how does the muxer errors influence the mpeg compliancy?

On my todo list is a comparison of muxers, as in ifoedit, muxman, dvd lab pro, tmpg and spruce dvd maestro. But I'll need some time for that
Reply With Quote
  #43  
03-16-2006, 04:55 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by gamma
Interesting would be: how does the muxer errors influence the mpeg compliancy?
IMHO there is no question like this. It has to be checked into the doc of the soft but for me the tool does not verify the same things when you give to it a muxed or an elementary stream.
In other word, checking the muxed vob gives you only the "muxing errors" while cheking the demuxed stream really give you the mpeg compliancy.
Reply With Quote
  #44  
03-16-2006, 10:50 AM
gamma gamma is offline
Free Member
 
Join Date: Nov 2003
Location: Rotterdam (The Netherlands)
Posts: 237
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Dialhot
Quote:
Originally Posted by gamma
Interesting would be: how does the muxer errors influence the mpeg compliancy?
IMHO there is no question like this. It has to be checked into the doc of the soft but for me the tool does not verify the same things when you give to it a muxed or an elementary stream.
In other word, checking the muxed vob gives you only the "muxing errors" while cheking the demuxed stream really give you the mpeg compliancy.
I meant "DVD" instead of "MPEG". You're right, the muxer doesn't change the compliancy of the encoded file, but is responsible for the overall DVD compliancy.

When checking a muxed vob, the verifier does check muxer errors as well as mpeg errors. The total errors are the mpeg errors + the muxer errors + navigational errors + ....
Reply With Quote
  #45  
03-18-2006, 12:14 PM
Sagittaire Sagittaire is offline
Free Member
 
Join Date: May 2003
Posts: 97
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Lavcodec uses a LINEAR Quantisation where TmpgEnc, CCE and others do use a NONLINEAR Quantisation.
I think that non linear quantisation is adaptative quantisation (I am not sure here ... perhaps not). Anyway Libacodec can use adaptive quantisation in two differents mode:

- RDO for each macroblock
- Masking for each macroblock (lumi, dark, spacial, temporal)

TMPGEnc use certainely something like spacial/temporal masking for Adaptative quantisation. AQ is certainely very usefull too to respect vbv limitation ...

Quote:
A Q of 2 in Lavcodec matches almost a Q of 4 in TmpgEnc, CCE etc. Keep in mind Im talking about human eyes subjective comparison.
Quote:
So a Quantizer of 4 in lavcodec results in a significant worse output than compared to a Quantizer of 4 when using TmpGenc, CCE etc.!
Well I use OSD in ffdshow and I see that vqscale=2 (only for MPEG2) done q=4, vqscale=3 done q=6 on OSD ... etc etc etc

two solutions:
- Mencoder MPEG2 is buggy and use only quantizer with X2 scaling
- Libavcodec decoder OSD is buggy

I make encoding with same setting (source, custom matrix, dc ...)
- Mencoder encoding vqscale=2 done 4406 Kbps and q4 for OSD
- TMPGEnc CQ78 encoding done 4692 Kbps and ~q4 for OSD
- TMPGEnc CQ100 encoding done exactly q1 for OSD

Conclusion: Mencoder MPEG2 is buggy and use only quantizer with X2 scaling. It is not a fatal bug but mencoder can't simply use impair quantizer. Perhaps volunteer limitation from libavcodec dev for better compatibility with actual libavcodec Rate Control.
__________________
Le Sagittaire
--------------------
Inutile de discuter avec moi ... j'ai toujours raison ... en tous cas j'en suis convaincu et c'est le principal ...
Reply With Quote
  #46  
03-21-2006, 07:40 PM
Sagittaire Sagittaire is offline
Free Member
 
Join Date: May 2003
Posts: 97
Thanks: 0
Thanked 0 Times in 0 Posts
well try this:
http://oss.netfarm.it/mplayer-win32.php

be carefull :

- final bitrate must be always inferior to fast first pass at q6. Ik you want know compressibility Q6 make little compressibility test (5% is enougth with source=SelectRangeEvery(source, 300, 15) for example).

- this configuration is insame quality setting. Use CCIR601 space color for better compressibility. I use this profil only for very low bitrate with adaptative avs script.

Code:
@echo off

@REM ---
@REM
@REM                                   MPEG2 Mencoder Profil
@REM
@REM ---



@REM >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
@REM >>                                Output and Input files
@REM >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

@REM Input file name
set E_SRC=Encodage-HD.avs

@REM Output file name
set E_VID=MPEG2-HQ.m2v



@REM >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
@REM >>                                 Rate control settings
@REM >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

@REM Set of bitrates
set E_BR=4000

@REM Set of max bitrates (use 9800 max for DVD compliant stream)
set E_MBR=9000

@REM Set of buffer size (use 1835 max for DVD compliant stream)
set E_MBS=1835

@REM Set of first pass quantizer (3 is good initial value)
set E_IQ=3

@REM Set of min quantizer (2 is good value)
set E_MQ=2

@REM Set of quantizer variability [0.00;1.00] (0.75 is good value)
set E_VQ=0.75



@REM >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
@REM >>                                   GOP structure
@REM >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

@REM Set of max interval KFrame (use 15 for DVD PAL and 18 for DVD NTSC)
set E_MIK=15

@REM Set of max BFrames [0;4] (use 2 max for DVD compliant stream)
set E_MBF=2

@REM Set of Adaptative BFrames [0;2] (desactived is 0, fast is 1 and slow is 2)
set E_ABF=2

@REM Set of Slow Adaptative BFrames Refine [0;10] (0 is full search, higher is faster)
set E_SBF=1



@REM >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
@REM >>                             Motion estimation settings
@REM >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

@REM Set of ME range [0;9999] (use 128 for DVD compliant stream)
set E_RME=128

@REM Set of Rate Distortion Optimisation [0;2](2 is the best)
set E_RDO=2

@REM Set of diamond size [-99;6] (negatives values are adaptative diamond)
set E_DIA=-6

@REM Set of comparison function for ME [0;2000] (0 is SAD, 1 is SSE, 2 is SADT, +256 for chroma ME)
set E_CMP=257

@REM Set of previous ME [0;2]
set E_PME=2

@REM Set of BFrame refinements [0;4] (Bframe Quality, 4 is best quality)
set E_BFR=4



@REM >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
@REM >>                                    VUI settings
@REM >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

@REM Display Aspect Ratio (4/3 or 16/9 for DVD compliant stream)
set E_DAR=16/9

@REM DC precision [8;10]
set E_DC=8

@REM Set intra matrix (use coef > 16 for DVD compliant stream with mencoder)
set E_INTRA=8,16,16,16,17,18,21,24,16,16,16,16,17,19,22,25,16,16,17,18,20,22,25,29,16,16,18,21,24,27,31,36,17,17,20,24,30,35,41,47,18,19,22,27,35,44,54,65,21,22,25,31,41,54,70,88,24,25,29,36,47,65,88,115

@REM Set inter matrix (use coef > 16 for DVD compliant stream with mencoder)
set E_INTER=16,16,16,16,17,17,18,19,16,16,16,16,17,18,19,20,16,16,16,17,18,19,20,22,16,16,17,18,19,21,23,26,17,17,18,19,21,24,27,31,17,18,19,21,24,28,33,40,18,19,20,23,27,33,42,51,19,20,22,26,31,40,51,64



@REM >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
@REM >>                                   Mencoder CLI
@REM >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

mencoder.exe %E_SRC% -o %E_VID% -ovc lavc -noskip -vf yuvcsp -lavcopts vcodec=mpeg2video:vpass=1:turbo:vqmin=%E_MQ%:lmin=2:sc_factor=6:vqblur=0:vqscale=%E_IQ%:vrc_maxrate=%E_MBR%:vrc_buf_size=%E_MBS%:keyint=%E_MIK%:vqcomp=%E_VQ%:vmax_b_frames=%E_MBF%:vb_strategy=%E_ABF%:brd_scale=%E_SBF%:vb_qfactor=1.00:vb_qoffset=0.0:vi_qfactor=1.00:vi_qoffset=0.0:me_range=%E_RME%:preme=%E_PME%:dia=%E_DIA%:predia=%E_DIA%:mbd=%E_RDO%:precmp=%E_CMP%:cmp=%E_CMP%:subcmp=%E_CMP%:mv0:last_pred=0:trell:cbp:dc=%E_DC%:psnr:aspect=%E_DAR%:inter_matrix=%E_INTER%:intra_matrix=%E_INTRA%:p_mask=0.5 -of rawvideo -ffourcc MPG2

mencoder.exe %E_SRC% -o %E_VID% -ovc lavc -noskip -vf yuvcsp -lavcopts vcodec=mpeg2video:vpass=3:vqmin=%E_MQ%:lmin=2:sc_factor=6:vqblur=0:vbitrate=%E_BR%:vrc_maxrate=%E_MBR%:vrc_buf_size=%E_MBS%:keyint=%E_MIK%:vqcomp=%E_VQ%:vmax_b_frames=%E_MBF%:vb_qfactor=1.00:vb_qoffset=0.0:vi_qfactor=1.00:vi_qoffset=0.0:me_range=%E_RME%:preme=%E_PME%:dia=%E_DIA%:predia=%E_DIA%:mbd=%E_RDO%:precmp=%E_CMP%:cmp=%E_CMP%:subcmp=%E_CMP%:mv0:last_pred=0:trell:cbp:dc=%E_DC%:psnr:aspect=%E_DAR%:inter_matrix=%E_INTER%:intra_matrix=%E_INTRA%:p_mask=0.5 -of rawvideo -ffourcc MPG2

mencoder.exe %E_SRC% -o %E_VID% -ovc lavc -noskip -vf yuvcsp -lavcopts vcodec=mpeg2video:vpass=3:vqmin=%E_MQ%:lmin=2:sc_factor=6:vqblur=0:vbitrate=%E_BR%:vrc_maxrate=%E_MBR%:vrc_buf_size=%E_MBS%:keyint=%E_MIK%:vqcomp=%E_VQ%:vmax_b_frames=%E_MBF%:bidir_refine=%E_BFR%:vb_qfactor=1.00:vb_qoffset=0.0:vi_qfactor=1.00:vi_qoffset=0.0:me_range=%E_RME%:preme=%E_PME%:dia=%E_DIA%:predia=%E_DIA%:mbd=%E_RDO%:precmp=%E_CMP%:cmp=%E_CMP%:subcmp=%E_CMP%:mv0:last_pred=3:trell:cbp:dc=%E_DC%:psnr:aspect=%E_DAR%:inter_matrix=%E_INTER%:intra_matrix=%E_INTRA%:p_mask=0.5 -of rawvideo -ffourcc MPG2


pause
__________________
Le Sagittaire
--------------------
Inutile de discuter avec moi ... j'ai toujours raison ... en tous cas j'en suis convaincu et c'est le principal ...
Reply With Quote
  #47  
03-22-2006, 04:51 AM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
My suggestion for easier File input handling .....

So just drag'n drop the source .avs to this bat and an encoding using the source's filename but with a suffix of .m2v will be the result.

Code:
@echo off

CLS
SET WORK=%~dp0

IF NOT EXIST "%WORK%mencoder.exe" (
	ECHO.---------------------------------------------------------
	ECHO.mencoder.exe doesn't exist in the same folder 
	ECHO.where this bat file has been copied to.
	ECHO.
	ECHO.Get the official mplayer/mencoder package
	ECHO.at http://oss.netfarm.it/mplayer-win32.php 
	ECHO.and put the bat file into the same folder folder.
   ECHO.where mencoder.exe exists.
	ECHO.---------------------------------------------------------
	ECHO.
	PAUSE
	GOTO :END
)

IF NOT EXIST "%~1" (
	ECHO.Can't detect the source.
	PAUSE
	GOTO :END
)


@REM ---
@REM
@REM                                   MPEG2 Mencoder Profil
@REM
@REM ---

@REM >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
@REM >>                                 Rate control settings
@REM >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

@REM Set of bitrates
set E_BR=4000

@REM Set of max bitrates (use 9800 max for DVD compliant stream)
set E_MBR=9000

@REM Set of buffer size (use 1835 max for DVD compliant stream)
set E_MBS=1835

@REM Set of first pass quantizer (3 is good initial value)
set E_IQ=3

@REM Set of min quantizer (2 is good value)
set E_MQ=2

@REM Set of quantizer variability [0.00;1.00] (0.75 is good value)
set E_VQ=0.75



@REM >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
@REM >>                                   GOP structure
@REM >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

@REM Set of max interval KFrame (use 15 for DVD PAL and 18 for DVD NTSC)
set E_MIK=15

@REM Set of max BFrames [0;4] (use 2 max for DVD compliant stream)
set E_MBF=2

@REM Set of Adaptative BFrames [0;2] (desactived is 0, fast is 1 and slow is 2)
set E_ABF=2

@REM Set of Slow Adaptative BFrames Refine [0;10] (0 is full search, higher is faster)
set E_SBF=1



@REM >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
@REM >>                             Motion estimation settings
@REM >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

@REM Set of ME range [0;9999] (use 128 for DVD compliant stream)
set E_RME=128

@REM Set of Rate Distortion Optimisation [0;2](2 is the best)
set E_RDO=2

@REM Set of diamond size [-99;6] (negatives values are adaptative diamond)
set E_DIA=-6

@REM Set of comparison function for ME [0;2000] (0 is SAD, 1 is SSE, 2 is SADT, +256 for chroma ME)
set E_CMP=257

@REM Set of previous ME [0;2]
set E_PME=2

@REM Set of BFrame refinements [0;4] (Bframe Quality, 4 is best quality)
set E_BFR=4



@REM >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
@REM >>                                    VUI settings
@REM >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

@REM Display Aspect Ratio (4/3 or 16/9 for DVD compliant stream)
set E_DAR=16/9

@REM DC precision [8;10]
set E_DC=8

@REM Set intra matrix (use coef > 16 for DVD compliant stream with mencoder)
set E_INTRA=8,16,16,16,17,18,21,24,16,16,16,16,17,19,22,25,16,16,17,18,20,22,25,29,16,16,18,21,24,27,31,36,17,17,20,24,30,35,41,47,18,19,22,27,35,44,54,65,21,22,25,31,41,54,70,88,24,25,29,36,47,65,88,115

@REM Set inter matrix (use coef > 16 for DVD compliant stream with mencoder)
set E_INTER=16,16,16,16,17,17,18,19,16,16,16,16,17,18,19,20,16,16,16,17,18,19,20,22,16,16,17,18,19,21,23,26,17,17,18,19,21,24,27,31,17,18,19,21,24,28,33,40,18,19,20,23,27,33,42,51,19,20,22,26,31,40,51,64



@REM >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
@REM >>                                   Mencoder CLI
@REM >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

ECHO.---------------------------------------------------------------
ECHO.Binary: %WORK%mencoder.exe
ECHO.---------------------------------------------------------------
ECHO.Source: %~1
ECHO.Target: %~dpn1.m2v
ECHO.---------------------------------------------------------------
ECHO.
ECHO.Conversion to raw mpeg2 starts ...
ECHO.
ECHO.---------------------------------------------------------------
ECHO.First pass ...
ECHO.---------------------------------------------------------------
ECHO.
"%WORK%mencoder.exe" %~1 -o %~dpn1.m2v -ovc lavc -noskip -vf yuvcsp -lavcopts vcodec=mpeg2video:vpass=1:turbo:vqmin=%E_MQ%:lmin=2:sc_factor=6:vqblur=0:vqscale=%E_IQ%:vrc_maxrate=%E_MBR%:vrc_buf_size=%E_MBS%:keyint=%E_MIK%:vqcomp=%E_VQ%:vmax_b_frames=%E_MBF%:vb_strategy=%E_ABF%:brd_scale=%E_SBF%:vb_qfactor=1.00:vb_qoffset=0.0:vi_qfactor=1.00:vi_qoffset=0.0:me_range=%E_RME%:preme=%E_PME%:dia=%E_DIA%:predia=%E_DIA%:mbd=%E_RDO%:precmp=%E_CMP%:cmp=%E_CMP%:subcmp=%E_CMP%:mv0:last_pred=0:trell:cbp:dc=%E_DC%:psnr:aspect=%E_DAR%:inter_matrix=%E_INTER%:intra_matrix=%E_INTRA%:p_mask=0.5 -of rawvideo -ffourcc MPG2
ECHO.
ECHO.---------------------------------------------------------------
ECHO.Second pass ...
ECHO.---------------------------------------------------------------
ECHO.
"%WORK%mencoder.exe" %~1 -o %~dpn1.m2v -ovc lavc -noskip -vf yuvcsp -lavcopts vcodec=mpeg2video:vpass=3:vqmin=%E_MQ%:lmin=2:sc_factor=6:vqblur=0:vbitrate=%E_BR%:vrc_maxrate=%E_MBR%:vrc_buf_size=%E_MBS%:keyint=%E_MIK%:vqcomp=%E_VQ%:vmax_b_frames=%E_MBF%:vb_qfactor=1.00:vb_qoffset=0.0:vi_qfactor=1.00:vi_qoffset=0.0:me_range=%E_RME%:preme=%E_PME%:dia=%E_DIA%:predia=%E_DIA%:mbd=%E_RDO%:precmp=%E_CMP%:cmp=%E_CMP%:subcmp=%E_CMP%:mv0:last_pred=0:trell:cbp:dc=%E_DC%:psnr:aspect=%E_DAR%:inter_matrix=%E_INTER%:intra_matrix=%E_INTRA%:p_mask=0.5 -of rawvideo -ffourcc MPG2
ECHO.
ECHO.---------------------------------------------------------------
ECHO.Third pass ...
ECHO.---------------------------------------------------------------
ECHO.
"%WORK%mencoder.exe" %~1 -o %~dpn1.m2v -ovc lavc -noskip -vf yuvcsp -lavcopts vcodec=mpeg2video:vpass=3:vqmin=%E_MQ%:lmin=2:sc_factor=6:vqblur=0:vbitrate=%E_BR%:vrc_maxrate=%E_MBR%:vrc_buf_size=%E_MBS%:keyint=%E_MIK%:vqcomp=%E_VQ%:vmax_b_frames=%E_MBF%:bidir_refine=%E_BFR%:vb_qfactor=1.00:vb_qoffset=0.0:vi_qfactor=1.00:vi_qoffset=0.0:me_range=%E_RME%:preme=%E_PME%:dia=%E_DIA%:predia=%E_DIA%:mbd=%E_RDO%:precmp=%E_CMP%:cmp=%E_CMP%:subcmp=%E_CMP%:mv0:last_pred=3:trell:cbp:dc=%E_DC%:psnr:aspect=%E_DAR%:inter_matrix=%E_INTER%:intra_matrix=%E_INTRA%:p_mask=0.5 -of rawvideo -ffourcc MPG2

ECHO.
ECHO.mencoderERRORLEVEL=%ERRORLEVEL%
ECHO.

pause

:END
SET WORK=
Reply With Quote
  #48  
03-22-2006, 04:57 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Sagittaire
I use this profil only for very low bitrate with adaptative avs script.
I just want to be sure. The bitrate is given by what parameter ?
Isn't it this one :
Quote:
@REM Set of bitrates
set E_BR=4000
IF yes, 4000 us not really what I call low bitrate.
What (range) value do you generally use ?

Other question : is it a 3-pass encoding ?

@Inc
Thanks for your trick.
Reply With Quote
  #49  
03-22-2006, 05:10 AM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
@Phil

Yes it seems so, if I understood correctly, that given 3pass approach above avoids ratecontrol issues/spikes ?
Reply With Quote
  #50  
03-22-2006, 05:27 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by incredible
@Phil

Yes it seems so, if I understood correctly, that given 3pass approach above avoids ratecontrol issues/spikes ?
And enhance quality as the third pass introduces the "adaptative B-frame" feature. For testing purpose I don't mind doing 3-pass, just "to see".

I have a question more : in all passes there is the "pnsr" parameter. Is it for computing metrics while encoding ?
(I'm sure I should read a fucking manual... )
Reply With Quote
  #51  
03-22-2006, 06:30 AM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
It would really be interesting if also you could do a testing. Reports from diff. users always make more sense (not beeing generylly in doubt of you Sagittaire you know what I mean).
I havn't (had) that much time for backups and testings the last weeks as I focussed my eyes on c/c++ understanding .
Reply With Quote
  #52  
03-22-2006, 04:31 PM
Sagittaire Sagittaire is offline
Free Member
 
Join Date: May 2003
Posts: 97
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
I just want to be sure. The bitrate is given by what parameter ?
- by first fast pass at Q6 : final bitrate must be always inferior
- by compressibility test with modified source avs script
source=SelectRangeEvery(source, 300, 15) is 5% test
source=SelectRangeEvery(source, 150, 15) is 10% test


Quote:
IF yes, 4000 us not really what I call low bitrate.
What (range) value do you generally use ?
well 4000 is for very complexe source. I test these particulars sources only for profil validation.


Quote:
And enhance quality as the third pass introduces the "adaptative B-frame" feature.
First adaptative bframe is DVD compliant (CCE use adapt BF but not TMPGEnc). Second it's better for quality. Two mode are possible with libavcodec : fast adaptative based on simple motion level and full (slow) search level.


Quote:
Other question : is it a 3-pass encoding ?
3 pass done better quality and no underflow problem if you respect bitrate limitation (lower than Q6 constant quant)

see this example:

- first pass is fast Q6 pass : done high number underflow and 4575 Kbps
(you must use less than 4575 Kbps for final bitrate here)
- second pass done little number underflow with 4009 Kbps
- third pass done no underflow with 4004 Kbps

Code:
MEncoder Sherpya-MinGW-20060312-4.1.0 (C) 2000-2006 MPlayer Team
CPU: Advanced Micro Devices Sempron/Athlon MP/XP Thoroughbred; Duron Applebred (Family: 6,
 Stepping: 1)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx

success: format: 0  data: 0x0 - 0x16d
AVS file format detected.
VIDEO:  [YV12]  720x576  12bpp  25.000 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:38  fourcc:0x32315659  size:720x576  fps:25.00  ftime:=0.0400
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [yuvcsp]
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 720 x 576 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
videocodec: libavcodec (720x576 fourcc=3267706d [mpg2])
High quality encoding selected (non real time)!
Using constant qscale = 3.000000 (VBR)
Selected video codec: [rawyv12] vfm: raw (RAW YV12)
==========================================================================
Forcing output fourcc to 3247504d [MPG2]
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
[mpeg2video @ 00B6C27C]rc buffer underflow 7min  34mb  A-V:0.000 [2229:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 7min  36mb  A-V:0.000 [2329:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 7min  37mb  A-V:0.000 [2388:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 7min  38mb  A-V:0.000 [2435:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 7min  39mb  A-V:0.000 [2490:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 7min  41mb  A-V:0.000 [2578:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 6min  38mb  A-V:0.000 [2665:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 6min  39mb  A-V:0.000 [2748:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 6min  42mb  A-V:0.000 [2884:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 6min  43mb  A-V:0.000 [2960:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 6min  45mb  A-V:0.000 [3039:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 6min  47mb  A-V:0.000 [3114:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 6min  49mb  A-V:0.000 [3189:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 6min  50mb  A-V:0.000 [3274:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 6min  52mb  A-V:0.000 [3358:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 6min  53mb  A-V:0.000 [3405:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 7min  54mb  A-V:0.000 [3456:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 7min  55mb  A-V:0.000 [3509:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 7min  56mb  A-V:0.000 [3563:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 6min  51mb  A-V:0.000 [3616:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 6min  52mb  A-V:0.000 [3651:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 6min  52mb  A-V:0.000 [3671:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 6min  54mb  A-V:0.000 [3754:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 6min  54mb  A-V:0.000 [3775:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 6min  55mb  A-V:0.000 [3812:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 6min  56mb  A-V:0.000 [3832:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 6min  56mb  A-V:0.000 [3871:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 6min  57mb  A-V:0.000 [3893:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 6min  58mb  A-V:0.000 [3931:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 6min  58mb  A-V:0.000 [3953:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 6min  59mb  A-V:0.000 [3991:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 6min  59mb  A-V:0.000 [4013:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 6min  60mb  A-V:0.000 [4051:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 6min  61mb  A-V:0.000 [4073:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 6min  62mb  A-V:0.000 [4110:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 6min  62mb  A-V:0.000 [4132:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 6min  64mb  A-V:0.000 [4215:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 6min  64mb  A-V:0.000 [4237:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 6min  65mb  A-V:0.000 [4274:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 6min  66mb  A-V:0.000 [4296:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 6min  66mb  A-V:0.000 [4334:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 6min  67mb  A-V:0.000 [4357:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 6min  68mb  A-V:0.000 [4399:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 6min  68mb  A-V:0.000 [4425:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 7min  70mb  A-V:0.000 [4514:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 7min  71mb  A-V:0.000 [4567:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 6min  68mb  A-V:0.000 [4786:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 6min  69mb  A-V:0.000 [4859:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 6min  70mb  A-V:0.000 [4887:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 6min  71mb  A-V:0.000 [4937:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 6min  71mb  A-V:0.000 [4962:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 6min  72mb  A-V:0.000 [4983:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 6min  72mb  A-V:0.000 [4998:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 6min  73mb  A-V:0.000 [5018:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 6min  73mb  A-V:0.000 [5039:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 6min  74mb  A-V:0.000 [5063:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 6min  74mb  A-V:0.000 [5080:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 6min  75mb  A-V:0.000 [5093:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 6min  81mb  A-V:0.000 [5265:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 3min  62mb  A-V:0.000 [4344:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 3min  63mb  A-V:0.000 [4355:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 3min  63mb  A-V:0.000 [4363:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 3min  63mb  A-V:0.000 [4371:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 2min  64mb  A-V:0.000 [4448:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 2min  64mb  A-V:0.000 [4456:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 1min  64mb  A-V:0.000 [4469:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 1min  64mb  A-V:0.000 [4473:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 1min  64mb  A-V:0.000 [4483:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 0min  64mb  A-V:0.000 [4487:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 0min  64mb  A-V:0.000 [4496:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 0min  64mb  A-V:0.000 [4499:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 0min  64mb  A-V:0.000 [4501:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 0min  64mb  A-V:0.000 [4503:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 0min  65mb  A-V:0.000 [4539:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 0min  65mb  A-V:0.000 [4545:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 0min  65mb  A-V:0.000 [4548:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 0min  65mb  A-V:0.000 [4554:0]
Pos: 120.0s   3002f (100%)  7.03fps Trem:   0min  65mb  A-V:0.000 [4579:0]
Flushing video frames

Video stream: 4576.588 kbit/s  (572073 B/s)  size: 68694585 bytes  120.080 secs  3002 fram
es
PSNR: Y:44.07, Cb:48.99, Cr:47.82, All:45.09





MEncoder Sherpya-MinGW-20060312-4.1.0 (C) 2000-2006 MPlayer Team
CPU: Advanced Micro Devices Sempron/Athlon MP/XP Thoroughbred; Duron Applebred (Family: 6,
 Stepping: 1)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx

success: format: 0  data: 0x0 - 0x16d
AVS file format detected.
VIDEO:  [YV12]  720x576  12bpp  25.000 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:38  fourcc:0x32315659  size:720x576  fps:25.00  ftime:=0.0400
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [yuvcsp]
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 720 x 576 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
videocodec: libavcodec (720x576 fourcc=3267706d [mpg2])
High quality encoding selected (non real time)!
Selected video codec: [rawyv12] vfm: raw (RAW YV12)
==========================================================================
Forcing output fourcc to 3247504d [MPG2]
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
[mpeg2video @ 00B6C27C]rc buffer underflow 6min  60mb  A-V:0.000 [4102:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 6min  60mb  A-V:0.000 [4120:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 6min  61mb  A-V:0.000 [4135:0]
[mpeg2video @ 00B6C27C]rc buffer underflow 3min  55mb  A-V:0.000 [3834:0]
Pos: 120.0s   3002f (100%)  6.24fps Trem:   0min  57mb  A-V:0.000 [4012:0]
Flushing video frames

Video stream: 4009.496 kbit/s  (501187 B/s)  size: 60182542 bytes  120.080 secs  3002 fram
es
PSNR: Y:43.46, Cb:48.27, Cr:47.15, All:44.47





MEncoder Sherpya-MinGW-20060312-4.1.0 (C) 2000-2006 MPlayer Team
CPU: Advanced Micro Devices Sempron/Athlon MP/XP Thoroughbred; Duron Applebred (Family: 6,
 Stepping: 1)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx

success: format: 0  data: 0x0 - 0x16d
AVS file format detected.
VIDEO:  [YV12]  720x576  12bpp  25.000 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:38  fourcc:0x32315659  size:720x576  fps:25.00  ftime:=0.0400
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [yuvcsp]
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 720 x 576 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
videocodec: libavcodec (720x576 fourcc=3267706d [mpg2])
High quality encoding selected (non real time)!
Selected video codec: [rawyv12] vfm: raw (RAW YV12)
==========================================================================
Forcing output fourcc to 3247504d [MPG2]
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
Pos: 120.0s   3002f (100%)  5.17fps Trem:   0min  57mb  A-V:0.000 [4007:0]
Flushing video frames

Video stream: 4004.855 kbit/s  (500606 B/s)  size: 60112869 bytes  120.080 secs  3002 fram
es
PSNR: Y:43.48, Cb:48.18, Cr:47.09, All:44.48
__________________
Le Sagittaire
--------------------
Inutile de discuter avec moi ... j'ai toujours raison ... en tous cas j'en suis convaincu et c'est le principal ...
Reply With Quote
  #53  
03-22-2006, 05:39 PM
danpos danpos is offline
Free Member
 
Join Date: May 2004
Location: Rio de Janeiro - Brasil
Posts: 538
Thanks: 0
Thanked 0 Times in 0 Posts
@Sagittaire

I've tested Inc's modified batch file out with a smal clip and I've got this error:

Quote:
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 704 x 480 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
videocodec: libavcodec (704x480 fourcc=3267706d [mpg2])
High quality encoding selected (non real time)!
Using constant qscale = 3.000000 (VBR)
[mpeg2video @ 00B6C27C]MPEG1/2 does not support 2997/125 fps
Could not open codec.
FATAL: Cannot initialize video driver.
VDecoder init failed

Cannot find codec matching selected -vo and video format 0x32315659.
Read DOCS/HTML/en/codecs.html!
================================================== ========================

Exiting...
I don't understand this because 2997/125 fps = 23.976 fps which is a standard framerate for MPEG2!!

Any help is appreciated.

TIA,
Reply With Quote
  #54  
03-24-2006, 01:04 AM
fabrice fabrice is offline
Free Member
 
Join Date: Mar 2003
Location: Madrid-Spain
Posts: 515
Thanks: 0
Thanked 0 Times in 0 Posts
Hi,

@Danpos: this is a daily build of mencoder, so just try to download a new daily version, to check if it has been fixed.

Speaking about that: can't we use a more stable version to play with mencoder? Because this way, everybody will be playing with a different version....

3 comment about my very first tests:
- Shouldn't be the vpass value 2 in the second encoding line? Or it doesn't matter?
- Looking at a 5% samples, comparing HC and mencoder, the image looks better with mencoder (I'm not speaking about SSIM value! ). It looks, hmmm, cleaner?! And I checked mencoder against HC using SSIM, and on the frame where mencoder get real lower values than HC, the image looks like cleaned (something like a temporal cleaner). It's during a fast changing scene, so you can't see it, but HC is closer to the original, even if the original is of poor quality. I could post pictures, if you want..
- It's damned slow: each encoding pass gets 6fps (so it last more or less 4 times the length of the movie), so with 3 pass, for a 1h30 movie, it will last 18h! . No way to speed up the thing a bit?

After encoding a full movie, I'll check the movie, burning a DVD-RW...


salu2
Fabrice
Reply With Quote
  #55  
03-24-2006, 04:37 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by fabrice
No way to speed up the thing a bit?
That's why I asked the purpose of the "pnsr" filter in the command line but did not receive any answer. If the purpose is just to compute metrics while encoding, it does nothing but slowing the process. But I don't know if mencoder needs these info to enhance the detail.

Nevertheless I hope to find a couple of hour this we to test a little all that.
Reply With Quote
  #56  
03-24-2006, 04:57 AM
rds_correia rds_correia is offline
Free Member
 
Join Date: Apr 2003
Location: Chinese Democracy starts now!
Posts: 2,563
Thanks: 1
Thanked 0 Times in 0 Posts
Oh my, oh my...
Here we go again testing mencoder :P.
Count me in guys.
But just to make one thing straight: if 3 passes is the only way to correct mencoder's bugs and if it takes ~18 hours to encode a full movie, then I don't think I'll ever start using mencoder regularly.
And on a side note, I agree with fabrice: we should pick a stable and full featured build for our tests.
Otherwise we'll end up using different releases and the results can be veeery different .
Andrej, where are you?
Build us a mencoder.exe for our tests, will you?
Cheers
__________________
Rui
Reply With Quote
  #57  
03-24-2006, 07:16 AM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
Quote:
Originally Posted by Fabrice
I could post pictures, if you want..
Yes please ... pictures do say much more than words.
Better: t would be very nice if we would upload results using an approx. 20sec clip for obtaining a "mas o menos" impression on a moving example.
Use www.mytempdir.com or www.rapidshare.com.

Related to the vpass=3 Line:
http://www.kvcd.net/forum/viewtopic.php?p=122355#122355

Quote:
if 3 passes is the only way to correct mencoder's bugs and if it takes ~18 hours to encode a full movie, then I don't think I'll ever start using mencoder regularly.
Thats exactly the point, so someone has to make the decision for himself if the result worth it.
Reply With Quote
  #58  
03-24-2006, 07:26 AM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
Rui, Sagittaire already gave that link for precompiled binaries :
http://oss.netfarm.it/mplayer-win32.php

That page I also visit to update the daily Libs compiles for my MinGW install.

scroll down to the section "[Precompiled Mencoder binaries - XviD 1.1.0 - x264 svn]".
There you can download K7 or P3 or P4 optimized binaries. Actual build is from Mar 23, 2006 .... these builds are updated almost daily.

BUT! From the ./configure shown further below I do see that --enable-largefiles has NOT been set. So if you go in it using a 1piece big VOB > 2GB you could get into trouble. Avs input should not be a problem as bitstream frameserving is a diff. thing compared to filehandling.
Reply With Quote
  #59  
03-24-2006, 08:22 AM
rds_correia rds_correia is offline
Free Member
 
Join Date: Apr 2003
Location: Chinese Democracy starts now!
Posts: 2,563
Thanks: 1
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by incredible
Rui, Sagittaire already gave that link for precompiled binaries :
http://oss.netfarm.it/mplayer-win32.php
That page I also visit to update the daily Libs compiles for my MinGW install.
scroll down to the section "[Precompiled Mencoder binaries - XviD 1.1.0 - x264 svn]".
There you can download K7 or P3 or P4 optimized binaries. Actual build is from Mar 23, 2006 .... these builds are updated almost daily.
Fair enough .
But we should pick a build, let's say from May 20th, everybody should have to use that one for the test runs.

Quote:
BUT! From the ./configure shown further below I do see that --enable-largefiles has NOT been set. So if you go in it using a 1piece big VOB > 2GB you could get into trouble. Avs input should not be a problem as bitstream frameserving is a diff. thing compared to filehandling.
See? That's why I was calling you.
But for the tests we should find a small 30 seconds clip that would be submitted in mytempdir and we should all work on such a clip.
BTW, Karl has a nice movie he always uses for his tests.
That's Red Planet.
I wonder if he has a small clip like the one we're needing?
Kaaaaarl??
__________________
Rui
Reply With Quote
  #60  
03-24-2006, 08:24 AM
Sagittaire Sagittaire is offline
Free Member
 
Join Date: May 2003
Posts: 97
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
I don't understand this because 2997/125 fps = 23.976 fps which is a standard framerate for MPEG2!!
add −ofps 24000/1001 or −ofps 30000/1001 option

I test only PAL progressive source but it's possible to make interlaced encoding too (from lavc documentation ... but I don't test that)


Quote:
- Shouldn't be the vpass value 2 in the second encoding line? Or it doesn't matter?
vpass1 : make stat file with quant mode or bitrate mode
vpass2: make encoding with first pass stat file
vpass3: make encoding N with N-1 pass stat file. stat file is updated.


Quote:
Looking at a 5% samples, comparing HC and mencoder, the image looks better with mencoder (I'm not speaking about SSIM value! ). It looks, hmmm, cleaner?! And I checked mencoder against HC using SSIM, and on the frame where mencoder get real lower values than HC, the image looks like cleaned (something like a temporal cleaner). It's during a fast changing scene, so you can't see it, but HC is closer to the original, even if the original is of poor quality. I could post pictures, if you want..
be carefull space color for my profil is not complete YV12 but CCIR 601 space color. If you want make visual/metric comparison use same space color for all encoder:
- Use "limiter" in your avs script
- desactive "-vf yuvcsp" in mencoder CLI

CCIR 601 done softer pictures but compressibilily is better and quality for low bitrate is better (like as you see). CCE and TMPGEnc can use CCIR 601 space color too ...

Actually Libavcodec done better result than HC, TMPGEnc or CCE for metric ...


Quote:
I have a question more : in all passes there is the "pnsr" parameter. Is it for computing metrics while encoding ?
Well, psnr computation don' use high CPU ressource. I use actually psnr computation for my personnal quality evaluation of internal mencoder video filter (average quantizer gain, average metric gain ... etc etc). desactive psnr if you want ...


Quote:
No way to speed up the thing a bit?
like I say my profil is insame quality profil.

You can use another ME setting if you want like:
- desactived RDO
- Trelli
- lower diamond size
- SAD for cmp
- no chroma search for cmp
- fast or no adaptative bframe

... etc etc etc
__________________
Le Sagittaire
--------------------
Inutile de discuter avec moi ... j'ai toujours raison ... en tous cas j'en suis convaincu et c'est le principal ...
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Common! No Xmas thread yet? rds_correia Off-topic Lounge 8 01-01-2007 07:57 AM
Audio Codecs: Libavcodec mp2 output Prodater64 Audio Conversion 3 11-05-2004 03:34 AM
PackShot bug report thread incredible Video Encoding and Conversion 44 07-29-2004 06:21 PM
MencodeME Bug reports Thread incredible Video Encoding and Conversion 36 06-28-2004 05:20 PM
FFMPEG: built-in libavcodec/libavformat CODECS kwag Video Encoding and Conversion 38 05-07-2004 11:22 AM

Thread Tools



 
All times are GMT -5. The time now is 08:44 PM  —  vBulletin Jelsoft Enterprises Ltd