This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

[HELP] Avisynth - DeSpot question
#1
I'm running Avisynth's DeSpot in Avisynth along with QTGMC (bob) and sRestore to 25fps, but the output file remains interlaced. I guess this is due to a limitation of the DeSpot filter? Is there a way I can run the filter after the QTGMC deinterlace/sRestore function and get a progressive output file?
Reply
#2
What does your Avisynth script look like?
What does the encoder command line look like?

might be a bug in Hybrid.
Just tried it here and it seems like the this only happens if DeSpot ans sRestore are in the same script.
Strange, seems like I never combined those two in Avisynth.
=> will look if I find more info on this
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#3
Seems like this is only a bug in the 'Compare view' in Avisynth. When I disable the compare view the filtered content is properly deinterlaced. (so encoding should be fine)
=> Does is work for you too if you disable 'Compare view"?

Cu Selur

Ps.: yup, the generated Compare script is wrong in it, deinterlacing will only be applied to the source not the filtered version. Wink
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#4
Think, I fixed it.
Send you a link to a new dev version via pm.
Let me know whether it also fixes the preview problem for you.

Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#5
Still no luck, still getting interlaced output.
Reply
#6
Looking at the used Avisynth script:
ClearAutoloadDirs()
SetFilterMTMode("DEFAULT_MT_MODE", MT_MULTI_INSTANCE)
LoadPlugin("C:\Program Files\Hybrid\32bit\avisynthPlugins\LSMASHSource.dll")
LoadPlugin("C:\Program Files\Hybrid\32bit\avisynthPlugins\RgTools.dll")
LoadPlugin("C:\Program Files\Hybrid\32bit\avisynthPlugins\masktools2.dll")
LoadPlugin("C:\Program Files\Hybrid\32bit\avisynthPlugins\mvtools2.dll")
LoadPlugin("C:\Program Files\Hybrid\32bit\avisynthPlugins\nnedi3.dll")
LoadPlugin("C:\Program Files\Hybrid\32bit\avisynthPlugins\TIVTC.dll")
LoadPlugin("C:\Program Files\Hybrid\32bit\avisynthPlugins\Average.dll")
LoadPlugin("C:\Program Files\Hybrid\32bit\avisynthPlugins\GRunT.dll")
LoadPlugin("C:\Program Files\Hybrid\32bit\avisynthPlugins\MedianBlur2.dll")
LoadPlugin("C:\Program Files\Hybrid\32bit\avisynthPlugins\despot.dll")
Import("C:\Program Files\Hybrid\32bit\avisynthPlugins\mtmodes.avsi")
Import("C:\Program Files\Hybrid\32bit\avisynthPlugins\QTGMC.avsi")
Import("C:\Program Files\Hybrid\32bit\avisynthPlugins\Zs_RF_Shared.avsi")
Import("C:\Program Files\Hybrid\32bit\avisynthPlugins\Srestore.avsi")
# loading source: M:\Tanya-IN\Apocalypse Sexual_SpainVH-ACEtbc.mov
# color sampling YV12@8, matrix: bt601, scantyp: bottom field first, luminance scale: limited
LWLibavVideoSource("M:\Tanya-IN\Apocalypse Sexual_SpainVH-ACEtbc.mov",cache=false,dr=true,format="YUV420P8", prefer_hw=0)
# current resolution: 720x576
# deinterlacing
AssumeBFF()
QTGMC(Preset="Faster", ediThreads=2)
# removing ghosting
srestore(frate=25.000,omode=6)
Preroll(Int(last.FrameRate()))
# despotting using DeSpot
DeSpot(median=false,sign=-2,interlaced=false)
# scaling to 768x576
Spline36Resize(768,576)
# Converting from 8 to 10bit for encoder
ConvertBits(10)
# adjust color to YV16 (color matrix: Rec601)
ConvertToYUV422()
# setting output fps to 25.000fps
AssumeFPS(25,1)
#  output: color sampling YV12@10, matrix: bt601, scantyp: progressive, luminance scale: limited
return last
There should be no interlacing.
The encoding call:
ffmpeg_32 -y -noautorotate -nostdin -threads 8 -i "M:\Tanya-TEMP\encodingTempSynthSkript_2023-10-17@17_38_47_8410_0.avs" -an -sn -vf  scale=in_range=tv:out_range=tv -pix_fmt yuv422p10le -strict -1 -vsync 0  -vcodec prores_ks -profile:v 2 -vtag apcn -metadata encoding_tool="Hybrid 2023.10.17.1" -aspect 768:576 -f mov "M:\Tanya-TEMP\Apocalypse Sexual_SpainVH-ACEtbc_1_2023-10-17@17_38_47_8410_04.mov"
looks fine too. (Will look at why the '#output ...'-comment shows the wrong info in the Avisynth script tomorrow, this is just a comment and won't change anything.)

Trying to reproduce this with:
ClearAutoloadDirs()
SetFilterMTMode("DEFAULT_MT_MODE", MT_MULTI_INSTANCE)
LoadPlugin("F:\Hybrid\32bit\avisynthPlugins\DGDecode.dll")
LoadPlugin("F:\Hybrid\32bit\avisynthPlugins\RgTools.dll")
LoadPlugin("F:\Hybrid\32bit\avisynthPlugins\masktools2.dll")
LoadPlugin("F:\Hybrid\32bit\avisynthPlugins\mvtools2.dll")
LoadPlugin("F:\Hybrid\32bit\avisynthPlugins\nnedi3.dll")
LoadPlugin("F:\Hybrid\32bit\avisynthPlugins\TIVTC.dll")
LoadPlugin("F:\Hybrid\32bit\avisynthPlugins\Average.dll")
LoadPlugin("F:\Hybrid\32bit\avisynthPlugins\GRunT.dll")
LoadPlugin("F:\Hybrid\32bit\avisynthPlugins\MedianBlur2.dll")
LoadPlugin("F:\Hybrid\32bit\avisynthPlugins\despot.dll")
Import("F:\Hybrid\32bit\avisynthPlugins\mtmodes.avsi")
Import("F:\Hybrid\32bit\avisynthPlugins\QTGMC.avsi")
Import("F:\Hybrid\32bit\avisynthPlugins\Zs_RF_Shared.avsi")
Import("F:\Hybrid\32bit\avisynthPlugins\Srestore.avsi")
# loading source: G:\TestClips&Co\files\interlaceAndTelecineSamples\interlaced\bff.m2v
# color sampling YV12@8, matrix: bt601, scantyp: bottom field first, luminance scale: limited
MPEG2Source(d2v="J:\tmp\m2v_478bc6d007ec94bfc67367d30d9093a4_853323747.d2v",fieldop=0)
# current resolution: 720x480
# deinterlacing
AssumeBFF()
QTGMC(Preset="Faster", ediThreads=2)
# removing ghosting
srestore(frate=25.000,omode=6)
Preroll(Int(last.FrameRate()))
# despotting using DeSpot
DeSpot(median=false,interlaced=false)
# Converting from 8 to 10bit for encoder
ConvertBits(10)
# adjust color to YV16 (color matrix: Rec601)
ConvertToYUV422()
# setting output fps to 25.000fps
AssumeFPS(25,1)
#  output: color sampling YV12@10, matrix: bt601, scantyp: progressive, luminance scale: limited
return last
and
ffmpeg_32 -r 25/1 -y -noautorotate -nostdin -threads 8 -i "J:\tmp\2023-10-17@20_31_59_4410\encodingTempSynthSkript_2023-10-17@20_31_59_4410_0.avs" -an -sn -vf zscale=rangein=tv:range=tv -pix_fmt yuv422p10le -strict -1 -vsync 0  -vcodec prores_ks -profile:v 2 -vtag apcn -metadata encoding_tool="Hybrid 2023.10.17.1" -aspect 20:15 -f mov "G:\Output\bff_1_2023-10-17@20_31_59_4410_03.mov"
My output is deinterlaced.

If you can share a short sample of your video (which allows reproducing this for you), I can try to look into this some more tomorrow.
(maybe it's something in the source triggering this and thus I can't reproduce it here.)

Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#7
It's around 20GB, it's a VHS capture to DV. How is it best to create a sample clip?
Reply
#8
No clue how to properly cut dv stuff. (it's ages since I had to deal with dv stuff; AviDemux might work)

Then we try to get some info by you doing tests. Smile
(I assuming you got 'Synth auto refresh' on)
If you load the file and open the Avisynth preview (QTGMC should be enabled by default) is the preview still interlaced?
Does disabling 'Filtering->Avisynth->Misc->Source->LibavVideoSource insttead of FFmpegSource' change the preview?
Does this effect only happen if you enabled sRestore or also without it?
Can you share a debug output of the analysis of the source?
Also encode a few seconds (use cut support; 100 frame should be enough) of a scene with vertical movement and share that with me. (just to make sure the output also looks interlaced content encoded progressively here too)
Does the deinterlacing + despot + sRestore properly work for you in Vapoursynth? (I know that DeSpot isn't as usable, this is also to get some more data.)

Cu Selur

Ps.: going to bed now, but will look at it some more tomorrow after work.
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#9
Vapoursynth works fine, although it takes twice as long (3 hours), and sRestore is apparently broken in Vs which is another reason I am using AviSynth for sRestore and DeSpot.

MediaInfo report of DV input source:

Frame rate: 25.000 FPS
Standard: PAL
Color space: YUV
Chroma subsampling: 4:2:0
Bit depth: 8 bits
Scan type: Interlaced
Scan type, store method: Interleaved fields
Scan order: Bottom Field First
Reply
#10
That is strange, usually Vapoursynth is faster. (Are you sure you use the same settings?)
I found a 'fix' for sRestore in Vapoursynth and that is to limit the thread count to 1 for the whole script.

Okay,
[quote]Can you share a debug output of the analysis of the source?
and
Does the deinterlacing + despot + sRestore properly work for you in Vapoursynth? (I know that DeSpot isn't as usable, this is also to get some more data.)
[/code]
are answered with that.
So it is an Avisynth only issue.

Try the following, use:
"C:\Program Files\Hybrid\64bit\ffmpeg.exe" -ignore_editlist true -ss 60 -i M:\Tanya-IN\Apocalypse Sexual_SpainVH-ACEtbc.mov -t 10 -copy copy M:\Tanya-IN\Sample.mov
This should create a 10-second sample file (M:\Tanya-IN\Sample.mov) form 1 min into the clip.
Then check if you can reproduce the problem with that sample and assuming it's not too large share it with me. Smile
(you can adjust the start time with 'ss' and the length with '-t' in case the selected part isn't usable, i.e. too dark or just a still image,...)

Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)