[MPlayer-dev-eng] Improve bluray chapter support
Olivier Rolland
billl at users.sourceforge.net
Wed Apr 24 19:18:03 CEST 2013
Hello,
Here are some patches to improve chapter support for bluray.
The 2 following patches fix issues in the current code.
0001-Fix-chapter-selection.patch: According to the documentation,
-bluray-chapter indicates the chapter to start playing from, the
default being 1. However, manually specifying -bluray-chapter 1 starts
playing from chapter 2 (-bluray-chapter 0 starts playing from chapter
1). Moreover, specifying a chapter number greater than or equal to the
number of chapters starts playing at position -1 because the chapter
number is not clamped correctly. This patch fixes all that.
0002-Fix-current-chapter.patch: The current chapter is always the
start chapter. With this patch, it is indeed the chapter currently
playing.
The 3 following patches add support for a chapter to stop playing at.
For that, it is necessary to make stream_bluray.c use the same
variables for chapters as stream_dvd.c, namely dvd_chapter and
dvd_last_chapter. It then has to use the same function to parse
chapter ranges.
0003-Extract-chapter-parsing.patch: This patch moves the chapter
parsing function from stream_dvd.c/h to stream.c/h.
0004-Add-last-chapter-support.patch: This patch replaces bluray
specific chapter variables with dvd variables, makes use of the same
command line option for dvd and bluray chapter selection, keeps the
bluray specific command line option for compatibility sake and adds
full support for end chapter of bluray. It also updates the man page.
0005-Remove-bluray-chapter.patch: This patch removes the bluray
specific command line option for chapter selection from the code and
the man page.
Please, review and comment.
Olivier
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-chapter-selection.patch
Type: application/octet-stream
Size: 1041 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20130424/29168984/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Fix-current-chapter.patch
Type: application/octet-stream
Size: 1168 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20130424/29168984/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-Extract-chapter-parsing.patch
Type: application/octet-stream
Size: 5041 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20130424/29168984/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-Add-last-chapter-support.patch
Type: application/octet-stream
Size: 4978 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20130424/29168984/attachment-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-Remove-bluray-chapter.patch
Type: application/octet-stream
Size: 1124 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20130424/29168984/attachment-0004.obj>
More information about the MPlayer-dev-eng
mailing list