Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#12 Handle Non-contiguous subtitle IDs

open
nobody
5
2010-07-10
2010-07-10
Urz
No

On some DVDs (in particular, ones in Japan) subtitle IDs are not assigned contiguously. For example the disc "ODORU_DAISOUSASEN_THE_MOVIE" has 2 sets of subtitles, Japanese and English, but their IDs are 1 and 3.

lsdvd output:
$ lsdvd /dev/sr1
libdvdread: Using libdvdcss version 1.2.10 for DVD access
Disc Title: ODORU_DAISOUSASEN_THE_MOVIE
Title: 01, Length: 02:00:28.186 Chapters: 48, Cells: 70, Audio streams: 03, Subpictures: 02

Title: 02, Length: 02:00:28.186 Chapters: 48, Cells: 70, Audio streams: 03, Subpictures: 02

Title: 03, Length: 00:24:52.000 Chapters: 05, Cells: 09, Audio streams: 01, Subpictures: 01

Title: 04, Length: 00:01:31.000 Chapters: 01, Cells: 01, Audio streams: 01, Subpictures: 00

Title: 05, Length: 00:00:31.043 Chapters: 15, Cells: 01, Audio streams: 03, Subpictures: 02

Title: 06, Length: 00:00:25.166 Chapters: 01, Cells: 01, Audio streams: 01, Subpictures: 01

Title: 07, Length: 00:00:20.166 Chapters: 01, Cells: 01, Audio streams: 01, Subpictures: 01

Title: 08, Length: 00:00:24.266 Chapters: 01, Cells: 01, Audio streams: 03, Subpictures: 02

Longest track: 01

Mplayer output:
$ mplayer dvd://1//dev/sr1
<snip>
audio stream: 0 format: ac3 (5.1) language: ja aid: 128.
audio stream: 1 format: ac3 (stereo) language: ja aid: 129.
audio stream: 2 format: ac3 (stereo) language: ja aid: 130.
number of audio channels on disk: 3.
subtitle ( sid ): 1 language: ja
subtitle ( sid ): 3 language: en
number of subtitles on disk: 2
MPEG-PS file format detected.
VIDEO: MPEG2 720x480 (aspect 3) 29.970 fps 9800.0 kbps (1225.0 kbyte/s)
<snip>

Simply selecting "English" in the menu on acidrip does not work, although specifying "-sid 3" as a misc option does.
I'm using acidrip 0.14-0.2ubuntu5 (according to dpkg).

Discussion