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] encode ASS into video export MOV file, subtitle effect is not correct
#1
encode ASS subtitle into video, export MOV with x264+PCM, but the subtitle effect is not correct.

this is encoded MOV wrong effect, is what i don't want:
[Image: tnqPd8XIyg2kl7w.jpg]


the two options have been enabled already:
  • Filtering->Vapoursynth->Misc->Script->Prefer VsFilterMod

  • Filtering->Vapoursynth->Misc->Script->Always use Vapoursynth

this is correct ASS effect, is what i want:
[Image: NnHmG1RTD5k3wOK.jpg]

encode ASS into MP4 is fine, no problem, only MOV got the wrong effect.

sample file, 22MB:
https://drive.google.com/drive/folders/1...sp=sharing
Reply
#2
Are you sure you told Hybrid to embed the subtitles into the frame?
When I use the steps you described I get the attached file (left out the audio to keep the file size small).

Cu Selur


Attached Files
.zip   sample.zip (Size: 1,33 MB / Downloads: 11)
Reply
#3
i got a error,

Crashed with exit status 0
-> 2021-02-27@17_36_45_6410_03_video crashed: Crashed with exit status 0



and this is the debug output:
Reply
#4
Vapoursynth script crashes.
Looking at the script:
# Imports
import vapoursynth as vs
core = vs.get_core()
# Loading Plugins
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/SubtitleFilter/VSFilterMod/VSFilterMod.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/SourceFilter/LSmashSource/vslsmashsource.dll")
# source: 'D:\Y\庆余年 S01 全46集 Qing.Yu.Nian.S01.2019.WEB-DL.1080p.AVC.LPCM.2.0.Mandarin-DIY@xixihaha 超高码率 国语 内挂特效简繁软中字 MKV 654.2G\01.mkv'
# current color space: YUV420P8, bit depth: 8, resolution: 1920x1080, fps: 25, color matrix: 709, yuv luminance scale: limited, scanorder: progressive
# Loading D:\Y\庆余年 S01 全46集 Qing.Yu.Nian.S01.2019.WEB-DL.1080p.AVC.LPCM.2.0.Mandarin-DIY@xixihaha 超高码率 国语 内挂特效简繁软中字 MKV 654.2G\01.mkv using LWLibavSource
clip = core.lsmas.LWLibavSource(source="D:/Y/庆余年 S01 全46集 Qing.Yu.Nian.S01.2019.WEB-DL.1080p.AVC.LPCM.2.0.Mandarin-DIY@xixihaha 超高码率 国语 内挂特效简繁软中字 MKV 654.2G/01.mkv", format="YUV420P8", cache=0, fpsnum=25, prefer_hw=0)
# making sure input color matrix is set as 709
clip = core.resize.Point(clip, matrix_in_s="709",range_s="limited")
# making sure frame rate is set to 25
clip = core.std.AssumeFPS(clip=clip, fpsnum=25, fpsden=1)
# Setting color range to TV (limited) range.
clip = core.std.SetFrameProp(clip=clip, prop="_ColorRange", intval=1)
# Loading D:\Y\(字幕备份 ass+srt+sup) 庆余年S01 Qing.Yu.Nian.S01.2019.V2.WEB-DL.1080p.AVC.LPCM.2.0.Mandarin@xixihaha - V2\ASS final - V3\01.ass using VSFilterMod
clip = core.vsfm.TextSubMod(clip=clip, file="D:/Y/(字幕备份 ass+srt+sup) 庆余年S01 Qing.Yu.Nian.S01.2019.V2.WEB-DL.1080p.AVC.LPCM.2.0.Mandarin@xixihaha - V2/ASS final - V3/01.ass")
# set output frame rate to 25.000fps
clip = core.std.AssumeFPS(clip=clip, fpsnum=25, fpsden=1)
# Output
clip.set_output()
Assuming the source itself isn't broken, my guess is that TextSubMod can't handle the Chinese characters.
(Vapoursynth Preview should also show an error which should show whether it's LWLibavSource or TextSubMod causing the problem, but I would bet on TextSubMod since it's a port of an Avisynth filter which usually are more likely to have problems with non ascii characters.)
-> try renaming the file before processing.


Cu Selur
Reply
#5
so renaming it and encode could be fixed?

could if is there anyway to unrename? because the file is in PT upload task, so it's better to unrename, or i have to copy it one by one to another place and encode, but the whole videos are 46, 654GB in total, if everyone needs to copy then encode, it costs much time and much HDD spaces.


and if encode export MP4 or MKV, it's OK, why encode export MOV, it can't handle the Chinese characters, can be fixed?
Reply
#6
I might be able to write a workaround in case renaming solves the issue.
Since I don't know whether it does, I won't try to write a workaround.


Cu Selur
Reply
#7
(27.02.2021, 11:54)Selur Wrote: I might be able to write a workaround in case renaming solves the issue.
Since I don't know whether it does, I won't try to write a workaround.


Cu Selur

i copy 01.mkv to another english folder, such as  D:\Z\temp\qyn01, and encode, still appear this error, can't encode
Reply
#8
Okay.
a. Does the Vapoursynth Preview work properly?
If it doesn't, what does the error in the preview say?
And what does the shown script look like?
b. What does the debug output look like?

Cu Selur
Reply
#9
(27.02.2021, 12:06)Selur Wrote: Okay.
a. Does the Vapoursynth Preview work properly?
If it doesn't, what does the error in the preview say?
And what does the shown script look like?
b. What does the debug output look like?

Cu Selur

i copy 01.mkv and 01.ass both out of chinese character folders, and this time it can encode now.

and when encode done, let's see if the subtitle effect could be right, maybe the wrong encoded subtitle effect was caused by chinese character too.
Reply
#10
I doubt that the name caused a problem with the representation, but you would have to ask the author of the filter about that.
I'll write a small workaround for the subtitle loading which will work as long as 8.3 filenames are not disabled on your drive.

Cu Selur
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)