View Full Version : Import chapters into mp4


hhanh00
5th April 2005, 09:28
Does anyone know of a *standalone* tool that can mux a chapter info file (exported from an IFO file for instance) into a mp4 container? I know Nero Mp4 muxer can do that but it's not command line and one has to manually type in the chapter stops.

Thanks a bunch
--h

bond
5th April 2005, 18:15
nope it hasnt been reverse engineered till now :D

but it would be great if someone could do this ;)

the nero chapters are placed in the udta atom (user data), which can be used for placing private data in the .mp4

hhanh00
5th April 2005, 21:18
Strange ... MPC understands nero chapter stops so I figured it knew how to parse it. Maybe it's metadata returned by the mp4 splitter? The format of the atom looks rather simple though. I wonder why they have timestamps in 1/10 000 000 of a sec...

Thanks,
--h

bond
5th April 2005, 21:22
Originally posted by hhanh00
[B]Strange ... MPC understands nero chapter stops so I figured it knew how to parse it. if you use the nero parser together with the nero decoder it will work in any dshow player

Maybe it's metadata returned by the mp4 splitter? nope, the chapters are in udta

The format of the atom looks rather simple though. I wonder why they have timestamps in 1/10 000 000 of a sec...maybe because the timescale is set in a way this is necessary? sorry dunny :/

hhanh00
6th April 2005, 02:14
Thanks, bond.

Here's a tool for adding chapters to an mp4 file. Please read the documentation before using it.

IT MODIFIES YOUR FILE IN PLACE WITHOUT MAKING A BACKUP.

JoeBG
6th April 2005, 05:47
Originally posted by hhanh00
Thanks, bond.

Here's a tool for adding chapters to an mp4 file. Please read the documentation before using it.

IT MODIFIES YOUR FILE IN PLACE WITHOUT MAKING A BACKUP.

Where is it? Canīt see it :confused:

yaz
6th April 2005, 09:12
@hhanh00
where is 'here' ? pls !
thx
y

hhanh00
6th April 2005, 09:27
A moderator has to approve the upload...

bond
6th April 2005, 17:18
hhanh00, wow you are quick! :)
cant wait to test it

btw would it be possible for you to also post the sources (and eg release it under gnu public license), so other mp4 tool devs can incorportate this into their tools too?

JoeBG
6th April 2005, 17:50
Which tools creates the needed Chapter file for your tool? It seems to be really great. Makes things much more easy. Can I create it with Chapter Extraktor?

SeeMoreDigital
6th April 2005, 18:03
Somebody make a GUI please?


Cheers

hhanh00
6th April 2005, 18:27
I have attached the source code. There is a big caveat with this tool: the moov atom has to be the last one in the mp4 file. It's quite difficult to make it work with any file because the chapter information goes into the moov atom. By inserting anything in it, you change the offsets of the data that follows it. Unless, you also update a lot of other entries (sample offsets and such), you end up with a corrupted file.

Changing a gpac or mpeg4ip is a more reasonable choice. It has all the infrastructure to deal with mpeg4 atoms. I wonder how they are confortable with modifications to their code though.

--h

JoeBG
6th April 2005, 18:33
Originally posted by JoeBG
Which tools creates the needed Chapter file for your tool?

I sitting here and really want to test it. But please tell me the tool for creating the chapterfile.

hhanh00
6th April 2005, 18:36
I use scenchap.

bond
6th April 2005, 18:51
Originally posted by hhanh00
There is a big caveat with this tool: the moov atom has to be the last one in the mp4 file. It's quite difficult to make it work with any file because the chapter information goes into the moov atom. By inserting anything in it, you change the offsets of the data that follows it. Unless, you also update a lot of other entries (sample offsets and such), you end up with a corrupted file.hum, ok good to know, so your tool is not useable on any file

still its good to have a first step of reverseengineering this :)

Changing a gpac or mpeg4ip is a more reasonable choice. It has all the infrastructure to deal with mpeg4 atoms. I wonder how they are confortable with modifications to their code though.i am sure they have absolutely nothing against batches or hints how they could add this :)

hhanh00
6th April 2005, 23:33
I've made a patch to mp4box (gpac-0.2.4rc4) to support adding chapters.

For instance, if you want to mux a video file (video.avi) and a mp4 file audio file (audio.mp4) with chapter points coming from (movie.chp) into a final movie.mp4 file, run
$ mp4box -add audio.mp4 -add video.avi -chpl movie.chp movie.mp4

The zip file contains a release executable compiled with MSVC and the diff file of the changes.

The chapter stops are compensated for the drop frame, i.e. they appear 0.1% later than what's indicated in the chp file.

It's too big to upload here (~0.5 MB), where can I put it?

Thanks,
--h

bond
6th April 2005, 23:38
wow great stuff

you might want to submit your code to the gpac project so that jeanlf can add it to the official mp4box cvs and therefore all compiles will offer that functionality too

you can for example submit patches to the gpac project via the sourceforge interface here (http://sourceforge.net/tracker/?atid=571740&group_id=84101&func=browse) or contact jeanlf directly

i am sure he would be happy about it :)

hhanh00
6th April 2005, 23:49
Cool. I've uploaded the diff over there.

bond
7th April 2005, 17:25
great!

JoeBG
7th April 2005, 20:00
Originally posted by hhanh00
I use scenchap.

And I tried to use it too. Am I right when I load the IFO (by typing the whole path) and create a new chapter.chp with copy and past with an editor like notepad? This is nearly the same work like typing the chapters into the Nero Direct Show muxer. There is really no progress.

It would be a progress if itīs possible to import chapterfiles from more comfortable tools like Chapter Extractor (Maestro and many other chapterfile formats) or directly the chapterfile from Decrypter (OGG chapterfile).

@ bond

Itīs really great, but not with scenechap :(

hhanh00
7th April 2005, 20:13
I suppose you can use ChapterXtractor if you want. The chapter format is simply
HH:MM:SS;FF/30

SeeMoreDigital
7th April 2005, 20:48
Yes....

There just seems to be so many ways of logging chapters. Here are DVDdecrypters options: -CCE: -

chapter=0:
chapter=6508:
chapter=11114:
chapter=14496:
chapter=18831:
-------------------------------------------------------------------------------------------
DVDLab: -

00:00:00:000
00:04:20:000
00:07:24:000
00:09:39:000
00:12:33:000
-------------------------------------------------------------------------------------------
IfoEdit: -

6508
11114
14496
18831
22315
-------------------------------------------------------------------------------------------
LBA: -

CHAPTER_01:VTS_02_1 - 0xE0 - Video - MPEG-2 - 720x576 (PAL) - 16~9 - Letterboxed.M2V:0
CHAPTER_02:VTS_02_1 - 0xE0 - Video - MPEG-2 - 720x576 (PAL) - 16~9 - Letterboxed.M2V:79291
CHAPTER_03:VTS_02_1 - 0xE0 - Video - MPEG-2 - 720x576 (PAL) - 16~9 - Letterboxed.M2V:123554
CHAPTER_04:VTS_02_1 - 0xE0 - Video - MPEG-2 - 720x576 (PAL) - 16~9 - Letterboxed.M2V:161018
CHAPTER_05:VTS_02_1 - 0xE0 - Video - MPEG-2 - 720x576 (PAL) - 16~9 - Letterboxed.M2V:206059
-------------------------------------------------------------------------------------------
OGG: -

CHAPTER01=00:00:00.000
CHAPTER01NAME=Chapter 1
CHAPTER02=00:04:20.320
CHAPTER02NAME=Chapter 2
CHAPTER03=00:07:24.560
CHAPTER03NAME=Chapter 3
CHAPTER04=00:09:39.840
CHAPTER04NAME=Chapter 4
CHAPTER05=00:12:33.240
CHAPTER05NAME=Chapter 5
-------------------------------------------------------------------------------------------
Scenarist: -

00:00:00;00
00:04:20;08
00:07:24;14
00:09:39;21
00:12:33;06
-------------------------------------------------------------------------------------------
DVDMaestro: -

$Spruce_IFrame_List

00:00:00:00
00:04:20:08
00:07:24:14
00:09:39:21
00:12:33:06
-------------------------------------------------------------------------------------------
BSPlayer: -

[CHAPTERS]
1=0 Chapter 1
2=6508 Chapter 2
3=11114 Chapter 3
4=14496 Chapter 4
5=18831 Chapter 5What a shame DVD's were never designed to display the names of the chapters too. Can be done for chapters within the MP4 container?


Cheers

hhanh00
7th April 2005, 21:08
The chapter names are stored inside the mp4 file. It's probably what's displayed by the player. Nero stores 'Chapter n'.

SeeMoreDigital
7th April 2005, 21:11
Are you able to experiment and report back?


Cheers

LigH
7th April 2005, 21:23
Originally posted by hhanh00
I've made a patch to mp4box (gpac-0.2.4rc4) to support adding chapters.
katjarella reports that this patch is obviously not working in GPAC dev build 0.2.5 by celtic-druid?!
Option -chpl unknown. Please check usage
If the code is indeed already included, maybe just the command line parsing was not updated...

hhanh00
7th April 2005, 21:29
I've just sent them the patch. I don't think they have included it yet.

hhanh00
7th April 2005, 21:31
chapter names are indeed supported.

opsis81
7th April 2005, 23:46
@ hhanh00
Well done hhanh00:)
You could upload your patched mp4box build in http://www.yousendit.com
or http://rapidshare.de/en/webhosting.html until they include it.

bond
8th April 2005, 10:05
Originally posted by opsis81
You could upload your patched mp4box build in http://www.yousendit.com
or http://rapidshare.de/en/webhosting.html until they include it. [/B]slow guys slow

jeanlf now added chaptersupport to mp4box, but he changed hhanh00's code a little bit

so a plain cvs mp4box compile would be the best way to go atm (maybe someone wants to send celtic_druid a pm), but beaware that this option is not tested at all, so only use it for testing atm!

JoeBG
8th April 2005, 15:46
Originally posted by hhanh00
I suppose you can use ChapterXtractor if you want. The chapter format is simply
HH:MM:SS;FF/30

30 is fps? This means for Europe 25?

Okay I createt a new preset in Chapter Extractor with:

00:00:00;00/25
00:01:21;80/25

Does this file work as Chapter.chp or as chapter.txt?

bond
8th April 2005, 16:06
mp4box should support the following input formats according to the changelog:

currently support for (one chapter entry per line):
ZoomPlayer syntax: AddChapter (-fps for import framerate selection), AddChapterBySecond and AddChapterByTime
Regular time code … la SRT: HH:MM:SS[:ms or .ms] [Chapter Name]
SMPTE time code: HH:MM:SS;fr/fps [Chapter Name] - if fps is omitted, use '-fps' if specified or 25 fps default.and the so called "ogg format":added support for new chaper format: CHAPTERX=HH:MM:SS[:ms or .ms] and CHAPTERXNAME=string

JoeBG
8th April 2005, 16:32
Originally posted by bond
mp4box should support the following input formats according to the changelog:
SMPTE time code: HH:MM:SS;fr/fps [Chapter Name]


What means fr? number of frames in the chapter?

Edit: Itīs cc in frames.

So the only thing what is left for me is, if it should be *.chp file or *.txt or whatever?

Doom9
8th April 2005, 17:28
timecodes can either be specified with 1/100 of seconds, or with frames. Many formats use frames because it's always accurate and more obvious than writing out 17/23.976..

JoeBG
8th April 2005, 18:22
Originally posted by Doom9
timecodes can either be specified with 1/100 of seconds, or with frames. Many formats use frames because it's always accurate and more obvious than writing out 17/23.976..

Thanks for this information. I programmed Chapter Extractor to output the followind *.txt file:

00:00:00;00/25 Chapter 1
00:04:08;04/25 Chapter 2
00:09:17;01/25 Chapter 3
00:11:39;00/25 Chapter 4
00:14:31;08/25 Chapter 5
00:15:58;02/25 Chapter 6
00:22:10;02/25 Chapter 7
00:28:12;00/25 Chapter 8

Can I import this as txt or chp?

SeeMoreDigital
8th April 2005, 18:48
Or, I guess it could be expressed like this: - hh:mm:ss:fr
00:07:24:14 Chapter 3

Whereby, 14 would represent the 14th frame out of 25 for a PAL encode
Cheers

bond
8th April 2005, 19:10
guys why not simply use the good old ogg chapter format ;)

SeeMoreDigital
8th April 2005, 19:28
Originally posted by bond
guys why not simply use the good old ogg chapter format ;) According to DVDdecrypter, the OGG chapter format is presented like this: -CHAPTER03=00:07:24.560
CHAPTER03NAME=Chapter 3Is this what you mean?


Cheers

bond
9th April 2005, 08:16
Originally posted by SeeMoreDigital
Is this what you mean?sure :)

SeeMoreDigital
9th April 2005, 08:49
Originally posted by bond
sure :) It looks like the OGG method also supports chapter naming... Such as this: -CHAPTER03=00:07:24.560
CHAPTER03NAME=Street Scene... So I'm in!


Cheers

opsis81
10th April 2005, 23:37
http://4nykey.nm.ru/misc/gpac.7z

Latest mp4box build,compiled in 10-Apr-2005,supports nero chapters with -chap command and accepts the ogg chapter format.

pogo stick
11th April 2005, 09:59
Working great! Big Thanks to Hhanh and Jeanlf! And AK (4nykey) for compiling! :)

SeeMoreDigital
11th April 2005, 10:21
The link is dead for me :(


Cheers

bond
11th April 2005, 15:06
Originally posted by opsis81
http://4nykey.nm.ru/misc/gpac.7z

Latest mp4box build,compiled in 10-Apr-2005,supports nero chapters with -chap command and accepts the ogg chapter format. seems to work great for me (both link and mp4box)
no problem here handling chapters as created by mp4box with tools understanding the chapters i tested (a preview of 3ivx, the tool from the avc beta testing...) didnt test nero's stuff, but i assume it handles it too :D

btw the "srt format" jeanlf talks about in the changelog has to look like this:

00:00:00.000 Some Chaptername for Chapter 1
00:00:00.880 Some Chaptername for Chapter 2
00:00:02.400 Some Chaptername for Chapter 3
00:00:06.720 Some Chaptername for Chapter 4
00:00:08.840 Some Chaptername for Chapter 5it seems mp4box also sets the milliseconds correctly (unlike the nero dshow mp4 parser, which doesnt allow setting milliseconds)

Elias
11th April 2005, 15:43
Is this chapter method MPEG-4 ISO/IEC compliant? I don't want to use chapters if they're non-compliant like Nero's chapters.

Doom9
11th April 2005, 15:50
Is this chapter method MPEG-4 ISO/IEC compliant?From the first line in the readme written by the original author of the patch:
Mp4Chap adds Nero style chapter points to an existing Mp4 file

SeeMoreDigital
11th April 2005, 15:59
This is great news...

Now if we had an MP4 muxing GUI built along the same lines as mpucoder's excellent Muxman (http://forum.doom9.org/showthread.php?s=&threadid=92122), our lives would be a whole lot simpler...


Cheers

bond
11th April 2005, 16:20
Originally posted by Elias
Is this chapter method MPEG-4 ISO/IEC compliant? I don't want to use chapters if they're non-compliant like Nero's chapters. first of all noone really knows whether there exist explicit specs for something like chapters in any of the mpeg standards :D

it might be that mpeg-7 covers something like this, but i am not sure. mpeg-4 doesnt explicitely handle this (implicitely it can be done via systems (eg via a menu) but there is still the old issue of not wide enough support for systems)

apart from that the nero-style chapters dont break the mpeg-4 standard as they are placed in the userdata atom (udta) which the mpeg-4 standard specifies for storage of private data
other examples of the useage of this udta atom are itunes' tags and coverart
so any player not handling the content in the udta atom will simply ignore it, therefore its save to use these chapters

Doom9
11th April 2005, 16:20
@smd: that would mean plugging into the library mp4box uses to mux (if there's one at all).. I could imagine that to be quite a bit of work. You're always quick to ask for graphical tools.. have you considered learning a programming language?

SeeMoreDigital
11th April 2005, 16:59
Hi Doom9,

I wish I had the patience (and higher intelligence) to learn how to program... I don't mind designing GUI's though.


Cheers

Doom9
11th April 2005, 17:04
you can design a GUI in the GUI designer of an IDE.. then it's not a big deal to turn that into a GUI. It's only when you start to have to suck stuff out of your finger (as in progress bars) when it gets a bit trickier.

JoeBG
11th April 2005, 17:22
@ bond

Canīt test in the moment so please excuse the following question - but it also might help other people: Do I always need a *.txt file? Or do you mean it has to be *.srt file when using srt format and is has to be a *chp file when using scenrist format which looks like this:

00:00:00;00/25 Chapter 1
00:04:08;04/25 Chapter 2
00:09:17;01/25 Chapter 3

bond
11th April 2005, 17:52
joe, i tested the ogg and srt format both with the .txt extension and it worked fine

i doubt using .srt is a good idea as it will make mp4box assume that the file should contain subs i assume

Elias
11th April 2005, 17:58
If MPEG-4 doesn't have its own chapter system, why is everyone requesting Nero Digital to add spec compliant chapters in Recode?

bond
11th April 2005, 18:09
Originally posted by Elias
If MPEG-4 doesn't have its own chapter system, why is everyone requesting Nero Digital to add spec compliant chapters in Recode? dunno, i dont do that :D
i only said that neros chapters are private stuff, so i heavily doubt that we will ever see very wide support for them in mp4 tools, like quicktime or sony's psp

Doom9
11th April 2005, 18:11
If MPEG-4 doesn't have its own chapter system, why is everyone requesting Nero Digital to add spec compliant chapters in Recode?Because specs compliant sounds sexy no matter if it's doable or not? Makes you wonder about those people who request things that may not even exist, doesn't it?

Doom9
11th April 2005, 18:12
like quicktime or sony's pspSpeaking of those, it might be interesting to look at what's on an UMD disc. And how QT does chapters.

bond
11th April 2005, 18:14
Originally posted by Doom9
And how QT does chaptersqt uses chapter tracks in mov afaik, which are definitely not part of a mpeg standard

Elias
11th April 2005, 18:17
Originally posted by Doom9
Because specs compliant sounds sexy no matter if it's doable or not? Makes you wonder about those people who request things that may not even exist, doesn't it? I don't know man, I just saw a bunch of people requesting spec compliant chapters in Nero Digital to JohnV when he made that Nero Digital Wishlist thread... I just thought that it existed something like that after it.

bond
11th April 2005, 18:32
well there exists something which maybe could be used for chapters too in mpeg-4: segmentdescriptors (which are used in mp4menu for example), but i am not sure about it as i think they are more related to systems

anyways following specs (if they exist ;) ) is indeed better than inventing the wheel again imho, as private stuff imho only weakens the interoperability
eg apple created its own tagging format for mp4, altough there exists one in mpeg-7. now people create lots of aac mp4 files with that tagging, but does anyone really think that sony will support the tags on the psp (especially as the specs are not publically available)?
bingo :D

Elias
11th April 2005, 18:37
Originally posted by bond
anyways following specs (if they exist ;) ) is indeed better than inventing the wheel again imho, as private stuff imho only weakens the interoperabilityExactly! That's why I'm so super-anal with always following the specs as much as possible :D

hhanh00
11th April 2005, 20:31
to JoeBG: The file is parsed, so the extension doesn't matter
to SMD: I'm curious... What would you need the GUI for?

Thanks,
--h

SeeMoreDigital
11th April 2005, 20:45
Originally posted by hhanh00
SMD: I'm curious... What would you need the GUI for?

Thanks,
--h My line of thinking was to have a tool that could provide chapter support as part of an muxing tool. Something along these lines: -

http://img82.echo.cx/img82/2193/muxmanexample1nt.png


Cheers

hhanh00
11th April 2005, 20:58
I see. Hopefully, it will be part of MP4BoxGUI soon.

Elias
11th April 2005, 21:48
But Doom9 has a very valid point here. UMD might handle chapters the MPEG-4 spec compliant way, but I'm not sure on this one because I don't know if UMD uses the mp4 container. Has any UMD movies been released yet? If so, is there a good way to browse what the movies are encoded with? Either way, I bet that QT7 will handle chapters (if it's included) the MPEG-4 spec compliant way. Because QT6 can already make chapters (don't know if it's compliant though), and Apple said that QT7 will be "complete MPEG-4 compliance." So, I guess we'll have to wait and see.

giandrea
12th April 2005, 00:26
I am pretty sure that UMD disks use the PMF format, a semi-proprietary format of Sony. You can find more info in this forum (http://www.pspvideo9.com/forums/viewforum.php?f=6).
Long story short, the PMF is MPEG-PS with a slichtly modified header. It is almost readable by MPlayer and other software. It has MPEG-4 AVC video and ATRAC3 audio.

So, no MP4, ah, and the UMD disks are encrypted. :rolleyes:

Elias
12th April 2005, 09:09
Guess we'll have to put all our hope on QT7 then. Man, it feels weird to have Apple as our life saviour for MPEG-4 chapters :D

Doom9
12th April 2005, 09:43
well.. considering that Apple is using MOV chapters.. I wouldn't get my hopes up. For now, Nero chapters seem the most promising route. And for all we know there's no chapters in MPEG-4 (seeing that it has been around for quite a while already, I think it's reasonable to make the negative assumption until proven otherwise).

SeeMoreDigital
12th April 2005, 11:07
Thankfully Nero's chapters appear to function well in software players such as ShowTime and MediaPlayer Classic. They also seem to work well in hardware players, such as the Siemssen SCO 5000 ND and RJTech RJ-1500DVX.

Nero's chapter system has been available for well over a year. Long enough for others to have developed a competing method... I wonder why nobody else has bothered to?


Cheers

Elias
12th April 2005, 11:12
Originally posted by SeeMoreDigital
Thankfully Nero's chapters appear to function well in software players such as ShowTime and MediaPlayer Classic. They also seem to work well in hardware players, such as the Siemssen SCO 5000 ND and RJTech RJ-1500DVX.

Nero's chapter system has been available for well over a year. Long enough for others to have developed a competing method... I wonder why nobody else has bothered to?


Cheers Aren't those standalones Nero Digital certified, meaning that Nero chapters should work? My guess is that the Nero Digital way will be standard for chapters... unless Apple comes up with a better way for that in QT7.

SeeMoreDigital
12th April 2005, 11:58
Originally posted by Elias
Aren't those standalones Nero Digital certified, meaning that Nero chapters should work? My guess is that the Nero Digital way will be standard for chapters... unless Apple comes up with a better way for that in QT7. Yes... but interestingly the RJTech (with ESS Vibratto II chip-set) player started it's life as a non NeroDigital Certified device (I'm not even sure if it supported AAC streams). So it's useful to know that NeroDigital certification may be possible on other ESS Vibratto II chip-set based players.


Originally posted by JoeBG
A gui like muxman for mp4 would be the greatest. You would be hero Indeed... Maybe somebody could sweet talk mpucoder into donating his GUI for use with an MP4 muxing tool... Even if all the options can't be made to work straight away, it's a darn good template :)


Cheers

Doom9
12th April 2005, 12:14
unless Apple comes up with a better way for that in QT7.Apple has their own means to do chaptering.. so unless you have any credible indication that this is going to change please do not waste any more bandwidth on this futile notion. Your energy would be better spent researching the MPEG-4 system specs to get a definitive answer whether there is an ISO standardized means of chaptering. I'm sure I'm not the only one looking forward to hearing the results of your research.

Elias
12th April 2005, 12:22
Originally posted by Doom9
Apple has their own means to do chaptering.. so unless you have any credible indication that this is going to change please do not waste any more bandwidth on this futile notion. Your energy would be better spent researching the MPEG-4 system specs to get a definitive answer whether there is an ISO standardized means of chaptering. I'm sure I'm not the only one looking forward to hearing the results of your research. Well then, I guess I pissed you off. Please note that I said "unless," which indicates that I was far from sure about this.

bond
12th April 2005, 17:23
about umd: as these discs are totally different from dvd and cd i doubt there will be any way to get the movie files out of them and to your hd
therefore its also pretty irrelevent what format (video, container, chapters or whatever) sony uses on these discs as only sony's tools will handle them anyways

maybe the perfect protection mechanism to avoid getting the files spread on p2p networks :D

Elias
12th April 2005, 17:29
Originally posted by bond
about umd: as these discs are totally different from dvd and cd i doubt there will be any way to get the movie files out of them and to your hd
therefore its also pretty irrelevent what format (video, container, chapters or whatever) sony uses on these discs as only sony's tools will handle them anyways

maybe the perfect protection mechanism to avoid getting the files spread on p2p networks :D You got a point. However, if they can get cartridges like Game Boy Advance to the harddrive, why not UMD? I wouldn't be surprised if some 1337 h4ckz0r found out a way to do this. But hey, we're getting into piracy topics now, and last I checked that was like clearly illegal to talk about here :D

hhanh00
12th April 2005, 18:24
About the GUI, I was thinking about adding the option of working with mp4 files to VirtualDub by merging some code from mp4box. It obviously won't be easy. I did some search on the forums and no one seems to have considered that. That leaves me a little queasy. Is it in fact *impossible*?
To be honest, I don't know much about the mp4 and avi containers and I'd rather learn more before undergoing that task. :P

Thanks,
--h

There is actually some discussion about that in the VirtualDub forum. It didn't get beyond a wishlist unfortunately.

Doom9
12th April 2005, 18:51
About the GUI, I was thinking about adding the option of working with mp4 files to VirtualDub by merging some code from mp4box. It obviously won't be easy.I guess you shouldn't have said that out loud.. now it won't take long and you have a bunch of people "volunteering" for testing even though they just care to get their stuff done.. sorta like the doves in "Finding Nemo" screaming "me, me".

One of the things still missing from mp4box is a means to give a stream a language.. once that's all in mp4box, it shouldn't be too hard making a gui for it.. I'm currently considering switching to mp4box in MeGUI and to support multiple languages.. and for testing purposes, having the muxer exposed like it currently is in the settings would make sense.. and from that it's not a far cry to add subs and chapters as well.

Elias
12th April 2005, 19:07
Originally posted by Doom9
One of the things still missing from mp4box is a means to give a stream a language.. once that's all in mp4box, it shouldn't be too hard making a gui for it.. I'm currently considering switching to mp4box in MeGUI and to support multiple languages.. and for testing purposes, having the muxer exposed like it currently is in the settings would make sense.. and from that it's not a far cry to add subs and chapters as well. Don't forget the option to tag in the component field. That's like the only thing I need Dumpster for. However, it's far from userfriendly with Dumpster. Would be great if MP4Box could add support for this. By the way hhanh00, good idea. I don't think it's impossible at all and that you should give it a shot.

giandrea
12th April 2005, 19:17
Originally posted by bond
therefore its also pretty irrelevent what format (video, container, chapters or whatever) sony uses on these discs as only sony's tools will handle them anyways
That's not true at all. If you had read the thread I mentioned before, you would know that it is possible to play PMF files from Memory Stick, because someone was showing this at an event in Korea, we even have the files. :)
PMF files is the only way to play full resolution on PSP, and the only way to use H264 on PSP as well; so finding the way to play those files from the Memory Stick (noone succeeded in this as of now), and finding the way to encode those files (this should be easier, apart from the ATRAC3 audio), would be a big gain for the community.
Anyway we could always hope for H264 in MP4 support in the next firmware release of the PSP, that would be much easier. ;)
Originally posted by Doom9
I guess you shouldn't have said that out loud.. now it won't take long and you have a bunch of people "volunteering" for testing even though they just care to get their stuff done.. sorta like the doves in "Finding Nemo" screaming "me, me".
eheheh, typical! ;) ;)

bond
12th April 2005, 22:56
Originally posted by hhanh00
About the GUI, I was thinking about adding the option of working with mp4 files to VirtualDub by merging some code from mp4box. It obviously won't be easy. I did some search on the forums and no one seems to have considered that. That leaves me a little queasy. Is it in fact *impossible*?
To be honest, I don't know much about the mp4 and avi containers and I'd rather learn more before undergoing that task. well i hope this becomes more than a plan, count on me if you need someone for testing ;)

and no, its surely not impossible. whats impossible is variable framerate support in virtualdub (as vfw doesnt handle that), but the same goes for matroska and matroska is supported in vdm already, as hardly anyone uses vfr anyways

Originally posted by giandrea
That's not true at all. If you had read the thread I mentioned before, you would know that it is possible to play PMF files from Memory Stick, because someone was showing this at an event in Korea, we even have the files.my point was that we dont get the files from the umd or on the umd (unless sony releases a umd burner for joe average). whether umd uses .pmf, .mp4 or .wtf for umd, its irrelevant for me if i cant create nor extract/edit that umd data
regarding the memory stick: if the psp can play normal resolution mpeg-4 streams from the pmf format but not from mp4, it speaks for sonys evilness itself...

hhanh00
13th April 2005, 02:34
Ok. Thanks for the replies. Let's see how it goes. :)

--h

JoeBG
13th April 2005, 09:37
Originally posted by hhanh00
Ok. Thanks for the replies. Let's see how it goes. :)

--h

Be sure to get every support you need.

planet1
13th April 2005, 16:04
I guess nero doesnt follow the chapter implementation by the "mpeg-4 book" but this might be of use anyway:

13/04/2005 [MP4] Added nero chapters support.

http://haali.cs.msu.ru/mkv/

bond
13th April 2005, 18:31
great stuff :)

JoeBG
15th April 2005, 10:19
Originally posted by hhanh00
Ok. Thanks for the replies. Let's see how it goes. :)

--h

How does it go? ;)

xmltok
23rd April 2005, 18:33
What are my options to export chapters from an IFO on Linux?

KpeX
23rd April 2005, 19:08
Originally posted by xmltok
What are my options to export chapters from an IFO on Linux? lsdvd (and most other libdvdread-based utilities) can do it, whether it's in the format you want is another question ;). I usually either manipulate the lsdvd output using bash or emulate chapter-x-tractor with wine.

xmltok
23rd April 2005, 19:22
Originally posted by KpeX
lsdvd (and most other libdvdread-based utilities) can do it, whether it's in the format you want is another question ;). I usually either manipulate the lsdvd output using bash or emulate chapter-x-tractor with wine.

I was just trying to use dvdxchap but it seems like libdvdread will only work with a device and not a directory. I'll try the others you suggested.

xmltok
23rd April 2005, 19:24
Success! lsdvd does exactly what I needed. Thank you very much.

And incase anyone else is using lsdvd and wants to make create chapters for their mp4. It seems like QT7 ignores these though :(

#!/usr/bin/perl
#this thing requires Time::Format from CPAN and lsdvd from http://untrepid.com/acidrip/lsdvd.html
use Time::Format;

die "Usage: $0 <chapter>" if !($chp = $ARGV[0]);
{
$foo = `lsdvd -p -c -t $chp .`;
eval ($foo);
$rtime=0;
print "00:00:00.000 Chapter 1\n";
foreach (@{$lsdvd{track}[0]{chapter}}) {
my %chapter = %$_;
$rtime += $chapter{length};
$ix = $chapter{ix}+1;
print "$time{'hh:mm:ss.mmm', $rtime+28800} Chapter $ix\n";
}
}