CN105306963B - The processing system for video of adaptive mobile terminal resolution ratio, device and method - Google Patents

The processing system for video of adaptive mobile terminal resolution ratio, device and method Download PDF

Info

Publication number
CN105306963B
CN105306963B CN201510684038.XA CN201510684038A CN105306963B CN 105306963 B CN105306963 B CN 105306963B CN 201510684038 A CN201510684038 A CN 201510684038A CN 105306963 B CN105306963 B CN 105306963B
Authority
CN
China
Prior art keywords
video
mobile terminal
play parameter
request
resolution ratio
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510684038.XA
Other languages
Chinese (zh)
Other versions
CN105306963A (en
Inventor
程文星
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201510684038.XA priority Critical patent/CN105306963B/en
Publication of CN105306963A publication Critical patent/CN105306963A/en
Application granted granted Critical
Publication of CN105306963B publication Critical patent/CN105306963B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/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, manipulating MPEG-4 scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • H04N21/234363Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements by altering the spatial resolution, e.g. for clients with a lower screen resolution
    • 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, manipulating MPEG-4 scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • H04N21/234363Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements by altering the spatial resolution, e.g. for clients with a lower screen resolution
    • H04N21/234372Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements by altering the spatial resolution, e.g. for clients with a lower screen resolution for performing aspect ratio conversion

Abstract

The invention discloses a kind of processing system for video of adaptive mobile terminal resolution ratio, device and method, the system comprises mobile terminals and server, wherein: the mobile terminal, for sending video request to the server, the play parameter of the machine is sent simultaneously, and the play parameter includes at least the resolution ratio of the mobile terminal;The server for obtaining the video of corresponding specification according to the video request and play parameter, and returns to the mobile terminal.To, enable and obtains the best result of broadcast adaptable with play parameter such as the resolution ratio of the machine when mobile terminal playing video, realize the video that different size is returned for the mobile terminal with play parameter such as different resolutions, the video display effect of mobile terminal is improved, the user experience is improved.

Description

The processing system for video of adaptive mobile terminal resolution ratio, device and method
Technical field
The present invention relates to field of communication technology more particularly to a kind of video processing systems of adaptive mobile terminal resolution ratio System, device and method.
Background technique
With the development of mobile terminal, the size category of mobile terminal is more and more, and resolution ratio is also higher and higher, and user makes When watching video with mobile terminal, high-resolution can bring apparent and fine and smooth visual effect to user.Currently, server In the video for holding storage, usually only a kind of specification of same video, when the video request that server response mobile terminal is sent, Return to the video of same specification to all mobile terminals, and it is not intended that the play parameter such as resolution ratio of current mobile terminal, So that the play parameter such as the video of acquisition for mobile terminal and its resolution ratio are inadaptable, result of broadcast is bad, affects user experience.
Summary of the invention
It is a primary object of the present invention to propose a kind of processing system for video of adaptive mobile terminal resolution ratio, device and Method, it is intended to which the mobile terminal for adapting to different resolution improves the video display effect of mobile terminal.
To achieve the above object, the present invention proposes a kind of processing system for video of adaptive mobile terminal resolution ratio, including Mobile terminal and server, in which:
The mobile terminal for sending video request to the server, while sending the play parameter of the machine, described Play parameter includes at least the resolution ratio of the mobile terminal;
The server for obtaining the video of corresponding specification according to the video request and play parameter, and returns to The mobile terminal.
Further, the server includes obtaining module, and the acquisition module is used for: being obtained according to the video request The video of request handles according to video of the play parameter to the request, generates the video of corresponding specification.
Further, the server includes obtaining module, and the acquisition module includes pretreatment unit and acquiring unit, Wherein:
The pretreatment unit generates different rule for handling according to video of the different play parameter to upload The videos of lattice and storage;
The acquiring unit, for determining the video of request according to the video request, according to broadcasting for the mobile terminal Put the video that parameter finds out corresponding specification from the video of request;When not finding the video of corresponding specification, according to institute It states play parameter to handle the video of the request, generates the video of corresponding specification.
Further, the play parameter further includes the placement position state of network environment or/and mobile terminal.
The present invention also proposes a kind of video process apparatus of adaptive mobile terminal resolution ratio, is applied to server, including Receiving module obtains module and return module, in which:
The receiving module, for receiving the video request and play parameter of mobile terminal transmission;
The acquisition module, for obtaining the video of corresponding specification according to video playing request and play parameter;
The return module, for returning to the video of the corresponding specification to the mobile terminal.
Further, the acquisition module is used for: according to the video of the video request acquisition request, according to the broadcasting Parameter handles the video of the request, generates the video of corresponding specification.
Further, the acquisition module includes pretreatment unit and acquiring unit, in which:
The pretreatment unit generates different rule for handling according to video of the different play parameter to upload The videos of lattice and storage;
The acquiring unit, for determining the video of request according to the video request, according to broadcasting for the mobile terminal Put the video that parameter finds out corresponding specification from the video of request;When not finding the video of corresponding specification, according to institute It states play parameter to handle the video of the request, generates the video of corresponding specification.
Further, the play parameter further includes the placement position state of network environment or/and mobile terminal.
The present invention proposes a kind of method for processing video frequency of adaptive mobile terminal resolution ratio simultaneously, comprising steps of
Mobile terminal sends video request to server, while sending the play parameter of the machine, and the play parameter is at least Resolution ratio including the mobile terminal;
The server obtains the video of corresponding specification according to the video request and play parameter, and returns to the shifting Dynamic terminal.
Further, the server includes: according to the video that the video request and play parameter obtain corresponding specification
Server is according to the video of the video request acquisition request, according to the play parameter to the video of the request It is handled, generates the video of corresponding specification.
Further, the mobile terminal to server send video request the step of before further include: server according to Different play parameter handles the video of upload, generates the video of different size and storage;
The server according to the video that the video request and play parameter obtain corresponding specification include: server according to The video request determines the video of request, finds out correspondence from the video of request according to the play parameter of the mobile terminal The video of specification;When not finding the video of corresponding specification, carried out according to video of the play parameter to the request Processing, generates the video of corresponding specification.
The present invention also proposes a kind of method for processing video frequency of adaptive mobile terminal resolution ratio, is applied to server, including Step:
Receive the video playing request and play parameter that mobile terminal is sent;
The video of corresponding specification is obtained according to the video request and play parameter;
The video of the corresponding specification is returned to the mobile terminal.
Further, the video for obtaining corresponding specification according to the video request and play parameter includes:
According to the video of the video request acquisition request, according to the play parameter to the video of the request at Reason, generates the video of corresponding specification.
Further, it is also wrapped before described the step of receiving the video playing request and play parameter that mobile terminal is sent It includes: being handled according to video of the different play parameter to upload, generate the video of different size and storage;
The video according to the video request and play parameter acquisition corresponding specification includes: according to the video request The video for determining request, the video of corresponding specification is found out according to the play parameter of the mobile terminal from the video of request; It when not finding the video of corresponding specification, is handled according to video of the play parameter to the request, generation pair Answer the video of specification.
A kind of processing system for video of adaptive mobile terminal resolution ratio proposed by the invention, mobile terminal send video When request, at the same the play parameter such as resolution ratio for sending the machine, the broadcastings such as resolution ratio that server is sent according to mobile terminal ginseng Number obtains the video of the corresponding specification to match with its resolution ratio and returns to mobile terminal, so that when mobile terminal playing video The best result of broadcast being adapted with play parameter such as the resolution ratio of the machine can be obtained, is realized for different resolution Etc. play parameter mobile terminal return different size video, improve the video display effect of mobile terminal, improve use Family experience.
The video that pretreatment generates different size is further carried out by video of the server to upload, when mobile terminal is asked When seeking video, mobile terminal is directly returned to according to the video that the lookup of the play parameter of mobile terminal matches corresponding specification, is mentioned High response speed, ensure that broadcasting speed.
Detailed description of the invention
Fig. 1 is the flow chart of the method for processing video frequency first embodiment of the adaptive mobile terminal resolution ratio of the present invention;
Fig. 2 is the correspondence diagram of play parameter and video processing schemes in the embodiment of the present invention;
Fig. 3 is the flow chart of the method for processing video frequency second embodiment of the adaptive mobile terminal resolution ratio of the present invention;
Fig. 4 is the flow chart of the method for processing video frequency 3rd embodiment of the adaptive mobile terminal resolution ratio of the present invention;
Fig. 5 is the flow chart of the method for processing video frequency fourth embodiment of the adaptive mobile terminal resolution ratio of the present invention;
Fig. 6 is the module diagram of the processing system for video of the adaptive mobile terminal resolution ratio of the present invention;
Fig. 7 is the module diagram of the video process apparatus of the adaptive mobile terminal resolution ratio of the present invention;
Fig. 8 is the module of the acquisition module of one embodiment of video process apparatus of the adaptive mobile terminal resolution ratio of the present invention Schematic diagram.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The method for processing video frequency of the adaptive mobile terminal resolution ratio of the present invention, mainly comprise the steps that mobile terminal to Server sends video request, while sending the play parameter of the machine, and wherein play parameter includes at least the resolution of mobile terminal Rate;Server obtains the video of corresponding specification according to video request and play parameter, and returns to mobile terminal.
In the present invention, mobile terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include Such as mobile phone, smart phone, laptop, digit broadcasting receiver, PDA (personal digital assistant), PAD (plate electricity Brain), PMP (portable media player), the mobile terminal of navigation device etc. and number TV, desktop computer etc. Deng fixed terminal.Hereinafter it is assumed that terminal is mobile terminal.However, it will be understood by those skilled in the art that in addition to especially using Except the element of mobile purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Hereinafter, being carried out by method for processing video frequency of the specific embodiment to the adaptive mobile terminal resolution ratio of the present invention detailed Description.
As shown in Figure 1, propose the method for processing video frequency first embodiment of the adaptive mobile terminal resolution ratio of the present invention, it is described Method the following steps are included:
S11, mobile terminal send video request to server, while sending the play parameter of the machine.
The play parameter include at least mobile terminal resolution ratio, can also include mobile terminal network environment or/ With the placement position state of mobile terminal etc..Wherein, network environment includes mobile network and wireless network, mobile network such as 2G, 3G, 4G network etc., wireless network such as WIFI network etc.;The placement position state of mobile terminal includes transverse screen state and vertical screen shape State.
The resolution ratio of mobile terminal is the intrinsic parameter of mobile terminal, and system (such as Android system) included packet can be used Obtain the resolution ratio of screen.Network environment can be judged in calling interface, can area by ConnectivityManager Divide 2G, 3G, 4G and wifi network environment.Using the judgment method carried in system (such as Android system), such as:
GetActivity () .getResources () .getConfiguration () .orientation judges to move Dynamic terminal is transverse screen state or vertical screen state.
When mobile terminal request video, while the play parameter of the machine is taken, including resolution ratio, network environment, transverse screen State or vertical screen state etc..
S12, server according to the video of video request acquisition request, according to play parameter to the video of request at Reason, generates the video of corresponding specification.
In this step S12, after server receives video request and the play parameter of mobile terminal, video request is carried out Parsing, the video of acquisition request;Simultaneously parse play parameter, handled according to video of the play parameter to request, generate with The video for the corresponding specification that play parameter matches.
The play parameter of mobile terminal includes at least the resolution ratio of mobile terminal, can also include the network rings of mobile terminal Border or/and the placement position state of mobile terminal etc..That is, server can be handled the video of upload according to different resolution ratio For the video of different size, or according to the combination of different resolution and network environment the video of upload is handled as different size Video, or the view according to the combination of different resolution and placement position state handled the video of upload as different size Frequently, or according to the combination of different resolution ratio, network environment and placement position state the video of upload is handled as different rule The video of lattice.
As shown in Fig. 2, being the corresponding relationship of different play parameter and video processing schemes, reflected in Fig. 2 different The corresponding different video processing schemes of the combination of resolution ratio, network environment and placement position state.
Specifically, server is directed to different resolution ratio, specific aim compression, the higher situation of resolution ratio are carried out to video Under, video quality, pixel can be improved, provide clarity higher video, matched with the high-resolution with mobile terminal.
When play parameter further includes the placement position state of mobile terminal, it is also necessary in conjunction with mobile terminal putting currently Location status handles video, in the case where equal resolution, when mobile terminal is in transverse screen state, then can be improved Video pixel, to adapt to transverse screen effect.
When play parameter further includes network environment, it is contemplated that the size and video image quality of video file, video point The correlations such as resolution, frame number, and video can smooth playing be based on network condition and video file size, in order to guarantee video Different video compression schemes can be arranged in the fluency of broadcasting, the present invention according to heterogeneous networks situation.Such as: in 2G, 3G network Under environment, video will compress smaller, can as far as possible will view according to resolution ratio (and whether transverse screen) under WIFI network environment Frequency compresses bigger.
In the present embodiment, server comprehensively considers the resolution ratio, network environment and placement position state pair of mobile terminal Video is handled, and the video of the corresponding specification to match with play parameter is generated.
In specific implementation, video can be handled using FFMPEG video processing tools.FFMPEG be it is a set of can be with For recording, converted digital audio, video, and the open source computer program of stream can be translated into, be permitted using LGPL or GPL Card.It provides recording, conversion and the total solution for fluidizing audio-video.
S13, server return to the video of corresponding specification to mobile terminal.
After mobile terminal receives return information, the video of the corresponding specification to match with the play parameter of the machine is played, Obtain the best result of broadcast adaptable with the play parameter of the machine.
The method for processing video frequency of the adaptive mobile terminal resolution ratio of the present invention, when mobile terminal sends video request, simultaneously The play parameter such as the resolution ratio of the machine are sent, the play parameter such as resolution ratio that server is sent according to mobile terminal obtain and its point The video for the corresponding specification that resolution matches simultaneously returns to mobile terminal, enables and obtains when mobile terminal playing video and this The adaptable best result of broadcast of the play parameter such as the resolution ratio of machine, is realized for the shifting with play parameter such as different resolutions Dynamic terminal returns to the video of different size, improves the video display effect of mobile terminal, the user experience is improved.
As shown in figure 3, propose the method for processing video frequency second embodiment of the adaptive mobile terminal resolution ratio of the present invention, it is described Method the following steps are included:
S21, server are handled according to video of the different play parameter to upload, generate the video of different size simultaneously Storage.
In this step S21, whenever uploading a video to server, server is all according to play parameter currently popular The video is pre-processed, the video of corresponding different play parameter is generated, and is stored.Wherein, play parameter is at least wrapped The resolution ratio of mobile terminal is included, can also include the network environment of mobile terminal or/and the placement position state of mobile terminal. That is, the video of upload can be handled the video for different size according to different resolution ratio by server, or according to difference point The video that the combination of resolution and network environment is handled the video of upload as different size, or according to different resolution and put The video that the combination of location status is handled the video of upload as different size, or according to different resolution ratio, network environment The video of upload is handled the video for different size by the combination with placement position state.
As shown in Fig. 2, being the corresponding relationship of different play parameter and video processing schemes, reflected in Fig. 3 different The corresponding different video processing schemes of the combination of resolution ratio, network environment and placement position state.
For example, server is according to mobile terminal resolution ratio currently a popular in the market, generate different compression qualities, as The video of element and size, if resolution ratio 1280*720 video compression scheme corresponding with 1920*1080 is different, if Transverse screen plays video, also different to the processing of video.Under 2G, 3G network environment, default uses minimal compression scheme, will regard The lesser video of frequency file boil down to guarantees that video being capable of normal play.Under wifi network environment, according to resolution ratio and can be No transverse screen carries out dynamic compression to video automatically, is then (720* by video compress if resolution ratio is 1280*720 and transverse screen broadcasting N) video specification of * (1280*n), if not the video specification of transverse screen then boil down to (1280*n) * (720*n), wherein parameter N is the correspondence compression ratio of system setting.
In specific implementation, video can be handled using FFMPEG video processing tools.FFMPEG be it is a set of can be with For recording, converted digital audio, video, and the open source computer program of stream can be translated into, be permitted using LGPL or GPL Card.It provides recording, conversion and the total solution for fluidizing audio-video.
S22, mobile terminal send video request to server, while sending the play parameter of the machine.
The play parameter that mobile terminal is sent includes at least the resolution ratio of mobile terminal, can also include the net of mobile terminal Network environment or/and the placement position state of mobile terminal etc..Wherein, network environment includes mobile network and wireless network, movement Network such as 2G, 3G, 4G network etc., wireless network such as WIFI network etc.;The placement position state of mobile terminal includes transverse screen state With vertical screen state.
The resolution ratio of mobile terminal is the intrinsic parameter of mobile terminal, and system (such as Android system) included packet can be used Obtain the resolution ratio of screen.Network environment can be judged in calling interface, can area by ConnectivityManager Divide 2G, 3G, 4G and wifi network environment.Using the judgment method carried in system (such as Android system), such as:
GetActivity () .getResources () .getConfiguration () .orientation judges to move Dynamic terminal is transverse screen state or vertical screen state.
When mobile terminal request video, while the play parameter of the machine is taken, including resolution ratio, network environment, transverse screen State or vertical screen state etc..
S23, server determine the video of request according to video request, according to the play parameter of mobile terminal from the view of request The video of corresponding specification is searched in frequency.When finding the video of corresponding specification, step S25 is executed;When not finding correspondence When the video of specification, step S24 is executed.
Specifically, server finds the storage location of the video of request according to video request, according to the broadcasting of mobile terminal Parameter searches the video of the corresponding specification to match with the play parameter from the video of numerous specifications of storage.
S24, server are handled the video of request according to the play parameter of mobile terminal, generate the view of corresponding specification Frequently.
In the video that server pretreatment generates, the video not matched with the play parameter of current mobile terminal is advised When lattice, server is then handled according to video of the play parameter to request, and generation matches corresponding with the play parameter The video of specification.
Further, server stores newly-generated video, same when having to be updated to storing data library When the mobile terminal of sample play parameter requests the video again, so that it may directly acquire the video of corresponding specification.
In specific implementation, video can be handled using FFMPEG video processing tools.FFMPEG be it is a set of can be with For recording, converted digital audio, video, and the open source computer program of stream can be translated into, be permitted using LGPL or GPL Card.It provides recording, conversion and the total solution for fluidizing audio-video.
S25, server return to the video of corresponding specification to mobile terminal.
After mobile terminal receives return information, the video of the corresponding specification to match with the play parameter of the machine is played, Obtain the best result of broadcast adaptable with the play parameter of the machine.
The present embodiment is by carrying out the video that pretreatment generates different size to the video of upload, when mobile terminal request regards When frequency, mobile terminal is directly returned to according to the video that the lookup of the play parameter of mobile terminal matches corresponding specification, is mentioned High response speed, ensure that broadcasting speed.
The present invention also proposes a kind of method for processing video frequency of adaptive mobile terminal resolution ratio applied to server, mainly The following steps are included: the video playing request and play parameter that mobile terminal is sent are received, according to video request and play parameter The video for obtaining corresponding specification returns to the video of corresponding specification to mobile terminal.It is retouched in detail below by way of specific embodiment It states.
As shown in figure 4, propose the method for processing video frequency 3rd embodiment of the adaptive mobile terminal resolution ratio of the present invention, it is described Method is applied to server, comprising the following steps:
S31, video request and play parameter that mobile terminal is sent are received.
The play parameter that mobile terminal is sent includes at least the resolution ratio of mobile terminal, can also include the net of mobile terminal Network environment or/and the placement position state of mobile terminal etc..Wherein, network environment includes mobile network and wireless network, movement Network such as 2G, 3G, 4G network etc., wireless network such as WIFI network etc.;The placement position state of mobile terminal includes transverse screen state With vertical screen state.
S32, according to the video of video request acquisition request, handled according to video of the play parameter to request, generate The video of corresponding specification.
In this step S32, after server receives video request and the play parameter of mobile terminal, video request is carried out Parsing, the video of acquisition request;Simultaneously parse play parameter, handled according to video of the play parameter to request, generate with The video for the corresponding specification that play parameter matches.
The play parameter of mobile terminal includes at least the resolution ratio of mobile terminal, can also include the network rings of mobile terminal Border or/and the placement position state of mobile terminal etc..That is, server can be handled the video of upload according to different resolution ratio For the video of different size, or according to the combination of different resolution and network environment the video of upload is handled as different size Video, or the view according to the combination of different resolution and placement position state handled the video of upload as different size Frequently, or according to the combination of different resolution ratio, network environment and placement position state the video of upload is handled as different rule The video of lattice.
As shown in Fig. 2, being the corresponding relationship of different play parameter and video processing schemes, reflected in Fig. 2 different The corresponding different video processing schemes of the combination of resolution ratio, network environment and placement position state.
Specifically, server is directed to different resolution ratio, specific aim compression, the higher situation of resolution ratio are carried out to video Under, video quality, pixel can be improved, provide clarity higher video, matched with the high-resolution with mobile terminal.
When play parameter further includes the placement position state of mobile terminal, it is also necessary in conjunction with mobile terminal putting currently Location status handles video, in the case where equal resolution, when mobile terminal is in transverse screen state, then can be improved Video pixel, to adapt to transverse screen effect.
When play parameter further includes network environment, it is contemplated that the size and video image quality of video file, video point The correlations such as resolution, frame number, and video can smooth playing be based on network condition and video file size, in order to guarantee video Different video compression schemes can be arranged in the fluency of broadcasting, the present invention according to heterogeneous networks situation.Such as: in 2G, 3G network Under environment, video will compress smaller, can as far as possible will view according to resolution ratio (and whether transverse screen) under WIFI network environment Frequency compresses bigger.
In the present embodiment, server comprehensively considers the resolution ratio, network environment and placement position state pair of mobile terminal Video is handled, and the video of the corresponding specification to match with play parameter is generated.
In specific implementation, video can be handled using FFMPEG video processing tools.FFMPEG be it is a set of can be with For recording, converted digital audio, video, and the open source computer program of stream can be translated into, be permitted using LGPL or GPL Card.It provides recording, conversion and the total solution for fluidizing audio-video.
S33, the video that corresponding specification is returned to mobile terminal.
The method for processing video frequency of the adaptive mobile terminal resolution ratio of the present embodiment, the resolution ratio etc. sent according to mobile terminal Play parameter obtains the video of the corresponding specification to match with its resolution ratio and returns to mobile terminal, so that mobile terminal playing The best result of broadcast being adapted with play parameter such as the resolution ratio of the machine can be obtained when video, realized different for having The mobile terminal of the play parameter such as resolution ratio returns to the video of different size, improves the video display effect of mobile terminal, mentions User experience is risen.
As shown in figure 5, propose the method for processing video frequency fourth embodiment of the adaptive mobile terminal resolution ratio of the present invention, it is described Method is applied to server, comprising the following steps:
S41, it is handled according to video of the different play parameter to upload, generates the video of different size and storage.
In this step S41, whenever uploading a video to server, server is all according to play parameter currently popular The video is pre-processed, the video of corresponding different play parameter is generated, and is stored.Wherein, play parameter is at least wrapped The resolution ratio of mobile terminal is included, can also include the network environment of mobile terminal or/and the placement position state of mobile terminal. That is, the video of upload can be handled the video for different size according to different resolution ratio by server, or according to difference point The video that the combination of resolution and network environment is handled the video of upload as different size, or according to different resolution and put The video that the combination of location status is handled the video of upload as different size, or according to different resolution ratio, network environment The video of upload is handled the video for different size by the combination with placement position state.
As shown in Fig. 2, being the corresponding relationship of different play parameter and video processing schemes, reflected in Fig. 2 different The corresponding different video processing schemes of the combination of resolution ratio, network environment and placement position state.
For example, server is according to mobile terminal resolution ratio currently a popular in the market, generate different compression qualities, as The video of element and size, if resolution ratio 1280*720 video compression scheme corresponding with 1920*1080 is different, if Transverse screen plays video, also different to the processing of video.Under 2G, 3G network environment, default uses minimal compression scheme, will regard The lesser video of frequency file boil down to guarantees that video being capable of normal play.Under wifi network environment, according to resolution ratio and can be No transverse screen carries out dynamic compression to video automatically, is then (720* by video compress if resolution ratio is 1280*720 and transverse screen broadcasting N) video specification of * (1280*n), if not the video specification of transverse screen then boil down to (1280*n) * (720*n), wherein parameter N is the correspondence compression ratio of system setting.
In specific implementation, video can be handled using FFMPEG video processing tools.FFMPEG be it is a set of can be with For recording, converted digital audio, video, and the open source computer program of stream can be translated into, be permitted using LGPL or GPL Card.It provides recording, conversion and the total solution for fluidizing audio-video.
S42, video request and play parameter that mobile terminal is sent are received.
The play parameter that mobile terminal is sent includes at least the resolution ratio of mobile terminal, can also include the net of mobile terminal Network environment or/and the placement position state of mobile terminal etc..Wherein, network environment includes mobile network and wireless network, movement Network such as 2G, 3G, 4G network etc., wireless network such as WIFI network etc.;The placement position state of mobile terminal includes transverse screen state With vertical screen state.
S43, the video that request is determined according to video request, are looked into from the video of request according to the play parameter of mobile terminal Look for the video of corresponding specification.When finding the video of corresponding specification, step S45 is executed;When not finding corresponding specification When video, step S44 is executed.
Specifically, server finds the storage location of the video of request according to video request, according to the broadcasting of mobile terminal Parameter searches the video of the corresponding specification to match with the play parameter from the video of numerous specifications of storage.
S44, the video of request is handled according to the play parameter of mobile terminal, generates the video of corresponding specification.
In the video that server pretreatment generates, the video not matched with the play parameter of current mobile terminal is advised When lattice, server is then handled according to video of the play parameter to request, and generation matches corresponding with the play parameter The video of specification.
Further, server stores newly-generated video, same when having to be updated to storing data library When the mobile terminal of sample play parameter requests the video again, so that it may directly acquire the video of corresponding specification.
In specific implementation, video can be handled using FFMPEG video processing tools.FFMPEG be it is a set of can be with For recording, converted digital audio, video, and the open source computer program of stream can be translated into, be permitted using LGPL or GPL Card.It provides recording, conversion and the total solution for fluidizing audio-video.
S45, the video that corresponding specification is returned to mobile terminal.
The present embodiment is by carrying out the video that pretreatment generates different size to the video of upload, when mobile terminal request regards When frequency, mobile terminal is directly returned to according to the video that the lookup of the play parameter of mobile terminal matches corresponding specification, is improved Response speed ensure that broadcasting speed.
As shown in fig. 6, the present invention further provides a kind of processing system for video of adaptive mobile terminal resolution ratio, it is described System includes mobile terminal and server, in which:
Mobile terminal: for sending video request to server, while the play parameter of the machine is sent.
The play parameter include at least mobile terminal resolution ratio, can also include mobile terminal network environment or/ With the placement position state of mobile terminal etc..Wherein, network environment includes mobile network and wireless network, mobile network such as 2G, 3G, 4G network etc., wireless network such as WIFI network etc.;The placement position state of mobile terminal includes transverse screen state and vertical screen shape State.
The resolution ratio of mobile terminal is the intrinsic parameter of mobile terminal, and system (such as Android system) included packet can be used Obtain the resolution ratio of screen.Network environment can be judged in calling interface, can area by ConnectivityManager Divide 2G, 3G, 4G and wifi network environment.Using the judgment method carried in system (such as Android system), such as:
GetActivity () .getResources () .getConfiguration () .orientation judges to move Dynamic terminal is transverse screen state or vertical screen state.
When mobile terminal request video, while the play parameter of the machine is taken, including resolution ratio, network environment, transverse screen State or vertical screen state etc..
Server: it for obtaining the video of corresponding specification according to the video request and play parameter of mobile terminal, and returns To mobile terminal.
In certain embodiments, server includes an acquisition module, which is used for: being asked according to video request acquisition The video asked handles according to video of the play parameter of mobile terminal to request, generates the video of corresponding specification.
In further embodiments, server includes an acquisition module, which includes pretreatment unit and acquisition Unit, in which: pretreatment unit generates different size for handling according to video of the different play parameter to upload Video and storage;Acquiring unit, for according to video request determine request video, according to the play parameter of mobile terminal from The video of corresponding specification is found out in the video of request;When not finding the video of corresponding specification, according to play parameter pair The video of request is handled, and the video of corresponding specification is generated.
The processing system for video of the adaptive mobile terminal resolution ratio of the present invention, when mobile terminal sends video request, simultaneously The play parameter such as the resolution ratio of the machine are sent, the play parameter such as resolution ratio that server is sent according to mobile terminal obtain and its point The video for the corresponding specification that resolution matches simultaneously returns to mobile terminal, enables and obtains when mobile terminal playing video and this The adaptable best result of broadcast of the play parameter such as the resolution ratio of machine, realizes for play parameter such as different resolutions Mobile terminal returns to the video of different size, improves the video display effect of mobile terminal, the user experience is improved.
The video that pretreatment generates different size is further carried out by video of the server to upload, when mobile terminal is asked When seeking video, mobile terminal is directly returned to according to the video that the lookup of the play parameter of mobile terminal matches corresponding specification, is mentioned High response speed, ensure that broadcasting speed.
As shown in fig. 7, the present invention also proposes a kind of video process apparatus of adaptive mobile terminal resolution ratio, described device Applied to server, including receiving module, acquisition module and return module.Wherein, receiving module is for receiving mobile terminal hair The video request and play parameter sent obtain module and are used for according to the request of the video playing of mobile terminal and play parameter acquisition pair The video of specification is answered, return module is used to return the video of corresponding specification to mobile terminal.
The play parameter that mobile terminal is sent can also include mobile terminal including at least the resolution ratio of mobile terminal The placement position state of network environment or/and mobile terminal.Wherein, network environment includes mobile network and wireless network, movement Network such as 2G, 3G, 4G network etc., wireless network such as WIFI network etc.;The placement position state of mobile terminal includes transverse screen state With vertical screen state.
In certain embodiments, module is obtained according to the video of video request acquisition request, according to the broadcasting of mobile terminal Parameter handles the video of request, generates the video of corresponding specification.
In further embodiments, module is obtained as shown in figure 8, including pretreatment unit and acquiring unit, in which: pre- place It manages unit and generates the video of different size and storage for handling according to video of the different play parameter to upload;It obtains Unit is taken, for determining the video of request according to video request, is looked into from the video of request according to the play parameter of mobile terminal Find out the video of corresponding specification;When not finding the video of corresponding specification, carried out according to video of the play parameter to request Processing, generates the video of corresponding specification.
The video process apparatus of the adaptive mobile terminal resolution ratio of the present invention is broadcast according to the resolution ratio etc. that mobile terminal is sent It puts parameter to obtain the video of the corresponding specification to match with its resolution ratio and return to mobile terminal, so that mobile terminal playing regards The best result of broadcast being adapted with play parameter such as the resolution ratio of the machine can be obtained when frequency, realized for different points The mobile terminal of the play parameter such as resolution returns to the video of different size, improves the video display effect of mobile terminal, is promoted User experience.
Further by carrying out the video that pretreatment generates different size to the video of upload, when mobile terminal request video When, mobile terminal is directly returned to according to the video that the lookup of the play parameter of mobile terminal matches corresponding specification, improves sound Speed is answered, ensure that broadcasting speed.
The processing system for video and apparatus and method embodiment of adaptive mobile terminal resolution ratio provided by the above embodiment Belong to same design, specific implementation process is detailed in embodiment of the method, and the technical characteristic in embodiment of the method is in system and dress It sets to correspond in embodiment and be applicable in, which is not described herein again.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothes Business device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (2)

1. a kind of processing system for video of adaptive mobile terminal resolution ratio, which is characterized in that including mobile terminal and server, Wherein:
The mobile terminal for sending video request to the server, while sending the play parameter of the machine, the broadcasting Parameter include the resolution ratio of the mobile terminal, the network environment of mobile terminal, mobile terminal placement position, it is described it is mobile eventually The placement position at end includes transverse screen state and vertical screen state;
The server, including receiving module, acquisition module and return module,
The receiving module is used to receive the video request and play parameter of mobile terminal transmission,
The acquisition module includes pretreatment unit and acquiring unit, in which: the pretreatment unit is joined according to different broadcastings The video of several pairs of uploads pre-processes, and generates the video of different size and storage, the play parameter includes mobile terminal Resolution ratio, the network environment of mobile terminal, mobile terminal placement position, the acquiring unit is true according to the video request Surely the storage location for the video requested is searched from the video of the different size of storage according to the play parameter of the mobile terminal Out with the matched video of play parameter, in the case where equal resolution, when mobile terminal is in transverse screen state, by the view The biggish video of frequency boil down to specification adapts to transverse screen state, and the specification includes the pixel of video, size, when not finding When video matched with the play parameter, the resolution ratio, network environment and mobile terminal for comprehensively considering mobile terminal are put Position carries out compression processing to the video of the request, generates the video with the matched corresponding specification of the play parameter,
The return module, for returning to the described and matched video of play parameter to mobile terminal.
2. a kind of method for processing video frequency of adaptive mobile terminal resolution ratio is applied to server, which is characterized in that including step It is rapid:
It is pre-processed according to video of the different play parameter to upload, generates the video of different size and storage, it is described to broadcast Put parameter include the resolution ratio of mobile terminal, the network environment of mobile terminal, mobile terminal placement position, the mobile terminal Placement position include transverse screen state and vertical screen state;
The video playing request and play parameter, the play parameter for receiving mobile terminal transmission include the resolution of mobile terminal Rate, the network environment of mobile terminal, mobile terminal placement position;
The storage location that the video of request is determined according to the video request, according to the play parameter of the mobile terminal from storage Different size video in find out and work as mobile terminal in the case where equal resolution with the matched video of play parameter When in transverse screen state, it is the biggish video of specification by the video compress, adapts to transverse screen state, the specification includes video Pixel, size comprehensively consider resolution ratio, the net of mobile terminal when not finding video matched with the play parameter Network environment and mobile terminal placement position carry out compression processing to the video of the request, and generation is matched with the play parameter Corresponding specification video;
The described and matched video of play parameter is returned to the mobile terminal.
CN201510684038.XA 2015-10-20 2015-10-20 The processing system for video of adaptive mobile terminal resolution ratio, device and method Active CN105306963B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510684038.XA CN105306963B (en) 2015-10-20 2015-10-20 The processing system for video of adaptive mobile terminal resolution ratio, device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510684038.XA CN105306963B (en) 2015-10-20 2015-10-20 The processing system for video of adaptive mobile terminal resolution ratio, device and method

Publications (2)

Publication Number Publication Date
CN105306963A CN105306963A (en) 2016-02-03
CN105306963B true CN105306963B (en) 2019-10-08

Family

ID=55203638

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510684038.XA Active CN105306963B (en) 2015-10-20 2015-10-20 The processing system for video of adaptive mobile terminal resolution ratio, device and method

Country Status (1)

Country Link
CN (1) CN105306963B (en)

Families Citing this family (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107172456A (en) * 2016-03-08 2017-09-15 北京优朋普乐科技有限公司 Advertisement placement method, device and system and advertising resource medium determining method
CN105959716A (en) * 2016-05-13 2016-09-21 武汉斗鱼网络科技有限公司 Method and system for automatically recommending definition based on user equipment
CN106028060A (en) * 2016-05-25 2016-10-12 努比亚技术有限公司 Picture check device, system and method
CN106060635A (en) * 2016-05-31 2016-10-26 广州视源电子科技股份有限公司 Double-screen different-display method and system
CN106101764A (en) * 2016-07-20 2016-11-09 广州华多网络科技有限公司 A kind of methods, devices and systems showing video data
CN106231416A (en) * 2016-08-16 2016-12-14 北京小米移动软件有限公司 Method for processing video frequency and device
CN107071518A (en) * 2016-09-05 2017-08-18 北京奥鹏远程教育中心有限公司 The video broadcasting method and system of adaptive mobile terminal study
CN106791947A (en) * 2016-12-28 2017-05-31 北京金山安全软件有限公司 Method and device for transmitting network video and electronic equipment
CN109753207B (en) * 2017-11-02 2021-12-10 腾讯科技(深圳)有限公司 Information processing method and device and storage medium
CN108055554A (en) * 2017-12-14 2018-05-18 深圳Tcl数字技术有限公司 Video broadcasting method, TV, server and computer readable storage medium
CN107948578B (en) * 2017-12-28 2019-01-04 深圳华望技术有限公司 The method of adjustment and adjustment device of video conferencing system transmission bandwidth and resolution ratio
CN111147893B (en) * 2018-11-02 2021-10-22 华为技术有限公司 Video self-adaption method, related equipment and storage medium
CN111294658A (en) * 2018-12-07 2020-06-16 北京字节跳动网络技术有限公司 Information processing method and device
CN109729423A (en) * 2018-12-27 2019-05-07 麒麟合盛网络技术股份有限公司 A kind of desktop wallpaper setting method and device
CN109996116B (en) * 2019-03-27 2021-07-16 深圳创维-Rgb电子有限公司 Method for improving video resolution, terminal and readable storage medium
CN110288678B (en) * 2019-06-27 2024-02-09 北京金山安全软件有限公司 Dynamic photo generation method, device, computer equipment and storage medium
CN112351317A (en) * 2020-10-13 2021-02-09 北京巨目智播科技有限公司 Self-adaptive playing terminal playing method and device
CN114466145B (en) * 2022-01-30 2024-04-12 北京字跳网络技术有限公司 Video processing method, device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102970600A (en) * 2012-11-20 2013-03-13 无锡成电科大科技发展有限公司 Cloud-computing-based high-definition video playing system and method
CN103379363A (en) * 2012-04-19 2013-10-30 腾讯科技(深圳)有限公司 Video processing method and apparatus, mobile terminal and system
CN103702139A (en) * 2013-12-13 2014-04-02 华中科技大学 Video-on-demand system based on scalable coding under mobile environment
CN104410903A (en) * 2014-12-25 2015-03-11 安科智慧城市技术(中国)有限公司 Method and system for transcoding video based on mobile terminal
CN104702976A (en) * 2015-02-10 2015-06-10 深圳创维数字技术有限公司 Video playing method and equipment
CN104918077A (en) * 2015-06-02 2015-09-16 北京邮电大学 Video transmission method, device and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103379363A (en) * 2012-04-19 2013-10-30 腾讯科技(深圳)有限公司 Video processing method and apparatus, mobile terminal and system
CN102970600A (en) * 2012-11-20 2013-03-13 无锡成电科大科技发展有限公司 Cloud-computing-based high-definition video playing system and method
CN103702139A (en) * 2013-12-13 2014-04-02 华中科技大学 Video-on-demand system based on scalable coding under mobile environment
CN104410903A (en) * 2014-12-25 2015-03-11 安科智慧城市技术(中国)有限公司 Method and system for transcoding video based on mobile terminal
CN104702976A (en) * 2015-02-10 2015-06-10 深圳创维数字技术有限公司 Video playing method and equipment
CN104918077A (en) * 2015-06-02 2015-09-16 北京邮电大学 Video transmission method, device and system

Also Published As

Publication number Publication date
CN105306963A (en) 2016-02-03

Similar Documents

Publication Publication Date Title
CN105306963B (en) The processing system for video of adaptive mobile terminal resolution ratio, device and method
JP6877808B2 (en) Methods, devices, and systems for processing video stream data
CN103166941B (en) A kind of method and device of data sharing
CN107040794A (en) Video broadcasting method, server, virtual reality device and panoramic virtual reality play system
CN103248939A (en) Method and system for achieving synchronous display of multiple screens
CN109561351A (en) Network direct broadcasting back method, device and storage medium
CN105657498A (en) Video recording method and device of mobile terminal
CN106998485B (en) Video live broadcasting method and device
CN104717549A (en) Multi-screen information interaction method and device
CN103986965A (en) Processing device, system and method for multimedia data
CN103024266A (en) Shooting optimization method, system and device of mobile terminal
US10404606B2 (en) Method and apparatus for acquiring video bitstream
US20200107084A1 (en) Method and device for playback optimization
CN103024491B (en) The video broadcasting method of mobile terminal and system
CN107040825B (en) Terminal, television, multi-screen interaction system and screen capture parameter setting method
CN107529075B (en) Cross-screen continuous playing method, system, server, equipment and cross-screen continuous playing equipment
US9749197B2 (en) Mobile user data collection
CN107105317B (en) Video playing method and device
CN104469414A (en) Information system, information put-in method and IPTV system based on multi-screen interaction
CN113747183A (en) Live video sharing method and system and readable storage medium
CN106604085A (en) Video sharing method and video sharing device
KR101653237B1 (en) Method and system for providing contents service using multiple devices
CN106254810A (en) A kind of video call method and device
CN106060609A (en) Method and device for acquiring picture
CN106357816B (en) A kind of method and system of cloud storage compound document

Legal Events

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