Zach Saw's Forum
http://zachsaw.com/forum/

Sample code to use SupTitle to convert Blu-Ray PGS files ple
http://zachsaw.com/forum/viewtopic.php?f=14&t=61
Page 3 of 3

Author:  paquette [ August 21st, 2009, 3:15 am ]
Post subject:  Re: Sample code to use SupTitle to convert Blu-Ray PGS files ple

I haven't had a lot of luck on this problem on the Doom9 Avisynth discussion group http://forum.doom9.org/showthread.php?t=148848. Grasping at straws,I was just wondering what if anything you have loaded on your machine in the way of special video codecs??? :?

Author:  ZachSaw [ August 21st, 2009, 3:26 pm ]
Post subject:  Re: Sample code to use SupTitle to convert Blu-Ray PGS files ple

No. You shouldn't need any codecs at all either - you're not decoding anything.

Author:  paquette [ August 21st, 2009, 11:56 pm ]
Post subject:  Re: Sample code to use SupTitle to convert Blu-Ray PGS files ple

That's what I thought but good to have you confirm it.

Author:  paquette [ August 22nd, 2009, 7:18 am ]
Post subject:  Re: Sample code to use SupTitle to convert Blu-Ray PGS files ple

I took a bit of time this afternoon to reboot into XP and download the latest version of WMP. That, evidently, is the winning combination! SupTitle now works just fine with the blank clips in XP—as long as they are 1920 x 1080 clips, that is—not if they are 720 x 480.

So I have one left-over problem—how to resize the SupTitle output to 720 X 480. My favorite resizer for transcoding is Spline 36 (e.g, Spline36Resize(720,480)) but I couldn’t figure out any syntax to make it work on the output of SupTitle so it would conform to the size of video downsized from 1920 x 1080 to720 x 480.

Any ideas?

Author:  ZachSaw [ August 22nd, 2009, 12:30 pm ]
Post subject:  Re: Sample code to use SupTitle to convert Blu-Ray PGS files ple

Can't you simply add the function to the script? :?: :?: :?:

Code:
LoadPlugin("C:\SupTitle.dll")
BlankClip(300000, 1920, 1080, "YV12", 24000, 1001, color=$aaaaaa)
SupTitle("m:\TheInternational\sub9.sup", forcedOnly=true, swapCbCr=false)
Spline36Resize(720,480)


Are you sure you're familiar with AviSynth? :?

This will help - New to AviSynth - start here.

Author:  paquette [ August 23rd, 2009, 6:33 am ]
Post subject:  Re: Sample code to use SupTitle to convert Blu-Ray PGS files ple

So the trick is to resize both video streams at the same time as below.

Code:
LoadPlugin("SupTitle.dll")
LoadPlugin("C:\Program Files (x86)\DGAVCIndex\DGAVCDecode.dll")
avcsource("E:\Video Hold\00001.track_4113.dga")
SupTitle("E:\Video Hold\eng1.sup", false)
Spline36Resize(720,480)


I make no pretense to being an expert with AviSynth although I use it quite frequently for a number of relatively simple purposes.

Now that I've finally gotten it working—and working in Vista—I am very grateful both for SupTitle and for the help. Many thanks!

Page 3 of 3 All times are UTC + 10 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/