CN109525861A - A kind of method and device of video needed for determining user - Google Patents

A kind of method and device of video needed for determining user Download PDF

Info

Publication number
CN109525861A
CN109525861A CN201811480910.9A CN201811480910A CN109525861A CN 109525861 A CN109525861 A CN 109525861A CN 201811480910 A CN201811480910 A CN 201811480910A CN 109525861 A CN109525861 A CN 109525861A
Authority
CN
China
Prior art keywords
video
code rate
transcoding
stored
network environment
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
Application number
CN201811480910.9A
Other languages
Chinese (zh)
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.)
Beijing University of Posts and Telecommunications
Original Assignee
Beijing University of Posts and Telecommunications
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 Beijing University of Posts and Telecommunications filed Critical Beijing University of Posts and Telecommunications
Priority to CN201811480910.9A priority Critical patent/CN109525861A/en
Publication of CN109525861A publication Critical patent/CN109525861A/en
Pending legal-status Critical Current

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/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/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • H04N21/234309Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4 or from Quicktime to Realvideo
    • 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/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • H04N21/234381Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements by altering the temporal resolution, e.g. decreasing the frame rate by frame skipping
    • 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/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/266Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel
    • H04N21/2662Controlling the complexity of the video stream, e.g. by scaling the resolution or bitrate of the video stream based on the client capabilities

Landscapes

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

Abstract

The method and device of video needed for a kind of determining user provided in an embodiment of the present invention, applied to mobile edge calculations MEC server, compared with the prior art, the embodiment of the present invention is by judging whether that store current network environment corresponds to the second video of code rate, if storing the second video of code rate corresponding with current network environment, then second video is sent to user terminal, if the second video of not stored code rate corresponding with current network environment, the third video that then will acquire carries out transcoding, third video after transcoding is stored as the second video, after storing in this way, when receiving the request of same video next time, the request that reception MEC server obtains same video is repeated without remote server, then transcoding is repeated, therefore the time that different user obtains same video can be saved, promote user experience.

Description

A kind of method and device of video needed for determining user
Technical field
The present invention relates to video technique fields, more particularly to a kind of method and device of video needed for determining user.
Background technique
With the development of science and technology, one of had become by way of user dotes on watching video acquisition information, and network rings Border directly affects acquisition of the user to required video.In the prior art, user is obtained by monitoring network environment from remote server Derived from video needed for body, the process for obtaining video below for the prior art is described in detail.
With reference to Fig. 1, MEC (Multi-Access Edge Computing, mobile edge calculations) server in the prior art As distance closest to the server of user terminal, after the acquisition request for receiving the video that user terminal is sent, base station monitoring is worked as Preceding Network Environment Status simultaneously notifies MEC server, MEC server according to current Network status, to remote server send with Current network environment corresponds to the acquisition request of the video of code rate, when the view for not having preceding network environment to correspond to code rate in remote server When frequency, remote server needs the video to current high code rate to carry out transcoding, to reduce the code rate of video, so that the view after transcoding The code rate of frequency is lower than current high code rate, the video after then sending transcoding to MEC server, and MEC server is by the view after transcoding It takes place frequently and gives user.
But in the prior art, after different user repeats to send the acquisition request of same video to MEC server, far End server needs to repeat video code conversion to high code rate, then gives the transmission of video after transcoding to MEC server, and by MEC server is available to user.Therefore prior art different user obtain same video time it is longer, user experience is not It is high.
Summary of the invention
The embodiment of the present invention be designed to provide a kind of determining user needed for video method and device, to reduce difference User obtains the time of same video, improves user experience.Specific technical solution is as follows:
In a first aspect, the method for video needed for a kind of determining user provided in an embodiment of the present invention, is applied to mobile edge Calculate MEC server, comprising:
After receiving the first video request for sending under the current network environment of user terminal, judge whether storage with it is current Network environment corresponds to the second video of code rate;
If storing the second video of code rate corresponding with current network environment, the second video is sent to user terminal;The The content of two videos is identical as the content of the first video, and the code rate of the second video is lower than the code rate of the first video;
If the second video of not stored code rate corresponding with current network environment, third video is subjected to transcoding to second The code rate of video;The content of third video is identical as the content of the second video, and the code rate of third video is higher than the second video Code rate;
It is sent to user terminal using the third video after transcoding as the second video, and stores the second video.
Optionally, if the second video of not stored code rate corresponding with current network environment, third video is turned Code to the second video code rate, comprising:
If the second video of not stored code rate corresponding with current network environment, judge whether to store third video, such as Fruit stores third video, then third video is carried out to the code rate of transcoding to the second video;
If not stored third video obtains third video from remote server and is stored, and by third video into Row transcoding to the second video code rate.
Optionally, if the second video of not stored code rate corresponding with current network environment, third video is turned Code to the second video code rate, comprising:
If the second video of not stored code rate corresponding with current network environment, judge whether storage and the second video codes The immediate video of rate will be stored with the second video code rate most if the immediate video of code rate of storage and the second video Close video is as third video;
Third video is carried out to the code rate of transcoding to the second video.
Optionally, if not stored third video, third video is obtained from remote server and is stored, and by third Video carries out the code rate of transcoding to the second video, comprising:
If not stored third video, it is most similar that and code rate identical as the second video content is obtained from remote server Video is stored as third video;
Third video is carried out to the code rate of transcoding to the second video.
Optionally, if not stored third video, third video is obtained from remote server and is stored, and by third Video carries out the code rate of transcoding to the second video, comprising:
If not stored third video, the highest view of and code rate identical as the second video content is obtained from remote server Frequency is stored as third video;
Third video is carried out to the code rate of transcoding to the second video.
Optionally, if the second video of not stored code rate corresponding with current network environment, third video is turned Code to the second video code rate, comprising:
If the second video of not stored code rate corresponding with current network environment, got and the when from remote server When the video frame of the identical third video of the content of two videos, acquired video frame is carried out to the code of transcoding to the second video Rate.
Optionally, it is sent to user terminal using the third video after transcoding as the second video, and stores the second video, packet It includes:
Third video after transcoding is sent to user terminal as the second video;
The code rate of code rate and third video based on the second video, according to the corresponding storage region of code rate grade, by second Video and third video are stored.
Optionally, it is sent to user terminal using the third video after transcoding as the second video, and stores the second video, packet It includes:
Select video to be stored from third video and the second video, store the quantity of video respectively with current network ring The quality and residual memory space in border are positively correlated.
Second aspect, the system of video needed for a kind of determining user provided in an embodiment of the present invention, comprising: first aspect is real The wireless management module applying the MEC server in example, being connected with MEC server,
Wireless management module is used to monitor the current network environment of user terminal, and the case where current network environment is informed MEC server;
MEC server is connected with user terminal, and the second video that current network environment corresponds to code rate is issued user.
Second aspect, the device of video needed for a kind of determining user provided in an embodiment of the present invention, is applied to mobile edge Calculate MEC server, comprising:
Judgment module, for judging after receiving the first video request that user terminal is sent under the current network environment Whether second video of with current network environment corresponding code rate is stored;
Sending module is sent out if the second video for storing code rate corresponding with current network environment to user terminal Send the second video;The content of second video is identical as the content of the first video, and the code rate of the second video is lower than the first video Code rate;
Transcoding module, if the second video for not stored code rate corresponding with current network environment, by third video Carry out the code rate of transcoding to the second video;
Memory module for being sent to user terminal for the third video after transcoding as the second video, and stores second Video;The content of third video is identical as the content of the second video, and the code rate of third video is higher than the code rate of the second video.
Optionally, transcoding module is specifically used for:
If the second video of not stored code rate corresponding with current network environment, judge whether to store third video, such as Fruit stores third video, then third video is carried out to the code rate of transcoding to the second video;
If not stored third video obtains third video from remote server and is stored, and by third video into Row transcoding to the second video code rate.
Optionally, transcoding module is specifically used for:
If the second video of not stored code rate corresponding with current network environment, judge whether storage and the second video codes The immediate video of rate will be stored with the second video code rate most if the immediate video of code rate of storage and the second video Close video is as third video;
Third video is carried out to the code rate of transcoding to the second video.
Optionally, transcoding module is specifically used for:
If not stored third video, it is most similar that and code rate identical as the second video content is obtained from remote server Video is stored as third video;
Third video is carried out to the code rate of transcoding to the second video.
Optionally, transcoding module is specifically used for:
If not stored third video, the highest view of and code rate identical as the second video content is obtained from remote server Frequency is stored as third video;
Third video is carried out to the code rate of transcoding to the second video.
Optionally, transcoding module is specifically used for:
If the second video of not stored code rate corresponding with current network environment, got and the when from remote server When the video frame of the identical third video of the content of two videos, acquired video frame is carried out to the code of transcoding to the second video Rate.
Optionally, memory module is specifically used for:
Third video after transcoding is sent to user terminal as the second video;
The code rate of code rate and third video based on the second video, according to the corresponding storage region of code rate grade, by second Video and third video are stored.
Optionally, memory module is specifically used for:
Select video to be stored from third video and the second video, store the quantity of video respectively with current network ring The quality and residual memory space in border are positively correlated.
At the another aspect that the present invention is implemented, a kind of computer readable storage medium is additionally provided, it is described computer-readable Instruction is stored in storage medium, when run on a computer, so that computer executes any of the above-described described one kind really Determine the method for video needed for user.
At the another aspect that the present invention is implemented, the embodiment of the invention also provides a kind of, and the computer program comprising instruction is produced Product, when run on a computer so that computer execute a kind of any of the above-described determining user needed for video side Method.
The method and device of video needed for a kind of determining user provided in an embodiment of the present invention is applied to MEC server, leads to It crosses after receiving the first video request that user terminal is sent under the current network environment, judges whether storage and current network ring Border corresponds to the second video of code rate;If storing the second video of code rate corresponding with current network environment, sent out to user terminal Send second video;If the second video of not stored code rate corresponding with current network environment, third video is turned Code to the second video code rate;The third video after transcoding is sent to user terminal as the second video, and stores institute State the second video.Compared with the prior art, the embodiment of the present invention is by judging whether that store current network environment corresponds to code rate Second video sends second view to user terminal if the second video of storage code rate corresponding with current network environment Frequently, if the second video of not stored code rate corresponding with current network environment, the third video that will acquire carries out transcoding, will turn Third video after code is stored as the second video, after storing in this way, when next time receives the request of same video, and nothing It needs remote server to repeat to receive MEC server and obtain the request of same video, then repeatedly transcoding, therefore difference can be saved User obtains the time of same video, promotes user experience.Certainly, it implements any of the products of the present invention or method might not need To reach all the above advantage simultaneously.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described.
Fig. 1 is the structure chart that user terminal, MEC server and remote server communicate with each other in the prior art;
Fig. 2 is the flow chart of the method for video needed for a kind of determining user provided in an embodiment of the present invention;
Fig. 3 is the flow chart provided in an embodiment of the present invention that transcoding is carried out to third video;
Fig. 4 is the structure chart of the system of video needed for a kind of determining user provided in an embodiment of the present invention;
Fig. 5 is the structure chart of the device of video needed for a kind of determining user provided in an embodiment of the present invention;
Fig. 6 is a kind of structure chart of server provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention is described.
The method of video needed for a kind of determining user provided in an embodiment of the present invention is briefly described first.
As shown in Fig. 2, the method for video needed for a kind of determining user of the embodiment of the present invention, is applied to mobile side Edge calculates MEC server, comprising:
S201 judges whether to store after receiving the first video request that user terminal is sent under the current network environment Second video of code rate corresponding with current network environment;
Current network environment includes: the current network environment of multiple grades.Specifically form this multiple current network environment The reason of be: due to when MEC server access user terminal quantity it is more, the bandwidth of each user terminal becomes smaller, at this time respectively The current network environment of a user terminal is deteriorated, and it is mutual in transmission process that excessive user terminal access will lead to the first video Interference effect then transmits the efficiency decline of the first video.Thus, it is supposed that the biography that the first video will be transmitted under current network environment Defeated loss is set as M, and user terminal quantity is set as N, and MEC server is according to user terminal quantity N and transmission loss M to current net Network environment is divided into three grades;As N < a1With M < b1When, if current network environment grade be it is optimal, as N > a2Or M > b2 When, if current network environment grade is worst;Current network environment grade is good under remaining state.Wherein, a1、a2、b1、b2It is Preset numerical value after the grade for dividing current network environment, can be convenient lookup code rate corresponding with current network environment Second video, so as to improve the efficiency that each user terminal receives the second video.
S202 sends the second view to user terminal if the second video of storage code rate corresponding with current network environment Frequently;
Wherein, the content of the second video is identical as the content of the first video, and the code rate of the second video is lower than the first video Code rate;
Third video is carried out transcoding if the second video of not stored code rate corresponding with current network environment by S203 To the code rate of the second video;
Wherein, the content of third video is identical as the content of the second video, and the code rate of third video is higher than the second video Code rate.
S204 is sent to user terminal for the third video after transcoding as the second video, and stores the second video.
Compared with the prior art, the embodiment of the present invention is by judging whether that store current network environment corresponds to the second of code rate Video sends the second video to user terminal, if not if the second video of storage code rate corresponding with current network environment The second video for storing corresponding with current network environment code rate, then the third video progress transcoding that will acquire, by the after transcoding Three videos are stored as the second video, after storing in this way, when next time receives the request of same video, are taken without distal end Business, which thinks highly of multiple connection and receives MEC server, obtains the request of same video, then repeatedly transcoding, therefore can save different user acquisition The time of same video promotes user experience.
In order to save the time that different user obtains same video, above-mentioned S203 can use following at least one can The implementation of energy carries out transcoding to third video:
With reference to Fig. 3, in a kind of possible embodiment, transcoding can be carried out using following steps third video:
S301 judges whether to store third view if the second video of not stored code rate corresponding with current network environment Frequently, if third video, is carried out the code rate of transcoding to the second video by storage third video;
S302 obtains third video from remote server and is stored, and third is regarded if not stored third video Frequency carries out the code rate of transcoding to the second video.
In the present embodiment, transcoding is carried out by obtaining third video from remote server, so as to mention for client For video required under current network environment.
In alternatively possible embodiment, transcoding can be carried out using following steps third video:
Step 1: if the second video of not stored code rate corresponding with current network environment, judge whether storage and the The immediate video of two video code rates will storage and the second view if the immediate video of code rate of storage and the second video The immediate video of frequency code rate is as third video;
Step 2: third video is carried out to the code rate of transcoding to the second video.
In the present embodiment, by the way that transcoding can be improved by closest to the third video code conversion of the second video code rate Efficiency, to save the time that different user obtains same video.
In another possible embodiment, if the second video of not stored code rate corresponding with current network environment, Then when getting the video frame of third video identical with the content of the second video from remote server, by acquired video Frame carries out the code rate of transcoding to the second video, so that frequency frame transcoding and transmission may be implemented in MEC server at the same time, so that user It the video time to be received such as can reduce, promote user experience.
In order to save the time for obtaining third video, above-mentioned S302 can be using at least one possible embodiment from remote It holds server to obtain third video and carries out transcoding:
In a kind of possible embodiment, third video can be obtained from remote server using following steps:
Step 1: if not stored third video, and code rate identical as the second video content is obtained from remote server Most similar video is stored as third video;
Step 2: third video is carried out to the code rate of transcoding to the second video.
In the present embodiment, by the way that transcoding can be improved by closest to the third video code conversion of the second video code rate Efficiency, to save the time that different user obtains same video.
In alternatively possible embodiment, third video can be obtained from remote server using following steps:
Step 1: if not stored third video, and code rate identical as the second video content is obtained from remote server Highest video is stored as third video;
Step 2: third video is carried out to the code rate of transcoding to the second video.
In the present embodiment, transcoding is carried out by the highest video of the identical and code rate with the second video content and stored, The time for searching same video can be saved, the third video after transcoding is quickly obtained, is obtained together to save different user The time of one video.
Obtain current network environment in order to can be improved and correspond to the efficiency of bit-rate video, above-mentioned S204 can use such as down toward A kind of few possible implementation is realized:
In a kind of possible embodiment, the third video after transcoding is sent to user terminal as the second video; The code rate of code rate and third video based on the second video, according to the corresponding storage region of code rate grade, by the second video and Three videos are stored.
Wherein, code rate is divided into three grades according to code rate is high, medium and low, the video that code rate is higher than the first code rate threshold value is High bit-rate video, code rate are low bit-rate video lower than the video of the second code rate threshold value, and the video of remaining code rate is middle bit-rate video. First code rate threshold value and the second code rate threshold value are the numerical value being manually set, and the first code rate threshold value is greater than the second code rate threshold value.
Such as: the storage region Cache of MEC server is divided into three sub- cache pools: Cache1, Cache2, Cache3, capacity are respectively C1, C2, C3, and C1 > C2 > C3;It is high, medium and low that Cache1, Cache2, Cache3 respectively correspond storage The video of code rate.It is then stored when the code rate of video is higher than the first code rate threshold value into the sub- cache pool of Cache1, when video Code rate is higher than the second code rate threshold value lower than the first code rate threshold value, then is stored into the sub- cache pool of Cache2, when the code of video Rate is then stored lower than the second code rate threshold value into the sub- cache pool of Cache3, and the first code rate threshold value and the second code rate threshold value are pre- The numerical value being first arranged.
If certain sub- cache pool storage has been expired, (algorithm, Least Frequently are not frequently used recently using LFU Used), the video that access frequency is low in full sub- cache pool will be stored to remove.If the frequency of two videos is identical, Just first remove storage video earlier.
In the present embodiment, by storing the video of different code rates to corresponding storage region, lookup can be improved The efficiency of bit-rate video corresponding with current network environment.
In alternatively possible embodiment, video is selected to be stored from third video and the second video.
Wherein, the quantity for storing video is positively correlated with the quality of current network environment and residual memory space respectively.
If the quality of current network environment is excellent, and residual memory space is more than storage threshold value, then by third video and Second video all stores;The quality of current network environment is poor, and residual memory space is lower than storage threshold value, the second view of storage Frequently;Remaining situation then stores third video.
In the present embodiment, according to the quality of current network environment and residual memory space, from third video and second It selects video to be stored in video, the load of MEC server can be reduced, to promote the efficiency of MEC server, to save Different user obtains the time of same video.
Storage condition is known in order to can be convenient, after S204 step, a kind of determining use provided in an embodiment of the present invention The method of video needed for family further include:
The size of each video data of real-time statistics storage.
The size for each video data that the embodiment of the present invention can be stored by real-time statistics, selects from each video Second video of code rate corresponding with current network environment is sent to user terminal, can be convenient to being sent to the second of user terminal Video carries out traffic statistics, realizes charge on traffic to user.
Continue with the system introduction to video needed for a kind of determining user provided in an embodiment of the present invention.
As shown in figure 4, the system of video needed for a kind of determining user that inventive embodiments provide, comprising: first aspect is real The wireless management module 401 applying the MEC server 402 in example, being connected with MEC server,
Wireless management module is used to monitor the current network environment of user terminal 403, and the case where by current network environment Inform MEC server;
MEC server is connected with user terminal 403, and the second video that current network environment corresponds to code rate is issued user.
Continue with the device introduction to video needed for a kind of determining user provided in an embodiment of the present invention.
As shown in figure 5, the device of video needed for a kind of determining user that inventive embodiments provide, is applied to mobile edge meter Calculate MEC server, comprising:
Judgment module 501, for sentencing after receiving the first video request that user terminal is sent under the current network environment Disconnected the second video for whether storing code rate corresponding with current network environment;
Sending module 502, if the second video for storing code rate corresponding with current network environment, to user terminal Send the second video;The content of second video is identical as the content of the first video, and the code rate of the second video is lower than the first video Code rate;
Transcoding module 503, if the second video for not stored code rate corresponding with current network environment, third is regarded Frequency carries out the code rate of transcoding to the second video;
Memory module 504 for being sent to user terminal using the third video after transcoding as the second video, and stores the Two videos;The content of third video is identical as the content of the second video, and the code rate of third video is higher than the code rate of the second video.
Optionally, transcoding module is specifically used for:
If the second video of not stored code rate corresponding with current network environment, judge whether to store third video, such as Fruit stores third video, then third video is carried out to the code rate of transcoding to the second video;
If not stored third video obtains third video from remote server and is stored, and by third video into Row transcoding to the second video code rate.
Optionally, transcoding module is specifically used for:
If the second video of not stored code rate corresponding with current network environment, judge whether storage and the second video codes The immediate video of rate will be stored with the second video code rate most if the immediate video of code rate of storage and the second video Close video is as third video;
Third video is carried out to the code rate of transcoding to the second video.
Optionally, transcoding module is specifically used for:
If not stored third video, it is most similar that and code rate identical as the second video content is obtained from remote server Video is stored as third video;
Third video is carried out to the code rate of transcoding to the second video.
Optionally, transcoding module is specifically used for:
If not stored third video, the highest view of and code rate identical as the second video content is obtained from remote server Frequency is stored as third video;
Third video is carried out to the code rate of transcoding to the second video.
Optionally, transcoding module is specifically used for:
If the second video of not stored code rate corresponding with current network environment, got and the when from remote server When the video frame of the identical third video of the content of two videos, acquired video frame is carried out to the code of transcoding to the second video Rate.
Optionally, memory module is specifically used for:
Third video after transcoding is sent to user terminal as the second video;
The code rate of code rate and third video based on the second video, according to the corresponding storage region of code rate grade, by second Video and third video are stored.
Optionally, memory module is specifically used for:
Select video to be stored from third video and the second video, store the quantity of video respectively with current network ring The quality and residual memory space in border are positively correlated.
The embodiment of the invention also provides a kind of servers, as shown in fig. 6, including processor 601, communication interface 602, depositing Reservoir 603 and communication bus 604, wherein processor 601, communication interface 602, memory 603 are completed by communication bus 604 Mutual communication,
Memory 603, for storing computer program;
Processor 601 when for executing the program stored on memory 603, realizes following steps:
After receiving the first video request for sending under the current network environment of user terminal, judge whether storage with it is current Network environment corresponds to the second video of code rate;
If storing the second video of code rate corresponding with current network environment, the second video is sent to user terminal;The The content of two videos is identical as the content of the first video, and the code rate of the second video is lower than the code rate of the first video;
If the second video of not stored code rate corresponding with current network environment, third video is subjected to transcoding to second The code rate of video;The content of third video is identical as the content of the second video, and the code rate of third video is higher than the second video Code rate;
It is sent to user terminal using the third video after transcoding as the second video, and stores the second video.
The communication bus that above-mentioned electronic equipment is mentioned can be Peripheral Component Interconnect standard (Peripheral Component Interconnect, abbreviation PCI) bus or expanding the industrial standard structure (Extended Industry Standard Architecture, abbreviation EISA) bus etc..The communication bus can be divided into address bus, data/address bus, control bus etc.. Only to be indicated with a thick line in figure, it is not intended that an only bus or a type of bus convenient for indicating.
Communication interface is for the communication between above-mentioned electronic equipment and other equipment.
Memory may include random access memory (Random Access Memory, abbreviation RAM), also may include Nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.Optionally, memory may be used also To be storage device that at least one is located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit, Abbreviation CPU), network processing unit (Network Processor, abbreviation NP) etc.;It can also be digital signal processor (Digital Signal Processing, abbreviation DSP), specific integrated circuit (Application Specific Integrated Circuit, abbreviation ASIC), field programmable gate array (Field-Programmable Gate Array, Abbreviation FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hardware components.
In another embodiment provided by the invention, a kind of computer readable storage medium is additionally provided, which can It reads to be stored with instruction in storage medium, when run on a computer, so that computer executes any institute in above-described embodiment The method of video needed for a kind of determining user stated.
In another embodiment provided by the invention, a kind of computer program product comprising instruction is additionally provided, when it When running on computers, so that computer executes the side of video needed for a kind of any determining user in above-described embodiment Method.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof real It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.The computer program Product includes one or more computer instructions.When loading on computers and executing the computer program instructions, all or It partly generates according to process or function described in the embodiment of the present invention.The computer can be general purpose computer, dedicated meter Calculation machine, computer network or other programmable devices.The computer instruction can store in computer readable storage medium In, or from a computer readable storage medium to the transmission of another computer readable storage medium, for example, the computer Instruction can pass through wired (such as coaxial cable, optical fiber, number from a web-site, computer, server or data center User's line (DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another web-site, computer, server or Data center is transmitted.The computer readable storage medium can be any usable medium that computer can access or It is comprising data storage devices such as one or more usable mediums integrated server, data centers.The usable medium can be with It is magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or semiconductor medium (such as solid state hard disk Solid State Disk (SSD)) etc..
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device/ For server/computer readable storage medium storing program for executing/computer program product embodiments, implement since it is substantially similar to method Example, so being described relatively simple, the relevent part can refer to the partial explaination of embodiments of method.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention It is interior.

Claims (10)

1. a kind of method of video needed for determining user, which is characterized in that it is applied to mobile edge calculations MEC server, it is described Method includes:
After receiving the first video request that user terminal is sent under the current network environment, judge whether storage and current network Environment corresponds to the second video of code rate;
If storing the second video of code rate corresponding with current network environment, second video is sent to user terminal;Institute The content for stating the second video is identical as the content of first video, and the code rate of second video is lower than first video Code rate;
If the second video of not stored code rate corresponding with current network environment, third video is subjected to transcoding to the second video Code rate;The content of the third video is identical as the content of second video, and the code rate of the third video is higher than institute State the code rate of the second video;
The third video after transcoding is sent to user terminal as the second video, and stores second video.
2. if the method according to claim 1, wherein the not stored code rate corresponding with current network environment The second video, then by third video carry out transcoding to the second video code rate, comprising:
If the second video of not stored code rate corresponding with current network environment judges whether to store the third video, such as Fruit stores the third video, then third video is carried out to the code rate of transcoding to the second video;
If the not stored third video, obtains third video from remote server and is stored, and the third is regarded Frequency carries out the code rate of transcoding to the second video.
3. if the method according to claim 1, wherein the not stored code rate corresponding with current network environment The second video, then by third video carry out transcoding to the second video code rate, comprising:
If the second video of not stored code rate corresponding with current network environment, judge whether storage and second video codes The immediate video of rate will storage and second view if the immediate video of code rate of storage and second video The immediate video of frequency code rate is as third video;
The third video is carried out to the code rate of transcoding to the second video.
4. if according to the method described in claim 2, it is characterized in that, the not stored third video, from distal end Server obtains third video and is stored, and the third video is carried out to the code rate of transcoding to the second video, comprising:
If the not stored third video, and code rate most phase identical as second video content is obtained from remote server Close video is stored as third video;
The third video is carried out to the code rate of transcoding to the second video.
5. if according to the method described in claim 2, it is characterized in that, the not stored third video, from distal end Server obtains third video and is stored, and the third video is carried out to the code rate of transcoding to the second video, comprising:
If the not stored third video obtains and code rate highest identical as second video content from remote server Video stored as third video;
The third video is carried out to the code rate of transcoding to the second video.
6. if the method according to claim 1, wherein the not stored code rate corresponding with current network environment The second video, then by third video carry out transcoding to the second video code rate, comprising:
If the second video of not stored code rate corresponding with current network environment, got and described when from remote server When the video frame of the identical third video of the content of two videos, the acquired video frame is subjected to transcoding to the second video Code rate.
7. the method according to claim 1, wherein the third video using after transcoding is as the second view It takes place frequently and gives user terminal, and store second video, comprising:
The third video after transcoding is sent to user terminal as the second video;
The code rate of code rate and the third video based on second video will according to the corresponding storage region of code rate grade Second video and the third video are stored.
8. the method according to claim 1, wherein the third video using after transcoding is as the second view It takes place frequently and gives user terminal, and store second video, comprising:
Select video to be stored from the third video and second video, store the quantity of video respectively with current net The quality and residual memory space of network environment are positively correlated.
9. a kind of device of video needed for determining user, which is characterized in that it is applied to mobile edge calculations MEC server, it is described Device includes:
Judgment module, for judging whether after receiving the first video request that user terminal is sent under the current network environment Store the second video of code rate corresponding with current network environment;
Sending module sends institute to user terminal if the second video for storing code rate corresponding with current network environment State the second video;The content of second video is identical as the content of first video, and the code rate of second video is low In the code rate of first video;
Transcoding module, if the second video for not stored code rate corresponding with current network environment, third video is carried out Transcoding to the second video code rate;The content of the third video is identical as the content of second video, and the third regards The code rate of frequency is higher than the code rate of second video;
Memory module, for being sent to user terminal for the third video after transcoding as the second video, and described in storage Second video.
10. a kind of server, which is characterized in that including processor, communication interface, memory and communication bus, wherein processing Device, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes any method and step of claim 1-8.
CN201811480910.9A 2018-12-05 2018-12-05 A kind of method and device of video needed for determining user Pending CN109525861A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811480910.9A CN109525861A (en) 2018-12-05 2018-12-05 A kind of method and device of video needed for determining user

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811480910.9A CN109525861A (en) 2018-12-05 2018-12-05 A kind of method and device of video needed for determining user

Publications (1)

Publication Number Publication Date
CN109525861A true CN109525861A (en) 2019-03-26

Family

ID=65794455

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811480910.9A Pending CN109525861A (en) 2018-12-05 2018-12-05 A kind of method and device of video needed for determining user

Country Status (1)

Country Link
CN (1) CN109525861A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110418194A (en) * 2019-07-19 2019-11-05 咪咕文化科技有限公司 A kind of method of video distribution and base station
CN111093094A (en) * 2019-12-03 2020-05-01 深圳市万佳安物联科技股份有限公司 Video transcoding method, device and system, electronic equipment and readable storage medium
CN112672227A (en) * 2019-10-15 2021-04-16 中国电信股份有限公司 Service processing method, device, node and storage medium based on edge node
CN116016987A (en) * 2022-12-08 2023-04-25 上海大学 Video code rate self-adaption method based on reinforcement learning and oriented to edge cellular network

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009824A (en) * 2006-01-24 2007-08-01 成都索贝数码科技股份有限公司 A network transfer method for audio/video data
CN101778104A (en) * 2009-12-29 2010-07-14 常州中流电子科技有限公司 System and method for playing stream media by using self-adaption bandwidth
CN103813181A (en) * 2014-02-14 2014-05-21 华为技术有限公司 System and method for optimizing video
US20140280679A1 (en) * 2013-03-14 2014-09-18 The Regents Of The University Of California System and method for video caching in wireless networks
CN104702987A (en) * 2015-03-27 2015-06-10 南京视海网络科技有限公司 High-compatibility bandwidth self-adaption streaming media and method for serving multiple different terminals
CN106162233A (en) * 2016-07-08 2016-11-23 合网络技术(北京)有限公司 Code check recommends method and device
CN107276910A (en) * 2017-06-07 2017-10-20 上海迪爱斯通信设备有限公司 The real-time adjusting apparatus of video code rate and system, video server
CN108540837A (en) * 2017-03-06 2018-09-14 华为技术有限公司 A kind of method and apparatus of determining streaming media bit rate

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009824A (en) * 2006-01-24 2007-08-01 成都索贝数码科技股份有限公司 A network transfer method for audio/video data
CN101778104A (en) * 2009-12-29 2010-07-14 常州中流电子科技有限公司 System and method for playing stream media by using self-adaption bandwidth
US20140280679A1 (en) * 2013-03-14 2014-09-18 The Regents Of The University Of California System and method for video caching in wireless networks
CN103813181A (en) * 2014-02-14 2014-05-21 华为技术有限公司 System and method for optimizing video
CN104702987A (en) * 2015-03-27 2015-06-10 南京视海网络科技有限公司 High-compatibility bandwidth self-adaption streaming media and method for serving multiple different terminals
CN106162233A (en) * 2016-07-08 2016-11-23 合网络技术(北京)有限公司 Code check recommends method and device
CN108540837A (en) * 2017-03-06 2018-09-14 华为技术有限公司 A kind of method and apparatus of determining streaming media bit rate
CN107276910A (en) * 2017-06-07 2017-10-20 上海迪爱斯通信设备有限公司 The real-time adjusting apparatus of video code rate and system, video server

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李佳,谢人超,贾庆民等: "面向视频流的 MEC 缓存转码联合优化研究", 《电信科学》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110418194A (en) * 2019-07-19 2019-11-05 咪咕文化科技有限公司 A kind of method of video distribution and base station
CN110418194B (en) * 2019-07-19 2022-03-25 咪咕文化科技有限公司 Video distribution method and base station
CN112672227A (en) * 2019-10-15 2021-04-16 中国电信股份有限公司 Service processing method, device, node and storage medium based on edge node
CN112672227B (en) * 2019-10-15 2022-11-18 中国电信股份有限公司 Service processing method, device, node and storage medium based on edge node
CN111093094A (en) * 2019-12-03 2020-05-01 深圳市万佳安物联科技股份有限公司 Video transcoding method, device and system, electronic equipment and readable storage medium
CN116016987A (en) * 2022-12-08 2023-04-25 上海大学 Video code rate self-adaption method based on reinforcement learning and oriented to edge cellular network

Similar Documents

Publication Publication Date Title
CN109525861A (en) A kind of method and device of video needed for determining user
US10833932B2 (en) Ad hoc wireless mesh network
US10771956B1 (en) Subscriber identification module (SIM) task scheduler for dual SIM devices using citizens broadband radio service network
CN109618373A (en) Link choosing method and relevant apparatus
DE102010014914B4 (en) Portable Wi-Fi digital video camcorder and system with this
CN109660593B (en) Internet of things platform access management method, device and system
CN103297468A (en) Operation method for group resources and group server
US11019563B1 (en) Customer premises equipment (CPE) self-organization in fixed wireless access (FWA) network
CN110944220B (en) Video screen projection playing method, device, equipment and system
US11797472B2 (en) Data cache mechanism through dual sim phone
CN103561454A (en) Network access processing method and network access processing device
CN110690988A (en) Bandwidth control method, bandwidth control platform, server and storage medium
CN103457748A (en) Data transmission method, system and device
CN104303471A (en) Method and apparatus for providing content by selecting data acceleration algorithm
CN103581317A (en) Method for sharing network resources
US10764821B2 (en) System and method for wireless network selection
CN107872533B (en) Information-pushing method, device, server and storage medium
CN103973747A (en) Method and device for acquiring content
CN105357260A (en) System for realizing virtual desktop, data caching method for VDI (Virtual Desktop Infrastructure) and VDI caching device
CN106717064B (en) Data transmission method, device and system of time division duplex wireless data transmission system
CN106534367B (en) Based on user QoE, maximumlly vehicle-mounted cloud video data transmission scheme determines method
CN109788047A (en) A kind of cache optimization method and a kind of storage medium
CN107172667B (en) Management method, system, electronic equipment and the mobile terminal of access point cluster
CN109155995A (en) A kind of resource indicating method and relevant device
CN106231618A (en) A kind of method and device sending encoding and decoding renegotiation request

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

Application publication date: 20190326

RJ01 Rejection of invention patent application after publication