Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > General > Subtitles

Reply
 
Thread Tools Search this Thread Display Modes
Old 22nd December 2011, 08:16   #1  |  Link
Ensiferous
Registered User
 
Join Date: Dec 2011
Posts: 3
ASS to TTXT Converter

Hi doom9,

Would anyone happen to know of a linux command line tool for doing ASS -> TTXT and maintain styling?

I'm doing some mkv -> mp4 transcoding like so many others and I want to maintain my styled subtitles. It seems right now everyone is doing ASS -> SRT -> TTXT via mp4box. However, this removes all styling in the ASS -> SRT step and causes the end result to look horrible without manually redoing the subtitles.

Appreciate any advice.
Ensiferous is offline   Reply With Quote
Old 22nd December 2011, 13:15   #2  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,259
Is this even possible? Afaik .ass supports way more stuff than ttxt (like special borders, shadows, arbitrarily rotated text, text scaling, animations, additional fonts,..),...
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Old 22nd December 2011, 21:16   #3  |  Link
Ensiferous
Registered User
 
Join Date: Dec 2011
Posts: 3
Well it supports a subset of features at least. To be perfectly honest I'd be happy with just having font support in. But I can understand why people wouldn't bother writing a partial converter.
Ensiferous is offline   Reply With Quote
Old 22nd December 2011, 22:31   #4  |  Link
Keiyakusha
契約者
 
Keiyakusha's Avatar
 
Join Date: Jun 2008
Posts: 1,576
I don't think such conversion is possible. Not only on linux but on any platform.
Also I don't see anything wrong with that, ttxt is a pretty useless non-human_readable format. Even if conversion is possible, even if you'll do it by hand, there is no renderer with good enough support for it.
Keiyakusha is offline   Reply With Quote
Old 22nd December 2011, 22:33   #5  |  Link
amtm
Guest
 
Posts: n/a
Quote:
Originally Posted by Keiyakusha View Post
I don't think such conversion is possible. Not only on linux but on any platform.
Why would the conversion be impossible? Sure, you can't losslessly go from .ass to .ttxt, but, having looked a bit at the two formats, if all he wants is things like fonts converted over from everything I can see that would be trivial to do.
  Reply With Quote
Old 23rd December 2011, 01:27   #6  |  Link
Ensiferous
Registered User
 
Join Date: Dec 2011
Posts: 3
If I could embed the ass file into a mp4 container then I would in a heart beat, but apparently mp4 doesn't support it and mkv isn't streamable. I already convert to srt format for streaming, but I would like to be able to download the same file and then have proper subtitles embedded within it. Right now my only viable alternative is to store a mkv version and a mp4 version and that's just a waste of space.

But it sounds like I'll have to write a converter myself, should be a "fun" project if nothing else.
Ensiferous is offline   Reply With Quote
Old 23rd December 2011, 01:44   #7  |  Link
Keiyakusha
契約者
 
Keiyakusha's Avatar
 
Join Date: Jun 2008
Posts: 1,576
Quote:
Originally Posted by amtm View Post
Why would the conversion be impossible? Sure, you can't losslessly go from .ass to .ttxt, but, having looked a bit at the two formats, if all he wants is things like fonts converted over from everything I can see that would be trivial to do.
I'm saying there is no software for that. Question was about software, not a theoretical possibility. If one wants to do it by hand, good luck to him.

Ensiferous
What is you receiver for these mp4? Are you sure it will render styled TTXT with something other than simple srt-like text?

Last edited by Keiyakusha; 23rd December 2011 at 01:48.
Keiyakusha is offline   Reply With Quote
Old 23rd December 2011, 06:07   #8  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,259
Just as a site note, iirc. mp4 can't embed external fonts so it always depends on the fonts installed an the system which kind of limits to possibility of ass->ttxt conversions even more,..
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Old 24th January 2012, 09:28   #9  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,259
I'm do not really know much about .ass or .ttxt but here's a little converter that at least does some basic (ignoring all the advanced) stuff (win32/win64 and qt based source code). Depending on my time and motivation I'll add support for more stuff as I learn more about both formats,..
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Old 27th January 2012, 12:06   #10  |  Link
SeeMoreDigital
Life's clearer in 4K UHD
 
SeeMoreDigital's Avatar
 
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,219
Quote:
Originally Posted by Keiyakusha View Post
Ensiferous
What is you receiver for these mp4? Are you sure it will render styled TTXT with something other than simple srt-like text?
That's a good question...

If Ensiferous is intending to play such files via a hardware player. Support is limited to basic TTXT rendering, with no styles.
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
SeeMoreDigital is offline   Reply With Quote
Reply

Tags
linux, mp4, subtitles

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 23:08.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.