[MPlayer-dev-eng] [PATCH] Print chapter info with -identify
Adrian Stutz
adrian at sttz.ch
Sat Jun 27 19:57:12 CEST 2009
Hello,
Currently, the only way for a frontend to get MKV chapter information
is to turn up demux verbosity, which also makes the MKV demuxer print
a lot of other unrelated information. In case of the libavformat
demuxer, there's currently no chapter info output at all.
This patch updates demuxer_add_chapter to print all known chapter
information in a similar style to the video, audio and subtitle stream
messages.
A typical output for a single chapter then looks like:
ID_CHAPTER_ID=1
ID_CHAPTER_1_START=0
ID_CHAPTER_1_END=120996
ID_CHAPTER_1_NAME=Part A
* I've made the ID one-based to match the other uses of chapter
numbers in the OSD and the slave mode.
* Start and end are output in milliseconds, which I think is okay for
this purpose. They could also be rounded to a more readable dimension,
though.
Greetings
Adrian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: identify_print_chapters.patch
Type: text/x-diff
Size: 885 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20090627/a95e13d7/attachment.patch>
More information about the MPlayer-dev-eng
mailing list