View Full Version : Looking for tool to convert chapter formats
LeXXuz
25th July 2010, 23:15
I'm looking for a tool to convert chapterfiles with timestamps like OGG to simple frame numbers (according to fps value given by user).
Found a couple of tools but they only work the other way. Can somebody help me out here? :)
Mosu
26th July 2010, 19:54
perl -le '$fps = 24000/1001; while (<>) { next unless /=(\d+):(\d+):(\d+)[,\.](\d+)/; print int($fps * ($1 * 3600 + $2 * 60 + $3 + $4 / 1000)) }' filename.txt
Output for this example file:
CHAPTER01=00:00:00.000
CHAPTER01NAME=Chapter 01
CHAPTER02=00:00:15.000
CHAPTER02NAME=Chapter 02
CHAPTER03=00:12:34.567
CHAPTER03NAME=Chapter 03
CHAPTER04=00:20:00.000
CHAPTER04NAME=Chapter 04
CHAPTER05=01:02:03.040
CHAPTER05NAME=Chapter 05
would be:
0
359
18091
28771
89263
LeXXuz
27th July 2010, 08:56
Thanks a lot Mosu! :)
szabi
7th August 2010, 12:45
Hi
I have "celltimes.txt" saved by ifoedit.
I would like to use it to chapters for mkv but no luck.
It is unsupported format.
Are there any solution, to convert one chapter format to an other, especially to matroska suppported one?
Bye
szabi
shon3i
7th August 2010, 12:56
@LeXXuz do you checked my ChapterGen tool ? http://forum.doom9.org/showthread.php?t=150148 you can set anything for fps in cli mode. And you can use common fps from gui.
szabi
7th August 2010, 13:02
Celltimes.txt is unknown format. :(
EDIT: It is funny celltimes.txt can not be open due to aboved issue, but saving this format is possible.
In other worlds, unknown format can be saved. :cool:
Bye
szabi
shon3i
7th August 2010, 14:10
@szabi at link i posted is clearly written what input formats and what output formats are supported.
Supported input formats:
- .mpls (Blu-Ray playlists)
- .xpl (HD DVD playlists)
- .ifo (DVD playlists)
- OGG/Matroska File format
- Blu-Ray, HD DVD, DVD media with stream selector (GUI mode only)
Supported Output formats:
- OGG Text File
- x264 QP Text File
- HC Enc Text File
- CCE SP Text File
- Sonic Cinevision CSV File
- Sonic Scenarist CSV File
- Spuce DVD Maestro CHP File
- tsMuxer Meta File
- Timecodes Text File
- Celltimes Text File
- DVDAuthor Text File
celltimes is not that common format for input.
szabi
7th August 2010, 15:44
Most of the programs can save this format, but it is not common format for input.
I am little bit confused, saving a format which can not be used.
What is the use of?
It makes nosense. :devil:
shon3i
7th August 2010, 18:39
Most of the programs can save this formatWhat most is that? earlier DVD authoring used it, but nowdays is not common, celltimes is used in few encoders and dvd authoring, my tool is focused to new authoring tools for blu-ray.
szabi
8th August 2010, 07:09
Yeah, I know, I am outdated.:cool:
bye
szabi
Emp3r0r
28th August 2010, 21:01
There is also ChapterGrabber (http://jvance.com/pages/ChapterGrabber.xhtml)
http://forum.doom9.org/showthread.php?t=40343
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.