Quantcast Avisynth: Merge Chroma/Luma Encoding Time? - digitalFAQ.com Forums [Archives]
  #1  
05-06-2003, 07:53 AM
telemike telemike is offline
Free Member
 
Join Date: Jan 2003
Location: Greensboro, NC
Posts: 214
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to 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.
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
  #2  
05-06-2003, 08:39 AM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
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".

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

40% faster without merge luma/chroma filters!

Reply With Quote
  #3  
05-06-2003, 09:15 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
File size will be WAY bigger without the filters

-kwag
Reply With Quote
  #4  
05-06-2003, 09:23 AM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by kwag
File size will be WAY bigger without the filters

-kwag
right Kwag...big size without filters.


Reply With Quote
  #5  
05-06-2003, 09:34 AM
telemike telemike is offline
Free Member
 
Join Date: Jan 2003
Location: Greensboro, NC
Posts: 214
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to telemike
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.....
Reply With Quote
  #6  
05-06-2003, 09:41 AM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
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"!


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.

Reply With Quote
  #7  
05-06-2003, 02:08 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 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
Reply With Quote
  #8  
05-06-2003, 02:42 PM
telemike telemike is offline
Free Member
 
Join Date: Jan 2003
Location: Greensboro, NC
Posts: 214
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to telemike
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
Reply With Quote
  #9  
05-06-2003, 02:53 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
mergechroma and mergeluma are well worth the extra encoding time At least for me

-kwag
Reply With Quote
  #10  
05-06-2003, 03:19 PM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
after 6 hours:


@ 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,
Legalclip()

encoding with ToKTMPGEnc 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 testsfinal sizes and times needed to encode)
1-without STM ,merge luma/chroma.:68,8mb(70,640kb)00:18:28
for quality and for time!

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

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

4-full script....................:62,4mb(63,950kb)00:49:5 6
for quality and 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.

and i'm

was edited:
only the emoticons,nothing more!
Reply With Quote
  #11  
05-06-2003, 03:33 PM
telemike telemike is offline
Free Member
 
Join Date: Jan 2003
Location: Greensboro, NC
Posts: 214
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to telemike
Wow- Thanks Jorel!

30 minutes difference is HUGE!
Reply With Quote
  #12  
05-07-2003, 02:30 AM
sh0dan sh0dan is offline
Free Member
 
Join Date: Mar 2003
Posts: 89
Thanks: 0
Thanked 0 Times in 0 Posts
It is the blur function that takes most of the time. This function has been optimized a lot for YV12, just as merge.
__________________
Regards, sh0dan // VoxPod
Reply With Quote
  #13  
06-04-2003, 08:07 AM
digitalize digitalize is offline
Free Member
 
Join Date: Dec 2002
Posts: 99
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Avisynth: Split video then merge back? tengo6dedos Avisynth Scripting 11 09-26-2009 05:53 PM
Avisynth: Chroma Shift dvdreasy Avisynth Scripting 10 09-12-2005 08:32 PM
Avisynth: Script changes the chroma blur? CheronAph Avisynth Scripting 4 09-22-2003 02:25 PM
Avisynth: Is the blur luma/chroma in the MA script needed with high CQs? audi2honda Avisynth Scripting 1 08-27-2003 03:40 AM
Encoding: Merge and Cut VBR MPEG-2 streams? jorel Video Encoding and Conversion 0 01-17-2003 02:07 AM

Thread Tools



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