Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
27th March 2017, 14:49 | #3181 | Link |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
|
hi Pinterf
ColorYUV not work with float yet I usually use it with ColorYUV(autogain=true) and levels="TV->PC"
__________________
See My Avisynth Stuff |
27th March 2017, 19:28 | #3182 | Link |
Registered User
Join Date: Jan 2014
Posts: 2,309
|
Yes. This is a lut using filter, which is not available in float. O.k. I will make it work realtime.
Now I'm still working on masktools, finally decided to implement dup and swap in expressions as you have requested. |
27th March 2017, 22:43 | #3183 | Link | |
Guest
Posts: n/a
|
Quote:
Hi Pinterf, I've finally got back to the computer and managed to run some more tests. I upped the Max Memory to 6000 as at 3000 it was still showing the cache warning (although I'm sure I checked that), and they are definitely much closer to AVS 2.6 MT now. The source clup is 1080i/25 recording, it is reported as YUV in MediaInfo, however Avisynth reports it as YV12 using both DGSource and LWLibAVVideoSource. Here are my results: Code:
AviSynth 2.6 x86 (6000 Memory/6 Threads) AviSynth 2.60, build:Feb 20 2015 [03:16:45] (2.6.0.5) Number of frames: 1001 Length (hh:mm:ss.ms): 00:00:40.040 Frame width: 1920 Frame height: 1080 Framerate: 25.000 (25/1) Colorspace: i420 Active MT Mode: 2 Audio channels: n/a Audio bits/sample: n/a Audio sample rate: n/a Audio samples: n/a Frames processed: 1001 (0 - 1000) FPS (min | max | average): 0.746 | 54568 | 4.025 Memory usage (phys | virt): 3669 | 3800 MiB Thread count: 33 CPU usage (average): 42% Time (elapsed): 00:04:08.668 Code:
AviSynth+ x64 (6000 Memory/6 Threads) AviSynth+ 0.1 (r2455, MT, x86_64) (0.1.0.0) Number of frames: 1001 Length (hh:mm:ss.ms): 00:00:40.040 Frame width: 1920 Frame height: 1080 Framerate: 25.000 (25/1) Colorspace: i420 Audio channels: n/a Audio bits/sample: n/a Audio sample rate: n/a Audio samples: n/a Frames processed: 1001 (0 - 1000) FPS (min | max | average): 0.323 | 33870 | 3.846 Memory usage (phys | virt): 3511 | 3589 MiB Thread count: 45 CPU usage (average): 43% Time (elapsed): 00:04:20.292 Code:
Avisynth+ x86 (6000 Memory/6 Threads) AviSynth+ 0.1 (r2455, MT, i386) (0.1.0.0) Number of frames: 1001 Length (hh:mm:ss.ms): 00:00:40.040 Frame width: 1920 Frame height: 1080 Framerate: 25.000 (25/1) Colorspace: i420 Audio channels: n/a Audio bits/sample: n/a Audio sample rate: n/a Audio samples: n/a Frames processed: 1001 (0 - 1000) FPS (min | max | average): 0.371 | 34464 | 4.083 Memory usage (phys | virt): 3536 | 3635 MiB Thread count: 45 CPU usage (average): 43% Time (elapsed): 00:04:05.167 It seems AviSynth+ is much more susceptible to low memory than AviSynth is so looks like I've just got to give it more to keep it happy, interestingly too AviSynth+ uses 12 more threads than AviSynth. Is there anything I can do to get the x64 version running faster, even with a SetMaxMemory of 6000, x64 is slower than AVS 2.6MT with a SetMaxMemory of 2000. On the plus side, it is much more stable as I was regularly getting crashes with AVS 2.6MT, most likely due to running out of memory. Here is my log for the AVS 2.6MT at SetMaxMemory 2000 Code:
AviSynth 2.60, build:Feb 20 2015 [03:16:45] (2.6.0.5) Number of frames: 1001 Length (hh:mm:ss.ms): 00:00:40.040 Frame width: 1920 Frame height: 1080 Framerate: 25.000 (25/1) Colorspace: i420 Active MT Mode: 2 Audio channels: n/a Audio bits/sample: n/a Audio sample rate: n/a Audio samples: n/a Frames processed: 1001 (0 - 1000) FPS (min | max | average): 0.717 | 60444 | 4.093 Memory usage (phys | virt): 2620 | 2715 MiB Thread count: 33 CPU usage (average): 43% Time (elapsed): 00:04:04.555 |
|
29th March 2017, 04:16 | #3184 | Link | |
Registered User
Join Date: Oct 2016
Posts: 111
|
I'm using this chain here to upscale my 576p video to 720p and change some filter.
Here's my script: Quote:
I tried to put it into my script but it crashed. |
|
29th March 2017, 12:18 | #3185 | Link |
Registered User
Join Date: Dec 2005
Location: Germany
Posts: 1,795
|
mp_pipeline has it's own prefetch function, see example here: https://forum.doom9.org/showthread.php?t=163281
btw aWarpSharp, dehalo_alpha and probably some other filters are x64 compatible...
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth VapourSynth Portable FATPACK || VapourSynth Database |
31st March 2017, 19:01 | #3186 | Link |
Registered User
Join Date: Mar 2011
Posts: 40
|
I also have problem with deshaker on second pass, both x32 and x64. AvisynthPlus-r2455-MT.
1. If I simple call deshaker plugin, there is only one repeated frame in final video. 00114.MTS-pass2-64.avs Code:
SetMemoryMax(3000) vid="00114.MTS" o=DirectShowSource(vid).ConvertToRgb32(matrix="Rec709") o+o.Trim(0,29) LoadVirtualDubPlugin ("c:\Program Files\Vdub\vdub64\plugins\Deshaker_64.vdf", "deshaker",0) deshaker ("18|2|30|4|1|0|1|0|640|480|1|2|1000|1000|2000|2000|4|0|0|2|8|30|300|3|00114.MTS.0.1000.1000.2000.2000.log|0|0|0|0|0|0|0|0|0|0|0|0|0|1|70|70|10|30|1|1|30|30|0|0|0|0|1|0|1|10|1000|1|88|1|0|20|5000|100|20|1") If I call this avs from another avs to trim first 30 frames, vdub is crashed. DirectShowSource("00114.MTS-pass2-64.avs").Trim(30,0) UPDATE: Sorry, I forgot that MTS in avisynth not work with LAV splitter, so I install Haali media splitter and now all work ok, both x32 and x64 Deshaker in Avisynth+. Benchamark at https://forum.doom9.org/showpost.php...postcount=3192 Last edited by djonline; 2nd April 2017 at 16:16. |
1st April 2017, 00:05 | #3187 | Link | ||
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
@ djonline
I have a very OLD version of Deshaker, and it is version 19 [first arg in your list is 18]. Why do you think that you need SetMemoryMax(3000) with that script, [god forbid SetMemoryMax(6000)] ? Script as given would not work (something like "Script does not return a clip" would be issued). Where is the rest of the script ? (aint nobody gonna be able to help unless they see the script). EDIT: https://forum.doom9.org/newreply.php...eply&p=1645218 Quote:
strangely, on P4 XP32 with 1GB, I've never once had an OMEM, ever (with defaulted memory max, EDIT: Unless down to eg plugin bug). EDIT: At the very least you need a return o at end of script, also, good idea to wrap your script in CODE tags, click Advanced, select the script, click on hash (#). EDIT: Just noticed this Quote:
Also, you add 30 frames to END of original clip with o+trim(0,29) and then DirectShowSource("00114.MTS-pass2-64.avs").Trim(30,0) which trims off the FIRST 30 frames, is that intentional ?
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? Last edited by StainlessS; 1st April 2017 at 12:46. |
||
2nd April 2017, 12:42 | #3188 | Link |
Registered User
Join Date: Mar 2011
Posts: 40
|
There is last Deshaker 3.1. I think first argument, 18 or 19, is not used.
Of course I try with and without SetMemoryMax. This is full script, no any other lines. May be you don't have 00114.MTS.0.1000.1000.2000.2000.log on this second pass when you try it. I have windows 10. vdub.vcf Code:
VirtualDub.Open("00114.MTS-loader.avs", 0, 0); VirtualDub.audio.SetSource("00114.MTS.ac3"); VirtualDub.audio.SetMode(0); VirtualDub.audio.SetClipMode(1, 1); VirtualDub.audio.SetConversion(0, 0, 0, 0, 0); VirtualDub.audio.SetVolume(); VirtualDub.audio.SetCompression(); VirtualDub.audio.EnableFilterGraph(0); VirtualDub.audio.filters.Clear(); VirtualDub.audio.SetInterleave(1, 500, 1, 0, 0); VirtualDub.video.SetDepth(24, 24); VirtualDub.video.SetOutputFormat(0); VirtualDub.video.SetMode(1); VirtualDub.video.SetFrameRate2(0,0,1); VirtualDub.video.SetIVTC(0, 0, -1, 0); VirtualDub.video.SetCompression(0x7967616d,0,10000,0); VirtualDub.video.SetCompData(68,"CAAAAAgAAAABAAAABAAAAAIAAAD/////AAAAAAIAAABpAAAAAAAAABkAAAAJAAAAAQAAAAEAAAAAAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAABAAAA"); VirtualDub.video.filters.Clear(); VirtualDub.SaveAVI("00114.MTS-deshaked.1.2000.2000.2000.2000.avi"); VirtualDub.Close(); Code:
DirectShowSource("00114.MTS-pass2-64.avs").Trim(30,0) Vdub crush info in attach. Last edited by djonline; 2nd April 2017 at 12:57. |
2nd April 2017, 13:33 | #3190 | Link | |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Quote:
which apparently is version 18 (not latest for sure). Suggest that you change Code:
DirectShowSource("00114.MTS-pass2-64.avs").Trim(30,0) Code:
Import("00114.MTS-pass2-64.avs").Trim(30,0) because pass 1 create Deshaker log for 2nd pass of Deshaker, and is not available until pass 1 has completed. Also, note, if you have Code:
o=DirectShowSource(vid).ConvertToRgb32(matrix="Rec709") o+o.Trim(0,29) and deshaker will dehake almost everything wrongly (as its using deshaker data for the wrong frames). EDIT: Sorry, you said that this is the script, Code:
SetMemoryMax(3000) vid="00114.MTS" o=DirectShowSource(vid).ConvertToRgb32(matrix="Rec709") o+o.Trim(0,29) LoadVirtualDubPlugin ("c:\Program Files\Vdub\vdub32\plugins32\Deshaker.vdf", "deshaker",0) deshaker ("18|2|30|4|1|0|1|0|640|480|1|2|1000|1000|2000|2000|4|0|0|2|8|30|300|3|00114.MTS.0.1000.1000.2000.2000.log" "|0|0|0|0|0|0|0|0|0|0|0|0|0|1|70|70|10|30|1|1|30|30|0|0|0|0|1|0|1|10|1000|1|88|1|0|20|5000|100|20|1") EDIT: Can you just state in words what it is that you are trying to do. EDIT: OK, re-read everything, think I understand. Just Load the script above into VirtualDub and forget altogether about the "00114.MTS-loader.avs" script (But reduce the massive SetMemoryMax thing)
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? Last edited by StainlessS; 2nd April 2017 at 13:57. |
|
2nd April 2017, 16:13 | #3191 | Link |
Registered User
Join Date: Mar 2011
Posts: 40
|
Sorry, I forgot that MTS in avisynth not work with LAV splitter, so I install Haali media splitter and now all work ok, both x32 and x64 Deshaker in Avisynth+.
So now I can post my benchmarks of x32 and x64 Deshaker: 1 pass: x32 - 36s, x64 - 21s, speedup 71% 2 pass :x32 - 30s, x64 - 20s, speedup 50% Source 1080/60p from Sony RX100 28mbit, 8s length, output to MagicYUV 4:2:0 lossless. Last edited by djonline; 2nd April 2017 at 16:39. |
2nd April 2017, 19:26 | #3192 | Link |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
|
I get error like this https://forum.doom9.org/showpost.php...postcount=2372
with TDecimate and MT, is this bug didn't fixed yet?
__________________
See My Avisynth Stuff |
2nd April 2017, 19:39 | #3194 | Link |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
|
I am do same thing but with mp_pipeline
__________________
See My Avisynth Stuff |
3rd April 2017, 09:25 | #3195 | Link |
Registered User
Join Date: Feb 2003
Location: Russia, Moscow
Posts: 854
|
Hi bit conversion
Hi all!
I am new in high bit conversion, advice how convert from avs+ 16 bit to Avisynth 16 bit hack (for use inside KNLMeansCL plugin) and back. I could use dither or last avs+ make this by self? yup. |
Thread Tools | Search this Thread |
Display Modes | |
|
|