NVEnc icon indicating copy to clipboard operation
NVEnc copied to clipboard

Burning in 2K Blu-ray .sup with transparency, brightness and contrast for 4K HDR

Open pwacooijmans opened this issue 5 years ago • 8 comments

Dear Rigaya,

Hereby I would like a feature request to add an option to burn in 2K Blu-ray subtitles with Transparency, Brightness and Contrast for 4K HDR.

pwacooijmans avatar Sep 16 '19 19:09 pwacooijmans

I think --vpp-subburn can already do 2K to 4K resizing and position adjustment.

However, I don't think "changing" 2K subs to grey value and transparency is possible, because there is no such information on 2K subs, they don't have the data for the "correct" color values you have mentioned. Most 2K subs don't have transparency.

rigaya avatar Sep 17 '19 13:09 rigaya

--spp-subburn will automatically compare subtitle resolution to video resolution to set resize ratio and burns in the resized subs. Also it has option "scale=<float>" to specify resize ratio manually.

rigaya avatar Sep 17 '19 15:09 rigaya

adding a certain greyscale and transparency to a 2k sup and i'd be very happy

So you just need to modify transparency and brightness, right? The word "correct" was a bit confusing, as no transparency is the original value for 2K subs.

I've added options to modify transparency, brightness and contrast of the subtitles in NVEnc 4.49. Would this help you?

rigaya avatar Sep 18 '19 13:09 rigaya

Last question I have is it possible to output the new suptitle that I burned in to a .sup file? That would be the most epic solution to actually be able to make 4k.sup files with these settings :) Minus the scaling of course...which is not needed.

pwacooijmans avatar Sep 18 '19 18:09 pwacooijmans

Transparency 0 15, Brightness -0 25, Contrast 0,67 Subtitle at 95% resize

--vpp-subburn filename="D:\Push the Tempo\La La Land (2016) Untouched sample_temp\La La Land (2016) Untouched sample ID4 Dutch.sup",shaping="complex",scale=2.0,transparency=0.15,brightness=-0.25,contrast=0.67 at 95% resize with bdsup2sub++

pwacooijmans avatar Sep 18 '19 20:09 pwacooijmans

last one is my favorite so far...anyone any better versions than that?

pwacooijmans avatar Sep 18 '19 20:09 pwacooijmans

Templates used.zip Versions.txt Made this with Staxrip 2.0.4.0 Stable. BDSup2Sub512.zip Make sure you install java for BDSup2Sub512.jar

pwacooijmans avatar Sep 18 '19 20:09 pwacooijmans

Have you tried to "demux" the .sup first with TSMUXER Nightly? There you can adjust the subtitle. I always use tsmuxer to make sup from srt then I resize with bdsup2sub then just use subburn, so I can get a yellow desired perfect subtitle with nvenc. I think you can make a script for txmuxer to resize in one go, but I haven't figured it out yet. - Just a thought!

djrooli avatar Apr 02 '20 08:04 djrooli