Forum rules
Under no circumstances is spamming or advertising of any kind allowed. Do not post any abusive, obscene, vulgar, slanderous, hateful, threatening, sexually-orientated or any other material that may violate others security. Profanity or any kind of insolent behavior to other members (regardless of rank) will not be tolerated. Remember, what you don’t find offensive can be offensive to other members. Please treat each other with the kind of reverence you’d expect from other members.
Failure to comply with any of the above will result in users being banned without notice. If any further details are needed, contact: “The team” using the link at the bottom of the forum page. Thank you.
TheKeptPromise
Posts: 2
Joined: Thu Apr 10, 2014 5:35 pm

Where is the movie length

Thu Apr 10, 2014 5:42 pm

Hi,

I did my first API request and I am really confused about one thing:
A Subtitle is unique by the following dates:
• Movie name
• Movie Version = Movie Length
• Subtitle Language
• Hearing Impaired / Normal

A subtitle does not depend on how I name a file or which encoding I use.
So instead of searching for the Hash I prefer to search for the movie name, BUT
when I get the results I cannot figure out the right subtitle as I do not see the movie length.

How is this possible???? ( I placed the data I get back below, maybe I am just blind.

All the best
Christoph

Dictionary: {
IDMovie = 2245;
IDMovieImdb = 196229;
IDSubMovieFile = 0;
IDSubtitle = 4097131;
IDSubtitleFile = 1952771046;
ISO639 = en;
LanguageName = English;
MatchedBy = fulltext;
MovieByteSize = 0;
MovieFPS = "25.000";
MovieHash = 0;
MovieImdbRating = "6.5";
MovieKind = movie;
MovieName = Zoolander;
MovieNameEng = "Derek Zoolander";
MovieReleaseName = "Zoolander.2001.DVDRip.Extended.Xvid-ExtraTorrentRG";
MovieTimeMS = 0;
MovieYear = 2001;
QueryNumber = 0;
QueryParameters = {
query = "Zoolander (2001)";
sublanguageid = eng;
};
SeriesEpisode = 0;
SeriesIMDBParent = 0;
SeriesSeason = 0;
SubActualCD = 1;
SubAddDate = "2011-02-14 00:47:21";
SubAuthorComment = "";
SubBad = 0;
SubComments = 0;
SubDownloadLink = "http://dl.opensubtitles.org/en/download ... 2771046.gz";
SubDownloadsCnt = 1564;
SubFeatured = 0;
SubFileName = "Z.srt";
SubFormat = srt;
SubHD = 0;
SubHash = 2da91b62db9767dd76acad193b471069;
SubHearingImpaired = 0;
SubLanguageID = eng;
SubRating = "0.0";
SubSize = 92775;
SubSumCD = 1;
SubtitlesLink = "http://www.opensubtitles.org/en/subtitl ... olander-en";
UserID = 0;
UserNickName = "";
UserRank = "";
ZipDownloadLink = "http://dl.opensubtitles.org/en/download ... 30/4097131";
}

User avatar
oss
Site Admin
Posts: 5890
Joined: Sat Feb 25, 2006 11:26 pm
Contact: Website

Re: Where is the movie length

Fri Apr 11, 2014 6:41 am

use HASH. Hash is not dependent how is the file of movie named. Read about hashes here:
http://en.wikipedia.org/wiki/Hash_function

check also code how is calculated OS hash here:
http://trac.opensubtitles.org/projects/ ... ourceCodes

for time - we dont have much information about that, it is supported, but mandatory info, and not much clients are sending this info to us.

TheKeptPromise
Posts: 2
Joined: Thu Apr 10, 2014 5:35 pm

Re: Where is the movie length

Fri Apr 11, 2014 8:10 pm

Oh, honestly I am surprised.

I know about the Hash, but all results come back empty. I have a library of my won encoded DVD and BluRay, so the files are unique in the world, the movies of course not.

Also is the admin@ address still working I requested an API key but sadly did not get a response.

All the best
Christoph

User avatar
oss
Site Admin
Posts: 5890
Joined: Sat Feb 25, 2006 11:26 pm
Contact: Website

Re: Where is the movie length

Mon Apr 14, 2014 8:30 am

if you encode your own dvd/bluray - resulting file will be unique in the world, so of course, there is no hash uploaded yet on opensubtitles, thats why it can not identify. Your UA should be registered. If you got more questions, feel free to ask.

User avatar
eduo
Posts: 716
Joined: Sat Feb 10, 2007 1:40 am
Location: Information Technology
Contact: ICQ Website Yahoo Messenger

Re: Where is the movie length

Tue May 20, 2014 11:56 am

Oh, honestly I am surprised.

I know about the Hash, but all results come back empty. I have a library of my won encoded DVD and BluRay, so the files are unique in the world, the movies of course not.

Also is the admin@ address still working I requested an API key but sadly did not get a response.

All the best
Christoph
The problem here is, really, that the matching methods don't fit the way you're obtaining your videos. If you know the old CDDB system, this works similarly:

1.-Someone downloads or encodes a video
2.-Someone (the same or someone else) finds/produces a matching text-based subtitle file
3.-Someone (the same or someone else) uploads (manually or automatically) a link between #1 and #2 to OpenSubtitles, specifying that the "hash" for the file in #1 corresponds to the subtitle file in #2. Open subtitles stores this relationship and the subtitle itself.

Optionally 4.-Other people link the same subtitle to other hashes (other encodings of the same movie, with the same timings) and other subtitles for the same hash (other languages, subtitle variants, etc.)

When you encode your own videos essentially you produce your own hashes. Searching by hash in OpenSubtitles wouldn't help you.

Searching by name might help you, but will throw an enormous amount of false positives (depending on the name, translation of the name, other movies with same name, etc.). Searching by name and year might help, but there'd be tons of misses as well.

Searching by IMDBID would give you the closest matches, since at least it would be the same movie, but you'd need to provide the IMDB in your program and the results will show lots of versions (like webcam versions, "PROPER", director's cut, special editions, etc.) that won't match your needs.

If you're encoding your own DVDs you're better off encoding the subs along with them. If not, then searching by IMDB and filtering subs with "DVDRIP" in their names.

I, personally, stopped ripping my DVDs and BluRays. I buy them, but store them and download a ripped version from the internet. It saves me the time to do it myself and ensues adequate quality and subtitles.
http://eduo.info/
[url=http://eduo.info/soleol/]OpenSubtitles from your desktop: SolEol for Mac/Windows/Linux[/url]
[url=http://forums.plexapp.com/index.php?showtopic=325&st=0&p=2480&#entry2480]My current episode processing work flow[/url].

Return to “Developing”

Who is online

Users browsing this forum: No registered users and 86 guests