CN105916023B - A kind of Video Rendering method and system based on GPU - Google Patents
A kind of Video Rendering method and system based on GPU Download PDFInfo
- Publication number
- CN105916023B CN105916023B CN201610320874.4A CN201610320874A CN105916023B CN 105916023 B CN105916023 B CN 105916023B CN 201610320874 A CN201610320874 A CN 201610320874A CN 105916023 B CN105916023 B CN 105916023B
- Authority
- CN
- China
- Prior art keywords
- rendering
- net cast
- video
- gpu
- browser
- 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
Links
- 238000009877 rendering Methods 0.000 title claims abstract description 75
- 238000000034 method Methods 0.000 title claims abstract description 16
- VYZAMTAEIAYCRO-UHFFFAOYSA-N Chromium Chemical compound [Cr] VYZAMTAEIAYCRO-UHFFFAOYSA-N 0.000 claims abstract description 14
- 230000008569 process Effects 0.000 claims description 5
- 238000001514 detection method Methods 0.000 claims description 4
- 238000007689 inspection Methods 0.000 claims 1
- 239000002699 waste material Substances 0.000 abstract description 4
- 230000000694 effects Effects 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/44012—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving rendering scenes according to scene graphs, e.g. MPEG-4 scene graphs
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/478—Supplemental services, e.g. displaying phone caller identification, shopping application
- H04N21/4782—Web browsing, e.g. WebTV
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The Video Rendering method based on GPU that the invention discloses a kind of, it include: to judge whether the browser between user's opening net cast supports GPU to render, whether the type for judging that user opens the browser between net cast if supporting is Chrome browser, if it is default plays the video between net cast using CPU rendering, and rendering type selection command is sent to user, it is to select to render the video between playing net cast with GPU, or selection renders the video between playing net cast with CPU that user is indicated in the rendering type instruction;It receives from user according to the rendering selected rendering type of type selection command, and the video between net cast is played according to the rendering type.The present invention is able to solve the technical issues of waste user computer resource brought by existing simple CPU rendering mode.
Description
Technical field
The invention belongs to net cast technical fields, more particularly, to a kind of Video Rendering method based on GPU and are
System.
Background technique
Currently, net cast platform is very universal, user can watch them by net cast platform and wish to see
TV, film and game live streaming for seeing etc..Video Rendering is a kind of very common method for processing video frequency in net cast, is used
In the computer resource for saving user.Generally default using CPU render mode at present, but since CPU also needs to handle greatly
The other operations of amount, are used for Video Rendering, virtually can cause waste unnecessary to the computer resource of user.
Summary of the invention
Aiming at the above defects or improvement requirements of the prior art, the present invention provides a kind of Video Rendering sides based on GPU
Method and system, it is intended that the technology for solving waste user computer resource brought by existing simple CPU rendering mode is asked
Topic.
To achieve the above object, according to one aspect of the present invention, a kind of Video Rendering method based on GPU is provided,
The following steps are included:
(1) judge whether the browser between user opens net cast supports GPU to render, be transferred to step if supporting
(2), otherwise video is rendered using conventional CPU render mode;
(2) judge whether the type of browser between user opens net cast is Chrome browser, if it is into
Enter step (3), otherwise enters step (5);
(3) default plays the video between net cast using CPU rendering, and sends rendering type selection command to user,
It is to select to render the video between playing net cast with GPU, or select to use CPU wash with watercolours that user is indicated in the rendering type instruction
Dye plays the video between net cast;
(4) it receives from user according to the rendering selected rendering type of type selection command, and according to the rendering type
The video between net cast is played, process terminates;
(5) default plays the video between net cast using GPU rendering.
Preferably, step (1) is rendered particular by the development language detection browser GPU of the player between net cast
Availability.
It is another aspect of this invention to provide that providing a kind of Video Rendering system based on GPU, comprising:
First module, judges whether the browser between user opens net cast supports GPU to render, and is transferred to if supporting
Otherwise second module renders video using conventional CPU render mode;
Second module, for judging whether the type of the browser between user opens net cast is Chrome browser,
If yes then enter third module, otherwise enter the 5th module;
Third module uses CPU rendering to play the video between net cast, and sends rendering type to user for defaulting
Selection instruction, it is to select to render the video between playing net cast, or choosing with GPU that user is indicated in the rendering type instruction
Select the video rendered between playing net cast with CPU;
4th module, for receiving from user according to the rendering selected rendering type of type selection command, and according to
The rendering type plays the video between net cast, and process terminates;
5th module uses GPU rendering to play the video between net cast for defaulting.
Preferably, the first module detects browser GPU wash with watercolours particular by the development language of the player between net cast
The availability of dye.
In general, through the invention it is contemplated above technical scheme is compared with the prior art, can obtain down and show
Beneficial effect:
(1) by the present invention in that realizing Video Rendering with GPU, by GPU in terms of video processing the advantages of performs to maximum
Change, and solves merely the technical issues of by waste user computer resource brought by CPU rendering mode;
(2) present invention selects different Video Rendering modes according to the type of different browsers, to reach user's broadcasting
Experience optimal effect.
Detailed description of the invention
Fig. 1 is the flow chart of the Video Rendering method the present invention is based on GPU.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.As long as in addition, technical characteristic involved in the various embodiments of the present invention described below
Not constituting a conflict with each other can be combined with each other.
As shown in Figure 1, the present invention is based on the Video Rendering method of GPU the following steps are included:
(1) judge whether the browser between user opens net cast supports GPU to render, be transferred to step if supporting
(2), otherwise video is rendered using conventional CPU render mode;Specifically, this step passes through broadcasting between net cast
Put development language (be in the present invention using Actionscript 3.0) the detection browsing of device (such as Flash player)
The availability of device GPU rendering;
Processing by GPU to software Graphics image can reduce the burden of CPU, so that application software can be with more
Fast speed is processed, that is to say, that can raise speed.
(2) judge whether the type of browser between user opens net cast is Chrome browser, if it is into
Enter step (3), otherwise enters step (5);
(3) default plays the video between net cast using CPU rendering, and sends rendering type selection command to user,
It is to select to render the video between playing net cast with GPU, or select to use CPU wash with watercolours that user is indicated in the rendering type instruction
Dye plays the video between net cast;
(4) it receives from user according to the rendering selected rendering type of type selection command, and according to the rendering type
The video between net cast is played, process terminates;
(5) default plays the video between net cast using GPU rendering.
Specific implementation of the present invention is as follows:
(1) automatic mode: when entering direct broadcasting room, pass through the computer programming language of flash player exploitation
ActionScript3.0 provides stage.stageVideos.length!=0 (plays what external video can be used
StageVideo list object) interface detection current browser it is available with the presence or absence of GPU, if it does not exist, just use routine CPU wash with watercolours
Dye mode, while " opening GPU rendering " option being made in player right-click menu to set ash, it can not click;If it exists, then
Pass through flashActionScript3.0 technical interface Capabilities.manufacturer.toLowerCase ()
.indexOf("google")!=-1 (manufacturer when operation version or the AIR operation of Flash Player) is current to detect
The version of flashplayer in browser, if detecting is version built in chrome browser, default never call GPU (because
Under chrome, if opening GPU rendering, in the configuration video card operation of a part of computer, the bad effect for pulling screen barrage is had
Occur, so default is to close), while " opening GPU rendering " option being made in player right-click menu to be the state that can be clicked,
Otherwise there is available GPU then to default unlatching under non-chrome browser and call GPU rendering, and make in player right-click menu
" closing GPU rendering " option is the state that can be clicked.
(2) it manual mode: in video playing, if default opens GPU rendering automatically, can also be turned off manually
GPU rendering switches to CPU rendering;At chrome, default be close GPU render, once CPU exorbitant expenditure, can open
GPU rendering, reduces the consumption of CPU.Whole operation step is: clicking popup menu option by right key on a player, has and " close
The option of the two one of GPU rendering " or " opening GPU rendering ", chooses option to click, will send instruction to player and cut
Another rendering play mode is changed to, for example is switched to GPU render mode from CPU, or be switched to GPU rendering mould from CPU
Formula, video flowing will play out under selected render mode.
As it will be easily appreciated by one skilled in the art that the foregoing is merely illustrative of the preferred embodiments of the present invention, not to
The limitation present invention, any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should all include
Within protection scope of the present invention.
Claims (2)
1. a kind of Video Rendering method based on GPU, which comprises the following steps:
(1) judge whether the browser between user opens net cast supports GPU to render, be transferred to step (2) if supporting, it is no
Then video is rendered using conventional CPU render mode;It is detected by the development language of the player between net cast clear
The availability of the device GPU that lookes at rendering;The interface inspection provided by the computer programming language of the exploitation of the player between net cast
Survey whether current browser supports GPU to render;
(2) whether the type for judging that user opens the browser between net cast is Chrome browser, if yes then enter step
Suddenly (3) otherwise enter step (5);It is played by the technical interface that computer programming language provides to detect in current browser
The version of device whether be version built in chrome browser judge the browser between user opens net cast type whether
It is Chrome browser;
(3) default plays the video between net cast using CPU rendering, and sends rendering type selection command, the wash with watercolours to user
It is to select to render the video between playing net cast with GPU, or selection is broadcast with CPU rendering that user is indicated in dye type instruction
Put the video between net cast;
(4) it receives from user according to the rendering selected rendering type of type selection command, and played according to the rendering type
Video between net cast, process terminate;
(5) default plays the video between net cast using GPU rendering.
2. a kind of Video Rendering system based on GPU characterized by comprising
First module, judges whether the browser between user opens net cast supports GPU to render, and is transferred to second if supporting
Otherwise module renders video using conventional CPU render mode;Pass through the development language of the player between net cast
Detect the availability of browser GPU rendering;It is provided by the computer programming language of the exploitation of the player between net cast
Whether interface detection current browser supports GPU to render;
Second module, for judging whether the type of the browser between user opens net cast is Chrome browser, if
It is then to enter third module, otherwise enters the 5th module;It is detected by the technical interface of computer programming language offer current
Whether the version of player is version built in chrome browser to judge the browsing between user opens net cast in browser
Whether the type of device is Chrome browser;
Third module uses CPU rendering to play the video between net cast, and sends rendering type selection to user for defaulting
It instructs, it is to select to render the video between playing net cast with GPU, or selection is used that user is indicated in the rendering type instruction
CPU rendering plays the video between net cast;
4th module, for receiving from user according to the rendering selected rendering type of type selection command, and according to the wash with watercolours
The video between type broadcasting net cast is contaminated, process terminates;
5th module uses GPU rendering to play the video between net cast for defaulting.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610320874.4A CN105916023B (en) | 2016-05-16 | 2016-05-16 | A kind of Video Rendering method and system based on GPU |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610320874.4A CN105916023B (en) | 2016-05-16 | 2016-05-16 | A kind of Video Rendering method and system based on GPU |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105916023A CN105916023A (en) | 2016-08-31 |
CN105916023B true CN105916023B (en) | 2019-04-23 |
Family
ID=56748217
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610320874.4A Active CN105916023B (en) | 2016-05-16 | 2016-05-16 | A kind of Video Rendering method and system based on GPU |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105916023B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106502667B (en) * | 2016-10-18 | 2019-09-03 | 广州视睿电子科技有限公司 | Rendering method and device |
CN107864343B (en) * | 2017-10-09 | 2019-01-29 | 上海幻电信息科技有限公司 | Computer live streaming image rendering method and system based on video card |
CN109587546B (en) | 2018-11-27 | 2020-09-22 | Oppo广东移动通信有限公司 | Video processing method, video processing device, electronic equipment and computer readable medium |
CN118429173A (en) * | 2023-02-01 | 2024-08-02 | 华为技术有限公司 | Rendering method, rendering device, electronic equipment and computer readable storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102930211A (en) * | 2012-11-07 | 2013-02-13 | 北京奇虎科技有限公司 | Method for intercepting malicious URLs in multi-kernel browser and multi-kernel browser |
CN103077239A (en) * | 2013-01-10 | 2013-05-01 | 上海电力学院 | IFrame embedded Web3D (Web three-dimensional) system based on cloud rendering |
WO2014019127A1 (en) * | 2012-07-31 | 2014-02-06 | Intel Corporation (A Corporation Of Delaware) | Hybrid rendering systems and methods |
CN103617191A (en) * | 2013-11-07 | 2014-03-05 | 北京奇虎科技有限公司 | Browser and method for rendering same by means of hardware acceleration |
CN104952096A (en) * | 2014-03-31 | 2015-09-30 | 中国电信股份有限公司 | CPU and GPU hybrid cloud rendering method, device and system |
CN105262961A (en) * | 2015-10-21 | 2016-01-20 | 北京中科大洋科技发展股份有限公司 | Multi-lens editing method based on cluster rendering |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050012751A1 (en) * | 2003-07-18 | 2005-01-20 | Karlov Donald David | Systems and methods for efficiently updating complex graphics in a computer system by by-passing the graphical processing unit and rendering graphics in main memory |
US20100073695A1 (en) * | 2008-04-18 | 2010-03-25 | Global Graphics Software Limited | Methods and systems for increasing performance of server-based rendering |
-
2016
- 2016-05-16 CN CN201610320874.4A patent/CN105916023B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2014019127A1 (en) * | 2012-07-31 | 2014-02-06 | Intel Corporation (A Corporation Of Delaware) | Hybrid rendering systems and methods |
CN102930211A (en) * | 2012-11-07 | 2013-02-13 | 北京奇虎科技有限公司 | Method for intercepting malicious URLs in multi-kernel browser and multi-kernel browser |
CN103077239A (en) * | 2013-01-10 | 2013-05-01 | 上海电力学院 | IFrame embedded Web3D (Web three-dimensional) system based on cloud rendering |
CN103617191A (en) * | 2013-11-07 | 2014-03-05 | 北京奇虎科技有限公司 | Browser and method for rendering same by means of hardware acceleration |
CN104952096A (en) * | 2014-03-31 | 2015-09-30 | 中国电信股份有限公司 | CPU and GPU hybrid cloud rendering method, device and system |
CN105262961A (en) * | 2015-10-21 | 2016-01-20 | 北京中科大洋科技发展股份有限公司 | Multi-lens editing method based on cluster rendering |
Also Published As
Publication number | Publication date |
---|---|
CN105916023A (en) | 2016-08-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105916023B (en) | A kind of Video Rendering method and system based on GPU | |
US9160814B2 (en) | Intuitive data transfer between connected devices | |
JP6338669B2 (en) | Method, device and system for dynamic multimedia data flow control for thermal power distribution | |
CN110022495A (en) | A kind of mobile terminal pushes the method and display equipment of media file to display equipment | |
US9473821B2 (en) | Television | |
KR20100063670A (en) | Techniques to push content to a connected device | |
CN114339339A (en) | Display device, external device and play mode switching method | |
RU2619089C2 (en) | Method and device for multiple videos reproduction | |
KR101501378B1 (en) | Method and apparatus for video streaming | |
CN107493510B (en) | Live stream playing method and device in live broadcast room, computer storage medium and equipment | |
CN103226384B (en) | Terminal device and electricity-saving processing method thereof | |
CN108777819B (en) | A kind of control method and control device based on browser player plays video web page | |
CN109168074A (en) | A kind of video broadcasting method and device | |
CN106411883B (en) | A kind of method and province's flow audio/video player system of saving flow | |
WO2020078206A1 (en) | Task scheduling method and device, terminal, and storage medium | |
WO2015144067A1 (en) | Method for controlling smart television based on android system | |
WO2019071618A1 (en) | Image processing method and device | |
CN104010223B (en) | Adapter terminal system carries out the method and system of video playback | |
CN105915993A (en) | Method and device for setting video playing mode by using parasitic toolkit | |
CN103024575B (en) | A kind of method providing generic service for application many in android smart television | |
US11550527B2 (en) | Media file processing method for display device and display device | |
CN105791971A (en) | method and device for switching stream media audio | |
WO2023125553A1 (en) | Frame interpolation method and apparatus and electronic device | |
WO2023109831A1 (en) | Message processing method and apparatus and electronic device | |
CN106528149A (en) | Screen locking method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20230704 Address after: 100010 4th floor, No. 22, art museum East Street, Dongcheng District, Beijing Patentee after: Sanlian Life Media Co.,Ltd. Address before: 430000 Wuhan Donghu Development Zone, Wuhan, Hubei Province, No. 1 Software Park East Road 4.1 Phase B1 Building 11 Building Patentee before: WUHAN DOUYU NETWORK TECHNOLOGY Co.,Ltd. |
|
TR01 | Transfer of patent right |