CN108111902A - Mobile terminal and video playing adaptation processing method and storage medium - Google Patents
Mobile terminal and video playing adaptation processing method and storage medium Download PDFInfo
- Publication number
- CN108111902A CN108111902A CN201711396967.6A CN201711396967A CN108111902A CN 108111902 A CN108111902 A CN 108111902A CN 201711396967 A CN201711396967 A CN 201711396967A CN 108111902 A CN108111902 A CN 108111902A
- Authority
- CN
- China
- Prior art keywords
- image quality
- video
- video playing
- mobile terminal
- time
- 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.)
- Pending
Links
- 230000006978 adaptation Effects 0.000 title claims abstract description 81
- 238000003672 processing method Methods 0.000 title claims abstract description 32
- 238000000034 method Methods 0.000 claims abstract description 28
- 230000006399 behavior Effects 0.000 claims description 2
- 238000001514 detection method Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000004321 preservation Methods 0.000 description 2
- 230000002950 deficient Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/436—Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
- H04N21/4363—Adapting the video stream to a specific local network, e.g. a Bluetooth® network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/433—Content storage operation, e.g. storage operation in response to a pause request, caching operations
- H04N21/4331—Caching operations, e.g. of an advertisement for later insertion during playback
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/442—Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
- H04N21/44204—Monitoring of content usage, e.g. the number of times a movie has been viewed, copied or the amount which has been watched
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/485—End-user interface for client configuration
- H04N21/4854—End-user interface for client configuration for modifying image parameters, e.g. image brightness, contrast
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Computer Networks & Wireless Communication (AREA)
- Human Computer Interaction (AREA)
- Television Signal Processing For Recording (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The invention discloses mobile terminal and video playing adaptation processing methods and storage medium, the described method includes when user starts video playing, record current image quality, and record current time;The first operation is performed when user adjusts the image quality of video playing afterwards, second of operation is performed when user closes video playing;Image quality size and previously stored average image quality and video playing duration calculation according to being obtained in second of operation obtain a new average image quality value and new video playing duration;When user carries out video playing, and adapted video is needed to play image quality, automatic adaptation is carried out according to the average image quality of precedence record;During so that user playing in Video Applications video by mobile terminal, it need not carry out artificial adapted video image quality, and it can automatically be played according to the video file of the substantive most suitable image quality of demand automatic adaptation of user, reach the reasonable utilization of system resource, the resource utilization of system is improved, is provided to the user conveniently.
Description
Technical field
The present invention relates to field of mobile terminals more particularly to a kind of mobile terminal and video playing adaptation processing sides
Method and storage medium.
Background technology
As mobile terminal technology develops, the promotion of the network technology of mobile terminal is based particularly on, at present mobile terminal
In it is more and more for the application of video playing, various online video playback websites are also reached the standard grade one after another, such as Sohu's video, Tencent
Video etc.;When user uses these video jukebox softwares, it is contemplated that demand when different user is for playing respectively has not
Together, some users wish that video file is clear as far as possible when playing, and some users are then desirable to video file and account for less as far as possible
Clarity during with memory space for playing is of less demanding.
Based on this, each Video Applications can inquire that user is adapted to which kind of image quality is broadcast when user is adapted to and plays video
Put, to meet different user demands, and user in practice for image quality particular technique details and do not know about often adaptation and lose
By mistake.For example, user is medium for image quality requirement, then three high, medium and low image quality options during video are played in Video Applications
In being adapted to, but since each Video Applications are for the high, medium and low definition of image quality difference, actually its in the Video Applications
Low image quality just can meet the needs of this user, it has not been convenient to which user uses.
Therefore, the prior art is defective, has much room for improvement and develops.
The content of the invention
The technical problem to be solved in the present invention is, for the drawbacks described above of the prior art, provide a kind of mobile terminal and
Video playing adaptation processing method and storage medium.A kind of mobile terminal provided by the invention and video playing adaptation processing side
Method and storage medium, it is intended to when user plays video by mobile terminal in Video Applications, be regarded without carrying out manually adaptation
Frequency image quality, and can automatically be played according to the video file of the substantive most suitable image quality of demand automatic adaptation of user,
It provides to the user conveniently.
The technical proposal for solving the technical problem of the invention is as follows:
A kind of mobile terminal video plays adaptation processing method, wherein, including:
A, when mobile terminal starts video playing, current image quality is recorded, and records current time;Afterwards as the behaviour for receiving user
Make to perform B when instruction adjusts the image quality of video playing, C is performed when reception user operation instruction closes video playing;
B, when the operational order for receiving user adjusts the image quality of video playing, current image quality is recorded, and records current time;
C is performed when the operational order for receiving user closes video playing;
C, when receive user operational order close video playing when, record current time, and according to before from start video broadcast
It puts the time of rear start recording and image quality calculates the adaptation of the average image quality during the entire process of this time playing;
D, one is obtained according to the image quality size and previously stored average image quality and video playing duration calculation that are obtained in step C
A new average image quality value and new video playing duration;
E, when next time carry out video playing need adapted video play image quality when, according to the average image quality of precedence record come into
Row automatic adaptation.
The mobile terminal video plays adaptation processing method, wherein, the image quality in the step A includes each image quality
Quality, specifically then good and bad with digital representation image quality, the small then image quality of number is bad, and the big then image quality of number is excellent.
The mobile terminal video plays adaptation processing method, wherein, the step A is starting video playing each time
When will be when generating image quality cache file and being used to record this video playing image quality set and its variation;
Wherein, the image quality cache file is recorded successively according to the order of a time, an image quality, and be with
Time starts.
The mobile terminal video plays adaptation processing method, wherein, it is in image quality cache file in the step B
Record time and image quality.
The mobile terminal video plays adaptation processing method, wherein, working as in the step C, receives user's operation and refers to
When video playing is closed in order, current time is recorded, is to record the time in image quality cache file.
The mobile terminal video plays adaptation processing method, wherein, it is regarded before the basis in the step C from startup
The time of start recording and image quality calculate the adaptation of the average image quality during the entire process of this time playing after frequency plays, and are bases
The time recorded in image quality cache file calculates the average value of image quality in this video display process with image quality, specific as follows:
If the content in image quality cache file is as follows:
T(0) V(1) T(1) V(2) T(2) V(3) T(3) …… V(N-1) T(N-1) V(N) T(N)
The formula for then calculating the average value Vavg of image quality in this video display process is as follows:
Vavg = ( V(1)*TT(1)+V(2)*TT(2)+……+V(N-1)*TT(N-1)+V(N)*TT(N) ) / ( TT(1)
+TT(2)+……+TT(N-1)+TT(N) )
Wherein, T (x) is the time, and TT (x) is the time interval of T (x) and T (x-1), and V (x) is that image quality is time T (x-1) to T
(x) image quality.
The mobile terminal video plays adaptation processing method, wherein, the previously stored average picture in the step D
Matter is zero when mobile terminal dispatches from the factory;The previously stored video playing duration is also zero when mobile terminal dispatches from the factory.
The mobile terminal video plays adaptation processing method, wherein, in the step D according to the picture obtained in C
Matter size and previously stored average image quality and video playing duration calculation obtain a new average image quality value and new video
Playing duration includes:
If a length of TA1 when previously stored average image quality is Vavg1, previously stored video playing, then new average image quality is
Vavg1=(Vavg* TT (x)+Vavg1* TA1)/(TT (x)+TA1), a length of TA1=(TT (x)+TA1) during new video playing;
Then TA1 and Vavg1 are stored and is calculated for next time.
A kind of mobile terminal, wherein, including processor and the memory being connected to the processor, the memory
Video playing adaptation processing program is stored with, which realizes the shifting when being performed by the processor
Dynamic terminal video plays adaptation processing method;
The processor is used to call the video playing adaptation processing program instruction.
A kind of storage medium, wherein, the storage medium is stored with video playing adaptation processing program, which fits
The step of mobile terminal video plays adaptation processing method is realized when being executed by processor with processing routine.
Mobile terminal provided by the present invention and video playing adaptation processing method and storage medium, the method pass through
When user starts video playing, current image quality is recorded, and records current time;Afterwards when user adjusts the image quality of video playing
The first operation of Shi Zhihang, second of operation is performed when user closes video playing;According to the picture obtained in second of operation
Matter size and previously stored average image quality and video playing duration calculation obtain a new average image quality value and new video
Playing duration;When user carry out video playing need adapted video play image quality when, according to the average image quality of precedence record come into
Row automatic adaptation;Make when user plays video by mobile terminal in Video Applications, without carrying out artificial adapted video picture
Matter, and can automatically be played according to the video file of the substantive most suitable image quality of demand automatic adaptation of user, reach
The reasonable utilization of system resource improves the resource utilization of system, provides to the user conveniently.
Description of the drawings
Fig. 1 is the flow chart for the preferred embodiment that mobile terminal video of the present invention plays adaptation processing method.
Fig. 2 is mobile terminal preferred embodiment functional schematic block diagram of the present invention.
Fig. 3 is the functional schematic block diagram of another preferred embodiment of mobile terminal of the present invention.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, clear and definite, develop simultaneously embodiment pair referring to the drawings
The present invention is further described.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and do not have to
It is of the invention in limiting.
Fig. 1 is referred to, Fig. 1 is the flow for the preferred embodiment that mobile terminal video of the present invention plays adaptation processing method
Figure.As shown in Figure 1, mobile terminal video described in the embodiment of the present invention plays adaptation processing method, comprise the following steps:
Step S100, when mobile terminal starts video playing, current image quality is recorded, and records current time;Work as reception afterwards
The operational order of user performs step S200 when adjusting the image quality of video playing, and video playing is closed when receiving user operation instruction
Shi Zhihang steps S300;
The embodiment of the present invention is that the broadcasting of pre-recorded user is needed to be accustomed to.In step S100, broadcast when mobile terminal starts video
When putting, current image quality is recorded, and records current time;Afterwards when the operational order for receiving user adjusts the image quality of video playing
Step S200 is performed, step S300 is performed when reception user operation instruction closes video playing, wherein, the image quality includes each
A image quality is good and bad, specifically then good and bad with digital representation image quality, then bad with the small then image quality of number in the present embodiment, the big then image quality of number
It is excellent.
It will remember in the embodiment of the present invention when starting video playing each time in one image quality cache file of generation
Image quality when recording this video playing is set and its variation;Wherein, the image quality cache file is according to time, one
What the order of a image quality recorded successively, and started with the time.
For example, image quality cache file is as follows:
2014.12.20 12:20 image quality, 3 2014.12.20 12:50 image quality, 4 2014.12.20 13:00 image quality 5
2014.12.20 13:36 image quality 3
Represent user in 2014.12.20 12:20 start video playing file, and image quality is 3 at this time;User is in 2014.12.20
12:Image quality is set to 4 by 50;User is in 2014.12.20 13:Image quality is set to 5 by 00;User is in 2014.12.20 13:36 by picture
Matter is set to 3;
In another example image quality cache file is as follows:
For example, image quality cache file is as follows:
2014.12.20 12:20 image quality, 3 2014.12.20 12:50 image quality, 4 2014.12.20 13:00 image quality 5
2014.12.20 13:36
Represent user in 2014.12.20 12:20 start video playing file, and image quality is 3 at this time;User is in 2014.12.20
12:Image quality is set to 4 by 50;User is in 2014.12.20 13:Image quality is set to 5 by 00;User is in 2014.12.20 13:36 close
Video playing.
Step S200, when the operational order for receiving user adjusts the image quality of video playing, current image quality is recorded, and is recorded
Current time;S300 is performed when the operational order for receiving user closes video playing;
The present invention, when the operational order for receiving user adjusts the image quality of video playing, when recording current image quality, and recording current
Between;S300 is performed when the operational order for receiving user closes video playing, wherein, it is to be cached in image quality in the step S200
Time and image quality are recorded in file.
Step S300, when receive user operational order close video playing when, record current time, and according to before from
The time of start recording and image quality calculate the adaptation of the average image quality during the entire process of this time playing after startup video playing;
In the embodiment of the present invention, when the operational order for receiving user closes video playing, current time is recorded, and according to before
The suitable of during the entire process of this time playing average image quality is calculated from the time of start recording and image quality after video playing is started
Match somebody with somebody.Wherein, it is described to record current time when receiving user operation instruction closing video playing, it is to cache text in image quality
The time is recorded in part.
In this step, the time of start recording and image quality are calculated this time after video playing is started before the basis
The adaptation of average image quality during the entire process of broadcasting, is to calculate this with image quality according to the time recorded in image quality cache file
The average value of image quality, specific as follows in video display process:
If the content in image quality cache file is as follows:
T(0) V(1) T(1) V(2) T(2) V(3) T(3) …… V(N-1) T(N-1) V(N) T(N)
The formula for then calculating the average value Vavg of image quality in this video display process is as follows:
Vavg = ( V(1)*TT(1)+V(2)*TT(2)+……+V(N-1)*TT(N-1)+V(N)*TT(N) ) / ( TT(1)
+TT(2)+……+TT(N-1)+TT(N) )
Wherein, T (x) is the time, and TT (x) is the time interval of T (x) and T (x-1), and V (x) is that image quality is time T (x-1) to T
(x) image quality.
Such as:The digital value of various image quality is pre-set, for example the corresponding number of following various image quality is respectively:
QVGA:1
VGA:3
SVGA:5
XGA:9
SXGA:14
Wherein, the bigger image quality of number is higher.
When user starts to put video, the content got is as follows:
15 divide 15 seconds during T (0)=2,012 12,15 on December; V(1)=1
15 divide 25 seconds during T (1)=2,012 12,15 on December; V(1)=9
15 divide 35 seconds during T (2)=2,012 12,15 on December;
Then by the above process, the formula for calculating the average value Vavg of image quality in this video display process is as follows:
Vavg = ( V(1)*TT(1)+V(2)*TT(2) )=(1*10+9*10)/(10+10)=5;When this 5 image quality is corresponding
Between length be 20 seconds.
Wherein, TT (1) is the time interval of T (1) and T (0), and TT (2) is the time interval of T (2) and T (1), and V (1) is
Image quality for time T (0) to the image quality of T (1), V (2) is that image quality is image quality of the time T (1) to T (2).
When step S400, according to the image quality size and previously stored average image quality and video playing obtained in step S300
It is long that a new average image quality value and new video playing duration is calculated;
Wherein, the previously stored average image quality is zero when mobile terminal dispatches from the factory;During the previously stored video playing
Grow when mobile terminal dispatches from the factory also is zero.
The image quality size and previously stored average image quality and video playing duration calculation that basis in this step obtains obtain
Include to a new average image quality value and new video playing duration:
If a length of TA1 when previously stored average image quality is Vavg1, previously stored video playing, then new average image quality is
Vavg1=(Vavg* TT (x)+Vavg1* TA1)/(TT (x)+TA1), a length of TA1=(TT (x)+TA1) during new video playing;
Then TA1 and Vavg1 are stored and is calculated for next time.
For example, example is connected, if a length of TA1 when previously stored average image quality is Vavg1=8, previously stored video playing
=1000 seconds, then new average image quality is Vavg1=(Vavg* TT (x)+Vavg1* TA1)/(TT (x)+TA1)=(8*1000+5*
20)/(1000+20)=7.941, a length of TA1=(TT (x)+TA1) during new video playing=1020 seconds;Then by TA1=1020 second
It stores with Vavg1=7.941 and is calculated for next time.
S500, when next time carry out video playing need adapted video play image quality when, according to the average picture of precedence record
Matter carries out automatic adaptation.
The image quality of automatic adaptation video playing, the image quality average value set when being according to user's routine use video playing
Carry out automatic adaptation and play video image quality, therefore need to only be broadcast according to the Vavg1 preserved in average image quality computing module come automatic adaptation
Video image quality is put, is below the correspondence of broadcasting video image quality and average image quality:
Lossless image quality corresponds to image quality as VS0 ~ VS1(Comprising VS0, not comprising VS1);
Superelevation image quality corresponds to image quality as VS1 ~ VS2(Comprising VS1, not comprising VS2);
High image quality corresponds to image quality as VS2 ~ VS3(Comprising VS2, not comprising VS3);
It is VS3 ~ VS4 that image quality is answered in standard picture confrontation(Comprising VS3, include VS4);
Wherein, VS0, VS1, VS2, VS3, VS4 are image quality size, and meet VS0>VS1>VS2>VS3>VS4=0.
In the present invention, because the image quality value of user setting is more big during video playing, the clearer of the video played is distinguished
Knowledge and magnanimity are higher, also higher for the image quality requirement of video;When the image quality set when user plays video is relatively low, come for user
The video and the video of low image quality for saying high image quality are no different;Therefore when user carries out video playing adapted video is needed to play image quality
When, can automatic adaptation be carried out according to the average image quality of precedence record.
Therefore a kind of mobile terminal video provided by the invention plays adaptation processing method, it is intended to when user passes through
When mobile terminal plays video in Video Applications, without carrying out artificial adapted video image quality, and can be according to the reality of user
The video file of the most suitable image quality of matter demand automatic adaptation is played automatically, is provided to the user conveniently.
Certainly, one of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method,
It is that can related hardware be instructed by video playing adaptation processing program(Such as processor, controller etc.)It completes, it is described
Program can be stored in a computer-readable storage medium, which may include upon execution such as above-mentioned each method embodiment
Flow.The wherein described storage medium can be memory, magnetic disc, CD etc..
Embodiment two
The embodiment of the present invention additionally provides a kind of mobile terminal, and the mobile terminal of the embodiment of the present invention can be mobile phone, such as Fig. 2 institutes
Show, the mobile terminal of the present embodiment includes processor 10 and the memory 20 being connected with the processor 10;
The memory 20 is stored with video playing adaptation processing program, and the video playing adaptation processing program is by the processor
10 realize that any mobile terminal video of above-described embodiment plays adaptation processing method when performing, as detailed above.
Embodiment three
Fig. 3 show another preferred embodiment of mobile terminal of the present invention, the mobile terminal of the present embodiment include processor 10 and
The memory 20 being connected with the processor 10;The memory 20 is stored with video playing adaptation processing program, which broadcasts
It puts and realizes that any mobile terminal video of above-described embodiment plays adaptation when adaptation processing program is performed by the processor 10
The step of processing method, as detailed above.
The processor 10 of the mobile terminal of the present embodiment includes:Frequency plays detection module, time-obtaining module, image quality and obtains
Module, image quality cache file, average image quality computing module, image quality automatic adaptation module;
Video playing detection module, the module are used to detect user's startup, close the operation of video playing and broadcast for video
The adjusting operation for the image quality put;When detect user have it is above-mentioned these to the operation of video playing when, obtain current time and work as
The image quality of preceding setting, and record into image quality cache file;In addition, when detecting that user closes video playing, triggering is flat
The equal average image quality of image quality computing module update;
Time-obtaining module, the module are used to obtain current time;
Image quality acquisition module, the module are used to obtain the set image quality size of current video broadcasting;
Image quality cache file, this document have recorded this video playing from the image quality started so far with the variation relation of time;
Specifically, in image quality cache file, it is to be recorded successively according to the order of a time, an image quality, and is with the time
Beginning;
For example, image quality cache file is as follows:
2014.12.20 12:20 image quality, 3 2014.12.20 12:50 image quality, 4 2014.12.20 13:00 image quality 5
2014.12.20 13:36 image quality 3;
Represent user in 2014.12.20 12:20 start video playing file, and image quality is 3 at this time;User is in 2014.12.20
12:Image quality is set to 4 by 50;User is in 2014.12.20 13:Image quality is set to 5 by 00;User is in 2014.12.20 13:36 by picture
Matter is set to 3;
In another example image quality cache file is as follows:
For example, image quality cache file is as follows:
2014.12.20 12:20 image quality, 3 2014.12.20 12:50 image quality, 4 2014.12.20 13:00 image quality 5
2014.12.20 13:36;
Represent user in 2014.12.20 12:20 start video playing file, and image quality is 3 at this time;User is in 2014.12.20
12:Image quality is set to 4 by 50;User is in 2014.12.20 13:Image quality is set to 5 by 00;User is in 2014.12.20 13:36 close
Video playing;
Average image quality computing module, the module are used to recalculate average image quality when user closes video playing;It is described here
Average image quality refer to mobile terminal from the average image quality of later video playing of dispatching from the factory;It is specific as follows:
When user closes video playing, if the content in image quality cache file is as follows:
T(0) V(1) T(1) V(2) T(2) V(3) T(3) …… V(N-1) T(N-1) V(N) T(N)
The formula for then calculating the average value Vavg of image quality in this video display process is as follows:
Vavg = ( V(1)*TT(1)+V(2)*TT(2)+……+V(N-1)*TT(N-1)+V(N)*TT(N) ) / ( TT(1)
+TT(2)+……+TT(N-1)+TT(N) )
Wherein, T (x) is the time, and TT (x) is the time interval of T (x) and T (x-1), and V (x) is that image quality is time T (x-1) to T
(x) image quality;
If a length of TA1 when previously stored average image quality is Vavg1, previously stored video playing, then new average image quality is
Vavg1=(Vavg* TT (x)+Vavg1* TA1)/(TT (x)+TA1), a length of TA1=(TT (x)+TA1) during new video playing;
Then TA1 and Vavg1 are stored and is calculated for next time;Wherein, TA1 and Vavg1 is zero when mobile terminal dispatches from the factory;
Image quality automatic adaptation module, the module are used for the image quality of automatic adaptation video playing, are regarded according to user's routine use
The image quality average value that frequency is set when playing carrys out automatic adaptation and plays video image quality, therefore only need to be according in average image quality computing module
The Vavg1 of preservation carrys out automatic adaptation and plays video image quality, is below the correspondence of broadcasting video image quality and average image quality:
Lossless image quality corresponds to image quality as VS0 ~ VS1(Comprising VS0, not comprising VS1);
Superelevation image quality corresponds to image quality as VS1 ~ VS2(Comprising VS1, not comprising VS2);
High image quality corresponds to image quality as VS2 ~ VS3(Comprising VS2, not comprising VS3);
It is VS3 ~ VS4 that image quality is answered in standard picture confrontation(Comprising VS3, include VS4);
Wherein, VS0, VS1, VS2, VS3, VS4 are image quality size, and meet VS0>VS1>VS2>VS3>VS4=0.
Based on above-mentioned mobile terminal, the mobile terminal operation principle of the embodiment of the present invention includes the following steps:
Step S10, when user plays video, the average image quality Vavg1 of preservation is obtained;
Step S20, according to the relation for playing video image quality and average image quality, corresponding broadcasting is obtained according to average image quality Vavg1
Video image quality;
It is below the correspondence of broadcasting video image quality and average image quality:
It is VS0 ~ VS1 that image quality 4, which corresponds to image quality,(Comprising VS0, not comprising VS1);
It is VS1 ~ VS2 that image quality 3, which corresponds to image quality,(Comprising VS1, not comprising VS2);
It is VS2 ~ VS3 that image quality 2, which corresponds to image quality,(Comprising VS2, not comprising VS3);
It is VS3 ~ VS4 that image quality 1, which corresponds to image quality,(Comprising VS3, include VS4);
Wherein, VS0, VS1, VS2, VS3, VS4 are image quality value size, and it is lower to be worth smaller image quality, and it is better and full to be worth bigger image quality
Sufficient VS0>VS1>VS2>VS3>VS4=0.
In addition, when user's operation video playing, following steps will be executed:
Step S1, when user starts video playing, current image quality is recorded, and records current time;It is regarded afterwards when user is adjusted
Step S2 is performed during the image quality that frequency plays, step S3 is performed when user closes video playing;
Step S2, when user adjusts the image quality of video playing, current image quality is recorded, and records current time;Work as user afterwards
Step S2 is performed when adjusting the image quality of video playing, step S3 is performed when user closes video playing;
Step S3, when user closes video playing, current time is recorded, and according to before since starting after video playing
The time of record and average image quality calculate the adaptation of the average image quality during the entire process of this time playing;
Step S4, mobile terminal is updated to have used the average image quality of video playing since dispatching from the factory and store;
Wherein, the step S3, it is specific as follows:
When user closes video playing, if the content in image quality cache file is as follows:
T(0) V(1) T(1) V(2) T(2) V(3) T(3) …… V(N-1) T(N-1) V(N) T(N)
The formula for then calculating the average value Vavg of image quality in this video display process is as follows:
Vavg = ( V(1)*TT(1)+V(2)*TT(2)+……+V(N-1)*TT(N-1)+V(N)*TT(N) ) / ( TT(1)
+TT(2)+……+TT(N-1)+TT(N) )
Wherein, T (x) is the time, and TT (x) is the time interval of T (x) and T (x-1), and V (x) is that image quality is time T (x-1) to T
(x) image quality;
Wherein, the step S4, it is specific as follows:
If a length of TA1 when previously stored average image quality is Vavg1, previously stored video playing, then new average image quality is
Vavg1=(Vavg* TT (x)+Vavg1* TA1)/(TT (x)+TA1), a length of TA1=(TT (x)+TA1) during new video playing;
Then TA1 and Vavg1 are stored and is calculated for next time;Wherein, TA1 and Vavg1 is zero when mobile terminal dispatches from the factory.
As it can be seen that the present invention provides a kind of method that mobile terminal video plays adaptation, start video playing by working as user
When, current image quality is recorded, and records current time;The first operation is performed when user adjusts the image quality of video playing afterwards,
Second of operation is performed when user closes video playing;According to obtained image quality size in second of operation and previously stored
Average image quality and video playing duration calculation obtain a new average image quality value and new video playing duration;When user carries out
When video playing needs adapted video broadcasting image quality, automatic adaptation is carried out according to the average image quality of precedence record;So that user
When video is played in Video Applications by mobile terminal, without carrying out artificial adapted video image quality, and can be according to user
The video file of the substantive most suitable image quality of demand automatic adaptation played automatically, provide to the user conveniently.
Embodiment three
The embodiment of the present invention additionally provides a kind of storage medium, and the storage medium is stored with video playing adaptation processing program,
The video playing adaptation processing program realizes that the mobile terminal video plays the step of adaptation processing method when being executed by processor
Suddenly, as detailed above.
In conclusion mobile terminal provided by the present invention and video playing adaptation processing method and storage medium, described
Method includes, when user starts video playing, recording current image quality, and recording current time;It is broadcast afterwards when user adjusts video
The first operation is performed during the image quality put, second of operation is performed when user closes video playing;According in second of operation
Obtained image quality size and previously stored average image quality and video playing duration calculation obtain a new average image quality value and
New video playing duration;When user carries out video playing, and adapted video is needed to play image quality, according to being averaged for precedence record
Image quality carries out automatic adaptation;During so that user playing in Video Applications video by mobile terminal, without manually being fitted
With video image quality, and can automatically be broadcast according to the video file of the substantive most suitable image quality of demand automatic adaptation of user
It puts, reaches the reasonable utilization of system resource, improve the resource utilization of system, provide to the user conveniently.
It should be appreciated that the application of the present invention is not limited to the above, it for those of ordinary skills, can
To be improved or converted according to the above description, all these modifications and variations should all belong to the guarantor of appended claims of the present invention
Protect scope.
Claims (10)
1. a kind of mobile terminal video plays adaptation processing method, which is characterized in that including:
A, when mobile terminal starts video playing, current image quality is recorded, and records current time;Afterwards as the behaviour for receiving user
Make to perform B when instruction adjusts the image quality of video playing, C is performed when reception user operation instruction closes video playing;
B, when the operational order for receiving user adjusts the image quality of video playing, current image quality is recorded, and records current time;When
C is performed during the operational order closing video playing for receiving user;
C, when receive user operational order close video playing when, record current time, and according to before from start video broadcast
It puts the time of rear start recording and image quality calculates the adaptation of the average image quality during the entire process of this time playing;
D, one is obtained according to the image quality size and previously stored average image quality and video playing duration calculation that are obtained in step C
New average image quality value and new video playing duration;
E, when progress video playing needs adapted video to play image quality next time, carried out according to the average image quality of precedence record
Automatic adaptation.
2. mobile terminal video plays adaptation processing method according to claim 1, which is characterized in that in the step A
Image quality includes each image quality quality, and specifically then good and bad with digital representation image quality, the small then image quality of number is bad, and then image quality is excellent greatly for number.
3. mobile terminal video plays adaptation processing method according to claim 1, which is characterized in that the step A is every
An image quality cache file will be regenerated during one-shot video playing, image quality during for recording this video playing is set
And its variation;
Wherein, the image quality cache file is recorded successively according to the order of a time, an image quality, and be with
Time starts.
4. mobile terminal video plays adaptation processing method according to claim 1, which is characterized in that is in the step B
Time and image quality are recorded in image quality cache file.
5. mobile terminal video plays adaptation processing method according to claim 1, which is characterized in that in the step C
When receiving user operation instruction closing video playing, current time is recorded, is to record the time in image quality cache file.
6. mobile terminal video plays adaptation processing method according to claim 1, which is characterized in that in the step C
According to average during the entire process of this time playing from the time of start recording and image quality calculating after video playing is started before
The adaptation of image quality is to calculate image quality in this video display process with image quality according to the time recorded in image quality cache file
Average value, it is specific as follows:
If the content in image quality cache file is as follows:
T(0) V(1) T(1) V(2) T(2) V(3) T(3) …… V(N-1) T(N-1) V(N) T(N)
The formula for then calculating the average value Vavg of image quality in this video display process is as follows:
Vavg = ( V(1)*TT(1)+V(2)*TT(2)+……+V(N-1)*TT(N-1)+V(N)*TT(N) ) / ( TT(1)
+TT(2)+……+TT(N-1)+TT(N) )
Wherein, T (x) is the time, and TT (x) is the time interval of T (x) and T (x-1), and V (x) is that image quality is time T (x-1) to T
(x) image quality.
7. mobile terminal video plays adaptation processing method according to claim 1, which is characterized in that in the step D
Previously stored average image quality is zero when mobile terminal dispatches from the factory;The previously stored video playing duration goes out in mobile terminal
Also it is zero during factory.
8. mobile terminal video plays adaptation processing method according to claim 1, which is characterized in that in the step D
Image quality size and previously stored average image quality and video playing duration calculation according to being obtained in C obtain a new average picture
Matter value and new video playing duration include:
If a length of TA1 when previously stored average image quality is Vavg1, previously stored video playing, then new average image quality is
Vavg1=(Vavg* TT (x)+Vavg1* TA1)/(TT (x)+TA1), a length of TA1=(TT (x)+TA1) during new video playing;
Then TA1 and Vavg1 are stored and is calculated for next time.
9. a kind of mobile terminal, which is characterized in that described to deposit including processor and the memory being connected to the processor
Reservoir is stored with video playing adaptation processing program, and power is realized when which is performed by the processor
Profit requires any one of 1-8 mobile terminal videos to play adaptation processing method;
The processor is used to call the instruction of the video playing adaptation processing program.
10. a kind of storage medium, which is characterized in that the storage medium is stored with video playing adaptation processing program, the video
It plays and realizes that any one of the claim 1-8 mobile terminal videos are played at adaptation when adaptation processing program is executed by processor
Reason method.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201711396967.6A CN108111902A (en) | 2017-12-21 | 2017-12-21 | Mobile terminal and video playing adaptation processing method and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201711396967.6A CN108111902A (en) | 2017-12-21 | 2017-12-21 | Mobile terminal and video playing adaptation processing method and storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN108111902A true CN108111902A (en) | 2018-06-01 |
Family
ID=62212200
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201711396967.6A Pending CN108111902A (en) | 2017-12-21 | 2017-12-21 | Mobile terminal and video playing adaptation processing method and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN108111902A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113038222A (en) * | 2021-03-08 | 2021-06-25 | Oppo广东移动通信有限公司 | Video processing method and device, electronic equipment and storage medium |
Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20060002255A1 (en) * | 2004-07-01 | 2006-01-05 | Yung-Chiuan Weng | Optimized audio / video recording and playing system and method |
| US20080012985A1 (en) * | 2006-07-12 | 2008-01-17 | Quanta Computer Inc. | System and method for synchronizing video frames and audio frames |
| CN104617901A (en) * | 2014-08-26 | 2015-05-13 | 腾讯科技(北京)有限公司 | Volume control method of multimedia information and client terminal thereof |
| CN106534942A (en) * | 2016-11-04 | 2017-03-22 | 微鲸科技有限公司 | Video image quality adjusting method and apparatus |
| CN106550271A (en) * | 2016-12-08 | 2017-03-29 | 深圳Tcl数字技术有限公司 | Television set running log recording method and device |
| CN106899888A (en) * | 2017-02-14 | 2017-06-27 | 武汉斗鱼网络科技有限公司 | Play the method and system of live video in TV ends based on high in the clouds adaptation player |
| CN106898329A (en) * | 2017-03-27 | 2017-06-27 | 努比亚技术有限公司 | A kind of method for processing brightness of display screen, device and mobile terminal |
| CN107360507A (en) * | 2017-08-09 | 2017-11-17 | 深圳市汉普电子技术开发有限公司 | A kind of play parameter Automatic adjustment method, intelligent sound box and storage medium |
| CN107493519A (en) * | 2016-06-13 | 2017-12-19 | 中兴通讯股份有限公司 | A kind of network quality appraisal procedure and device based on user video experience |
| CN104038846B (en) * | 2013-03-05 | 2018-03-09 | 华为技术有限公司 | Buffer status method of estimation and equipment |
-
2017
- 2017-12-21 CN CN201711396967.6A patent/CN108111902A/en active Pending
Patent Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20060002255A1 (en) * | 2004-07-01 | 2006-01-05 | Yung-Chiuan Weng | Optimized audio / video recording and playing system and method |
| US20080012985A1 (en) * | 2006-07-12 | 2008-01-17 | Quanta Computer Inc. | System and method for synchronizing video frames and audio frames |
| CN104038846B (en) * | 2013-03-05 | 2018-03-09 | 华为技术有限公司 | Buffer status method of estimation and equipment |
| CN104617901A (en) * | 2014-08-26 | 2015-05-13 | 腾讯科技(北京)有限公司 | Volume control method of multimedia information and client terminal thereof |
| CN107493519A (en) * | 2016-06-13 | 2017-12-19 | 中兴通讯股份有限公司 | A kind of network quality appraisal procedure and device based on user video experience |
| CN106534942A (en) * | 2016-11-04 | 2017-03-22 | 微鲸科技有限公司 | Video image quality adjusting method and apparatus |
| CN106550271A (en) * | 2016-12-08 | 2017-03-29 | 深圳Tcl数字技术有限公司 | Television set running log recording method and device |
| CN106899888A (en) * | 2017-02-14 | 2017-06-27 | 武汉斗鱼网络科技有限公司 | Play the method and system of live video in TV ends based on high in the clouds adaptation player |
| CN106898329A (en) * | 2017-03-27 | 2017-06-27 | 努比亚技术有限公司 | A kind of method for processing brightness of display screen, device and mobile terminal |
| CN107360507A (en) * | 2017-08-09 | 2017-11-17 | 深圳市汉普电子技术开发有限公司 | A kind of play parameter Automatic adjustment method, intelligent sound box and storage medium |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113038222A (en) * | 2021-03-08 | 2021-06-25 | Oppo广东移动通信有限公司 | Video processing method and device, electronic equipment and storage medium |
| CN113038222B (en) * | 2021-03-08 | 2023-11-10 | Oppo广东移动通信有限公司 | Video processing method, device, electronic equipment and storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US7043745B2 (en) | System and method for reproducing a video session using accelerated frame recording | |
| US7486870B2 (en) | System and method for reproducing a video session using accelerated frame playback | |
| US8320458B2 (en) | Frame interpolation device and method, and storage medium | |
| US20090062943A1 (en) | Methods and apparatus for automatically controlling the sound level based on the content | |
| JP2008176811A (en) | Information distribution device | |
| TW201316752A (en) | Video playing method and apparatus | |
| CN108632667B (en) | A kind of coding/decoding method and terminal of multimedia file | |
| WO2020207080A1 (en) | Video capture method and apparatus, electronic device and storage medium | |
| RU2011107933A (en) | DEVICE AND METHOD FOR PROCESSING THE IMAGE SIGNAL, DEVICE FOR PLAYING THE IMAGE, TELEVISION RECEIVER, ELECTRONIC DEVICE | |
| TW372307B (en) | Method for correcting distortion of image displayed on display device, distortion detecting unit, distortion correction unit and display device having such distortion correcting unit | |
| CN110650253B (en) | Self-adaptive playing method of polyphonic ringtone, terminal equipment, server and storage medium | |
| US7834874B2 (en) | Method of improving the presentation of image data which inter-locked with video signals throughput of a terminal and a system thereof | |
| CN113923486A (en) | Pre-generated multi-stream ultrahigh-definition video playing system and method | |
| CN108111902A (en) | Mobile terminal and video playing adaptation processing method and storage medium | |
| EP1455360A2 (en) | Disc apparatus, disc recording method, disc playback method, recording medium, and program | |
| JP2006185439A (en) | Mobile communication terminal, apparatus and method for video searching in mobile communication terminal | |
| EP4676068A1 (en) | Video variable-speed playing method and apparatus, and electronic device and storage medium | |
| US20240340507A1 (en) | Methods, systems, and media for streaming video content using adaptive buffers | |
| US20110113338A1 (en) | Information output apparatus and method and program | |
| CN115148184B (en) | Voice synthesis and broadcasting method, teaching method, live broadcasting method and device | |
| CN116996639A (en) | Screen projection frame rate acquisition method, device, computer equipment and storage medium | |
| CN107087210A (en) | The method and terminal of video broadcasting condition are judged based on cache-time | |
| CN107370829A (en) | A kind of data load method | |
| CN106550260A (en) | Video playback progress continues to use method, device and terminal | |
| CN114765692A (en) | Live broadcast data processing method, device, equipment and medium |
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 | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180601 |