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 14th September 2011, 08:05   #1  |  Link
jackuzen
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.
jackuzen is offline   Reply With Quote
Old 16th September 2011, 02:21   #2  |  Link
jackuzen
Registered User
 
Join Date: Sep 2011
Posts: 3
nobody??
jackuzen is offline   Reply With Quote
Old 16th September 2011, 07:46   #3  |  Link
Ghitulescu
Registered User
 
Ghitulescu's Avatar
 
Join Date: Mar 2009
Location: Germany
Posts: 5,769
The sources for avisynth are still available
__________________
Born in the USB (not USA)
Ghitulescu is offline   Reply With Quote
Old 20th September 2011, 13:02   #4  |  Link
jackuzen
Registered User
 
Join Date: Sep 2011
Posts: 3
Quote:
Originally Posted by Ghitulescu View Post
The sources for avisynth are still available
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
jackuzen is offline   Reply With Quote
Reply

Tags
h264, hardcode, subtitle

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 12:31.


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