The content of the invention
The application proposes a kind of compression method of video playback duration, and the method includes:
The video segment that record original video is skipped when forwarding operation is performed;
The original video is divided into into some video sub-segments based on multiple video segments of record;
Count the F.F. number of times of some video sub-segments, and based on the F.F. number of times for counting with
And default duration compression factor is compressed to the playing duration of the original video.
Optionally, the video segment that the record original video is skipped when forwarding operation is performed includes:
Forwarding operation of the monitoring for the original video;
When the forwarding operation for the original video is monitored, the forwarding operation is obtained in the original
The generation moment and finish time on the reproduction time axle of beginning video;
F.F. behaviour is being performed to the original video based on the generation moment and finish time for getting
As when the video segment skipped recorded.
Optionally, the original video is divided into some videos by the multiple video segments based on record
Sub-piece includes:
Calculate the overlapping region between the plurality of video segment of record;
Obtain start time point and knot of the overlapping region on the reproduction time axle of the original video
Beam time point;
The point on the basis of the start time point that gets and end time point, to described original
Video carries out sub-piece division, to obtain some video sub-segments.
Optionally, it is described based on the F.F. number of times for counting and default duration compression factor to institute
State original video playing duration be compressed including:
Obtain the duration compression factor that user is arranged;
Based on user arrange the duration compression factor to F.F. number of times in some video sub-segments most
Many video sub-segments are deleted, and the playing duration of the original video is compressed to into user's setting
The duration compression factor.
Optionally, the duration compression factor arranged based on user is to fast in some video sub-segments
Entering the most video sub-segments of number of times and carrying out deletion includes:
Calculate the playing duration after the original video is compressed based on the duration compression factor that user is arranged;
F.F. number of times highest video sub-segments in some video sub-segments are deleted successively, until described
The actual play duration of original video is not more than stopping when the playing duration after the compression for calculating is matched.
The application also proposes a kind of compressor of video playback duration, and the device includes:
Logging modle, for recording the video segment that original video is skipped when forwarding operation is performed;
Division module, for the original video to be divided into into some regarding based on multiple video segments of record
Frequency sub-piece;
Compression module, for counting the F.F. number of times of some video sub-segments, and based on counting
The F.F. number of times and default duration compression factor are compressed to the playing duration of the original video.
Optionally, the logging modle specifically for:
Forwarding operation of the monitoring for the original video;
When the forwarding operation for the original video is monitored, the forwarding operation is obtained in the original
The generation moment and finish time on the reproduction time axle of beginning video;
F.F. behaviour is being performed to the original video based on the generation moment and finish time for getting
As when the video segment skipped recorded.
Optionally, the division module specifically for:
Calculate the overlapping region between multiple video segments of record;
Obtain start time point and knot of the overlapping region on the reproduction time axle of the original video
Beam time point;
The point on the basis of the start time point that gets and end time point, to described original
Video carries out sub-piece division, to obtain some video sub-segments.
Optionally, the compression module specifically for:
Obtain the duration compression factor that user is arranged;
Based on user arrange the duration compression factor to F.F. number of times in some video sub-segments most
Many video sub-segments are deleted, and the playing duration of the original video is compressed to into user's setting
The duration compression factor.
Optionally, the compression module is further used for:
Calculate the playing duration after the original video is compressed based on the duration compression factor that user selects;
F.F. number of times highest video sub-segments in some video sub-segments are deleted successively, until described
The actual play duration of original video is not more than stopping when the playing duration after the compression for calculating is matched.
The application provides a kind of compression method of video playback duration, is being performed soon by recording original video
Enter the video segment skipped when operating, and divided the original video based on multiple video segments of record
For some video sub-segments, the F.F. number of times of some video sub-segments is then counted, and based on statistics
The F.F. number of times and default duration compression factor for going out is carried out to the playing duration of the original video
Compression, realizes the video segment that can be skipped when F.F. is carried out according to the original video of record, to original
The playing duration of beginning video carries out Intelligent Compression, and user can be avoided right manually during viewing video
Video carries out forwarding operation, such that it is able to lift the video viewing experience of user.
Specific embodiment
In the related, user, can for uninterested content in video when Internet video is watched
To be skipped by forwarding operation, playback can be again re-started when important content is missed, so as to can
User can be caused to need execution F.F. repeatedly and playback operation during viewing video, defined
A kind of very bad viewing experience.
In order to solve the above problems, the application provides a kind of compress mode of video playback duration, by note
The video segment that record original video is skipped when forwarding operation is performed, and the multiple video segments based on record
The original video is divided into into some video sub-segments, the fast of some video sub-segments is then counted
Enter number of times, and based on the F.F. number of times and default duration compression factor for counting to described original
The playing duration of video is compressed, and realizing can be according to original video jump when F.F. is carried out of record
The video segment crossed, to the playing duration of original video Intelligent Compression is carried out, and can avoid user in viewing
Manually forwarding operation is carried out to video during video, such that it is able to lift the video viewing experience of user.
The application is described below by specific embodiment and with reference to specific application scenarios.
Fig. 1 is refer to, Fig. 1 is a kind of compression side of video playback duration that the embodiment of the application one is provided
Method, the executive agent of the method can be service end, and methods described performs following steps:
Step 101, records the video segment that original video is skipped when forwarding operation is performed;
The original video is divided into some video by step 102, the multiple video segments based on record
Fragment;
Step 103, counts the F.F. number of times of some video sub-segments, and based on described in counting
F.F. number of times and default duration compression factor are compressed to the playing duration of the original video.
Above-mentioned original video can include Internet video.Above-mentioned service end can include the program request of Internet video
Server, server cluster or the video request program platform built based on server cluster.Above-mentioned service end
The order program service that Internet video can be provided with user oriented video request program client, user can be by stepping on
Land account logs in video request program client, carrys out the Internet video that the above-mentioned service end of program request is provided.
Below with the original video as Internet video, the service end be ordering server (below
Abbreviation server) as a example by illustrate.
In actual applications, different users passes through video request program client (hereinafter referred to as client) point
When same section of Internet video of server offer is provided, because different users generally has different preferences,
Therefore during the Internet video is watched, the video segment that different users is skipped by forwarding operation
May also can be different.
However, increasing with a broadcasting user, when the quantity of the point broadcasting user of one section of Internet video reaches one
After the fixed order of magnitude, by carrying out what is skipped after forwarding operation for same section of Internet video to a large number of users
Video segment is recorded, and carries out statistical analysiss, then be commonly available one and indirectly react popular
Statistic analysis result to the preference of this section of Internet video content.
For example, when the program request amount of one section of Internet video is very high, by recorded substantial amounts of user
The video segment that F.F. is skipped in the program request Internet video carries out statistical analysiss, and can be preliminary obtain is big
Crowd in the program request Internet video, the number of times highest which video segment is skipped by F.F., which piece of video
The number of times that section is skipped by F.F. is minimum.
Based on this, in the program request Internet video, server can make above-mentioned statistic analysis result user
It is reference, appropriate deletes to the number of times highest video segment that popular F.F. in the Internet video is skipped
Remove, so as to reach the playing duration to the Internet video purpose of Intelligent Compression is carried out, existed with lifting user
Viewing experience during the program request Internet video.
In the present embodiment, user is during the program request Internet video, server can by with visitor
Family end interacts in real time, to be monitored for the forwarding operation of the Internet video to user.Work as monitoring
When being directed to the forwarding operation of the Internet video to user, then the forwarding operation can be obtained in the Internet video
Reproduction time axle on the generation moment and finish time, and based on the forwarding operation for getting send out
Raw moment and finish time, the video segment that the Internet video is skipped when forwarding operation is performed is remembered
Record.
For example, client is usually used the progress bar in broadcast interface as the reproduction time of the Internet video
Axle, during the program request Internet video, user can be carried out soon user by dragging the progress bar
Enter operation.Therefore client can the real-time monitoring users in backstage for progress bar drag events, one
Denier client listen to user for progress bar drag events when, then the drag events can be entered at this
Corresponding generation moment and finish time in degree bar, as the forwarding operation in the broadcasting of the Internet video
The generation moment and finish time on countershaft reports server.
Server, can be with after the generation moment and finish time for receiving the forwarding operation that client is reported
The generation moment and finish time based on the forwarding operation for receiving records the Internet video and is performing
The video segment skipped after this forwarding operation is recorded.Such as, it is assumed that during the generation of the forwarding operation
Carve as T1, finish time is T2, now this section of video segment between T1 the and T2 moment is as used
Video segment that this forwarding operation of family is skipped, server locally can skip this forwarding operation
Video segment is recorded as [T1, T2].
In this way, server can be directed to the fast of the Internet video with continual to different users
The video skipped when entering operation to be monitored, and forwarding operation is carried out for the Internet video to different user
Fragment is recorded.When server reaches certain amount in the data of local record, server can be right
Recorded data carry out statistical analysiss, and are based on recorded video segment pair by preset algorithm
The Internet video carries out video sub-segments division.
In a kind of embodiment for illustrating, server is based on recorded video segment by preset algorithm
When video sub-segments division is carried out to the Internet video, recorded all piece of video can be calculated first
Overlapping region between section, after the overlapping region between all video segments is calculated, can obtain meter
Start time point and end time point of the overlapping region for calculating on the reproduction time axle of the Internet video.
Wherein, what deserves to be explained is, server is calculating the overlay region between recorded video segment
During domain, the overlapping region includes all overlapping regions between the video segment of record, i.e. service end in meter
When counting stating overlapping region in, as long as any two video segment overlaps in the video segment of record, clothes
Business device just can immediately by the region of the overlap on the reproduction time axle of the Internet video start time point
And end time point.
After the start time point and end time point for having got all overlapping regions, server can be by
The start time point that gets and the end time point as datum mark, according to the start time point with
And position of the end time point on the reproduction time axle of the Internet video, to all video segments for recording
Sub-piece division is carried out, some video sub-segments are obtained.
For convenience of understanding, elaborate by above-mentioned preset algorithm to note below by way of a specific example
All video segments of record carry out the process of sub-piece division.
Refer to Fig. 2, it is assumed that server record first user, second user and the 3rd user are for same
Three different video segments that one section of Internet video F.F. is skipped, respectively video segment 1, piece of video
Section 2 and video segment 3.
Wherein, start time point of the video segment 1 on the reproduction time axle of the Internet video is A, is tied
Beam time point is D, and the video segment 1 can be recorded as [A, D] with being serviced device;Video segment 2 is in the net
Start time point on the reproduction time axle of network video be C, end time point be F, the video segment 2
Can be recorded as [C, F] with being serviced device;Starting of the video segment 3 on the reproduction time axle of the Internet video
Time point is B, and end time point is E, and the video segment 3 can be recorded as [B, E] with being serviced device.
Server according to above-mentioned preset algorithm calculate record all video segments between overlapping region when,
The overlapping region between video segment 1 and video segment 2 can be calculated first.As shown in Fig. 2 video
Overlapping region between fragment 1 and video segment 2, is the time on the reproduction time axle of the Internet video
This section of region [C, D] between point C and time D, therefore service end can be on the reproduction time axle
Read access time point C and time point D.
After the overlapping region between video segment 1 and video segment 2 calculates to be finished, can again calculate and regard
Overlapping region between frequency fragment 1 and video segment 3.As shown in Fig. 2 video segment 1 and piece of video
Overlapping region between section 3, be time point B and time D on the reproduction time axle of the Internet video it
Between this section of region [B, D], therefore service end can on the reproduction time axle read access time point B and when
Between point D.
After the overlapping region between video segment 1 and video segment 3 calculates to be finished, can again calculate and regard
Overlapping region between frequency fragment 2 and video segment 3.As shown in Fig. 2 video segment 2 and piece of video
Overlapping region between section 3, be time point C and time E on the reproduction time axle of the Internet video it
Between this section of region [C, E], therefore service end can on the reproduction time axle read access time point C and when
Between point E.
Since then, the overlapping region of all video segments calculates and finishes, and the overlapping region for calculating includes region
[C, D], region [B, D] and region [C, E].Server can exist all overlapping regions for having read
Start time point and end time point B~E on the reproduction time axle of the Internet video is right as datum mark
All video segments of record carry out respectively sub-piece division.
When being divided for the Internet video, server first can be by the time point for having read
The Internet video is partitioned into sub-piece [A, B], sub-piece [B, C] and sub-piece by B~D as datum mark
Three sub-pieces such as [C, D].
The Internet video is partitioned into into sub-piece [A, B], three sons such as sub-piece [B, C] and sub-piece [C, D]
After fragment, server can also be using the time point for having read C~E as datum mark, by the network video
Frequency is partitioned into sub-piece [C, D], three sub-pieces such as sub-piece [D, E] and sub-piece [E, F].
The Internet video is partitioned into into sub-piece [C, D], three sons such as sub-piece [D, E] and sub-piece [E, F]
After fragment, server can continue the time point B~E that will have been read as datum mark, by the network
Video segmentation goes out sub-piece [B, C], three sub-pieces such as sub-piece [C, D] and sub-piece [D, E].
Since then, all video segments are divided and finished.Continuing with referring to Fig. 2, the duplicon for marking off is removed
The Internet video is divided obtain sub-piece [A, B], sub-piece [B, C], sub-pieces altogether by fragment, server
Five sub-pieces such as section [C, D], sub-piece [D, E] and sub-piece [E, F].
Only with server record, user A, user B and user C are directed to same section of network video to example above
Simple illustration has been carried out as a example by three different video segments that frequency F.F. is skipped, in actual application,
When the video segment quantity of server record is larger, those skilled in the art may be referred in example above
Realize that process carries out equivalent enforcement, be no longer described in detail in the present embodiment.
In the present embodiment, after the Internet video is divided into some video sub-segments by server, may be used also
To count the F.F. number of times of each video sub-segments for marking off, each video sub-segments for counting are then based on
F.F. number of times, and the playing duration of the Internet video is compressed with reference to default duration compression factor.
Wherein, above-mentioned default duration compression factor, can be the duration compression factor arranged by user.
When realizing, client can export a setting interface in the predeterminated position of broadcast interface terminal,
Multiple duration compression factors for being available for user to select can be provided previously by the setting interface, user can be
Select corresponding duration compression factor in the setting interface to trigger broadcasting of the server to the Internet video
Duration is compressed.
For example, 100%, 80%, 40% and 10% etc. four duration pressure can be provided in the setting interface
Contracting ratio, 100% duration compression factor represents that the Internet video is played out according to complete duration, 80%
Duration compression factor, expression the playing duration of the Internet video is compressed to into 80%.In the program request network
During video, user can also be by above-mentioned setting interface to currently having been chosen by duration compression ratio
Example is switched over.
After user have selected corresponding duration compression factor in the setting interface, client can pass through
With server interaction, the duration compression factor that user selects is reported into server.Certainly, it is above-mentioned pre-
If duration compression factor, except can be by user arrange duration compression factor in addition to, or
The duration compression factor of acquiescence.For example, when user does not select duration compression factor in above-mentioned setting interface
When, the duration compression factor of system default can be reported server by client.
In the present embodiment, when server receives the duration compression factor that client is reported, now take
Business device can be using the duration compression factor as default duration compression factor, by respectively regarding to what is counted
The most video sub-segments of F.F. number of times are deleted in the F.F. number of times of frequency sub-piece, by the network video
The playing duration of frequency is compressed to the default duration compression factor.
In a kind of embodiment for illustrating, server can calculate the Internet video according to this it is default when
Long compression factor be compressed after playing duration, the then F.F. of each video sub-segments time to counting
The most video sub-segments of F.F. number of times are deleted successively in number, until the actual play of the Internet video
Duration be compressed according to the default duration compression factor after playing duration match when stop.
For example, continuing with referring to Fig. 2, as it was previously stated, the Internet video shown in Fig. 2 finally by
Server has division altogether and has obtained sub-piece [A, B], sub-piece [B, C], sub-piece [C, D], sub-pieces
Section five sub-pieces such as [D, E] and sub-piece [E, F], server can be to the F.F. of this five sub-pieces
Number of times is counted.
As shown in Fig. 2 sub-piece [A, B] does not overlap with video segment 2 and video segment 3, only
By first user fast forward through 1 time, therefore the F.F. number of times of sub-piece [A, B] is 1 time.
Sub-piece [B, C] is the overlapping region of video segment 1 and video segment 3, by first user and the
Three users are respectively fast forward through once, therefore the F.F. number of times of sub-piece [B, C] is 2 times.
Sub-piece [C, D] is the overlapping region of video segment 1, video segment 2 and video segment 3, by
First user, second user and the 3rd user are respectively fast forward through once, therefore the F.F. of sub-piece [C, D]
Number of times is 3 times.
Sub-piece [D, E] is the overlapping region of video segment 2 and video segment 3, by second user and the
Three users are respectively fast forward through once, therefore the F.F. number of times of sub-piece [D, E] is 2 times.
Sub-piece [E, F] does not overlap with video segment 1 and video segment 3, only fast by second user
Entered 1 time, therefore the F.F. number of times of sub-piece [E, F] is 1 time.
Assume that the duration compression factor that user is arranged is 80%, the total duration of the Internet video is 20 minutes,
Server can calculate first the playing duration after the Internet video is compressed according to 80% ratio
16 minutes, F.F. number of times highest sub-piece [C, D] in each sub-piece above is then deleted first, delete
Afterwards whether server may determine that the current playing duration of the Internet video still greater than 16 minutes, if still big
In 16 minutes, F.F. number of times highest was sub-piece [B, C] and sub-piece in now remaining each sub-piece
[D, E], server can select a sub-piece to continue from sub-piece [B, C] and sub-piece [D, E]
Deleted, then repeatedly above procedure, until the actual play duration of the Internet video is not more than 16
Stop during minute.It can be seen that, in this way, server is carried out in the playing duration to the Internet video
During compression, the F.F. number of times highest video sub-segments in above-mentioned each video sub-segments can be preferentially deleted,
Such that it is able to avoid user during the program request Internet video to greatest extent, the weight in video is missed
Want content.
Certainly, if the user while during the program request Internet video, to the duration compression factor for having arranged
Switched, now server can be implemented according to the duration compression factor after user's switching according to more than
Mode is compressed to the playing duration of the Internet video again.Such as, it is assumed that user is by duration compression ratio
Example switches to 100% by 80%, and now the Internet video is reverted to the complete duration of acquiescence by server.
By above example, the application is skipped by recording original video when forwarding operation is performed
Video segment, and the original video is divided into some videos by the multiple video segments based on record
Fragment, then counts the F.F. number of times of some video sub-segments, and based on the F.F. for counting
Number of times and default duration compression factor are compressed to the playing duration of the original video, realize
The video segment that can be skipped when F.F. is carried out according to the original video of record, the broadcasting to original video
Duration carries out Intelligent Compression, and user can be avoided to carry out F.F. to video manually during viewing video
Operation.
And, in this application, when the playing duration to original video is compressed, preferentially delete institute
The most video sub-segments of F.F. number of times in some video sub-segments are stated, user can be to greatest extent avoided
During the program request Internet video, the important content in video is missed, such that it is able to lift user's
Video viewing experience.
It is corresponding with said method embodiment, present invention also provides the embodiment of device.
Fig. 3 is referred to, the application proposes a kind of compressor 30 of video playback duration, is applied to service
End, the service end can be the vod server of Internet video;Wherein, Fig. 4 is referred to, as carrying
In hardware structure involved by the server of the compressor 30 of the video playback duration, generally include
CPU, internal memory, nonvolatile memory, network interface and internal bus etc.;As a example by implemented in software,
The compressor 30 of the video playback duration is it is generally understood that the computer journey being carried in internal memory
Sequence, the logic device that the software and hardware formed after being run by CPU is combined, described device 30 includes:
Logging modle 301, for recording the video segment that original video is skipped when forwarding operation is performed;
Division module 302, if for being divided into the original video based on multiple video segments of record
Dry video sub-segments;
Compression module 303, for counting the F.F. number of times of some video sub-segments, and based on statistics
The F.F. number of times and default duration compression factor for going out is carried out to the playing duration of the original video
Compression.
In the present embodiment, the logging modle 301 specifically for:
Forwarding operation of the monitoring for the original video;
When the forwarding operation for the original video is monitored, the forwarding operation is obtained in the original
The generation moment and finish time on the reproduction time axle of beginning video;
F.F. behaviour is being performed to the original video based on the generation moment and finish time for getting
As when the video segment skipped recorded.
In the present embodiment, the division module 302 specifically for:
Calculate the overlapping region between the plurality of video segment of record;
Obtain start time point and knot of the overlapping region on the reproduction time axle of the original video
Beam time point;
The point on the basis of the start time point that gets and end time point, to described original
Video carries out sub-piece division, to obtain some video sub-segments.
In the present embodiment, the compression module 303 specifically for:
Obtain the duration compression factor that user is arranged;
Based on user arrange the duration compression factor to F.F. number of times in some video sub-segments most
Many video sub-segments are deleted, and the playing duration of the original video is compressed to into user's setting
The duration compression factor.
In the present embodiment, the compression module 303 is further used for:
Calculate the playing duration after the original video is compressed based on the duration compression factor that user selects;
F.F. number of times highest video sub-segments in some video sub-segments are deleted successively, until described
The actual play duration of original video is not more than stopping when the playing duration after the compression for calculating is matched.
In the present embodiment, the original video includes Internet video.
Those skilled in the art will readily occur to this after considering description and putting into practice invention disclosed herein
Other embodiments of application.The application is intended to any modification, purposes or the adaptability of the application
Change, these modifications, purposes or adaptations follow the general principle of the application and including this Shen
Please undocumented common knowledge or conventional techniques in the art.Description and embodiments only by
It is considered as exemplary, the true scope of the application and spirit are pointed out by claim below.
It should be appreciated that the application be not limited to be described above and be shown in the drawings it is accurate
Structure, and can without departing from the scope carry out various modifications and changes.Scope of the present application is only by institute
Attached claim is limiting.
The preferred embodiment of the application is the foregoing is only, it is all at this not to limit the application
Within the spirit and principle of application, any modification, equivalent substitution and improvements done etc. should be included in
Within the scope of the application protection.