Log in

View Full Version : sbtlpatch: Display subtitles on Apple players


micmac
22nd February 2009, 11:38
Hi all,

because Apple players don't use the handler type "text" to detect text subtitle tracks (instead they use "sbtl"), here's a tool to change the handler type. E.g. use MP4Box to multiplex all streams into an MP4 container, then use sbtlpatch to change the handler type.

The tool is command-line-only (suited for scripts etc). Changes can be reversed.

Regards
mic

P.S.: It doesn't really "patch" anything; sbtlpatch uses standard mp4v2 routines.
P.P.S: MP4Box (gpac) now (post 0.4.5) supports the different handler types as well.

micmac
11th March 2009, 08:44
sbtlpatch-0.2: - fixed a segfault on Ubuntu Hardy

micmac
17th August 2009, 17:00
sbtlpatch-0.3:
- this version needs libmp4v2 version 1.9.x

nickolasemp
24th August 2009, 15:16
Hi! Is there an mp4box equivalent for linux-ubuntu? I don't know how to try your program unless I figure out how to create an mp4 file from my avi+srt...

Everything compiles fine (although I had to cp the libmp4v2.so.1 from /usr/local/bin to /usr/bin in order for your program to find it)

nm
24th August 2009, 15:52
Hi! Is there an mp4box equivalent for linux-ubuntu?
MP4Box is included in the gpac package, so:
sudo apt-get install gpac

If you need version 0.4.5 or later, upgrade to Karmic or build MP4Box yourself.

nickolasemp
24th August 2009, 16:16
Yeah, I figured it out a while ago here (http://manpages.ubuntu.com/manpages/jaunty/man1/mp4box.1.html). Trying to figure out the CLI part now... I will let you kno when I'll upload it to my iPhone

Edit:Found it, it is MP4Box -add input.avi -add sub.srt -ipod -new dest.mp4
Edit#2: Now iTunes refuses to add it in its library.... Damn you Apple!

nickolasemp
24th August 2009, 17:31
Ok, everything works perfect! I tested it with english subtitles and it works great.

Thank you very much for this program!

Kudos to National Center For Accessible Media (NCAM) for squeezing Apple to cough the info!!! (http://forum.doom9.org/showthread.php?p=1292880#post1292880)