[go: up one dir, main page]

CN107483979B - A kind of video dragging method and device applied to cache server - Google Patents

A kind of video dragging method and device applied to cache server Download PDF

Info

Publication number
CN107483979B
CN107483979B CN201710817117.2A CN201710817117A CN107483979B CN 107483979 B CN107483979 B CN 107483979B CN 201710817117 A CN201710817117 A CN 201710817117A CN 107483979 B CN107483979 B CN 107483979B
Authority
CN
China
Prior art keywords
key frame
video
weight
designated position
interval
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710817117.2A
Other languages
Chinese (zh)
Other versions
CN107483979A (en
Inventor
纪琦华
蒲珂
曾泽基
方宏
李哲山
鲁豪
胡彬
魏明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhongguang Hot Cloud Technology Co Ltd
Original Assignee
Zhongguang Hot Cloud Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhongguang Hot Cloud Technology Co Ltd filed Critical Zhongguang Hot Cloud Technology Co Ltd
Priority to CN201710817117.2A priority Critical patent/CN107483979B/en
Publication of CN107483979A publication Critical patent/CN107483979A/en
Application granted granted Critical
Publication of CN107483979B publication Critical patent/CN107483979B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47217End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for controlling playback functions for recorded or on-demand content, e.g. using progress bars, mode or play-point indicators or bookmarks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/238Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
    • H04N21/2387Stream processing in response to a playback request from an end-user, e.g. for trick-play
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/65Transmission of management data between client and server
    • H04N21/658Transmission by the client directed to the server
    • H04N21/6587Control parameters, e.g. trick play commands, viewpoint selection

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a kind of video dragging method applied to cache server, the selection method of key frame includes selecting several video subelements from all video subelement equal intervals, and assign the first weight;The start frame of several story boards based on video file plot itself and branch scape is selected from all video subelements, and assigns the second weight that weight is higher than the first weight;The start frame of several great result and plot turnovers based on video file plot itself is selected from all video subelements, and assigns the third weight that weight is higher than the second weight;Several marker frames for marking the video file based on client are selected from all video subelements, and assign the 4th weight that weight is higher than third weight.Compared with the key frame of the prior art picked out at equal intervals, the determination of key frame of the embodiment of the present invention is more scientific, and Objective is stronger.

Description

A kind of video dragging method and device applied to cache server
Technical field
The present invention relates to fields of communication technology, in particular to are related to a kind of video dragging method applied to cache server And device.
Background technique
Modern life rhythm is getting faster, and entertainment way is also very abundant.It is no longer unique that video is appreciated in online Entertainment way, and there is no big times completely to finish watching whole video.More modes are passed through using fragment The mode of dragging appreciates highlight segments therein.
Video file plays used player and all supports to pull in general video website, and pulling mode is generally divided into two Kind, one is the pulling modes based on byte, another is time-based pulling mode.Current pulling mode be all with Machine and blindness are stronger, and target fragment can just be found by needing repeatedly to pull.
Summary of the invention
The invention proposes a kind of video dragging methods and device applied to cache server, for solving current drag Dragging mode all is that randomness and blindness are stronger, needs repeatedly to pull the problem of capable of just finding target fragment.
The first object of the present invention is to disclose a kind of video dragging method applied to cache server, including following step It is rapid:
Receive the dragging request that video file is dragged to designated position that client is sent;
If cache server does not have the video file, the video file is replicated to cache server;
The video file is divided into multiple video subelements, and several video subelements are selected from all video subelements As key frame;
According to the position for pulling the determining designated position of request in the video file, and determination is most similar Key frame;
Using the corresponding position of the key frame as the designated position pulled in request;
The video file content of the designated position on cache server is sent to client;
The selection method of the key frame include selected from all video subelement equal intervals several video subelements and Unequal interval selects several video subelements from all video subelements.
Preferably, the selection method of key frame is selected from all video subelements, comprising:
Several video subelements are selected from all video subelement equal intervals, and assign the first weight;
Several story boards based on video file plot itself and branch are selected from all video subelements The start frame of scape, and assign the second weight that weight is higher than the first weight;
Several great results and feelings based on video file plot itself are selected from all video subelements The start frame of turnover is saved, and assigns the third weight that weight is higher than the second weight;
Several marker frames for marking the video file based on client are selected from all video subelements, and assign weight Higher than the 4th weight of third weight;
The video subelement and its weight information picked out are stored in and believe with the one-to-one key frame of the video file It ceases in meta file.
Preferably, the method for the most similar key frame of the determination is, the method for the most similar key frame of the determination is, In the case that interval between the designated position for pulling request and key frame is same, the high pass of preferential specified weight Key frame is the designated position.
Preferably, the story board, branch scape, great result and plot turnover start frame automatically determined according to drama or It is artificial to determine.
Preferably, the marker frame is that within a specified time final dragging is specified to the video file for same client Position.
Preferably, the key frame information meta file, including key frame information index part and key frame video section.
Preferably, the key frame information meta file real-time update, in the key frame information meta file, the key frame Information index and key frame video are reversed by weight size.
Another object of the present invention is to disclose a kind of video dragging device applied to cache server, including,
Client pulls request reception unit, receives the dragging that video file is dragged to designated position that client is sent Request;
Key frame module of selection selects key frame from all video subelements by the selection method of the key frame;
Designated position screening unit, according to the position for pulling the determining designated position of request in the video file It sets, and determines most similar key frame;
Designated position determination unit, using the corresponding position of the key frame as the designated position pulled in request;
Video file content transmission unit is sent to the video file content of the designated position on cache server Client.
Preferably, further include key frame information meta file storage unit, store key frame information meta file.
Preferably, the key frame information meta file storage unit is key frame server.
Detailed description of the invention
Fig. 1 is the key frame schematic diagram selected in the video dragging method applied to cache server of the prior art;
Fig. 2 is the selection method flow chart of the key frame of the embodiment of the present invention;
Fig. 3 is the key frame schematic diagram of the embodiment of the present invention selected;
Fig. 4 is the flow chart of the video dragging method applied to cache server of the embodiment of the present invention;
Fig. 5 is the most similar key frame of determination of the video dragging method applied to cache server of the embodiment of the present invention Method flow chart;
Fig. 6 is the structural schematic diagram of the video dragging device applied to cache server of the embodiment of the present invention;
Fig. 7 is the video dragging device applied to cache server containing key frame server of the embodiment of the present invention System construction drawing;
Specific embodiment
By the technology contents that the present invention will be described in detail, construction feature, reached purpose and efficacy, hereby enumerates embodiment below It is explained in detail.
The embodiment of the invention discloses a kind of video dragging methods applied to cache server, as shown in Fig. 2, key frame Selection method include,
S11 selects several video subelements from all video subelement equal intervals, and assigns the first weight;
S21, selected from all video subelements several story boards based on video file plot itself and The start frame of branch scape, and assign the second weight that weight is higher than the first weight;
S31 selects several great results based on video file plot itself from all video subelements The start frame transferred with plot, and assign the third weight that weight is higher than the second weight;
S41 is selected several marker frames for being marked the video file based on client from all video subelements, and assigned Weight is higher than the 4th weight of third weight.
The weighted that the embodiment of the present invention is picked out shows to select key frame in the weight of mathematically general significance Priority parameter index.
The key frame that the embodiment of the present invention is picked out, as shown in figure 3, key frame includes the sub from all videos of the first weight Video subelement F1, F3, F7 that unit equal intervals are selected further include the second weight between grade non-in all video subelements Every video subelement F2, the F6 selected.It further include the video that unequal interval is selected from all video subelements of third weight Subelement F4.It further include the video subelement F5 that the unequal interval from all video subelements of the 4th weight is selected.Video Unit F 5 is endowed the first weight in the first weight assignment selected at equal intervals, this video subelement F5 chooses in unequal interval It is endowed the 4th weight again when four weight assignment of choosing.
The interval of the embodiment of the present invention can be time-based interval, be also possible to the interval based on byte.
The embodiment of the present invention, the method for determining most similar key frame, as shown in figure 5, include,
If described pull requests to determine that the interval between the designated position and the 4th closest weight key frame is less than Equal to the interval between third weight key frame, then using the 4th closest weight key frame as the pass of the designated position Key frame;If the interval for requesting to determine between the designated position and the 4th closest weight key frame that pulls is greater than and the Interval between three weight key frames then continues to judge third weight key frame, and the even described dragging request determines described specified Interval between position and closest third weight key frame is less than or equal to interval between the second weight key frame, then Key frame of the closest third weight key frame as the designated position;If the dragging request determines the designated position Interval between closest third weight key frame is greater than interval between the second weight key frame, then continues judgement the Two weight key frames, if described pull requests to determine the interval between the designated position and the second closest weight key frame Less than or equal to the interval between the first weight key frame, then using the second closest weight key frame as the designated position Key frame;If described pull requests to determine that the interval between the designated position and the second closest weight key frame is greater than With the interval between the first weight key frame, then using the first closest weight key frame as the key of the designated position Frame.
Compared with the key frame of Fig. 1 prior art picked out at equal intervals, the determination of key frame of the embodiment of the present invention more section It learns, Objective is stronger.
Preferably, the story board, branch scape, great result and plot turnover start frame automatically determined according to drama or It is artificial to determine.The determination of second weight and third weight key frame, can be according to the independent camera lens in the script of director, field Scape and the relevant information of great result and plot turnover, by machine come automatic identification formatted file, such as No. 1 camera lens, the No. 2 camera lenses ..., the 1st scene, the 1st scene ..., automatically generate key frame.If lacking associated script data, Ke Yitong It crosses and plays the determining mode of video artefacts to determine key frame.
Preferably, the determination of the 4th weight key frame is marker frame, is that same client is specifying the video file Final dragging designated position in time.Such as the position that customer end A pulls after repeatedly pulling for the last time within five minutes It sets, is objective result position.Specified time can statistically analyze personal operating frequency to optimize determination, and the time is too short to make At redundancy key frames, the time is too long, will lead to objective result twice only one, cause the key frame of loss marker.It is different The operation of customer end A and B due to target difference that may be present, without same processing.Whether client is identical Judgement can be based on IP address.
The embodiment of the invention discloses a kind of video dragging methods applied to cache server, as shown in figure 4, include,
S101 receives the dragging request that video file is dragged to designated position that client is sent;
S102 replicates the video file to slow from video server if cache server does not have the video file Deposit server;
S201 selects key frame from all video subelements by the selection method of the key frame;
S301 according to the position for pulling the determining designated position of request in the video file, and is determined most Similar key frame;
S401, using the corresponding position of the key frame as the designated position pulled in request;
The video file content of the designated position on cache server is sent to client by S501.
Dragging method through this embodiment, what the designated position that buffer service can request the dragging of client was formulated Designated position optimizes, it is easier to hit target, reduce randomness and blindness.
Preferably, generation and the one-to-one key frame information meta file of the video file, the key frame information It stores in the key frame message file.The key frame information meta file, including key frame information index part and key frame Video section.The key frame information meta file real-time update, in the key frame information meta file, the key frame information rope Draw and is reversed with key frame video by weight size.Meta file can be .xml format .Afa format or other formats.First text Part key frame information index part real-time update, is reversed, it is possible to reduce search time by weight size, it is not necessary to be run through entire Meta file.
The embodiment of the invention also discloses a kind of video dragging devices applied to cache server, as shown in fig. 6, packet It includes,
Receiving unit 101 receives the dragging request that video file is dragged to designated position that client is sent;
Module of selection 201 selects key frame from all video subelements by the selection method of the key frame;
Screening unit 301, according to the position for pulling the determining designated position of request in the video file, and Determine most similar key frame;
Determination unit 401, using the corresponding position of the key frame as the designated position pulled in request;
The video file content of the designated position on cache server is sent to client by transmission unit 501.
Preferably, further include meta file storage unit 601, store key frame information meta file.
As shown in fig. 7, meta file storage unit 601 is key frame server.
The embodiment of the present invention, key frame server can be used as the data base call of cache server.
As another preferred embodiment, key frame server can also directly establish transmission connection with client.
In conclusion only the preferred embodiments of the invention, is not limited the scope of protection of the present invention with this, it is all according to the present invention Equivalent changes and modifications made by the scope of the patents and description are all within the scope of the invention patent covers.

Claims (9)

1. a kind of video dragging method applied to cache server, which comprises the following steps: receive client hair The dragging for pulling current play position to the designated position of video file sent is requested;
If cache server does not have the video file, the video file is replicated to cache server from video server;
Key frame is selected from all video subelements of the video file, key frame includes several videos selected at equal intervals Several video subelements that subelement and unequal interval are selected;
According to the position for pulling the determining designated position of request in the video file, and determine most similar key Frame;
Using the corresponding position of the key frame as the designated position pulled in request;
The video file content of the designated position on cache server is sent to client;
The selection method of key frame is selected from all video subelements, comprising:
Several video subelements are selected from all video subelement equal intervals, and assign the first weight;
Several story boards based on video file plot itself and branch scape are selected from all video subelements Start frame, and assign the second weight that weight is higher than the first weight;
Several great results and plot based on video file plot itself are selected from all video subelements to turn The start frame of folding, and assign the third weight that weight is higher than the second weight;
Several marker frames for marking the video file based on client are selected from all video subelements, and are assigned weight and be higher than 4th weight of third weight;
The video subelement and its weight information picked out are stored in and the one-to-one key frame information member of the video file In file;
If described pull requests to determine that the interval between the designated position and the 4th closest weight key frame is less than or equal to With the interval between third weight key frame, then using the 4th closest weight key frame as the key of the designated position Frame;If the interval pulled between the determining designated position of request and the 4th closest weight key frame is greater than and third Interval between weight key frame then continues to judge third weight key frame, and the even described dragging request determines the specific bit The interval that the interval between closest third weight key frame is less than or equal between the second weight key frame is set, then most Key frame of the neighbouring third weight key frame as the designated position;If dragging request determine the designated position with Interval between closest third weight key frame is greater than the interval between the second weight key frame, then continues judgement second Weight key frame, if described pull requests to determine that the interval between the designated position and the second closest weight key frame is small In the interval being equal between the first weight key frame, then using the second closest weight key frame as the designated position Key frame;If it is described pull the interval for requesting to determine between the designated position and the second closest weight key frame be greater than with Interval between first weight key frame, then using the first closest weight key frame as the key frame of the designated position.
2. being applied to the video dragging method of cache server as described in claim 1, which is characterized in that the determination most phase The method of close key frame is the same situation in the interval between the designated position for pulling request and key frame Under, the high key frame of preferential specified weight is the designated position.
3. being applied to the video dragging method of cache server as described in claim 1, which is characterized in that the story board, The start frame of branch scape, great result and plot turnover is automatically determined according to drama or is manually determined.
4. being applied to the video dragging method of cache server as described in claim 1, which is characterized in that the marker frame is Same client is to the video file within a specified time final dragging designated position.
5. being applied to the video dragging method of cache server as described in claim 1, which is characterized in that the key frame letter Cease meta file, including key frame information index part and key frame video section.
6. being applied to the video dragging method of cache server as claimed in claim 5, which is characterized in that the key frame letter Meta file real-time update is ceased, in the key frame information meta file, the key frame information index and key frame video press weight Size reverses.
7. a kind of video dragging device applied to cache server, which is characterized in that including,
Client pulls request reception unit, receives the dragging that video file is dragged to designated position that client is sent and asks It asks;
Key frame module of selection selects key frame from all video subelements by the selection method of the key frame;
Designated position screening unit requests to determine position of the designated position in the video file according to described pull, And determine most similar key frame;
Designated position determination unit, using the corresponding position of the key frame as the designated position pulled in request;
The video file content of the designated position on cache server is sent to client by video file content transmission unit End.
8. the use as claimed in claim 7 in the video dragging device of cache server, which is characterized in that further include, it is crucial Frame information meta file storage unit stores key frame information meta file.
9. being applied to the video dragging device of cache server as claimed in claim 8, which is characterized in that the key frame letter Breath meta file storage unit is key frame server.
CN201710817117.2A 2017-09-12 2017-09-12 A kind of video dragging method and device applied to cache server Active CN107483979B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710817117.2A CN107483979B (en) 2017-09-12 2017-09-12 A kind of video dragging method and device applied to cache server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710817117.2A CN107483979B (en) 2017-09-12 2017-09-12 A kind of video dragging method and device applied to cache server

Publications (2)

Publication Number Publication Date
CN107483979A CN107483979A (en) 2017-12-15
CN107483979B true CN107483979B (en) 2019-12-03

Family

ID=60584880

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710817117.2A Active CN107483979B (en) 2017-09-12 2017-09-12 A kind of video dragging method and device applied to cache server

Country Status (1)

Country Link
CN (1) CN107483979B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101287107A (en) * 2008-05-29 2008-10-15 腾讯科技(深圳)有限公司 Demand method, system and device of media file
CN101588473A (en) * 2009-06-18 2009-11-25 北京浪弯融科科技有限责任公司 Multimedia time shifting broadcasting method and system
CN102006500A (en) * 2010-10-29 2011-04-06 蓝汛网络科技(北京)有限公司 Video dragging method and device applied to cache server

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6769019B2 (en) * 1997-12-10 2004-07-27 Xavier Ferguson Method of background downloading of information from a computer network
KR100374040B1 (en) * 2001-03-09 2003-03-03 엘지전자 주식회사 Method for detecting caption synthetic key frame in video stream
CN103024561B (en) * 2011-09-28 2016-05-25 深圳市快播科技有限公司 A kind of display methods and device that pulls progress bar
CN103348690B (en) * 2011-11-26 2016-08-17 华为技术有限公司 A kind of method and device of Video processing
CN102611945B (en) * 2011-12-19 2014-06-04 北京蓝汛通信技术有限责任公司 Streaming media slicing method, slicing server and streaming media demand system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101287107A (en) * 2008-05-29 2008-10-15 腾讯科技(深圳)有限公司 Demand method, system and device of media file
CN101588473A (en) * 2009-06-18 2009-11-25 北京浪弯融科科技有限责任公司 Multimedia time shifting broadcasting method and system
CN102006500A (en) * 2010-10-29 2011-04-06 蓝汛网络科技(北京)有限公司 Video dragging method and device applied to cache server

Also Published As

Publication number Publication date
CN107483979A (en) 2017-12-15

Similar Documents

Publication Publication Date Title
JP4690457B2 (en) Strategies for scheduling bandwidth-consuming media events
CN105072143A (en) Interaction system for intelligent robot and client based on artificial intelligence
CN109474843A (en) The method of speech control terminal, client, server
CN107484016A (en) Video dubs switching method, television set and computer-readable recording medium
CN106921865A (en) Method for processing video frequency and device
US20140237519A1 (en) Control device and control method
CN107483979B (en) A kind of video dragging method and device applied to cache server
US8316412B2 (en) Application execution method and apparatus
CN106375319A (en) Audio and video transcoding scheduling method, apparatus, device and system
WO2008013385A1 (en) System and method for continuous display of grouped multiple independent contents
JP2008245328A (en) System of transmitting program to client terminal
JP2012005041A (en) Terminal apparatus, and server
CN114025184B (en) Video live broadcast method and electronic device
US20230037684A1 (en) Systems and methods for resolving recording conflicts
CN110234026A (en) Double-direction control is carried out to set-top box using optical character identification
WO2018121739A1 (en) Method and device for transmitting stream data
JP2019135609A (en) Character input support system, character input support control device, and character input support program
CN108024152A (en) A kind of screen shows review system and implementation method
JP2012014541A (en) Information system, core server, service server control method, and program
CN110691256A (en) Video associated information processing method and device, server and storage medium
CN110231920A (en) Print out task distribution method, system, readable storage medium storing program for executing and computer equipment
JP5136895B2 (en) Content distribution system and computer program used for the content distribution system
JP5974482B2 (en) Data control apparatus and program, and data processing apparatus and program
JP7489928B2 (en) Information processing device, system, device control device, and program for operating a device by voice
CN110708574B (en) Method and device for publishing information

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant