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. |
14th September 2011, 08:05 | #1 | Link |
Registered User
Join Date: Sep 2011
Posts: 3
|
Hardcode subtitle in source code
Hi all,
First, i don't know if it's right place to ask this question. If it's not, please move it to appropriate one for me. I need to add a subtitle into video file so that it can be played on Iphones and Android phones. I did try with two others options: play video with external subtitle file, add text stream in video file. But the problem is that, in earlier version of Android (2.2, 2.3), the default video player can not display the text stream, and the external subtitle file (tested on Nexus One and HTC HD desired). It leave me with only one choice: hardcode subtitle into video file. I have read through the Q&A about hardcoding sub in this forum, and they'r all about using GUI tools. What i need is something like a library, a command line app, which i can invoke from my source code. is there any such thing like that out there? My target encodes are H264/AAC, and input subtitle: .smi, .srt, .ass, contained in .mp4 or m4v file. Thanks Last edited by jackuzen; 14th September 2011 at 09:04. |
20th September 2011, 13:02 | #4 | Link |
Registered User
Join Date: Sep 2011
Posts: 3
|
Thanks Ghitulescu, Avisynth will do, but it seem to be an overkill. I will use it if there is no other ways.
Btw, I saw a line saying that mp4creator and mp4box can add a subtitle to video file. However, mp4box can only add a text stream (correct me if i'm wrong), and I couldn't find any sample or document about adding a subtitle in video file using mp4creator. Can mp4creator do it? Thnks |
Tags |
h264, hardcode, subtitle |
Thread Tools | Search this Thread |
Display Modes | |
|
|