Page 1 of 1

Aegisub position not working

Posted: Sat Jan 05, 2019 5:13 pm
by kong
Description of problem or question:

I created subtitles with Aegisub and exported the srt file. After opening the .srt file into Handbrake and burning it into a video, the position of the subtitles I had set up in Aegisub is not being taken into account.


Steps to reproduce the problem (If Applicable):




HandBrake version (e.g., 1.0.0):

1.2.0


Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):

Linux Mint 18


HandBrake Activity Log ***required*** (see How-to get an activity log)

Code: Select all

Please replace this text with the contents of your log file between the two code tags - OR -  provide a pastebin URL in place of these 3 lines.

Re: Aegisub position not working

Posted: Sat Jan 05, 2019 6:33 pm
by JohnAStebbins
I don't know Aegisub, but positioning specifiers are not well supported in SRT. SRT really has no specification. The "official" set of tags is what the SubRip program generates, which as far as I know has never been documented by the author. I don't think SubRip generates position information, but I could be wrong. Various other software has added other tags, but support for the various additions is spotty at best. See http://ale5000.altervista.org/subtitles.htm

Note that in the above table there is a "display coordinates" feature listed. None of the listed players support "display coordinates" and a note says that some even fail to correctly parse the SRT file correctly when "display coordinates" are present.

My guess is that when you exported to SRT you lost the positioning information. But please do check the SRT file for display coordinates (or supply it so I can check).

A number of players support SSA/ASS tags embedded in SRT subtitles. HandBrake also supports this. But I doubt Aegisub supports such a hybrid export option.

HandBrake doesn't currently support display coordinates, but if Aegisub is generating them, I wouldn't be against adding support.

Re: Aegisub position not working

Posted: Sun Jan 06, 2019 12:07 am
by JohnAStebbins
FYI, your post encouraged me to get to work on a project I've been planning to do for a while now :mrgreen:

https://github.com/HandBrake/HandBrake/pull/1790