For developers and developing site - suggestions, coding problems, API questions, new applications...
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.
I want to write a small function for my website, but i have trouble with your moviehash, because i need the first 64K (this is no problem) but the last 64K is difficult because i can not get the last 64K, because most files are RAR files and contain multiple files and.. well it's difficult to get the last 64K. Perhaps there is a way but i don't know it yet... So i was interested if I could use some other option to find the subtitles, see all information i have below: (i have this information for all files)
So now my question how could i then try to get the subtitles, i do have more information that i could use for example:
and then i use mediainfo for more information:
Overall Container Format Matroska
Bitrate 907 bps
Video Duration 1h 52mn
Width x Height 1280x544
Framerate 23.9760 fps
Library x264 core 84 r1400M 20fa784
Audio 1 Format DTS
Title DTS 5.1 1536kbps
Bitrate Mode Constant
Bitrate 1 510 Kbps
Channels 6 channels
Sample Rate 48.0 KHz
Subtitles Languages English
- Posts: 1
- Joined: Sat Jun 30, 2012 12:03 am
The hash works only as you've seen: First and last 64K.
For multi-part RAR files the usual is to implement routines to parse numbering schemes to find the last segment and use that to get the last 64K. It's already supported by dozens of applications out there, so it's clearly doable.
You'll need to implement a parser that orders the files alphabetically (forcing a .RAR to be the first if it exists) and looking for the last one. You might only have part of the 64K in the last file (VERY uncommon) so you might need to pull the remainder from the second-to-last file.
- Posts: 668
- Joined: Sat Feb 10, 2007 1:40 am
- Location: Information Technology
to add my 2 cents, dont try to write your parser for RAR archives, there are sources outhere, which can read RAR files, so we receive hash of movie, not of the rar!
- Site Admin
- Posts: 2208
- Joined: Sat Feb 25, 2006 11:26 pm
Return to Developing
Who is online
Users browsing this forum: No registered users and 0 guests