The player that can automatically download Subtitles-shooter player

Source: Internet
Author: User


Reprinted please indicate the source and the author contact: http://blog.csdn.net/mimepp

Contact information: Yu Tao <yut616 at Sohu dot com>

 

Keywords: auto subtitle, svplayer

 

As the main site for subtitle search in China, shooter.cn has launched its own player. The biggest feature of shooter.cn is that it can automatically download matched Subtitles without manual search by yourself, save.

The player code is also open source, which is recommended and can be added to embedded system applications.

 

Http://www.shooter.cn/svplayer/

 

As you can see from its code, It will compare the hash of the four parts of your video file to query matched subtitle files on shooter's Internet.

1. Remove 4 K content from the header of the first 4 K

2. 4 K content in the middle 1/3

3. 4 K content in the middle 2/3

4. 4 K content starting from the last 8 K

 

Http://trac.svplayer.cn/browser/svplayer/src/svplib/SVPNet.cpp

 

Int csvpnet: querysubbyvideopathorhash (cstring szfilepath, cstring szfilehash, cstring szvhash)

The corresponding url api is http://svplayer.shooter.cn/api/subapi.php

 

The Data Request package sent is:

Post/API/subapi. php HTTP/1.1

User-Agent: svplayer build 279

HOST: svplayer.shooter.cn

Accept :*/*

Content-Length: 431

Secondary CT: 100-continue

Content-Type: multipart/form-data; boundary = ---------------------------- 01eaee656ac9

HTTP/1.1 100 continue

------------------------------ 01eaee656ac9

Content-Disposition: Form-data; name = "pathinfo"

 
F:/08.03.08.kung.fu.panda.scr.xvid-MVS/mvs-kungfuckpanda.avi

------------------------------ 01eaee656ac9

Content-Disposition: Form-data; name = "filehash"

 
Listen; 92ebd644e8e419985dca6dd792011880; 592ab52bcec4ed1c97e9567337f0b7a4; ea5539c773886528613782dcf412eb05

------------------------------ 01eaee656ac9 --

HTTP/1.1 200 OK

Server: nginx

Date: Tue, 16 Jun 2009 01:15:19 GMT

Content-Type: text/html; charset = UTF-8

Transfer-encoding: chunked

Connection: keep-alive

X-powered-by: PHP/5.2.9

 
1fb8

... |...>... 'Y. ^... s...]... k... $ h ..! Q. Q... %. $. yl... n ....!. Y... '... 5... _. 4... #... o ../. R... yt !. 6... j... = .......(....;~ <H}... _ 9 ..~.. X. |... VX. %... w. w...
@.

 

Play a few videos:

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.