digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   Mimicking Motion Adaptiveness blur with Mencoder. (http://www.digitalfaq.com/archives/encode/10063-mimicking-motion-adaptiveness.html)

maurus 06-10-2004 09:15 AM

No for the moment....

I use Mplex or bbMpeg for muxing.

-Maurus

Koekies 06-10-2004 09:39 AM

The weird thing is that I'm not getting underflows while muxing with mplex

maurus 06-10-2004 10:16 AM

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

kwag 06-10-2004 10:50 AM

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 :?:

kwag 06-10-2004 10:53 AM

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

maurus 06-10-2004 11:23 AM

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

SILK 06-10-2004 11:31 AM

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?

kwag 06-10-2004 11:49 AM

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

digitall.doc 06-10-2004 11:53 AM

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

SILK 06-10-2004 11:59 AM

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

kwag 06-10-2004 12:01 PM

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

SILK 06-10-2004 12:05 PM

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%%


kwag 06-10-2004 12:06 PM

That's it :)

Koekies 06-10-2004 04:08 PM

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

kwag 06-10-2004 05:03 PM

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

Koekies 06-10-2004 05:26 PM

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

kwag 06-10-2004 05:44 PM

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 :roll:

kwag 06-11-2004 12:51 AM

The more I work with it, the more in love mencoder :lol:
Just finished a full encode of "Back to the Future", and I'm :rotf: with the quality :D

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:
http://www.digitalfaq.com/archives/i.../2004/06/8.png
http://www.digitalfaq.com/archives/i.../2004/06/9.png
http://www.digitalfaq.com/archives/i...2004/06/10.png
And here's a close up from another scene, for some details:
http://www.digitalfaq.com/archives/i...2004/06/11.png

-kwag

Zyphon 06-11-2004 02:09 PM

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. :)

kwag 06-11-2004 02:15 PM

Thanks Zyphon,

Yes, all three movies should fit "tightly" on one DVD :D
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


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