Quantcast Mimicking Motion Adaptiveness Blur with Mencoder. - Page 5 - digitalFAQ.com Forums [Archives]
  #81  
06-10-2004, 09:15 AM
maurus maurus is offline
Free Member
 
Join Date: Oct 2003
Location: Madrid
Posts: 387
Thanks: 0
Thanked 0 Times in 0 Posts
No for the moment....

I use Mplex or bbMpeg for muxing.

-Maurus
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
  #82  
06-10-2004, 09:39 AM
Koekies Koekies is offline
Free Member
 
Join Date: May 2004
Location: Amsterdam
Posts: 124
Thanks: 0
Thanked 0 Times in 0 Posts
The weird thing is that I'm not getting underflows while muxing with mplex
Reply With Quote
  #83  
06-10-2004, 10:16 AM
maurus maurus is offline
Free Member
 
Join Date: Oct 2003
Location: Madrid
Posts: 387
Thanks: 0
Thanked 0 Times in 0 Posts
With Mplex the error is under-runs, not owerflows (that is in MEncoder).

I get a lot of overflows in MEncoder and not usually over-runs in MPlex.

-Maurus
Reply With Quote
  #84  
06-10-2004, 10:50 AM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Koekies
Is anyone getting buffer underflows in mencoder with these filters?
What resolution are you encoding to, and what is your VBV size and MAX bitrate
Reply With Quote
  #85  
06-10-2004, 10:53 AM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by SILK
The quality is very good but I can't wait so long.
That's the price we have to pay for motion/object adaptive encoding

-kwag
Reply With Quote
  #86  
06-10-2004, 11:23 AM
maurus maurus is offline
Free Member
 
Join Date: Oct 2003
Location: Madrid
Posts: 387
Thanks: 0
Thanked 0 Times in 0 Posts
I get a lot of overflows with this settings:

Code:
480x576, vrc_maxrate=2500:keyint=15:vrc_buf_size=917
and I use the next filter chain:

Code:
yuvcsp,scale=480:432::0:9,crop=448:432:16:0,hqdn3d,sab=.5:.5:1,noise=2th,expand=480:576:16:72
The crop, scale and expand parameters ffrom Incredible's MEncalc.

-Maurus
Reply With Quote
  #87  
06-10-2004, 11:31 AM
SILK SILK is offline
Free Member
 
Join Date: May 2004
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
That's the price we have to pay for motion/object adaptive encoding
AS i'm planing for 2 movies on 1 DVD at 704x576 can i adjust the parameters a little to get an improve in speed?
Reply With Quote
  #88  
06-10-2004, 11:49 AM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by SILK
AS i'm planing for 2 movies on 1 DVD at 704x576 can i adjust the parameters a little to get an improve in speed?
Sure
Drop "sab" from the filter chain.
2 movies (~4 hours without adaptive filtering) on one DVD is just fine with the "notch" matrix

-kwag
Reply With Quote
  #89  
06-10-2004, 11:53 AM
digitall.doc digitall.doc is offline
Free Member
 
Join Date: Jul 2003
Location: Valencia (España)
Posts: 741
Thanks: 0
Thanked 0 Times in 0 Posts
Thanx a lot for your clear answer Kwag. Just a few questions:
Quote:
Originally Posted by kwag
Quote:
- you dropped vqblur=0 (so you're using default 0.5). With vqblur=0 mencoder is supposed to raise quantizer immediately whenever it's needed; with vqblur=0.5 quantizers are averaged with previous values. Why do you want mencoder to do so?, in what way does it improve the stream?.
To avoid the spikes that many people were seeing.
So the effect you found when dropping vqblur was no bitrate spikes, isn't it?. In your tests, did you compare just with and without vqblur, or did you change something else that could make this same effect?. I don't question your results, in fact I don't remember having tested this. But fron a theoretic point of view, when it comes an scene where a raise of bitrate is needed, vqblur=0 allows quantizers raise fast (and moderate bitrate), and default 0.5 will make quantizers average previous, and then more bitrate needed... just if I understood well the theory.
I read somewhere that vratetol lower values would make bitrate more "stable" (even vratetol=0 would be like constant bitrate), I still have to test some values.
Quote:
Originally Posted by Kwag
Quote:
- finally, you're using a lmin=0.01 value. I tested really low values earlier (0.1), not so low, and with them I got a planar Q curve, as when using vqscale. And it also made bitrate peaks raise a lot. What's your purpose when using this very low value?,
With the value I have set lmin and scplx_min, I'm getting better bitrate distribution.
Quote:
don't you get a planar Q curve, and high bitrate peaks?.
Nope. No crazy peaks at all, and bitrate within the MAX limits every time
But in your sample I see you get a planar Q curve. OK it's a small sample, but the encoder behaves just as I expected: lmin=0.01 makes quantizers go always as low as possible. I just don't understand why Q=2 and not Q=1, that is the value of vqmin and mbqmin. MAybe an effect of vqblur=0.5.
If I find the time I'll do some tests just tweaking vqblur and vratetol, and see its effects... and post in another thread, since this is all OT. Sorry.
Well, please tell me what do you think about this.
Cheers
Reply With Quote
  #90  
06-10-2004, 11:59 AM
SILK SILK is offline
Free Member
 
Join Date: May 2004
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks Kwag

So my parameters should be something like that?

Code:
vf=yuvcsp,scale=688:414:0:0:60,crop=718:576:-1:-1,hqdn3d,noise=3th,expand=704:576:-1:-1:1
Reply With Quote
  #91  
06-10-2004, 12:01 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by SILK
Thanks Kwag

So my parameters should be something like that?

Code:
vf=yuvcsp,scale=688:414:0:0:60,crop=718:576:-1:-1,hqdn3d,noise=3th,expand=704:576:-1:-1:1
As you're doing KDVD, no need to keep the MIN bitrate at ~300Kbps with noise=3th, so change it to noise=1th.

-kwag
Reply With Quote
  #92  
06-10-2004, 12:05 PM
SILK SILK is offline
Free Member
 
Join Date: May 2004
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Ok, thanks again.

And just to be sure, my command line

Code:
2240
of=rawvideo=1
ovc=lavc=1
nosound=1
sws=2
lavcopts=vcodec=mpeg2video:vstrict=-1:vmax_b_frames=2:vrc_maxrate=5000:aspect=1.3333:keyint=15:vrc_buf_size=1835:preme=2:precmp=2:autoaspect=1:vrc_eq=tex:scplx_mask=0.01:vqmin=1:mbqmin=1:lmin=0.01: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
ofps=%%FPS%%
Reply With Quote
  #93  
06-10-2004, 12:06 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
That's it
Reply With Quote
  #94  
06-10-2004, 04:08 PM
Koekies Koekies is offline
Free Member
 
Join Date: May 2004
Location: Amsterdam
Posts: 124
Thanks: 0
Thanked 0 Times in 0 Posts
My resolution is 704x480 I'm using pullup and softskip to convert from 29,97 to 23,976.
Keaping the fps at 29,97 gives the same error with audio not being sync after a while :P .
I've encoded this DVD about 7 times now Would lowering the resolution help?
I'm doing skvcd so vbv=917


-Koekies

Edit: and max bitrate is 2200
Reply With Quote
  #95  
06-10-2004, 05:03 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Koekies
My resolution is 704x480 I'm using pullup and softskip to convert from 29,97 to 23,976.
Keaping the fps at 29,97 gives the same error with audio not being sync after a while :P .
I've encoded this DVD about 7 times now Would lowering the resolution help?
I'm doing skvcd so vbv=917


-Koekies
As you're doing 704x480, increase your VBV to vrc_buf_size=1835

-kwag
Reply With Quote
  #96  
06-10-2004, 05:26 PM
Koekies Koekies is offline
Free Member
 
Join Date: May 2004
Location: Amsterdam
Posts: 124
Thanks: 0
Thanked 0 Times in 0 Posts
but that's dvd will would your standalone still be able to play it?
Because one of my dvd players isn't even able to play back my skvcds made with mencoder
And they're both philips :P Should I lower ther resolution?
Or would that lower the quality?


-Koekies
Reply With Quote
  #97  
06-10-2004, 05:44 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Koekies
but that's dvd will would your standalone still be able to play it?
Why don't you try a small clip
Reply With Quote
  #98  
06-11-2004, 12:51 AM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
The more I work with it, the more in love mencoder
Just finished a full encode of "Back to the Future", and I'm with the quality

Take a look: http://www.kvcd.net/bttf.mpg.cut.45.mpg ( ~10MB MPEG-2 pulled down, 37 seconds @704x480 (2 blocks overscan), clip has audio)

I encoded for KDVD and my complete muxed size is 1,683,362KB

I still have to encode part 2 and part 3, because my goal is to put the trilogy on one DVD-R.
But I'm right on target, and they all should look like that sample
Again, no underrun errors, with the current settings.

Here are some screenshots of the film:



And here's a close up from another scene, for some details:


-kwag
Reply With Quote
  #99  
06-11-2004, 02:09 PM
Zyphon Zyphon is offline
Free Member
 
Join Date: Oct 2003
Location: London, England (UK)
Posts: 1,035
Thanks: 0
Thanked 0 Times in 0 Posts
Karl those screenshots look awesome I hope you pull off getting them all to one DVD as I want to do the same with my Trilogy box set.

The mpeg I downloaded look excellent quality wise also.

Nice work Karl.
__________________
Regards.

Michael.
Reply With Quote
  #100  
06-11-2004, 02:15 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks Zyphon,

Yes, all three movies should fit "tightly" on one DVD
I haven't had time to encode the other two movies, but I'll probably do that in the weekend.
I'm still fooling aroung with shape adaptive blur settings, so the ones I used are not final.
But so far, I'm very pleased with the results.

-kwag
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
blur between scene changes is really noticeable? bigggt Video Encoding and Conversion 5 02-08-2004 06:09 PM
Avisynth: More Blur On Action Scenes! Jellygoose Avisynth Scripting 3 10-25-2003 12:08 PM
Avisynth: I can see the blur on scene changes! audi2honda Avisynth Scripting 11 07-08-2003 09:46 PM
KDVD has Motion blur? grc Video Encoding and Conversion 8 06-05-2003 08:06 AM
TMPGEnc: Motion Search Precision - Highest Qual or Motion Est Search MoovyGuy Video Encoding and Conversion 1 08-28-2002 11:00 PM

Thread Tools



 
All times are GMT -5. The time now is 09:11 AM  —  vBulletin © Jelsoft Enterprises Ltd