Selur's Little Message Board

Full Version: how to use this new version subtitle filter in hybrid?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
https://github.com/libass/libass
Maybe it's the most active subtitle filter with 177 forks on the github.

The following projects/companies use libass:

MPlayer
mplayer2
mpv
VLC
GStreamer (assrender plugin)
FFmpeg
Libav (unmaintained)
Aegisub
Kodi (XBMC)
avidemux
PunkGraphicsStream (BD subtitle encoder)
HandBrake
MX Player
QMPlay2
SubtitlesOctopus (JavaScript ASS via wasm libass)
Crunchyroll uses SubtitlesOctopus
AssRender for Avisynth(+)
Added "Filtering->Vapoursynth->Misc->Script->Prefer AssRender" a few weeks ago to my dev version.

Cu Selur

Ps.: You can also always use custom additions in Avi-/VapourSynth.
Aegisub use this filter such as {\pos(1068,774)\frz6.874\c&H0B0631&}

https://github.com/sorayuki/VSFilterMod/

the following are update recently.

https://github.com/AmusementClub/assrender

https://github.com/libass/libass/releases
will look at it mid next week, I'm on a trip till then an only on mobile.
Yep another error Sad

Code:
  added new job with id 2022-05-24@17_33_45_4310
starting 2022-05-24@17_33_45_4310_01_audio@17:33:45.504 - /home/pro/sssss.mp4
2022-05-24@17_33_45_4310_01_audio finished after 00:00:00.129
starting 2022-05-24@17_33_45_4310_04_video@17:33:45.861 - /home/pro/sssss.mp4
2022-05-24@17_33_45_4310_04_video finished after 00:00:00.095
-> 2022-05-24@17_33_45_4310_04_video crashed: ERROR: /tmp/2022-05-24@17_33_45_4310_04.264 is too small! (byteSize: 0byte)
Aborting '2022-05-24@17_33_45_4310_04_video' due to: ERROR: /tmp/2022-05-24@17_33_45_4310_04.264 is too small! (byteSize: 0byte)
Job 2022-05-24@17_33_45_4310 finished!
Vapoursynth script failed, x264 aborts with:
Code:
y4m [error]: bad sequence header magic
The VapourSynth script used:
Code:
# Imports
import vapoursynth as vs
import os
import sys
# getting Vapoursynth core
core = vs.core
# Import scripts folder
scriptPath = '/home/pro/.hybrid/profiles/scripts/Vapoursynth'
sys.path.insert(0, os.path.abspath(scriptPath))
# Import scripts
import havsfunc
# source: '/home/pro/BD_Filmy/komunia sw.ts'
# current color space: YUV420P8, bit depth: 8, resolution: 720x576, fps: 25, color matrix: 470bg, yuv luminance scale: limited, scanorder: top field first
# Loading /home/pro/BD_Filmy/komunia sw.ts using D2VSource
clip = core.d2v.Source(input="/tmp/2022-05-24@17_33_45_4310.d2v", rff=False)
# Setting color matrix to 470bg.
clip = core.std.SetFrameProps(clip, _Matrix=5)
clip = clip if not core.text.FrameProps(clip,'_Transfer') else core.std.SetFrameProps(clip, _Transfer=5)
clip = clip if not core.text.FrameProps(clip,'_Primaries') else core.std.SetFrameProps(clip, _Primaries=5)
# Setting color range to TV (limited) range.
clip = core.std.SetFrameProp(clip=clip, prop="_ColorRange", intval=1)
# making sure frame rate is set to 25
clip = core.std.AssumeFPS(clip=clip, fpsnum=25, fpsden=1)
# setting field order to what QTGMC should assume (top field first)
clip = core.std.SetFrameProp(clip=clip, prop="_FieldBased", intval=2)
# Deinterlacing using QTGMC
clip = havsfunc.QTGMC(Input=clip, Preset="Fast", TFF=True) # new fps: 25
# make sure content is preceived as frame based
clip = core.std.SetFieldBased(clip, 0)
clip = clip[::2]
# set output frame rate to 25.000fps
clip = core.std.AssumeFPS(clip=clip, fpsnum=25, fpsden=1)
# Output
clip.set_output()
looks fine. My guess is that you are missing tons of dependencies for QTGMC.
(assuming the scripts are present)

I would recommend using the Vapoursynth Preview to figure out whats missing. (which should start vsViewer or vsedit if vsViewer couldn't be found)

Cu Selur

Ps.: By default Hybrid assumes on non-Windows systems that Vapoursynth libraries do not need to be loaded explicitly. If you setup requires this you need to set
Code:
vsLoadLibrariesOnNonWindows=true
in your misc.ini file.