digitalFAQ.com Forum

digitalFAQ.com Forum (https://www.digitalfaq.com/forum/)
-   Restore, Filter, Improve Quality (https://www.digitalfaq.com/forum/video-restore/)
-   -   ConditionalReader Avisynth usage? (https://www.digitalfaq.com/forum/video-restore/10300-conditionalreader-avisynth-usage.html)

jjdd 01-27-2020 07:02 PM

ConditionalReader Avisynth usage?
 
Hi trying to understand ConditionalReader must i use ScriptClip to get it to work

i did notice that a movie that i have does not have same phase shift throughout the film i have to change it about 5 times


Code:


AviSource("\\CAPTURE2\Capture_Dator2\tpta4444.avi").AssumeTFF().ConvertToYV12(interlaced=true).SeparateFields()
#trim(myvar,0).Weave() #did not work at all
ScriptClip("trim(int(myvar),0)").Weave() # did work but not corectly

ConditionalReader("D:\field.txt", "myvar", false)



inside my field.txt
Code:

Type int
Default 1

R 24511 59205 0
R 70170 70200 0
R 120673 170057 0
R 207332 270254 0


I know I can do it in a different way but this look maby easier if i can get it to work :)

jjdd 01-27-2020 08:36 PM

i did get it to work i think :)

Code:

AviSource("\\CAPTURE2\Capture_Dator2\tpta4444.avi")
ScriptClip(last, "AssumeTFF().SeparateFields().trim(myvar,0).Weave()")
ConditionalReader("field.txt", "myvar", false)

return last


lordsmurf 01-28-2020 04:18 AM

What is the use case? I'm not clear on what it does, what you're doing. :hmm:

jjdd 01-28-2020 05:03 AM

i think itīs called phase shift or temporal field alignment on this movie i have to shift it 5 times when itīs not correct it looks like the film is more interlace than it is


here is a example how it is corrected but on this film it was sometimes correct and sometimes not so i have to switch between Trim(0,0) and Trim(1,0) on some part of the movie


Code:

AVISource("film.avi").AssumeTFF()

# 'phase shift'
SeparateFields().Trim(1,0).Weave()

maybe something weird did happened when i did record it from the analog TV signal about 25 years ago
or itīs in the movie



here msgohan explain phase shift to me when i did not know how to fix it in post 35 http://www.digitalfaq.com/forum/vide...quality-2.html

here in post 4 you can see how it looks before and after http://www.digitalfaq.com/forum/vide...l-filters.html

msgohan 01-31-2020 08:47 AM

For a PAL movie, it could easily be 2:2 pulldown if the phase shifts happen at scene cuts. TFM handles this automagically, although as with most auto processes it's not perfect. It can sometimes pick the wrong field matches.

Code:

TFM(mode=0,pp=0,micmatching=0)
If it's happening randomly in the middle of shots, there is probably something in your capture chain causing dropped or inserted fields. Myself and others have noticed this effect with various TBCs.

jjdd 01-31-2020 10:11 AM

msgohan Thanks i have to test that

did ordered one more capture device from ebay again itīs Matrox MX02 Le MAX + PCIe host adapter + PCIe host adapter so i can use it on my old Dell XPS M1710 Laptop

jjdd 01-31-2020 12:45 PM

i did mean Matrox MX02 Le MAX + PCIe host adapter + ExpressCard/34 adapter

info about it https://www.matrox.com/video/en/supp..._le_max/specs/


All times are GMT -5. The time now is 08:04 PM

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.