digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Avisynth: Merge Chroma/Luma encoding time? (http://www.digitalfaq.com/archives/avisynth/3511-avisynth-merge-chroma.html)

telemike 05-06-2003 07:53 AM

Avisynth: Merge Chroma/Luma encoding time?
 
During a recent encode test using these filters for the first time I noticed that my encode time increased by at least 33%! I am not sure if it is worth my limited cpu time to use these.

jorel 05-06-2003 08:39 AM

Re: Merge Chroma/Luma encoding time
 
Quote:

Originally Posted by telemike
During a recent encode test using these filters for the first time I noticed that my encode time increased by at least 33%! I am not sure if it is worth my limited cpu time to use these.

incredidle my friend!
the ideas are in the "air". :wink:

ending a few moments my tests with and without this filters:

40% faster without merge luma/chroma filters!

:)

kwag 05-06-2003 09:15 AM

File size will be WAY bigger without the filters :wink:

-kwag

jorel 05-06-2003 09:23 AM

Quote:

Originally Posted by kwag
File size will be WAY bigger without the filters :wink:

-kwag

right Kwag...big size without filters.


:wink:

telemike 05-06-2003 09:34 AM

When I have some time I will run a test and compare sizes. Kwag or others, have you done a test to determine how much larger without the filters it is (10%, 20%, etc.).

For me, 40% extra encoding time is not worth it. I will have to look at other filters that aren't as drastic on time.....

jorel 05-06-2003 09:41 AM

i do the tests for you (we) my friend.
if Kwag do it too will be great!

i got a new cpu and i'm "eletric"!
:lol:

i will use the same chapter for sample,
and encode with the same CQ(60),
with and without the filters,ok?

i post the result later.

:wink:

kwag 05-06-2003 02:08 PM

Quote:

Originally Posted by telemike
Kwag or others, have you done a test to determine how much larger without the filters it is (10%, 20%, etc.).

Here's a test I just did, because I couldn't remember exactly what was the file size savings. I just encoded 60 seconds of a clip, and here are the result:

Code:

*1 minute clip *

WITH Filters:    Encode time:  5:19  File Size: 8,033KB
WITHOUT Filters: Encode Time:  4:31  File Size: 8,483KB

That represents ~405KB per minute, which is ~48MB space savings for a two hour movie :!:

-kwag

telemike 05-06-2003 02:42 PM

Quote:

Ran test run using DVD2SVCD on a DVD music video that is about 7 minutes long. 480 x480 MPEG-2

CCE Q5 = 121,341KB

TMPGenc CQ80 = 125,072KB

That's a difference of 3,731KB for 7 minutes.....or 64MB for 120 minutes using CCE

kwag 05-06-2003 02:53 PM

mergechroma and mergeluma are well worth the extra encoding time :!: At least for me :wink:

-kwag

jorel 05-06-2003 03:19 PM

after 6 hours:
8O

@ Telemike, Kwag and friends:
doing tests and the results:

scripts from MovieStacker
(edited in notepad to adjust what was needed for each case):
this is the "full" script:

LoadPlugin("C:\DVD2SV~1\MPEG2DEC\MPEG2DEC.DLL")
mpeg2source("D:\TESTTELEMIKE\DVD2AV~1.D2V")
LoadPlugin("C:\DVD2SVCD1\MPEG2Dec\Mpeg2dec.dll")
LoadPlugin("C:\DVD2SVCD1\Dlls\Legalclip.dll")
Legalclip()
BicubicResize(464,464,0,0.6,0,0,720,480)
LoadPlugin("C:\DVD2SVCD1\Dlls\STMedianFilter.dll")
STMedianFilter(10,30,0,0,10,30)
LoadPlugin("C:\DVD2SVCD1\Dlls\UnFilter.dll")
Unfilter(50,50)
temporalsmoother(1,2)
LoadPlugin("C:\DVD2SVCD1\Dlls\MergeChroma.dll")
mergechroma(blur(1.50))
LoadPlugin("C:\DVD2SVCD1\Dlls\MergeLuma.dll")
mergeluma(blur(0.2))
AddBorders(8,8,8,8)
Legalclip()

encoding with ToK:(TMPGEnc 2.510.49.157)
before each encode,the system was rebooted to refresh...
and it do a big difference in the performance! ;-)
with:
the script posted(only the differences for each case),
bitrate: min=300, max=2500 ,
CQ 60 (Fix CQ without prediction...free final size!),
SVCD ,
MPEG2!(only video, without audio),
sample: chapter 02 with 05:22 from "Sade live" (dvd)


ToK Log: D:\TestTelemike\testes\1.avs
================================================== ===========

Resolution (fps):480x480 (29,970 fps)
Total Frames: 9664
Total Time : 00:05:22
-------------------------------------------------------------


1-without STM ,merge luma/chroma:
Encoding D:\TestTelemike\testes\1.avs
Encoding... CQ : 60,000
Final Encoded Size: 72.334.830
Total Time (all operations): 00:18:28
final size: 68,8mb(70,640kb)

2-without STM (only):
Encoding D:\TestTelemike\testes\2.avs
Encoding... CQ : 60,000
Final Encoded Size: 67.765.383
Total Time (all operations): 00:48:47
final size: 64,6mb(66,178kb)

3-without merge luma/chroma(only):
Encoding D:\TestTelemike\testes\3.avs
Encoding... CQ : 60,000
Final Encoded Size: 69.410.478
Total Time (all operations): 00:19:34
final size: 66,1mb(67,784kb)

4-full script:
Encoding D:\TestTelemike\testes\full.avs
Encoding... CQ : 60,000
Final Encoded Size: 65.484.445
Total Time (all operations): 00:49:56
final size: 62,4mb(63,950kb)

resume of all tests:(final sizes and times needed to encode)
1-without STM ,merge luma/chroma.:68,8mb(70,640kb)00:18:28
:? for quality and :wink: for time!

2-without STM (only).............:64,6mb(66,178kb)00:48:47
:wink: for quality and 8O 8O for time!

3-without merge luma/chroma(only):66,1mb(67,784kb)00:19:34
:wink: for quality and :wink: for time!

4-full script....................:62,4mb(63,950kb)00:49:5 6
:? for quality and 8O 8O for time!

result of the image quality in Power DVD:
not too big...
seems that without STM is fine for me!
only my opinion...
maybe with unfilter 30,30 will be good
and is needed less time/less final size too!

the best:
Sade dancing and singing. :wink:

and i'm :bugeyes:

was edited:
only the emoticons,nothing more!
:)

telemike 05-06-2003 03:33 PM

Wow- Thanks Jorel! :D

30 minutes difference is HUGE!

sh0dan 05-07-2003 02:30 AM

It is the blur function that takes most of the time. This function has been optimized a lot for YV12, just as merge.

digitalize 06-04-2003 08:07 AM

Thanks guys for the post!!!! Saving 48 or 64Mb, just isn't worth the extra encoding time when encoding a DVD that has two movies.


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