Selur's Little Message Board

Full Version: Vapoursynth not recognizing subtitles for harcoding.Neither does Avisynth
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I got a debug output but no explaination to it.
Code:
ClearAutoloadDirs()
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\LoadDll.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\LSMASHSource.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\AddGrainC.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\dfttest.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\EEDI2.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\eedi3.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\FFT3DFilter.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\masktools2.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\mvtools2.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\TDeint.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\RgTools.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\MedianBlur2.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\nnedi3.dll")
LoadCPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\assrender.dll")
LoadCPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\yadif.dll")
LoadDLL("C:\Program Files\Hybrid\32bit\avisynthPlugins\libfftw3f-3.dll")
Import("C:\Program Files\Hybrid\32bit\avisynthPlugins\QTGMC.avsi")
Import("C:\Program Files\Hybrid\32bit\avisynthPlugins\SMDegrain.avsi")
Import("C:\Program Files\Hybrid\32bit\avisynthPlugins\Zs_RF_Shared.avsi")
SetFilterMTMode("DEFAULT_MT_MODE", MT_MULTI_INSTANCE)
# loading source: E:\The REAL ADVENTURES of JONNY QUEST (1996-1997) - Complete JOHNNY TV Series, Season 1-2 S01-S02 - 480p DVDRip x264\Season 1 (1996-97)\The Real Adventures of Jonny Quest - S01 E01 - The Darkest Fathoms (480p - DVDRip).mp4
#  color sampling YV12@8, matrix: bt601, scantyp: top field first, luminance scale: limited
Source = LWLibavVideoSource("E:\THEREA~1\SEASON~2\THEREA~2.MP4",cache=false,format="YUV420P8", prefer_hw=0)
# current resolution: 720x480
# deinterlacing
SourceFiltered = Source
Source = Source.AssumeTFF()
Source = Source.QTGMC(Preset="Fast", ediThreads=2, PrevGlobals="Reuse")# added PrevGlobals="Reuse" to handle multiple QTGMC instances
Source = Source.SelectEven()
SourceFiltered = SourceFiltered.AssumeTFF()
SourceFiltered = SourceFiltered.QTGMC(Preset="Fast", ediThreads=2, PrevGlobals="Reuse")# added PrevGlobals="Reuse" to handle multiple QTGMC instances
SourceFiltered = SourceFiltered.SelectEven()
# filtering
# embedding subtitles
# Loading subtitle: C:\Users\Rafaela\Desktop\01.The Darkest Fathoms.ass
SourceFiltered = SourceFiltered.AssRender("C:\Users\Rafaela\Desktop\01.The Darkest Fathoms.ass", vfr="D:\TEMP\synthTempTimeCodes__mp4_4148d02dbfa4968fc55d91b3be959c2b_853323747.tc")
# stacking horizontal for filter preview
# adjust color to RGB24
SourceFiltered = SourceFiltered.ConvertToRGB24(matrix="Rec601")
# adjust color to RGB24
Source = Source.ConvertToRGB24(matrix="Rec601")
StackHorizontal(Source, SourceFiltered)
PreFetch(4)
return last
is the script used for FilterPreview.

That Hybrid isn't wast with that script is probably due to the FilterView coupled with QTGMC, you might probably use Vapoursynth or 64bit Avisynth.
-> if you can share a sample with the subtitles belonging

-> unclear what the problem is.
Got the files, will look at them.
Okay, I can reproduce the issue that the subtitles are not showing.
-> looking into it Smile

Correction they are showing,..
okay, for me Hybrid is using:
Code:
# Loading C:\Users\Selur\Desktop\01.The Darkest Fathoms.ass using SubText
clip = core.sub.TextFile(clip=clip, file="C:/Users/Selur/Desktop/01.The Darkest Fathoms.ass", fontdir="I:/Hybrid/settings/fonts")
while in your script:
Code:
# Loading subtitle: C:\Users\Rafaela\Desktop\01.The Darkest Fathoms.ass
SourceFiltered = SourceFiltered.AssRender("C:\Users\Rafaela\Desktop\01.The Darkest Fathoms.ass", vfr="D:\TEMP\synthTempTimeCodes__mp4_4148d02dbfa4968fc55d91b3be959c2b_853323747.tc")
is used.

I'll send you a link to my current dev version.
You also might want to enable 'Filtering->(De-)Interlace/Telecine->Overwrite input scan type' and set it to telecine.

Cu Selur
Can you embed them in frame(burn them ) with avisynth and assrender?
Nope,..
it crashes with:
Code:
[Window Title]
Error

[Main Instruction]
Error requesting frame 1913

[Content]
WindowsError: exception: access violation reading 0x8080807F


[OK] [Abbrechen]
-> I'll try to find out more Smile
Seems to be a compatibility issue between Avisynth+ and AssRenderer.
-> I'll look into it, I still have some code to allow using Avisynth 2.6MT.

Cu Selur
Send you a link to a dev version with some instructions to use Avisynth MT 2.6 and AssRender in Hybrid.

Cu Selur
Pages: 1 2