Log in

View Full Version : Using TextSub() with non-square pixels


Lyle_JP
2nd June 2010, 21:27
Hello all,

I have a dilemma. I will be hard-subbing some kung-fu features, but the final .mp4 files will not have square pixels (they will have a declared SAR value of 32:27). Currently, textsub gives me stretched subs, since it assumes a pixel AR of 1:1.

Now, I know I can resize the video to 848x480, add the subs, and resize back down to 720x480, but obviously that defeats the whole purpose of not resizing/using SAR in the first place, and the double-resize really hurts PQ.

Is there a way in avisynth to resize just the output of textsub() and overlay it onto the picture? I am using .ssa files for my subs.

Thanks

thewebchat
2nd June 2010, 21:52
Set ScaleX to 100 / PAR (84.375) in your script. Incidentally, the correct PAR for a digitalized NTSC video is 40/33 and not 32/27.

Lyle_JP
2nd June 2010, 22:11
Set ScaleX to 100 / PAR (84.375) in your script. Incidentally, the correct PAR for a digitalized NTSC video is 40/33 and not 32/27.

Yes, but many DVDs do not follow the ITU-R BT.601 standard. In fact, I find that frequently with new releases, 32/27 seems to be the rule rather than the exception.

Also, these Fortune Star DVDs are at the very least new digital telecines, and perhaps even scaled-down HD. They're not old NTSC video that's been digitized (thank goodness).

Thank you for the ScaleX tip. That's just what I was looking for. :thanks: