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.

[BUG] Encoder Crash (Helper1, exitCode: -1073741819)
#11
Yeah I'm thinking there's an issue with embedding the subtitle into frame.
Unfortunately subtitle embedding is a required thing for what I'm trying to do.

Here's the results of using the command you asked me to run:

Microsoft Windows [Version 10.0.22000.593]
(c) Microsoft Corporation. All rights reserved.

C:\Users\****>"C:\Program Files\Hybrid\64bit\mencoder.exe" -lavdopts threads=8 -subcp UTF-8 -sub "C:\Users\****\Videos\Hybrid\Output\TESTVI~1.ASS" -sid 6 -ass -of rawvideo -o NUL -ovc raw -noskip -vf scale,format=i420,scale=1280:720,ass,scale,format=i420 -sws 10 -nosound -mc 0 "C:\Users\****\Videos\Hybrid\Input\TESTVIDEO.mkv"
MEncoder SVN-r38359-11.2.0 (C) 2000-2022 MPlayer Team
success: format: 0  data: 0x0 - 0x2de51fa4
libavformat version 59.8.100 (internal)
libavformat file format detected.
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (dca), -aid 0, -alang jpn
[lavf] stream 2: subtitle (ssa), -sid 0, -slang eng
VIDEO:  [H264]  1920x1080  0bpp  23.976 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:44  fourcc:0x34363248  size:1920x1080  fps:23.976  ftime:=0.0417
Opening video filter: [format fmt=i420]
Opening video filter: [scale]
Opening video filter: [ass]
Opening video filter: [scale w=1280 h=720]
Opening video filter: [format fmt=i420]
Opening video filter: [scale]
[ass] Added subtitle file: 'C:\Users\****\Videos\Hybrid\Output\TESTVI~1.ASS' (17 styles, 3358 events)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 59.12.100 (internal)
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
Pos:   0.0s      8f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
[swscaler @ 00007ff682eca4c0]bicubic spline scaler, from yuv420p to yuv420p using MMXEXT
[swscaler @ 00007ff682eca4c0]using unscaled yuv420p -> yuv420p special converter
Pos: 726.4s  17423f (50%) 132.41fps Trem:   2min 45842mb  A-V:0.000 [265155:0]
[ass] fontconfig: Selected font is not the requested one: 'AdobeHeitiStd-Regular-Kami' != 'Adobe Heiti Std R-Kami'
Pos: 727.6s  17452f (50%) 132.35fps Trem:   2min 45820mb  A-V:0.000 [265155:0]
[ass] Failed to rasterize glyph: 98

Pos: 727.6s  17453f (50%) 132.35fps Trem:   2min 45820mb  A-V:0.000 [265155:0]
[ass] Failed to rasterize glyph: 98

Pos: 727.6s  17454f (50%) 132.35fps Trem:   2min 45822mb  A-V:0.000 [265155:0]
[ass] Failed to rasterize glyph: 98

Pos: 727.7s  17455f (50%) 132.34fps Trem:   2min 45822mb  A-V:0.000 [265155:0]
[ass] Failed to rasterize glyph: 98

Pos: 727.7s  17456f (50%) 132.34fps Trem:   2min 45813mb  A-V:0.000 [265155:0]
[ass] Failed to rasterize glyph: 98

Pos: 727.8s  17457f (50%) 132.34fps Trem:   2min 45814mb  A-V:0.000 [265155:0]
[ass] Failed to rasterize glyph: 98

Pos: 727.8s  17458f (50%) 132.33fps Trem:   2min 45814mb  A-V:0.000 [265155:0]
[ass] Failed to rasterize glyph: 98

Pos: 727.9s  17459f (50%) 132.33fps Trem:   2min 45814mb  A-V:0.000 [265155:0]
[ass] Failed to rasterize glyph: 98

Pos: 727.9s  17460f (50%) 132.33fps Trem:   2min 45814mb  A-V:0.000 [265155:0]
[ass] Failed to rasterize glyph: 98

Pos: 728.0s  17462f (50%) 132.32fps Trem:   2min 45814mb  A-V:0.000 [265155:0]
[ass] Failed to rasterize glyph: 98

Pos: 728.0s  17463f (50%) 132.32fps Trem:   2min 45814mb  A-V:0.000 [265155:0]
[ass] Failed to rasterize glyph: 98

Pos: 728.1s  17464f (50%) 132.31fps Trem:   2min 45813mb  A-V:0.000 [265155:0]
[ass] Failed to rasterize glyph: 98

Pos: 728.1s  17465f (50%) 132.31fps Trem:   2min 45807mb  A-V:0.000 [265155:0]
[ass] Failed to rasterize glyph: 98

Pos: 728.1s  17466f (50%) 132.31fps Trem:   2min 45807mb  A-V:0.000 [265155:0]
[ass] Failed to rasterize glyph: 98

Pos: 860.6s  20642f (57%) 132.35fps Trem:   1min 47115mb  A-V:0.000 [265155:0]
[ass] fontconfig: Selected font is not the requested one: 'AdobeHeitiStd-Regular-Kami' != 'Adobe Heiti Std R-Kami'
Pos:1112.9s  26691f (76%) 132.06fps Trem:   1min 45923mb  A-V:0.000 [265155:0]

Failing to rasterize glyphs.

Quote:I also noticed that using Vapoursynth the 'Vapoursynth Preview' does not work here and should not work for you either, since the '# Loading Plugins'-section of the script is not loading 'SubText'. (fixed that here, running an encode now)

I'll PM you a quick video of me clicking around with the different preview windows if you're curious. I had previously only clicked the preview button in the subtitle tab, but it appears if I click the preview button while in the Filters tab and have Vapoursynth enabled it won't work. NoXSynth and AviSynth seem to work though (frankly AviSynths preview is clunky though...).

I'm now trying to encode it without embedding the subtitle into frame real quick, but yeah this is sounding like a subtitle problem that I simply don't know what to do about. I wish I didn't need to embed the subs into the frame but softsubs don't work for what I'm trying to do as a web player isn't going to read an included subtitle file.
Reply
#12
Quote:Selected font is not the requested one: 'AdobeHeitiStd-Regular-Kami' != 'Adobe Heiti Std R-Kami'
Cloud be the source of the issue,...
I'll look into that.
Reply
#13
Hybrid extracts 'AdobeHeiti-Kami_0.ttf' from the input file into the temp font folder (you can see it's location under Config->Paths->Infos->Font path).
looking at the error:
Selected font is not the requested one: 'AdobeHeitiStd-Regular-Kami' != 'Adobe Heiti Std R-Kami'
The .ass font names wants 'Adobe Heiti Std R-Kami' while fontconfig only finds 'AdobeHeitiStd-Regular-Kami'.
Replacing 'Adobe Heiti Std R-Kami' in the .ass file with 'AdobeHeitiStd-Regular-Kami' fixdoes not fix the sync issue or the crash at 26763 for me.
Reply
#14
Uh, interesting result with just including the subtitle file without embedding into frame.
It worked but the subtitles are totally screwed-up and for some reason the video is now 1:33:32 long (though most of it is black).

Lmao this frame

[Image: qxZwC3c.png]

I'm starting to feel mocked and taunted...

Smiley Loan!
Reply
#15
Enabling 'Config->Input->Internals->Ignore all input timecodes' also doesn't help.
Sync issues start with 26683 when using:
# Imports
import vapoursynth as vs
# getting Vapoursynth core
core = vs.core
# Loading Plugins
core.std.LoadPlugin(path="i:/Hybrid/64bit/vsfilters/SubtitleFilter/SubText/SubText.dll")
core.std.LoadPlugin(path="i:/Hybrid/64bit/vsfilters/SourceFilter/LSmashSource/vslsmashsource.dll")
# source: 'C:\Users\Selur\Desktop\One Punch Man S01E07.mkv'
# current color space: YUV420P8, bit depth: 8, resolution: 1920x1080, fps: 23.976, color matrix: 709, yuv luminance scale: limited, scanorder: progressive
# Loading C:\Users\Selur\Desktop\One Punch Man S01E07.mkv using LWLibavSource
clip = core.lsmas.LWLibavSource(source="C:/Users/Selur/Desktop/One Punch Man S01E07.mkv", format="YUV420P8", cache=0, fpsnum=24000, fpsden=1001, threads=1, prefer_hw=0)
# Setting color matrix to 709.
clip = core.std.SetFrameProps(clip, _Matrix=1)
clip = clip if not core.text.FrameProps(clip,'_Transfer') else core.std.SetFrameProps(clip, _Transfer=1)
clip = clip if not core.text.FrameProps(clip,'_Primaries') else core.std.SetFrameProps(clip, _Primaries=1)
# Setting color range to TV (limited) range.
clip = core.std.SetFrameProp(clip=clip, prop="_ColorRange", intval=1)
# making sure frame rate is set to 23.976
clip = core.std.AssumeFPS(clip=clip, fpsnum=24000, fpsden=1001)
original = clip
# Loading E:\Output\One Punch Man S01E07_id_2_lang_en_default.ass using SubText
clip = core.sub.TextFile(clip=clip, file="E:/Output/One Punch Man S01E07_id_2_lang_en_default.ass", fontdir="I:/Hybrid/settings/fonts")
original = core.text.Text(clip=original,text="Original",scale=2)
clip = core.text.Text(clip=clip,text="Filtered",scale=2)
stacked = core.std.StackHorizontal([original,clip])
# set output frame rate to 23.976fps
stacked = core.std.AssumeFPS(clip=stacked, fpsnum=24000, fpsden=1001)
# Output
stacked.set_output()
Reply
#16
Yup the whole subtitle file seems strange,...
Something like:
Dialogue: 0,0:14:25.40,0:14:25.44,fade-01,,0,0,0,,{\blur4.5\fs37.5\fscx125\fscy176\frx358\fry0\frz359.51\c&H000000&\pos(694.5,877.35)}A crisis threatening human extinction.
Dialogue: 0,0:14:25.40,0:14:25.44,fade-01,,0,0,0,,{\blur4.5\fs37.5\fscx125\fscy176\frx358\fry0\frz359.51\c&H000000&\pos(694.5,877.35)}A crisis threatening human extinction.
Seems really strange to me. (Showing the same text over the same time twice.)

Or
Dialogue: 1,0:14:25.44,0:14:25.48,fade-01,,0,0,0,,{\blur1.5\fs37.5\fscx125\fscy176\frx358\fry0\frz359.5\c&HFFEEEE&\pos(694.5,886.905)\b1}A crisis threatening human extinction.
Dialogue: 0,0:14:25.44,0:14:25.48,fade-01,,0,0,0,,{\blur4.5\fs37.5\fscx125\fscy176\frx358\fry0\frz359.5\c&H000000&\pos(694.5,886.905)}A crisis threatening human extinction.
Dialogue: 0,0:14:25.44,0:14:25.48,fade-01,,0,0,0,,{\blur4.5\fs37.5\fscx125\fscy176\frx358\fry0\frz359.5\c&H000000&\pos(694.5,886.905)}A crisis threatening human extinction.
Showing the same text at the same time 3 times where one has a different color.

-> at least to me this doesn't make sense.

The subtitle extraction call in Hybrid uses:
"I:/Hybrid\64bit\mkvextract.exe" tracks "C:\Users\Selur\Desktop\One Punch Man S01E07.mkv" 2:"E:\Output\One Punch Man S01E07_id_2_lang_en_default.ass
seems simple enought and correct.

Cu Selur
Reply
#17
If it's worth mentioning, the subtitle file has a delay of 600ms I applied in MKVToolNix when I Muxed the subs with the BD source video & audio. They were coming in 600ms too early originally.

This actually reminds me that sometimes my encodes would fail in ways that don't outright break the encoding, but instead result in a file where the video/audio/sub streams gradually get out of sync as the video progresses. There could also be situations where all the resulting outputs are fine, but they'd get horribly out of sync in the late video upon trying to concatenate them into one file, although I figure that's not really your problem to care about because concatenation is done with an external program (MP4Box or MKVToolNix) after Hybrid output.

Yeah it feels like this is getting progressively more cursed the deeper we get into it...
Reply
#18
My guess is that these subtitles either are totally broken or require some different subtitle filters.
Seems like MPC-HC properly handles those subtitles, but SubText can't.
-> I'll do some testing with other filters.

Cu Selur
Reply
#19
Ya know I could find another file not related to this one that I know also throws the same "Helper1, exitCode: -1073741819" when embedding into frame, from totally different subtitlers and such. Maybe a few different samples would help? I just know that this has been a common issue especially with subbed anime.
Reply
#20
Okay.
First let me see wether AssRender, VSFilter, VsFilterMod or xy-VSFilter will handle these subtitles better.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)