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 > Avisynth Usage

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 10th February 2018, 17:25   #1  |  Link
Atak_Snajpera
RipBot264 author
 
Atak_Snajpera's Avatar
 
Join Date: May 2006
Location: Poland
Posts: 7,810
[AviSynth+] Need help with rendering subtitles on YUV420P10

VSFilter does not work with 10 bit so I'm trying to overlay subtitles manually.

My code
Code:
SubtitleColor=BlankClip(video,color=$FFFF00,pixel_type="RGB32") 
SubtitleMask=BlankClip(video,color=$000000,pixel_type="RGB32") 

Loadplugin("C:\Users\Dave\Documents\Delphi_Projects\RipBot264\_Compiled\Tools\AviSynth plugins\VSFilter\VSFilter.dll")
SubtitleMask=VobSub(SubtitleMask,"C:\Temp\RipBot264temp\job1\5_subtitles_English_1080.sub")

SubtitleColor=ConvertToYUV420(SubtitleColor,matrix="Rec2020").ConvertBits(10)
SubtitleMask=ConvertToYUV420(SubtitleMask,matrix="Rec2020").ConvertBits(10)

video=Overlay(video,SubtitleColor,mask=SubtitleMask,opacity=1)
Result


Original


As you can see there is problem with mask because yellow color is not entirely removed. I reckon that it's a problem with 255 (8bit) vs 1023 scale (10bit) after conversion from RGB.
Can some expert help me to correct this issue?

Last edited by Atak_Snajpera; 10th February 2018 at 17:33.
Atak_Snajpera is offline   Reply With Quote
 

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 21:28.


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