CN110708609A - Video playing method and device - Google Patents

Video playing method and device Download PDF

Info

Publication number
CN110708609A
CN110708609A CN201910716703.7A CN201910716703A CN110708609A CN 110708609 A CN110708609 A CN 110708609A CN 201910716703 A CN201910716703 A CN 201910716703A CN 110708609 A CN110708609 A CN 110708609A
Authority
CN
China
Prior art keywords
video
physical address
video image
browser
cache region
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
CN201910716703.7A
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.)
Qingdao Hisense Media Network Technology Co Ltd
Original Assignee
Qingdao Hisense Media Network 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 Qingdao Hisense Media Network Technology Co Ltd filed Critical Qingdao Hisense Media Network Technology Co Ltd
Priority to CN201910716703.7A priority Critical patent/CN110708609A/en
Publication of CN110708609A publication Critical patent/CN110708609A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4782Web browsing, e.g. WebTV
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/426Internal components of the client ; Characteristics thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4331Caching operations, e.g. of an advertisement for later insertion during playback
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB

Abstract

The application provides a video playing method and a device, which are applied to a video playing system, wherein the video playing system at least comprises a browser and a decoder, and the method comprises the following steps: after receiving a video stream, the decoder decodes each video frame in the video stream in sequence, stores a video image obtained by decoding into a memory space corresponding to a specified physical address, and sends the physical address to the browser; after the browser receives the physical address, writing the physical address into a preset cache region; the browser sequentially obtains physical addresses from the cache region, obtains video images from the memory space according to the obtained physical addresses, renders the obtained video images, and plays the rendered video images. By applying the method, the video playing efficiency can be improved, and the performance of the whole video playing system can be improved.

Description

Video playing method and device
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a video playing method and apparatus.
Background
At present, because its broadcast performance is excellent, VR360 degree panorama video broadcast technique receives more and more attention, and its fundamental principle of realizing is: the browser sends the original video stream to the decoder, the decoder decodes the video frames and returns the video images obtained by decoding to the browser, and the browser renders each frame of video images through the rendering module of the browser and plays the rendered video images according to a certain frame rate, so that the purpose of continuously playing videos is achieved.
However, in the prior art, due to the use of a single buffer processing mechanism, two different processes, namely video image rendering and video frame decoding, can only run in series, that is, a decoder can only transmit a frame of decoded video image to a browser at a time, and when the browser renders a currently received video image, the decoder must be in a waiting state until the browser completes rendering the video image, and the decoder can continue to decode a next video frame. Therefore, unnecessary waiting exists in the video playing process in the prior art, and the video playing efficiency is affected.
Disclosure of Invention
In view of this, the present application provides a video playing method and apparatus, so as to solve the problem that in the prior art, a single buffer processing mechanism is used, so that two different processes, namely video image rendering and video frame decoding, can only run in series, which affects video playing efficiency.
According to a first aspect of the embodiments of the present application, there is provided a video playing method applied to a video playing system, where the video playing system at least includes a browser and a decoder, the method includes:
after receiving a video stream, the decoder decodes each video frame in the video stream in sequence, stores a video image obtained by decoding into a memory space corresponding to a specified physical address, and sends the physical address to the browser;
after the browser receives the physical address, writing the physical address into a preset cache region;
the browser sequentially obtains physical addresses from the cache region, obtains video images from the memory space according to the obtained physical addresses, renders the obtained video images, and plays the rendered video images.
Optionally, after the rendering the acquired video image, the method further includes:
judging whether the number of the physical addresses stored in the cache region is larger than or equal to a preset number threshold value or not;
if so, acquiring a next physical address from the cache region, acquiring a video image from the memory space according to the acquired next physical address, rendering the acquired video image, and playing the rendered video image.
Optionally, the method further includes:
and if the number of the physical addresses stored in the cache region is smaller than the preset number threshold value, rendering the currently acquired video image again, and playing the rendered video image.
Optionally, after the video image is acquired from the memory space according to the acquired physical address, the method further includes:
and deleting the currently acquired physical address from the cache region.
Optionally, the storing the decoded video image into a memory space corresponding to the specified physical address includes:
performing data compression on the video image obtained by decoding;
and storing the compressed video image into a memory space corresponding to the specified physical address.
According to a second aspect of the embodiments of the present application, there is provided a video playing apparatus applied to a video playing system, the video playing system at least including a browser and a decoder, the apparatus including:
the decoding module is used for decoding each video frame in the video stream in sequence after the decoder receives the video stream, storing a video image obtained by decoding into a memory space corresponding to a specified physical address, and sending the physical address to the browser;
the writing module is used for writing the physical address into a preset cache region after the browser receives the physical address;
and the first rendering module is used for acquiring physical addresses from the cache region in sequence by the browser, acquiring video images from the memory space according to the acquired physical addresses, rendering the acquired video images and playing the rendered video images.
Optionally, the apparatus further comprises:
and the judging module is used for judging whether the number of the physical addresses stored in the cache region is greater than or equal to a preset number threshold, and if so, executing the steps executed by the first rendering module.
Optionally, the apparatus further comprises:
and the second rendering module is used for rendering the currently acquired video image again and playing the rendered video image when the number of the physical addresses stored in the cache region is judged to be smaller than the preset number threshold.
Optionally, the apparatus further comprises:
and the deleting module is used for deleting the currently acquired physical address from the cache region.
Optionally, the decoding module includes:
the compression submodule is used for carrying out data compression on the video image obtained by decoding;
and the storage submodule is used for storing the compressed video image into a memory space corresponding to the specified physical address.
By applying the embodiment of the application, the decoder stores the decoded video image into the memory space corresponding to the specified physical address and sends the physical address to the browser, the browser can directly acquire the video image from the memory space according to the physical address, and through the processing, data copying and transferring can be effectively avoided, so that the performance of the video playing system is effectively improved, furthermore, as the browser puts the received physical address into the cache region, the browser can sequentially acquire the physical address from the cache region, further acquire the video image and render the acquired video image, through the processing, the decoder can continuously decode the video frame, the browser can also continuously render the acquired video image, so that the parallel operation between the two processes of video image rendering and video frame decoding is realized, the efficiency of video playing is improved.
Drawings
Fig. 1 is a schematic diagram of a system architecture applied to a video playing method proposed in the present application;
fig. 2 is a flowchart of an embodiment of a video playing method according to an exemplary embodiment of the present application;
FIG. 3 is a schematic illustration of the storage in NV12 data format;
fig. 4 is a flowchart of an embodiment of a video playing method according to another exemplary embodiment of the present application;
fig. 5 is a hardware structure diagram of an electronic device in which the video playback apparatus of the present application is located;
fig. 6 is a block diagram of an embodiment of a video playing apparatus according to an exemplary embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
In order to solve the above problem, the present application proposes a video playing method, in which a decoder is controlled to store a decoded video image into a memory space corresponding to a designated physical address, and sends the physical address to the browser, the browser can directly obtain the video image from the memory space according to the physical address, on the basis, the browser is further controlled to place the received physical addresses into the cache region, the browser can sequentially acquire the physical addresses from the cache region, and then acquiring video images, and rendering the acquired video images, so that the decoder can continuously decode the video frames, the browser can also continuously render the acquired video images, therefore, the parallel operation between the two processes of video image rendering and video frame decoding is realized, and the video playing efficiency is improved.
In addition, in the above description, data is transmitted between the decoder and the browser based on the real physical address, that is, the decoder and the browser can directly access the real physical memory to access the data, which is compared with the prior art that data is transmitted between the decoder and the browser based on the virtual address, but data copy and dump are inevitably involved, so that the performance of the whole video playing system can be effectively improved.
The following embodiments are shown to explain the video playing method proposed in the present application in detail as follows:
in order to facilitate understanding of the present application, a system architecture to which the video playing method proposed by the present application is applied will be described first.
Please refer to fig. 1, which is a schematic diagram of a system architecture of an application of the video playing method provided by the present application. Fig. 1 includes a video playback system 100, where the video playback system 100 includes at least a decoder 110 and a browser 120.
In this embodiment of the present application, the browser 120 sends an original video stream to the decoder 110, and after the decoder 110 receives the video stream, the method provided in the present application may be used to continuously decode each video frame in the video stream, and store a video image obtained by decoding into a memory space corresponding to a specified physical address; meanwhile, the browser 120 may use the method provided in the present application to continuously obtain the video image from the memory space, load OpenGL (Open Graphics Library) (not shown in fig. 1) to render the obtained video image, and play the rendered video image.
As to how the decoder 110 and the browser 120 implement the above-mentioned processes by using the method provided in the present application, refer to the following description, and will not be described in detail herein.
It should be noted that, in the embodiment of the present application, since the decoder 110 stores the decoded video image into the memory space, and then the browser obtains the video image from the memory space and renders the video image, the rendering tool, for example OpenGL, may be modified in advance, so that the rendering tool has a function of obtaining the video image from the memory space and rendering the video image. Specifically, how to modify the rendering tool may be implemented by a method in the prior art, for example, by adding a specific interface to the rendering tool, which is not described herein again.
As follows, the following embodiments are shown to explain the video playing method provided by the present application in detail:
the first embodiment,
Referring to fig. 2, a flowchart of an embodiment of a video playing method provided in an exemplary embodiment of the present application may be applied to the video playing system 100 illustrated in fig. 1, and includes the following steps:
step 201: after receiving the video stream, the decoder decodes each video frame in the video stream in sequence, stores the video image obtained by decoding into a memory space corresponding to the specified physical address, and sends the physical address to the browser.
In this embodiment of the application, after receiving the video stream, the decoder 110 may sequentially decode each video frame in the video stream, and may store the decoded video image in the memory space corresponding to the specified physical address.
In an example, the decoder 110 performs data compression on the decoded video image, and stores the compressed video image in a memory space corresponding to a specified physical address. Through the processing, the data storage cost can be effectively reduced, and the performance of subsequent data transmission is improved.
In one example, the decoder 110 may perform data compression on the decoded video image based on the NV12 data format, i.e., convert the format of the decoded video image into the NV12 data format. In the NV12 data format, each 4Y components share one U component and one V component, that is, each pixel only needs to occupy 1.5 bytes for storage, for example, as shown in fig. 3, which is a storage diagram in the NV12 data format. Therefore, compared with the RGB data format in which each pixel needs to occupy 3 bytes for storage, the NV12 data format can save half of the memory space by converting the format of the decoded video image.
In the embodiment of the present application, after the decoder 110 stores the decoded video image in the memory space corresponding to the specified physical address, the physical address is sent to the browser 120.
Step 202: and after receiving the physical address, the browser writes the physical address into a preset cache region.
In this embodiment, a cache area is provided on the browser 120 side, and each time the browser 120 receives a physical address, the physical address may be written into the cache area.
In one example, the buffer may be implemented by using a plurality of buffer registers, for example, 8 buffers. In this example, each time the browser 120 receives a physical address, the physical address is written into an empty buffer.
In one example, the plurality of buffers may exist in the form of a list.
In another example, the plurality of buffers may exist in the form of a queue.
Step 203: the browser sequentially obtains the physical addresses from the cache region, obtains the video images from the memory space according to the obtained physical addresses, renders the obtained video images, and plays the rendered video images.
In this embodiment of the application, the browser 120 may sequentially obtain the physical addresses from the cache region, and each time a physical address is obtained, may obtain the video image from the memory space according to the obtained physical address, render the obtained video image, and play the rendered video image.
In addition, in this embodiment of the application, each time the browser 120 finishes rendering the video image, the currently acquired physical address, that is, the physical address corresponding to the video image, may be deleted from the cache region, so as to clean the cache region in real time.
It should be noted that, the sequence between step 201 and step 203 is merely an example, and in practical applications, there may be other achievable execution sequences, for example, step 202 and step 203 may be executed simultaneously, which is not limited in this application.
As can be seen from the above description, since the decoder stores the decoded video image into the memory space corresponding to the specified physical address and sends the physical address to the browser, the browser can directly obtain the video image from the memory space according to the physical address, and through this processing, data copying and transferring can be effectively avoided, thereby effectively improving the performance of the video playing system, further, since the browser puts the received physical address into the cache region, the browser can sequentially obtain the physical addresses from the cache region, further obtain the video image, and render the obtained video image, through this processing, the decoder can decode the video frame continuously, the browser can render the obtained video image continuously, thereby implementing parallel operation between the two processes of video image rendering and video frame decoding, the efficiency of video playing is improved.
The description of the first embodiment is completed.
In this embodiment of the application, ideally, the decoder 110 may continuously send the physical address to the browser 120, that is, the browser 120 may continuously write the physical address into the cache region, and meanwhile, the browser 120 may continuously obtain the physical address from the cache region, obtain the video image based on the obtained physical address, and perform rendering, thereby achieving complete parallelism between the browser 120 and the decoder 110.
However, in practical applications, a network may be poor, which may cause a decoding speed of the decoder 110 to be low, so that the number of physical addresses in the buffer area is insufficient, in this case, the browser 120 may repeatedly render the currently acquired video image and play the rendered video image, and at this time, a static frame phenomenon occurs in video playing; meanwhile, in practical applications, a situation that the rendering speed of the browser is slow may also occur, and in this situation, in order to avoid that the decoder 110 updates the data of the current frame in the memory space at the same time because the rendering of the current frame is not finished yet, and a memory "stepping on" phenomenon occurs, that is, a phenomenon of screen splash and screen flashing occurs in video rendering, the decoder 110 may continue to decode the next frame of data after the rendering of the current frame by the browser 120 is finished.
Based on the above description, in the embodiment of the present application, it is proposed that the decoder 110 and the browser 120 perform real-time adjustment based on the current decoding speed and rendering speed during the parallel operation process, so as to avoid the phenomena of insufficient physical addresses in the buffer area and "memory hit".
The following examples, continuing with the description of the method, are presented as follows:
example II,
Referring to fig. 4, a flowchart of an embodiment of a video playing method according to another exemplary embodiment of the present application is provided, where the embodiment may include the following steps based on the embodiment shown in fig. 2:
step 401: after receiving the video stream, the decoder decodes each video frame in the video stream in sequence, and stores the video image obtained by decoding into the memory space corresponding to the designated physical address.
Step 402: the decoder sends the physical address to the browser.
Step 403: and after receiving the physical address, the browser writes the physical address into a preset cache region.
Step 404: the browser sequentially obtains the physical addresses from the cache region, obtains the video images from the memory space according to the obtained physical addresses, renders the obtained video images, and plays the rendered video images.
For the detailed description of the steps 401 to 404, reference may be made to the related description in the first embodiment, and details are not repeated here.
Step 405: the browser judges whether the number of the physical addresses stored in the cache area is larger than or equal to a preset number threshold, if so, the browser returns to execute the step 404, and otherwise, the browser executes the step 406.
Step 406: rendering the currently acquired video image again, and playing the rendered video image; step 405 continues until the playback is completed.
In this embodiment of the application, after the browser 120 finishes rendering the current frame, it may determine whether the number of physical addresses stored in the cache region is greater than or equal to a preset number threshold, for example, 3, if so, it may be considered that the number of physical addresses in the cache region is sufficient, and then return to execute step 404, that is, continue to obtain a next frame of video image and render the next frame of video image; otherwise, the number of the physical addresses in the buffer area is considered to be insufficient, and step 406 is executed, that is, the current frame is rendered repeatedly, the rendered video image is played, and at this time, a static frame appears in the video playing.
The number threshold may be summarized by those skilled in the art according to the conventional period and timing relationship of browser rendering, and as to how to obtain the number threshold, the description of the present application is omitted.
As can be seen from the above embodiment, after the current frame is rendered by the browser, it is determined whether the number of physical addresses stored in the cache area is greater than or equal to a preset number threshold, and if so, the browser continues to acquire and render a next frame of video image; otherwise, the browser repeatedly renders the current frame, so that the phenomena of insufficient physical addresses and memory treading in the cache region can be effectively avoided.
So far, the description of the second embodiment is completed.
Corresponding to the embodiment of the video playing method, the application also provides an embodiment of a video playing device.
The embodiment of the video playing device can be applied to electronic equipment. The device embodiments may be implemented by software, or by hardware, or by a combination of hardware and software. The software implementation is taken as an example, and as a logical device, the device is formed by reading corresponding computer program instructions in the nonvolatile memory into the memory for operation through the processor of the intelligent device where the device is located. In terms of hardware, as shown in fig. 5, the present application is a hardware structure diagram of an electronic device where a video playing apparatus is located, except for the processor 51, the memory 52, the network interface 53, the nonvolatile memory 54, and the internal bus 55 shown in fig. 5, the electronic device where the apparatus is located in the embodiment may also include other hardware according to the actual function of the electronic device, which is not described again.
Referring to fig. 6, a block diagram of an embodiment of a video playing apparatus according to an exemplary embodiment of the present application is provided, where the apparatus may include: a decoding module 61, a writing module 62, and a rendering module 63.
The decoding module 61 may be configured to, after receiving the video stream, the decoder sequentially decode each video frame in the video stream, store a video image obtained by decoding into a memory space corresponding to an assigned physical address, and send the physical address to the browser;
a writing module 62, configured to write the physical address into a preset cache region after the browser receives the physical address;
the first rendering module 63 may be configured to sequentially obtain physical addresses from the cache region by the browser, obtain a video image from the memory space according to the obtained physical addresses, render the obtained video image, and play the rendered video image.
In an embodiment, the apparatus may further comprise (not shown in fig. 6):
and the judging module is used for judging whether the number of the physical addresses stored in the cache region is greater than or equal to a preset number threshold, and if so, executing the steps executed by the first rendering module.
In an embodiment, the apparatus may further comprise (not shown in fig. 6):
and the second rendering module is used for rendering the currently acquired video image again and playing the rendered video image when the number of the physical addresses stored in the cache region is judged to be smaller than the preset number threshold.
In an embodiment, the apparatus may further comprise (not shown in fig. 6):
and the deleting module is used for deleting the currently acquired physical address from the cache region.
In an embodiment, the decoding module 61 may include (not shown in fig. 6):
the compression submodule is used for carrying out data compression on the video image obtained by decoding;
and the storage submodule is used for storing the compressed video image into a memory space corresponding to the specified physical address. A first enabling module 41, a first control module 42, and a second control module 43.
The implementation process of the functions and actions of each unit in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (10)

1. A video playing method is applied to a video playing system, and is characterized in that the video playing system at least comprises a browser and a decoder, and the method comprises the following steps:
after receiving a video stream, the decoder decodes each video frame in the video stream in sequence, stores a video image obtained by decoding into a memory space corresponding to a specified physical address, and sends the physical address to the browser;
after the browser receives the physical address, writing the physical address into a preset cache region;
the browser sequentially obtains physical addresses from the cache region, obtains video images from the memory space according to the obtained physical addresses, renders the obtained video images, and plays the rendered video images.
2. The method of claim 1, wherein after said rendering the captured video image, the method further comprises:
judging whether the number of the physical addresses stored in the cache region is larger than or equal to a preset number threshold value or not;
if so, acquiring a next physical address from the cache region, acquiring a video image from the memory space according to the acquired next physical address, rendering the acquired video image, and playing the rendered video image.
3. The method of claim 2, further comprising:
and if the number of the physical addresses stored in the cache region is smaller than the preset number threshold value, rendering the currently acquired video image again, and playing the rendered video image.
4. The method according to claim 1, wherein after the obtaining the video image from the memory space according to the obtained physical address, the method further comprises:
and deleting the currently acquired physical address from the cache region.
5. The method of claim 1, wherein the storing the decoded video image into a memory space corresponding to the specified physical address comprises:
performing data compression on the video image obtained by decoding;
and storing the compressed video image into a memory space corresponding to the specified physical address.
6. A video playing apparatus applied to a video playing system, wherein the video playing system at least comprises a browser and a decoder, the apparatus comprising:
the decoding module is used for decoding each video frame in the video stream in sequence after the decoder receives the video stream, storing a video image obtained by decoding into a memory space corresponding to a specified physical address, and sending the physical address to the browser;
the writing module is used for writing the physical address into a preset cache region after the browser receives the physical address;
and the first rendering module is used for acquiring physical addresses from the cache region in sequence by the browser, acquiring video images from the memory space according to the acquired physical addresses, rendering the acquired video images and playing the rendered video images.
7. The apparatus of claim 6, further comprising:
and the judging module is used for judging whether the number of the physical addresses stored in the cache region is greater than or equal to a preset number threshold, and if so, executing the steps executed by the first rendering module.
8. The apparatus of claim 7, further comprising:
and the second rendering module is used for rendering the currently acquired video image again and playing the rendered video image when the number of the physical addresses stored in the cache region is judged to be smaller than the preset number threshold.
9. The apparatus of claim 6, further comprising:
and the deleting module is used for deleting the currently acquired physical address from the cache region.
10. The apparatus of claim 6, wherein the decoding module comprises:
the compression submodule is used for carrying out data compression on the video image obtained by decoding;
and the storage submodule is used for storing the compressed video image into a memory space corresponding to the specified physical address.
CN201910716703.7A 2019-08-05 2019-08-05 Video playing method and device Pending CN110708609A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910716703.7A CN110708609A (en) 2019-08-05 2019-08-05 Video playing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910716703.7A CN110708609A (en) 2019-08-05 2019-08-05 Video playing method and device

Publications (1)

Publication Number Publication Date
CN110708609A true CN110708609A (en) 2020-01-17

Family

ID=69193209

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910716703.7A Pending CN110708609A (en) 2019-08-05 2019-08-05 Video playing method and device

Country Status (1)

Country Link
CN (1) CN110708609A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111953992A (en) * 2020-07-07 2020-11-17 西安万像电子科技有限公司 Decoding method and device
CN112866814A (en) * 2020-12-30 2021-05-28 广州虎牙科技有限公司 Audio and video processing method and device
CN113163255A (en) * 2021-03-31 2021-07-23 成都欧珀通信科技有限公司 Video playing method, device, terminal and storage medium
CN114390340A (en) * 2021-12-30 2022-04-22 北京鸿合爱学教育科技有限公司 Video playing method and device and electronic equipment
CN114554289A (en) * 2022-04-25 2022-05-27 深圳市华曦达科技股份有限公司 Video playing method, device and system

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040221304A1 (en) * 2003-02-13 2004-11-04 Sparrell Carlton J. Digital video recording and playback system with seamless advertisement insertion and playback from multiple locations via a home area network
CN101067827A (en) * 2007-06-14 2007-11-07 上海创图网络科技发展有限公司 Three-dimensional web page realizing method based on browser
US20090080864A1 (en) * 2007-09-21 2009-03-26 Broadcom Corporation Method and apparatus for implementing network personal video recorder for digital video settop boxes
CN103605534A (en) * 2013-10-31 2014-02-26 武汉极讯软件有限责任公司 Method and device for loading pictures
CN103731720A (en) * 2013-11-25 2014-04-16 乐视致新电子科技(天津)有限公司 Method and device for caching multimedia data of smart television
CN109218839A (en) * 2017-07-07 2019-01-15 杭州海康威视数字技术股份有限公司 Video broadcasting method and device
CN109271327A (en) * 2017-07-18 2019-01-25 杭州海康威视数字技术股份有限公司 EMS memory management process and device
CN109547838A (en) * 2018-12-06 2019-03-29 青岛海信传媒网络技术有限公司 The processing method and processing device of video window
CN109996104A (en) * 2019-04-22 2019-07-09 北京奇艺世纪科技有限公司 A kind of video broadcasting method, device and electronic equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040221304A1 (en) * 2003-02-13 2004-11-04 Sparrell Carlton J. Digital video recording and playback system with seamless advertisement insertion and playback from multiple locations via a home area network
CN101067827A (en) * 2007-06-14 2007-11-07 上海创图网络科技发展有限公司 Three-dimensional web page realizing method based on browser
US20090080864A1 (en) * 2007-09-21 2009-03-26 Broadcom Corporation Method and apparatus for implementing network personal video recorder for digital video settop boxes
CN103605534A (en) * 2013-10-31 2014-02-26 武汉极讯软件有限责任公司 Method and device for loading pictures
CN103731720A (en) * 2013-11-25 2014-04-16 乐视致新电子科技(天津)有限公司 Method and device for caching multimedia data of smart television
CN109218839A (en) * 2017-07-07 2019-01-15 杭州海康威视数字技术股份有限公司 Video broadcasting method and device
CN109271327A (en) * 2017-07-18 2019-01-25 杭州海康威视数字技术股份有限公司 EMS memory management process and device
CN109547838A (en) * 2018-12-06 2019-03-29 青岛海信传媒网络技术有限公司 The processing method and processing device of video window
CN109996104A (en) * 2019-04-22 2019-07-09 北京奇艺世纪科技有限公司 A kind of video broadcasting method, device and electronic equipment

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111953992A (en) * 2020-07-07 2020-11-17 西安万像电子科技有限公司 Decoding method and device
CN112866814A (en) * 2020-12-30 2021-05-28 广州虎牙科技有限公司 Audio and video processing method and device
CN113163255A (en) * 2021-03-31 2021-07-23 成都欧珀通信科技有限公司 Video playing method, device, terminal and storage medium
CN113163255B (en) * 2021-03-31 2022-07-15 成都欧珀通信科技有限公司 Video playing method, device, terminal and storage medium
CN114390340A (en) * 2021-12-30 2022-04-22 北京鸿合爱学教育科技有限公司 Video playing method and device and electronic equipment
CN114554289A (en) * 2022-04-25 2022-05-27 深圳市华曦达科技股份有限公司 Video playing method, device and system
CN114554289B (en) * 2022-04-25 2022-07-12 深圳市华曦达科技股份有限公司 Video playing method, device and system

Similar Documents

Publication Publication Date Title
CN110708609A (en) Video playing method and device
US7965898B2 (en) Accelerating video decoding using multiple processors
US20070268298A1 (en) Delayed frame buffer merging with compression
CN113015003B (en) Video frame caching method and device
US10070134B2 (en) Analytics assisted encoding
KR100440715B1 (en) A method and apparatus for video decoding
US11284096B2 (en) Methods and apparatus for decoding video using re-ordered motion vector buffer
US7706377B2 (en) Video processing circuit and method of video processing
CN108024116B (en) Data caching method and device
US7382376B2 (en) System and method for effectively utilizing a memory device in a compressed domain
US9001887B2 (en) Double register array buffer for motion compensation
CN115209216A (en) Video playing method and device and electronic equipment
US7577762B1 (en) Cooperative scheduling for multiple consumers
US20130278775A1 (en) Multiple Stream Processing for Video Analytics and Encoding
US20130329137A1 (en) Video Encoding in Video Analytics
US7729591B2 (en) Data processing apparatus, reproduction apparatus, data processing system, reproduction method, program, and storage medium
US20220014705A1 (en) Data processing method and related product
JP2005057688A (en) Method, program and device for picture processing
CN114071225B (en) Frame animation playing method, device and system
CN110913228B (en) Video processing system and video processing method
US7627232B2 (en) Reproduction apparatus, data processing system, reproduction method, program, and storage medium
CN114090168A (en) Self-adaptive adjusting method for image output window of QEMU (QEMU virtual machine)
CN117768721A (en) Video playing method and device and electronic equipment
CN117835000A (en) Rendering optimization method, intelligent television, device, equipment and storage medium
JPH01142986A (en) Picture memory element

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200117