Sorry about that

If it helps, our patched mp4v2 now has a function to add text tracks, so you can probably use that to add a subtitle track with text subtitles if you want

Don't be put off - and best of luck in sorting the subtitles!
maurj.
The only difference between a chapter track, and a text subtitle track is that the text atom and possibly the samples have text formatting data. Just that with a chapter track, you don't need it...maurj wrote: I haven't really gone the whole hog with adding text tracks to libmp4v2 - that is, I don't actually use the "add text track" function I added, just the "add chapter text track" function. But it should work for basic text tracks, I think. Adding text track samples is then as easy as calling MP4WriteSample with a buffer where the first two bytes specify the length of the following text, followed by the text itself. If you want to do unicode, you'll need to add an extra 'encd' atom afterwards, I think. Here's some useful links on text samples:
- maurj.
Hehe, I hate it when that happens. Frame-accurate is better than I'd dared hope... I'll be very happy to give it a thorough testCyander wrote:FURTHER: Oh man... I can't believe this is staring me right in the /face/. A pair of bugs in some older code which tries to calculate the chapter from the current 'cell' in the DVD is what seems to be preventing my sync method from working. I have fixed both bugs, and while I still need to validate with a full run of something full-length... it is working on small 3-4 chapter clips just fine. Best of all, it does appear to be frame-accurate.
Nah... the bugs are in dvd.c. Ironically, fixing them has /zero/ effect on the behavior of the program. Very subtle stuff too.jbrjake wrote:In HB code? Where? You're not talking about sync.c, are you?Cyander wrote:A pair of bugs in some older code which tries to calculate the chapter from the current 'cell' in the DVD is what seems to be preventing my sync method from working.
Wow, that was it. Changed the extension from .mp4 to .m4v and it works fine. Now that you mention it, I do somewhat remember reading that in the IRC channel at one point. Thanks!dynaflash wrote:As I recall, maurj (who wrote that feature) said you need to use the .m4v file extension for iTunes to recognize the chapter markers.
I have a build that does reliably let the user edit chapter marks (and the support for frame-accurate sync has improved from the diff I showed to the dev team). This will make it into HB, it is just a matter of timing, and that it is likely better for stability of 0.8.5b1 if it was submitted for b2.Neil wrote: User editable chapter names would be gravy. I'll be so excited when I rip my first DVDs with chapter marks and see those chapters on my iPod.
Well, the good news is that we now know how to make chapter tracks work for iTunes. It isn't a mystery anymore, which means other tools will be able to eventually incorporate the feature in the future.Hopefully, someday I'll be able to also add chapter marks to the mp4 files I created from my VHS tape captures. I know that's not an HB issue though.