srt2ass3d source code [r3pek]

Developers forum for Univeral Media Server-related development (only for programmers)
Post Reply
ExSport
Posts: 595
Joined: Wed Oct 10, 2012 1:57 am

srt2ass3d source code [r3pek]

Post by ExSport »

Hi all
Only linking code from r3pek which converts 2D srt subs to 3D ass subs supported by MEncoder (ffmpeg not tested)
https://bitbucket.org/r3pek/srt2ass3d/overview
http://www.r3pek.org/projects/srt2ass3d
http://www.ps3mediaserver.org/forum/vie ... hp?t=14157
It can be used as an external app or converted to java and used directly in UMS.
Some bugs spotted in past (copied from original post):
Ok found root cause and also other bug (Windows version):
- when subs are on more lines than only one, last char is replaced with "\N" so last char is missing!
- when SRT subs are ANSI, your ASS file is ANSI ==> PMS renders them OK and in 3D 8-)
- when SRT subs are UTF-8, your ASS file is ANSI ==> subs are with corrupted diactrics and PMS wrongly decodes Codepage ===> see result:
When PMS loads ANSI subs it adds "-subcp CP1250" for subtitles. When subs are UTF-8, instead of "subcp CPxxxx" it adds "-utf8"
When subs are in other format than MEncoder parameter specifies, you will see corrupted diactrics and 2D subs (doubled under each other) with about 5 secs delay :roll:
So mistery resolved :idea:
Many thanks for fix 8-)
There are also another app with GUI which can be used for 3D subtitles but without source code.
Also it converts subs to graphical ones, IDX/SUB and PGS.
http://www.videohelp.com/tools/3DSubtitler
User avatar
SubJunk
Lead Developer
Posts: 3707
Joined: Sun May 27, 2012 4:12 pm

Re: srt2ass3d source code [r3pek]

Post by SubJunk »

Yeah it would be cool to integrate that, nice one
Post Reply