Page 1 of 1

Better subtitle search

Posted: 13 Apr 2016, 00:33
by viking
I often get poor subtitles that are out of sync, even though they are hash matched.
For example, doing a search using dev:osdb.explain I found 3 subtitles:

Code: Select all

File: P:\Ultimate_Server\Television\Quantico\Season 1\Quantico.S01E17.PROPER.720p.HDTV.x264-BATV[rarbg].mkv
Hash/Tag Lookup (hash: 1ed67c43e4a3b09f, size: 992272721, lang: eng, tag: Quantico.S01E17.PROPER.720p.HDTV.x264-BATV[rarbg])
Result 1: [IDSubtitle:6587154, IDSubtitleFile:1955167627, IDSubMovieFile:13895851, IDMovie:388204, IDMovieImdb:5109844, SubFileName:Quantico.S01E17.HDTV.x264-FLEET.srt, SubLastTS:00:41:37, SubFormat:srt, SubEncoding:UTF-8, SubHash:bfcd177ea27e9fc4f792e6d34a2ea4fa, SubSize:75315, MovieHash:1ed67c43e4a3b09f, MovieByteSize:992272721, MovieName:"Quantico" Care, MovieNameEng:, MovieYear:2016, MovieReleaseName:Quantico.S01E17.HDTV.x264-FLEET, MovieTimeMS:0, MovieFPS:23.976, MovieImdbRating:0.0, MovieKind:episode, SeriesSeason:1, SeriesEpisode:17, SeriesIMDBParent:4428122, SubLanguageID:eng, ISO639:en, LanguageName:English, UserID:1566989, UserRank:administrator, UserNickName:GoldenBeard, SubAddDate:2016-04-11 12:16:16, SubAuthorComment:, SubFeatured:0, SubComments:0, SubDownloadsCnt:4833, SubHearingImpaired:1, SubRating:0.0, SubHD:1, SubBad:0, SubActualCD:1, SubSumCD:1, MatchedBy:moviehash, SubtitlesLink:http://www.opensubtitles.org/en/subtitles/6587154/sid-phtl8dg7qd2aqp5crk1b44p3d7/quantico-care-en, SubDownloadLink:http://dl.opensubtitles.org/en/download/file/src-api/vrf-19c60c5a/sid-phtl8dg7qd2aqp5crk1b44p3d7/1955167627.gz, ZipDownloadLink:http://dl.opensubtitles.org/en/download/sub/src-api/vrf-f5660bbd/sid-phtl8dg7qd2aqp5crk1b44p3d7/6587154]
Best Hash Match: [IDSubtitle:6587154, IDSubtitleFile:1955167627, IDSubMovieFile:13895851, IDMovie:388204, IDMovieImdb:5109844, SubFileName:Quantico.S01E17.HDTV.x264-FLEET.srt, SubLastTS:00:41:37, SubFormat:srt, SubEncoding:UTF-8, SubHash:bfcd177ea27e9fc4f792e6d34a2ea4fa, SubSize:75315, MovieHash:1ed67c43e4a3b09f, MovieByteSize:992272721, MovieName:"Quantico" Care, MovieNameEng:, MovieYear:2016, MovieReleaseName:Quantico.S01E17.HDTV.x264-FLEET, MovieTimeMS:0, MovieFPS:23.976, MovieImdbRating:0.0, MovieKind:episode, SeriesSeason:1, SeriesEpisode:17, SeriesIMDBParent:4428122, SubLanguageID:eng, ISO639:en, LanguageName:English, UserID:1566989, UserRank:administrator, UserNickName:GoldenBeard, SubAddDate:2016-04-11 12:16:16, SubAuthorComment:, SubFeatured:0, SubComments:0, SubDownloadsCnt:4833, SubHearingImpaired:1, SubRating:0.0, SubHD:1, SubBad:0, SubActualCD:1, SubSumCD:1, MatchedBy:moviehash, SubtitlesLink:http://www.opensubtitles.org/en/subtitles/6587154/sid-phtl8dg7qd2aqp5crk1b44p3d7/quantico-care-en, SubDownloadLink:http://dl.opensubtitles.org/en/download/file/src-api/vrf-19c60c5a/sid-phtl8dg7qd2aqp5crk1b44p3d7/1955167627.gz, ZipDownloadLink:http://dl.opensubtitles.org/en/download/sub/src-api/vrf-f5660bbd/sid-phtl8dg7qd2aqp5crk1b44p3d7/6587154]
Name Lookup (file: Quantico.S01E17.PROPER.720p.HDTV.x264-BATV[rarbg], strict: false, lang: eng)
Result 1: [IDSubtitle:6587467, IDSubtitleFile:1955167943, IDSubMovieFile:0, IDMovie:388204, IDMovieImdb:5109844, SubFileName:Quantico.S01E17.PROPER.HDTV.x264-BATV.srt, SubLastTS:00:42:17, SubFormat:srt, SubEncoding:UTF-8, SubHash:9afb732f0a93d27de4677fb3fecf2c7a, SubSize:75318, MovieHash:0, MovieByteSize:0, MovieName:"Quantico" Care, MovieNameEng:, MovieYear:2016, MovieReleaseName:Quantico.S01E17.PROPER.HDTV.x264-BATV, MovieTimeMS:0, MovieFPS:23.976, MovieImdbRating:0.0, MovieKind:episode, SeriesSeason:1, SeriesEpisode:17, SeriesIMDBParent:4428122, SubLanguageID:eng, ISO639:en, LanguageName:English, UserID:1566989, UserRank:administrator, UserNickName:GoldenBeard, SubAddDate:2016-04-11 19:13:12, SubAuthorComment:, SubFeatured:0, SubComments:0, SubDownloadsCnt:101, SubHearingImpaired:1, SubRating:0.0, SubHD:1, SubBad:0, SubActualCD:1, SubSumCD:1, MatchedBy:imdbid, SubtitlesLink:http://www.opensubtitles.org/en/subtitles/6587467/sid-phtl8dg7qd2aqp5crk1b44p3d7/quantico-care-en, SubDownloadLink:http://dl.opensubtitles.org/en/download/file/src-api/vrf-19cf0c5b/sid-phtl8dg7qd2aqp5crk1b44p3d7/1955167943.gz, ZipDownloadLink:http://dl.opensubtitles.org/en/download/sub/src-api/vrf-f5740bc4/sid-phtl8dg7qd2aqp5crk1b44p3d7/6587467]
Result 2: [IDSubtitle:6587154, IDSubtitleFile:1955167627, IDSubMovieFile:0, IDMovie:388204, IDMovieImdb:5109844, SubFileName:Quantico.S01E17.HDTV.x264-FLEET.srt, SubLastTS:00:41:37, SubFormat:srt, SubEncoding:UTF-8, SubHash:bfcd177ea27e9fc4f792e6d34a2ea4fa, SubSize:75315, MovieHash:0, MovieByteSize:0, MovieName:"Quantico" Care, MovieNameEng:, MovieYear:2016, MovieReleaseName:Quantico.S01E17.HDTV.x264-FLEET, MovieTimeMS:0, MovieFPS:23.976, MovieImdbRating:0.0, MovieKind:episode, SeriesSeason:1, SeriesEpisode:17, SeriesIMDBParent:4428122, SubLanguageID:eng, ISO639:en, LanguageName:English, UserID:1566989, UserRank:administrator, UserNickName:GoldenBeard, SubAddDate:2016-04-11 12:16:16, SubAuthorComment:, SubFeatured:0, SubComments:0, SubDownloadsCnt:7944, SubHearingImpaired:1, SubRating:0.0, SubHD:1, SubBad:0, SubActualCD:1, SubSumCD:1, MatchedBy:imdbid, SubtitlesLink:http://www.opensubtitles.org/en/subtitles/6587154/sid-phtl8dg7qd2aqp5crk1b44p3d7/quantico-care-en, SubDownloadLink:http://dl.opensubtitles.org/en/download/file/src-api/vrf-19c60c5a/sid-phtl8dg7qd2aqp5crk1b44p3d7/1955167627.gz, ZipDownloadLink:http://dl.opensubtitles.org/en/download/sub/src-api/vrf-f5660bbd/sid-phtl8dg7qd2aqp5crk1b44p3d7/6587154]
Result 3: [IDSubtitle:6587155, IDSubtitleFile:1955167628, IDSubMovieFile:0, IDMovie:388204, IDMovieImdb:5109844, SubFileName:Quantico.S01E17.HDTV.x264-FLEET.srt, SubLastTS:00:41:37, SubFormat:srt, SubEncoding:ASCII, SubHash:68558b240758af7013628f04dc5d1045, SubSize:70719, MovieHash:0, MovieByteSize:0, MovieName:"Quantico" Care, MovieNameEng:, MovieYear:2016, MovieReleaseName:Quantico.S01E17.HDTV.x264-FLEET, MovieTimeMS:0, MovieFPS:23.976, MovieImdbRating:0.0, MovieKind:episode, SeriesSeason:1, SeriesEpisode:17, SeriesIMDBParent:4428122, SubLanguageID:eng, ISO639:en, LanguageName:English, UserID:1566989, UserRank:administrator, UserNickName:GoldenBeard, SubAddDate:2016-04-11 12:16:36, SubAuthorComment:, SubFeatured:0, SubComments:0, SubDownloadsCnt:2489, SubHearingImpaired:0, SubRating:0.0, SubHD:1, SubBad:0, SubActualCD:1, SubSumCD:1, MatchedBy:imdbid, SubtitlesLink:http://www.opensubtitles.org/en/subtitles/6587155/sid-phtl8dg7qd2aqp5crk1b44p3d7/quantico-care-en, SubDownloadLink:http://dl.opensubtitles.org/en/download/file/src-api/vrf-19c70c5b/sid-phtl8dg7qd2aqp5crk1b44p3d7/1955167628.gz, ZipDownloadLink:http://dl.opensubtitles.org/en/download/sub/src-api/vrf-f5670bbe/sid-phtl8dg7qd2aqp5crk1b44p3d7/6587155]
Result 4: [IDSubtitle:6587470, IDSubtitleFile:1955167946, IDSubMovieFile:0, IDMovie:388204, IDMovieImdb:5109844, SubFileName:Quantico.S01E17.PROPER.HDTV.x264-BATV.srt, SubLastTS:00:42:17, SubFormat:srt, SubEncoding:ASCII, SubHash:ed9d234e88ebc10ed6998cce9ef261ea, SubSize:70722, MovieHash:0, MovieByteSize:0, MovieName:"Quantico" Care, MovieNameEng:, MovieYear:2016, MovieReleaseName:Quantico.S01E17.PROPER.HDTV.x264-BATV, MovieTimeMS:0, MovieFPS:23.976, MovieImdbRating:0.0, MovieKind:episode, SeriesSeason:1, SeriesEpisode:17, SeriesIMDBParent:4428122, SubLanguageID:eng, ISO639:en, LanguageName:English, UserID:1566989, UserRank:administrator, UserNickName:GoldenBeard, SubAddDate:2016-04-11 19:13:32, SubAuthorComment:, SubFeatured:0, SubComments:0, SubDownloadsCnt:171, SubHearingImpaired:0, SubRating:0.0, SubHD:1, SubBad:0, SubActualCD:1, SubSumCD:1, MatchedBy:imdbid, SubtitlesLink:http://www.opensubtitles.org/en/subtitles/6587470/sid-phtl8dg7qd2aqp5crk1b44p3d7/quantico-care-en, SubDownloadLink:http://dl.opensubtitles.org/en/download/file/src-api/vrf-19d20c5e/sid-phtl8dg7qd2aqp5crk1b44p3d7/1955167946.gz, ZipDownloadLink:http://dl.opensubtitles.org/en/download/sub/src-api/vrf-f56f0bbe/sid-phtl8dg7qd2aqp5crk1b44p3d7/6587470]
Result 5: [IDSubtitle:6587472, IDSubtitleFile:1955167948, IDSubMovieFile:0, IDMovie:388204, IDMovieImdb:5109844, SubFileName:Quantico.S01E17.PROPER.HDTV.x264-FUM.srt, SubLastTS:00:42:16, SubFormat:srt, SubEncoding:UTF-8, SubHash:80ffe85b1534f57fc7985a3a1d308fc3, SubSize:75318, MovieHash:0, MovieByteSize:0, MovieName:"Quantico" Care, MovieNameEng:, MovieYear:2016, MovieReleaseName:Quantico.S01E17.PROPER.HDTV.x264-FUM, MovieTimeMS:0, MovieFPS:23.976, MovieImdbRating:0.0, MovieKind:episode, SeriesSeason:1, SeriesEpisode:17, SeriesIMDBParent:4428122, SubLanguageID:eng, ISO639:en, LanguageName:English, UserID:1566989, UserRank:administrator, UserNickName:GoldenBeard, SubAddDate:2016-04-11 19:13:53, SubAuthorComment:, SubFeatured:0, SubComments:0, SubDownloadsCnt:176, SubHearingImpaired:1, SubRating:0.0, SubHD:0, SubBad:0, SubActualCD:1, SubSumCD:1, MatchedBy:imdbid, SubtitlesLink:http://www.opensubtitles.org/en/subtitles/6587472/sid-phtl8dg7qd2aqp5crk1b44p3d7/quantico-care-en, SubDownloadLink:http://dl.opensubtitles.org/en/download/file/src-api/vrf-19d40c60/sid-phtl8dg7qd2aqp5crk1b44p3d7/1955167948.gz, ZipDownloadLink:http://dl.opensubtitles.org/en/download/sub/src-api/vrf-f5710bc0/sid-phtl8dg7qd2aqp5crk1b44p3d7/6587472]
Result 6: [IDSubtitle:6587473, IDSubtitleFile:1955167949, IDSubMovieFile:0, IDMovie:388204, IDMovieImdb:5109844, SubFileName:Quantico.S01E17.PROPER.HDTV.x264-FUM.srt, SubLastTS:00:42:16, SubFormat:srt, SubEncoding:ASCII, SubHash:442e8a6c9ef4cd04140484edd23736d3, SubSize:70722, MovieHash:0, MovieByteSize:0, MovieName:"Quantico" Care, MovieNameEng:, MovieYear:2016, MovieReleaseName:Quantico.S01E17.PROPER.HDTV.x264-FUM, MovieTimeMS:0, MovieFPS:23.976, MovieImdbRating:0.0, MovieKind:episode, SeriesSeason:1, SeriesEpisode:17, SeriesIMDBParent:4428122, SubLanguageID:eng, ISO639:en, LanguageName:English, UserID:1566989, UserRank:administrator, UserNickName:GoldenBeard, SubAddDate:2016-04-11 19:14:13, SubAuthorComment:, SubFeatured:0, SubComments:0, SubDownloadsCnt:211, SubHearingImpaired:0, SubRating:0.0, SubHD:0, SubBad:0, SubActualCD:1, SubSumCD:1, MatchedBy:imdbid, SubtitlesLink:http://www.opensubtitles.org/en/subtitles/6587473/sid-phtl8dg7qd2aqp5crk1b44p3d7/quantico-care-en, SubDownloadLink:http://dl.opensubtitles.org/en/download/file/src-api/vrf-19d50c61/sid-phtl8dg7qd2aqp5crk1b44p3d7/1955167949.gz, ZipDownloadLink:http://dl.opensubtitles.org/en/download/sub/src-api/vrf-f5720bc1/sid-phtl8dg7qd2aqp5crk1b44p3d7/6587473]
Best Name Match: [IDSubtitle:6587467, IDSubtitleFile:1955167943, IDSubMovieFile:0, IDMovie:388204, IDMovieImdb:5109844, SubFileName:Quantico.S01E17.PROPER.HDTV.x264-BATV.srt, SubLastTS:00:42:17, SubFormat:srt, SubEncoding:UTF-8, SubHash:9afb732f0a93d27de4677fb3fecf2c7a, SubSize:75318, MovieHash:0, MovieByteSize:0, MovieName:"Quantico" Care, MovieNameEng:, MovieYear:2016, MovieReleaseName:Quantico.S01E17.PROPER.HDTV.x264-BATV, MovieTimeMS:0, MovieFPS:23.976, MovieImdbRating:0.0, MovieKind:episode, SeriesSeason:1, SeriesEpisode:17, SeriesIMDBParent:4428122, SubLanguageID:eng, ISO639:en, LanguageName:English, UserID:1566989, UserRank:administrator, UserNickName:GoldenBeard, SubAddDate:2016-04-11 19:13:12, SubAuthorComment:, SubFeatured:0, SubComments:0, SubDownloadsCnt:101, SubHearingImpaired:1, SubRating:0.0, SubHD:1, SubBad:0, SubActualCD:1, SubSumCD:1, MatchedBy:imdbid, SubtitlesLink:http://www.opensubtitles.org/en/subtitles/6587467/sid-phtl8dg7qd2aqp5crk1b44p3d7/quantico-care-en, SubDownloadLink:http://dl.opensubtitles.org/en/download/file/src-api/vrf-19cf0c5b/sid-phtl8dg7qd2aqp5crk1b44p3d7/1955167943.gz, ZipDownloadLink:http://dl.opensubtitles.org/en/download/sub/src-api/vrf-f5740bc4/sid-phtl8dg7qd2aqp5crk1b44p3d7/6587467]
Fetch P:\Ultimate_Server\Television\Quantico\Season 1\Quantico.S01E17.HDTV.x264-FLEET.srt
Fetch P:\Ultimate_Server\Television\Quantico\Season 1\Quantico.S01E17.PROPER.HDTV.x264-BATV.srt
Fetch P:\Ultimate_Server\Television\Quantico\Season 1\Quantico.S01E17.PROPER.HDTV.x264-FUM.srt
Done ヾ(@⌒ー⌒@)ノ
Using get-subtitles, I got one of those subtitles

Code: Select all

Quantico.S01E17.HDTV.x264-FLEET.srt
That subtitle was badly out of sync. However, one of the three subtitles found using dev:osdb.explain was best:

Code: Select all

Quantico.S01E17.PROPER.HDTV.x264-FUM.srt
Examing the media file (using MediaInfo) the media had

Code: Select all

 Duration: 42mn 21s
The last phrase in the three subtitle were at :

Code: Select all

00:41:37,928 (Quantico.S01E17.HDTV.x264-FLEET.srt)
00:42:17,960 (Quantico.S01E17.PROPER.HDTV.x264-BATV.srt)
00:42:16,621 (Quantico.S01E17.PROPER.HDTV.x264-FUM.srt)
Thus, it may be suspected that at least the first one

Code: Select all

00:41:37,928 (Quantico.S01E17.HDTV.x264-FLEET.srt)
should be discarded, and it was this one that was downloaded.

It would be hard to decide which of the remaining two would be best, but at least the odds would be improved.
Although

Code: Select all

Quantico.S01E17.PROPER.HDTV.x264-FUM.srt
was best, the other one

Code: Select all

Quantico.S01E17.PROPER.HDTV.x264-BATV.srt 
would still be much better than the one downloaded.

Re: Better subtitle search

Posted: 13 Apr 2016, 06:32
by rednoah
I'm inclined to excluding subtitles where the last subtitle is AFTER the end of the movie. But that wouldn't help in this case. It's perfectly normal for a subtitle file to stop before the end of the video file, even if it's by a few minutes (e.g. closing credits).

If you find a few more examples (from movie and episode files) where this heuristic would lead to better subtitles (and not worse ones).

Re: Better subtitle search

Posted: 13 Apr 2016, 06:49
by rednoah
It seems to be working for me:

Code: Select all

Hash/Tag Lookup (hash: 0154a8953ae3dce1, size: 57, lang: eng, tag: Quantico.S01E17.PROPER.720p.HDTV.x264-BATV[rarbg])
Result 1: [IDSubtitle:6588971, IDSubtitleFile:1955169442, IDSubMovieFile:13902689, IDMovie:388204, IDMovieImdb:5109844, SubFileName:Quantico.S01E17.PROPER.HDTV.x264-BATV.srt, SubLastTS:00:42:16, SubFormat:srt, SubEncoding:ASCII, SubHash:767f3afd8a89562e2913be450123598d, SubSize:70442, MovieHash:1ed67c43e4a3b09f, MovieByteSize:992272721, MovieName:"Quantico" Care, MovieNameEng:, MovieYear:2016, MovieReleaseName:Quantico.S01E17.PROPER.HDTV.x264-BATV, MovieTimeMS:0, MovieFPS:23.976, MovieImdbRating:7.8, MovieKind:episode, SeriesSeason:1, SeriesEpisode:17, SeriesIMDBParent:4428122, SubLanguageID:eng, ISO639:en, LanguageName:English, UserID:1566989, UserRank:administrator, UserNickName:GoldenBeard, SubAddDate:2016-04-12 21:29:17, SubAuthorComment:, SubFeatured:0, SubComments:0, SubDownloadsCnt:42, SubHearingImpaired:0, SubRating:0.0, SubHD:1, SubBad:0, SubActualCD:1, SubSumCD:1, MatchedBy:moviehash, SubtitlesLink:http://www.opensubtitles.org/en/subtitles/6588971/sid-ge1c0dqaebta473ql8g44s3bh7/quantico-care-en, SubDownloadLink:http://dl.opensubtitles.org/en/download/filead/src-api/vrf-19c70c57/sid-ge1c0dqaebta473ql8g44s3bh7/1955169442.gz, ZipDownloadLink:http://dl.opensubtitles.org/en/download/subad/src-api/vrf-f5830bc5/sid-ge1c0dqaebta473ql8g44s3bh7/6588971]
Result 2: [IDSubtitle:6587154, IDSubtitleFile:1955167627, IDSubMovieFile:13895851, IDMovie:388204, IDMovieImdb:5109844, SubFileName:Quantico.S01E17.HDTV.x264-FLEET.srt, SubLastTS:00:41:37, SubFormat:srt, SubEncoding:UTF-8, SubHash:bfcd177ea27e9fc4f792e6d34a2ea4fa, SubSize:75315, MovieHash:1ed67c43e4a3b09f, MovieByteSize:992272721, MovieName:"Quantico" Care, MovieNameEng:, MovieYear:2016, MovieReleaseName:Quantico.S01E17.HDTV.x264-FLEET, MovieTimeMS:0, MovieFPS:23.976, MovieImdbRating:7.8, MovieKind:episode, SeriesSeason:1, SeriesEpisode:17, SeriesIMDBParent:4428122, SubLanguageID:eng, ISO639:en, LanguageName:English, UserID:1566989, UserRank:administrator, UserNickName:GoldenBeard, SubAddDate:2016-04-11 12:16:16, SubAuthorComment:, SubFeatured:0, SubComments:0, SubDownloadsCnt:15662, SubHearingImpaired:1, SubRating:0.0, SubHD:1, SubBad:0, SubActualCD:1, SubSumCD:1, MatchedBy:moviehash, SubtitlesLink:http://www.opensubtitles.org/en/subtitles/6587154/sid-ge1c0dqaebta473ql8g44s3bh7/quantico-care-en, SubDownloadLink:http://dl.opensubtitles.org/en/download/filead/src-api/vrf-19c60c5a/sid-ge1c0dqaebta473ql8g44s3bh7/1955167627.gz, ZipDownloadLink:http://dl.opensubtitles.org/en/download/subad/src-api/vrf-f5660bbd/sid-ge1c0dqaebta473ql8g44s3bh7/6587154]
Best Hash Match: [IDSubtitle:6588971, IDSubtitleFile:1955169442, IDSubMovieFile:13902689, IDMovie:388204, IDMovieImdb:5109844, SubFileName:Quantico.S01E17.PROPER.HDTV.x264-BATV.srt, SubLastTS:00:42:16, SubFormat:srt, SubEncoding:ASCII, SubHash:767f3afd8a89562e2913be450123598d, SubSize:70442, MovieHash:1ed67c43e4a3b09f, MovieByteSize:992272721, MovieName:"Quantico" Care, MovieNameEng:, MovieYear:2016, MovieReleaseName:Quantico.S01E17.PROPER.HDTV.x264-BATV, MovieTimeMS:0, MovieFPS:23.976, MovieImdbRating:7.8, MovieKind:episode, SeriesSeason:1, SeriesEpisode:17, SeriesIMDBParent:4428122, SubLanguageID:eng, ISO639:en, LanguageName:English, UserID:1566989, UserRank:administrator, UserNickName:GoldenBeard, SubAddDate:2016-04-12 21:29:17, SubAuthorComment:, SubFeatured:0, SubComments:0, SubDownloadsCnt:42, SubHearingImpaired:0, SubRating:0.0, SubHD:1, SubBad:0, SubActualCD:1, SubSumCD:1, MatchedBy:moviehash, SubtitlesLink:http://www.opensubtitles.org/en/subtitles/6588971/sid-ge1c0dqaebta473ql8g44s3bh7/quantico-care-en, SubDownloadLink:http://dl.opensubtitles.org/en/download/filead/src-api/vrf-19c70c57/sid-ge1c0dqaebta473ql8g44s3bh7/1955169442.gz, ZipDownloadLink:http://dl.opensubtitles.org/en/download/subad/src-api/vrf-f5830bc5/sid-ge1c0dqaebta473ql8g44s3bh7/6588971]

It seems to pick Quantico.S01E17.PROPER.HDTV.x264-BATV.srt as Best Hash Match. Possibly because of the group tag. Note that FPS might lead to wrong match if the video FPS differs from the subtitle FPS. In my test case FPS is undefined.

FYI:

MovieTimeMS and MovieFPS is already used for matching. I guess MovieTimeMS is undefined in this case because the subtitle upload program (probably not FileBot) didn't include that information.

Re: Better subtitle search

Posted: 13 Apr 2016, 08:34
by viking
Using -get-subtitles today, I got the same results as you:

Code: Select all

Fetch subtitles for [P:\Ultimate_Server\Television\Quantico\Season 1]
Get [English] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
Fetching [Quantico.S01E17.PROPER.HDTV.x264-BATV.srt]
Export [Quantico.S01E17.PROPER.HDTV.x264-BATV.srt] as: SubRip / UTF-8
Writing [Quantico.S01E17.PROPER.HDTV.x264-BATV.srt] to [Quantico.S01E17.PROPER.720p.HDTV.x264-BATV[rarbg].eng.srt]
However, yesterday, I got:

Code: Select all

Get [English] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
Fetching [Quantico.S01E17.HDTV.x264-FLEET.srt]
Writing [Quantico.S01E17.HDTV.x264-FLEET.srt] to [Quantico.S01E17.PROPER.720p.HDTV.x264-BATV[rarbg].eng.srt]
In any case, would it help to look at the time-stamp of the last spoken phrase in the subtitle file to determine if it matched the media file length?

Re: Better subtitle search

Posted: 13 Apr 2016, 08:41
by rednoah
Yes, in this specific case. But as a general rule? I'm pretty sure you'll find just as many cases where this rule will lead to a bad match.

It definitely won't work well for movies because of the credits, and for episodes it might work if somebody says something at the end, the the sub creator happens to add something at the end.

I will not add a general rule based on a single example. If you find many examples and shows that this is a general rule, then I might think about it. ;)