Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > VapourSynth

Reply
 
Thread Tools Search this Thread Display Modes
Old 12th September 2015, 11:48   #1  |  Link
vcmohan
Registered User
 
Join Date: Jul 2003
Location: India
Posts: 890
Usage of Subtitle

I tried to use Subtitle. My script is for a video ret:
Code:
frmt = vs.YUV444P8
subs= core.assvapour.Subtitle(ret, "Accord")
subs[0] = core.resize.Bicubic(subs[0], frmt)
acrd = core.std.MaskedMerge(ret,subs[0], subs[1])
acrd.set_output()
The system goes into tizzy and crashes.
I am on windows 8.1
32 bit version of vapoursynth r26
Am I doing something wrong?
__________________
mohan
my plugins are now hosted here
vcmohan is offline   Reply With Quote
Old 12th September 2015, 12:18   #2  |  Link
Are_
Registered User
 
Join Date: Jun 2012
Location: Ibiza, Spain
Posts: 321
Yes.

Code:
frmt = vs.YUV444P8
subs= core.assvapour.Subtitle(ret, "Accord")
subs[0] = core.resize.Bicubic(subs[0], format=frmt)
subs[1] = core.resize.Bicubic(subs[1], format=frmt)
acrd = core.std.MaskedMerge(ret, subs[0], subs[1])
acrd.set_output()
Are_ is offline   Reply With Quote
Old 12th September 2015, 12:53   #3  |  Link
jackoneill
unsigned int
 
jackoneill's Avatar
 
Join Date: Oct 2012
Location: 🇪🇺
Posts: 760
Quote:
Originally Posted by vcmohan View Post
I tried to use Subtitle. My script is for a video ret:
Code:
frmt = vs.YUV444P8
subs= core.assvapour.Subtitle(ret, "Accord")
subs[0] = core.resize.Bicubic(subs[0], frmt)
acrd = core.std.MaskedMerge(ret,subs[0], subs[1])
acrd.set_output()
The system goes into tizzy and crashes.
I am on windows 8.1
32 bit version of vapoursynth r26
Am I doing something wrong?
I don't think you're doing anything wrong. I assume ret is also YUV444P8?

Can you explain what "tizzy" means exactly?

The r27 installer contains a newer assvapour with some bug fixes, though I don't recall any crash bugs.

Finally, if you don't care about Unicode or fancy formatting, text.Text is a more reliable alternative to assvapour.Subtitle.

Are_: subs[1] is GRAY8, which is perfectly fine as a mask for MaskedMerge.


Actually, scratch everything above.

The problem is here:
Code:
subs[0] = core.resize.Bicubic(subs[0], frmt)
You're passing vs.YUV444P8 to the "width" parameter. vs.YUV444P8 is an integer constant with the value 3000012. You might have run out of memory (or address space) trying to resize the clip to that width.

This should work:
Code:
subs[0] = core.resize.Bicubic(subs[0], format=frmt)
__________________
Buy me a "coffee" and/or hire me to write code!
jackoneill is offline   Reply With Quote
Old 13th September 2015, 07:46   #4  |  Link
vcmohan
Registered User
 
Join Date: Jul 2003
Location: India
Posts: 890
Even the first line it self causes problem
subs= core.assvapour.Subtitle(ret, "Accord").
Tizzy meaning probably endless loop or something which requires me to close program by system.
text.Text looks will work and I will use it. Thanks.
__________________
mohan
my plugins are now hosted here
vcmohan is offline   Reply With Quote
Old 13th September 2015, 17:48   #5  |  Link
jackoneill
unsigned int
 
jackoneill's Avatar
 
Join Date: Oct 2012
Location: 🇪🇺
Posts: 760
It's possible you just need to wait for fontconfig to build its font cache. Who knows.
__________________
Buy me a "coffee" and/or hire me to write code!
jackoneill is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:00.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.