CN112804577B - Video switching display method and device, video processing equipment and storage medium - Google Patents
Video switching display method and device, video processing equipment and storage medium Download PDFInfo
- Publication number
- CN112804577B CN112804577B CN201911113977.3A CN201911113977A CN112804577B CN 112804577 B CN112804577 B CN 112804577B CN 201911113977 A CN201911113977 A CN 201911113977A CN 112804577 B CN112804577 B CN 112804577B
- Authority
- CN
- China
- Prior art keywords
- video
- video frame
- transition
- drm
- reading
- 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
- 238000000034 method Methods 0.000 title claims abstract description 98
- 230000007704 transition Effects 0.000 claims abstract description 103
- 230000008569 process Effects 0.000 claims description 73
- 238000004590 computer program Methods 0.000 claims description 5
- 230000000694 effects Effects 0.000 description 9
- 238000010586 diagram Methods 0.000 description 5
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000002360 preparation method Methods 0.000 description 3
- 238000000638 solvent extraction Methods 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 230000000903 blocking effect Effects 0.000 description 2
- 230000003139 buffering effect Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000009877 rendering Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000007246 mechanism 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
- 230000001360 synchronised effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/431—Generation of visual interfaces for content selection or interaction; Content or additional data rendering
- H04N21/4312—Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/433—Content storage operation, e.g. storage operation in response to a pause request, caching operations
- H04N21/4331—Caching operations, e.g. of an advertisement for later insertion during playback
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/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
-
- 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/44004—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 video buffer management, e.g. video decoder buffer or video display buffer
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
The embodiment of the invention discloses a DRM-based video switching display method and device, video processing equipment and a computer-readable storage medium. The DRM-based video switching display method includes, for example: reading an ending video frame of the first video displayed on the display screen based on the DRM; copying the ending video frame to a shared memory to obtain a transition video frame; reading the transition video frame, and displaying the transition video frame to the display screen based on DRM after the ending video frame stops displaying; reading a second video; stopping displaying the transition video frame and displaying the second video to the display screen based on DRM. The embodiment of the invention avoids the black field phenomenon in the transition time period when the video is switched, and improves the user experience.
Description
Technical Field
The present invention relates to the field of video display technologies, and in particular, to a DRM-based video switching display method, a DRM-based video switching apparatus, a video processing device, and a computer-readable storage medium.
Background
DRM (Direct Rendering Manager ) is a graphic display framework currently mainstream under Linux. When the video is played based on DRM, if the video is switched in the video playing process, the current video main playing process is exited, then the video main playing process is restarted to begin playing the next video, a transition period exists between the exiting of the current video and the beginning of playing the next video, a period of black field exists, because the layer used by DRM display is highest, when the exiting of the video process is performed, the display cache of the display screen corresponding to the video currently being played is released, and the video main playing process of the next video is not started, and also cannot create a new DRM-based display cache, so that the display screen cannot continue to play the next video based on the original picture of the DRM display system in the transition period, and a black field phenomenon appears on the display screen, and the playing effect of the whole playing scheme is greatly influenced.
Disclosure of Invention
The embodiment of the invention provides a DRM-based video switching display method, a DRM-based video switching device, video processing equipment and a computer-readable storage medium, which avoid the occurrence of black field phenomenon in a transition period during video switching and improve the user experience.
In one aspect, the video switching display method based on DRM provided by the embodiment of the invention includes: reading an ending video frame of the first video displayed on the display screen based on the DRM; copying the ending video frame to a shared memory to obtain a transition video frame; reading the transition video frame, and displaying the transition video frame to the display screen based on DRM after the ending video frame stops displaying; reading a second video; stopping displaying the transition video frame and displaying the second video to the display screen based on DRM.
According to the embodiment of the invention, the ending video frame of the first video is played again in the transition time period existing in the sharing so as to wait for the reading and display of the second video, so that the black field-free video switching in the transition time period is realized, and the video playing control effect and the user experience are improved.
In one embodiment of the present invention, the displaying the second video to the display screen based on DRM is specifically: and caching and outputting the second video to the uppermost layer of the display screen in a ping-pong operation mode.
In one embodiment of the present invention, the copying the ending video frame to the shared memory to obtain the transitional video frame includes: copying the ending video frame to a shared memory through a video main playing process to obtain a transition video frame; and sending an end video frame playing signal to the shared memory; the reading the transition video frame and displaying the transition video frame to the display screen based on DRM after the ending video frame stops displaying comprises the following steps: reading the ending video frame playing signal from the shared memory through a video auxiliary playing process, and reading the transition video frame from the shared memory according to the ending video frame playing signal; and displaying the transition video frame on the display screen.
In one embodiment of the invention, the reading the second video includes: reading and decoding the second video through a video main playing process; after decoding is completed, sending a signal for stopping playing the transition video frame to the shared memory; the stopping displaying the transition video frame specifically includes: acquiring the stopping transition video frame playing signal from the shared memory through the video auxiliary playing process; and stopping displaying the transition video frame according to the transition video frame playing stopping signal.
On the other hand, the video switching device based on DRM provided by the embodiment of the invention comprises: a first video reading module for reading an ending video frame of a first video displayed on a display screen based on DRM; the ending video frame copying module is used for copying the ending video frame to the shared memory to obtain a transition video frame; the transition video frame display module is used for reading the transition video frame and displaying the transition video frame to the display screen based on DRM after the display of the ending video frame is stopped; the second video reading module is used for reading a second video; and the second video display module is used for stopping displaying the transition video frame and displaying the second video to the display screen based on DRM.
In one embodiment of the present invention, the second video display module displays the second video to the display screen based on DRM specifically: and caching and outputting the second video to the uppermost layer of the display screen in a ping-pong operation mode.
In one embodiment of the present invention, the ending video frame copying module is specifically configured to: copying the ending video frame to a shared memory through a video main playing process to obtain a transition video frame; and sending an end video frame playing signal to the shared memory; the transition video frame display module is specifically configured to: reading the ending video frame playing signal from the shared memory through a video auxiliary playing process, and reading the transition video frame from the shared memory according to the ending video frame playing signal; and displaying the transition video frame on the display screen.
In one embodiment of the present invention, the second video reading module is specifically configured to: reading and decoding the second video through a video main playing process; after decoding is completed, sending a signal for stopping playing the transition video frame to the shared memory; the second video display module stopping displaying the transition video frame includes: acquiring the stopping transition video frame playing signal from the shared memory through the video auxiliary playing process; and stopping displaying the transition video frame according to the transition video frame playing stopping signal.
In still another aspect, an embodiment of the present invention provides a video processing apparatus, including: a memory and a processor coupled to the memory, the memory storing a computer program that when executed performs any one of the DRM-based video switching display methods described above.
In yet another aspect, an embodiment of the present invention provides a computer readable storage medium that is a nonvolatile memory and stores computer executable instructions for performing the DRM-based video switching display method according to any one of the preceding claims.
The above technical solution may have the following advantages or benefits: according to the embodiment of the invention, the embedded processor plays the ending video frame of the first video again in the transition time period existing in the sharing so as to wait for the reading and display of the second video, so that the black field-free video switching in the transition time period is realized, and the video playing control effect and the user experience are improved. In addition, when the video is displayed, the ping-pong operation mode is adopted to buffer and output the video frames, so that the problem of picture blocking or tearing caused by insufficient preparation of video frame data is avoided, and the display effect is further improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a DRM-based video switching display method according to a first embodiment of the present invention.
Fig. 2A is a schematic structural diagram of a hardware architecture for implementing a DRM-based video switching display method according to a first embodiment of the present invention.
Fig. 2B is a schematic diagram illustrating interaction between a video main playback process and a video auxiliary playback process of the embedded processor in fig. 2A.
Fig. 3 is a schematic block diagram of a video switching apparatus based on DRM according to a second embodiment of the present invention.
Fig. 4 is a schematic structural diagram of a video processing apparatus according to a third embodiment of the present invention.
Fig. 5 is a schematic structural diagram of a computer readable storage medium according to a fourth embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
[ first embodiment ]
As shown in fig. 1, a first embodiment of the present invention provides a video switching display method based on DRM, which is suitable for video switching display under an embedded platform. Specifically, the method for displaying the video switching based on DRM according to the embodiment of the invention comprises the following steps:
s11: reading an ending video frame of the first video displayed on the display screen based on the DRM;
s13: copying the ending video frame to a shared memory to obtain a transition video frame;
s15: reading the transition video frame, and displaying the transition video frame to the display screen based on DRM after the ending video frame stops displaying;
s17: reading a second video;
s19: stopping displaying the transition video frame and displaying the second video to the display screen based on DRM.
In this way, in the transition time period between the first video and the second video, the video frame currently displayed by the first video is copied into the shared memory, and the video frame is continuously played and ended in the transition time period, so that the black field phenomenon in the transition time period is solved, and the user experience is improved.
Specifically, the reading of step S13 includes:
copying the ending video frame to a shared memory through a video main playing process to obtain a transition video frame; and
and sending a video frame playing signal to the shared memory.
In the foregoing, the reading the transitional video frame in step S15, and displaying the transitional video frame on the display screen based on DRM after the ending video frame stops being displayed includes:
reading the ending video frame playing signal from the shared memory through a video auxiliary playing process, and reading the transition video frame from the shared memory according to the ending video frame playing signal; and
and displaying the transition video frame on the display screen.
Further, the reading the second video in step S17 includes:
reading and decoding the second video through a video main playing process; and
and sending a signal for stopping playing the transition video frame to the shared memory after the decoding is completed.
In the foregoing, the stopping displaying the transition video frame in step S19 specifically includes:
acquiring the stopping transition video frame playing signal from the shared memory through the video auxiliary playing process; and
and stopping displaying the transition video frame according to the transition video frame playing stopping signal.
The displaying the second video to the display screen based on DRM in step S19 includes: and displaying the second video on the uppermost layer of the display screen.
In another embodiment of the present invention, the displaying the second video on the display screen based on DRM in step S19 specifically includes buffering and outputting the second video to the display screen in a ping-pong operation.
In another embodiment of the present invention, the DRM-based video switching display method further includes decoding the second video before the DRM-based displaying the second video to the display screen.
In order to facilitate understanding of the present invention, the respective steps of the DRM-based video switching display method of the present embodiment will be described in detail with reference to fig. 2A and 2B.
The video switching display method based on DRM provided by the embodiment of the invention can be realized through an embedded processor of the embedded device. The embedded device herein is, for example, an embedded video processing device. For example, as shown in fig. 2A, the embedded video processing device is connected to a display screen. The display screen may be, for example, an LED display screen, or may be other display screens such as an LCD, which is not limited to the present invention. The embedded video processing device mainly comprises an embedded processor, a programmable logic device connected with the embedded processor, and a volatile memory connected with the embedded processor, for example. The programmable logic device is, for example, an FPGA (Field-Programmable Gate Array, field programmable gate array) for processing an input video and outputting the processed video data to a subsequent device such as a display control card and a display device. Volatile memory is, for example, DDR (Double Data Rate SDRAM, double rate synchronous dynamic random access memory) for caching some data during operation of the video embedded video processing device. Typically, the embedded processor plays the entire video scheme, including multiple videos, through the created video master play process. The video main playing process plays a plurality of videos according to a preset playing sequence, for example, the videos comprise a first video and a second video. The method for displaying the video switch based on DRM according to the embodiment of the invention can be realized by the interaction of two processes, such as a video main playing process and a video auxiliary playing process, for example, through the embedded processor (see fig. 2B), so as to avoid the problem of black field when the first video is switched to the second video in the current playing process, and the specific process is as follows.
Firstly, after receiving the video switching signal, the embedded processor reads the ending video frame of the first video of the uppermost layer displayed on the display screen in the DRM mode through the video main playing process according to the video switching signal. Since the first video is displayed in the DRM mode at the uppermost layer of the display screen, it can be ensured that the display screen of the first video is not blocked or covered by the display screens of other videos. . The video switching signal may be, for example, a signal generated by a video switching operation performed by a user, or may be an automatic switching signal generated according to a preset play sequence. The ending video frame may be the last frame of the first video, or may be the current video frame that is being displayed on the display screen when the embedded processor receives the switching signal.
And secondly, copying the ending video frame to a shared memory by the embedded processor to obtain a transition video frame. Specifically, the embedded processor copies the ending video frame to the shared memory of the volatile memory through the video main playing process to obtain the transition video frame. After the embedded processor copies the video frame to the shared memory through the video master playing process, sending a video frame playing ending signal to the shared memory through the video master playing process. The shared memory here is, for example, a part of the volatile memory, which may be a memory space (as shown in fig. 2A) provided in the volatile memory for access by a plurality of processes, or another volatile memory that is separately connected to the embedded processor. Multiple processes may communicate through a shared memory.
Then, the embedded processor reads the transition video frame and displays the transition video frame to the display screen in a DRM mode after the ending video frame stops being displayed. Specifically, when the end video frame playing signal sent by the video main playing process is obtained from the shared memory, the embedded processor reads the transition video frame from the shared memory through the video auxiliary playing process, and then after the end video frame of the first video is displayed, the video auxiliary playing process displays the read transition video frame on the display screen. The display mode of the transition video frame is the same as the display mode of the ending video frame of the first video, for example, a DRM display frame is adopted, so that after the video main playing process exits, when the resources of the display buffer of the display screen are withdrawn, the video auxiliary playing process can normally display the transition video frame to the display screen. It should be noted that the video auxiliary playing process will display the transition video frame on the uppermost layer of the display screen until the next video, i.e. the second video, starts to be played. The video auxiliary playing process and the video main playing process are communicated through the shared memory, for example, a video frame playing ending signal, a video stopping signal and the like are transmitted through the shared memory.
Then, the embedded processor reads the second video to be played. Specifically, the embedded processor restarts the video main playing process, and then loads and reads the data of the initial video frame of the second video through the restarted video main playing process, and decodes the initial video frame of the second video. And after the decoding of the initial video frame of the second video is completed, the video main playing process sends a signal for stopping playing the transition video frame to the shared memory.
And finally, stopping playing and displaying the transition video frame by the embedded processor, and displaying the second video on the display screen. Specifically, the embedded processor acquires a stop transition video frame playing signal from the shared memory through the video auxiliary playing process, and stops displaying the transition video frame according to the stop transition video frame playing signal. The embedded processor then displays the second video from the start video frame to the video frame on the display screen via the video master playback process. Similarly, the first video is displayed in the same manner as the currently displayed video frame of the first video, for example, in the uppermost layer of the display screen by using the DRM display frame. The embedded processor completes the display and play of other videos in the whole playing scheme in the same way. In this way, the embedded processor copies the ending video frame to the shared memory through the video main playing process, and plays the ending video frame again in the transition time period existing in the shared memory by adopting the video auxiliary playing process so as to wait for the reading and display of the second video, thereby realizing the black-field-free video switching in the transition time period, and improving the video playing control effect and the user experience.
In addition, for different embedded processing chips, the embedded processor can call the corresponding hardware decoding library to decode the video to be displayed, so that the decoding efficiency can be greatly improved, and the CPU occupation rate can be reduced. For example, the embedded processor decodes each video frame of the second video into video frame data in YUV format by FFMPEG. Of course, the decoding herein may be performed by other decoding chips, which is not limited to this embodiment.
Further, before outputting the second video onto the display screen, the embedded processor may buffer and output each video frame of the second video onto the display screen, for example, by a ping-pong operation through a video master playback process. Specifically, after the video main playing process reads the second video from the shared memory, storing the initial video frame of the second video into the first buffer memory in a first period, storing the second video frame of the second video into the second buffer memory in a second period, simultaneously outputting the initial video frame in the first buffer memory to a display screen for display, storing the third video frame of the second video into the first buffer memory in a third period, simultaneously outputting the second video frame in the second buffer memory to the display screen for display, and alternately caching and outputting the second video frame to the display screen. The embedded processor adopts the double-buffer mechanism to display the second video in a ping-pong operation mode of buffering one frame and outputting and rendering one frame, so that the phenomenon of tearing and clamping of a video display picture caused by untimely preparation of video frame data of the second video is avoided.
In summary, the embedded processor in the embodiment of the invention copies the ending video frame to the shared memory through the video main playing process, and plays the ending video frame again in the transition time period existing in the shared memory by adopting the video auxiliary playing process so as to wait for the reading and displaying of the second video, thereby realizing the black field-free video switching in the transition time period and improving the video playing control effect and the user experience. In addition, when the video is displayed, the ping-pong operation mode is adopted to buffer and output the video frames, so that the problem of picture blocking or tearing caused by insufficient preparation of video frame data is avoided, and the display effect is further improved.
[ second embodiment ]
As shown in fig. 3, a second embodiment of the present invention provides a DRM-based video switching apparatus 400. The DRM-based video switching apparatus 400 includes, for example: a first video reading module 410, an ending video frame duplication module 420, a transitional video frame display module 430, a second video reading module 440, and a second video display module 450.
The first video reading module 410 is configured to read an ending video frame of the first video displayed on the display screen based on DRM.
The ending video frame copying module 420 is configured to copy the ending video frame to the shared memory to obtain a transitional video frame.
And a transitional video frame display module 430, configured to read the transitional video frame, and display the transitional video frame to the display screen based on DRM after the ending video frame stops being displayed.
The second video reading module 440 is configured to read the second video.
And a second video display module 450 for stopping displaying the transition video frame and displaying the second video to the display screen based on DRM.
The specific working procedures and technical effects between the modules in the DRM-based video switching apparatus 400 in this embodiment are referred to the description of the foregoing first embodiment, and are not repeated here.
[ third embodiment ]
As shown in fig. 4, a third embodiment of the present invention provides a video processing apparatus 500. Typically, the video processing device 500 may be, for example, a video processor, a video splicer, a video switcher, or the like, devices having video and image processing functions. The video processing device 500 comprises, for example, a memory 510 and a processor 530 coupled to the memory 510. The memory 510 may be, for example, a non-volatile memory, on which the computer program 511 is stored. The processor 530 may be, for example, an embedded processor. The processor 530 executes the video switching display method in the foregoing first embodiment when running the computer program 511.
The specific operation and technical effects of the video processing apparatus 500 in the present embodiment are referred to the description of the foregoing first embodiment.
[ fourth embodiment ]
As shown in fig. 5, a fourth embodiment of the present invention provides a storage medium such as a computer-readable storage medium 600. The computer-readable storage medium 600 is, for example, a nonvolatile memory, which is, for example: magnetic media (e.g., hard disk, floppy disk, and magnetic strips), optical media (e.g., CDROM disks and DVDs), magneto-optical media (e.g., optical disks), and hardware devices that are specially constructed for storing and performing computer-executable instructions (e.g., read-only memory (ROM), random Access Memory (RAM), flash memory, etc.). Computer-readable storage medium 600 has stored thereon computer-executable instructions 610. The computer-readable storage medium 600 may execute the computer-executable instructions 610 by one or more processors or processing devices to implement the DRM-based video switching display method in the foregoing first embodiment.
In addition, it should be understood that the foregoing embodiments are merely exemplary illustrations of the present invention, and the technical solutions of the embodiments may be arbitrarily combined and matched without conflict in technical features, contradiction in structure, and departure from the purpose of the present invention.
In the several embodiments provided in the present invention, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the partitioning of elements is merely a logical functional partitioning, and there may be additional partitioning in actual implementation, e.g., multiple elements or components may be combined or integrated into another system, or some features may be omitted, or not implemented. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims (6)
1. A DRM-based video switching display method, comprising:
reading an ending video frame of the first video displayed on the display screen based on DRM through a video main playing process;
copying the ending video frame to a shared memory through the video main playing process to obtain a transition video frame;
reading the transition video frame through a video auxiliary playing process, and displaying the transition video frame to the display screen based on DRM after the display of the ending video frame is stopped;
reading a second video through the video main playing process;
stopping displaying the transition video frame through the video auxiliary playing process, and displaying the second video to the display screen based on DRM;
the copying the ending video frame to the shared memory through the video main playing process to obtain a transition video frame includes:
copying the ending video frame to a shared memory through the video main playing process to obtain a transition video frame; and
sending a video frame playing signal to the shared memory;
the reading the transition video frame through the video auxiliary playing process, and displaying the transition video frame to the display screen based on DRM after the ending video frame stops displaying includes:
reading the ending video frame playing signal from the shared memory through the video auxiliary playing process, and reading the transition video frame from the shared memory according to the ending video frame playing signal; and
displaying the transition video frame on the display screen;
the reading the second video through the video main playing process includes:
reading and decoding the second video through the video main playing process; and
after the initial video frame of the second video is decoded, sending a signal for stopping playing the transition video frame to the shared memory;
the stopping displaying the transition video frame through the video auxiliary playing process specifically comprises the following steps:
acquiring the stopping transition video frame playing signal from the shared memory through the video auxiliary playing process; and
and stopping displaying the transition video frame according to the transition video frame playing stopping signal.
2. The method for displaying a video switch based on DRM according to claim 1, wherein the displaying the second video based on DRM to the display screen is specifically:
and caching and outputting the second video to the uppermost layer of the display screen in a ping-pong operation mode.
3. A DRM-based video switching apparatus, comprising:
the first video reading module is used for reading an ending video frame of the first video displayed on the display screen based on DRM through a video main playing process;
the ending video frame copying module is used for copying the ending video frame to the shared memory through the video main playing process to obtain a transition video frame;
the transition video frame display module is used for reading the transition video frame through a video auxiliary playing process and displaying the transition video frame to the display screen based on DRM after the display of the ending video frame is stopped;
the second video reading module is used for reading a second video through the video main playing process;
the second video display module is used for stopping displaying the transition video frame through the video auxiliary playing process and displaying the second video to the display screen based on DRM;
the ending video frame copying module is specifically configured to:
copying the ending video frame to a shared memory through the video main playing process to obtain a transition video frame; and
sending a video frame playing signal to the shared memory;
the transition video frame display module is specifically configured to:
reading the ending video frame playing signal from the shared memory through the video auxiliary playing process, and reading the transition video frame from the shared memory according to the ending video frame playing signal; and
displaying the transition video frame on the display screen;
the second video reading module is specifically configured to:
reading and decoding the second video through the video main playing process; and
after the initial video frame of the second video is decoded, sending a signal for stopping playing the transition video frame to the shared memory;
the second video display module stopping displaying the transition video frame includes:
acquiring the stopping transition video frame playing signal from the shared memory through the video auxiliary playing process; and
and stopping displaying the transition video frame according to the transition video frame playing stopping signal.
4. The DRM-based video switching apparatus as set forth in claim 3, wherein the second video display module displays the second video to the display screen based on DRM, specifically:
and caching and outputting the second video to the uppermost layer of the display screen in a ping-pong operation mode.
5. A video processing apparatus, comprising: a memory and a processor connected to the memory, the memory storing a computer program, the processor executing the DRM-based video switching display method according to any one of claims 1 to 2 when the computer program is run.
6. A computer-readable storage medium which is a nonvolatile memory and stores computer-executable instructions for performing the DRM-based video switching display method according to any one of claims 1 to 2.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911113977.3A CN112804577B (en) | 2019-11-14 | 2019-11-14 | Video switching display method and device, video processing equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911113977.3A CN112804577B (en) | 2019-11-14 | 2019-11-14 | Video switching display method and device, video processing equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112804577A CN112804577A (en) | 2021-05-14 |
CN112804577B true CN112804577B (en) | 2023-10-20 |
Family
ID=75803991
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911113977.3A Active CN112804577B (en) | 2019-11-14 | 2019-11-14 | Video switching display method and device, video processing equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112804577B (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2007149444A2 (en) * | 2006-06-16 | 2007-12-27 | Droplet Technology, Inc. | System, method and apparatus of video processing and applications |
CN103796075A (en) * | 2014-02-27 | 2014-05-14 | 广州视源电子科技股份有限公司 | Method and device for switching television paths and channels |
WO2015098376A1 (en) * | 2013-12-27 | 2015-07-02 | 日立マクセル株式会社 | Broadcast reception device and video display method |
CN105491452A (en) * | 2015-11-25 | 2016-04-13 | 浙江宇视科技有限公司 | Multi-video-window hierarchy switching method and device |
WO2017185609A1 (en) * | 2016-04-28 | 2017-11-02 | 乐视控股(北京)有限公司 | Video processing method and device |
CN107786890A (en) * | 2017-10-30 | 2018-03-09 | 深圳Tcl数字技术有限公司 | Video switching method, device and storage medium |
WO2018090729A1 (en) * | 2016-10-20 | 2018-05-24 | 广州视源电子科技股份有限公司 | Method and apparatus for multi-channel switching in intelligent interaction tablet |
CN108156520A (en) * | 2017-12-29 | 2018-06-12 | 珠海市君天电子科技有限公司 | Video broadcasting method, device, electronic equipment and storage medium |
CN108337552A (en) * | 2018-01-30 | 2018-07-27 | 庄再濠 | A kind of Web TV quickly cuts platform method and device |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9456236B2 (en) * | 2013-02-11 | 2016-09-27 | Crestron Electronics Inc. | Systems, devices and methods for reducing switching time in a video distribution network |
US20160182466A1 (en) * | 2014-12-23 | 2016-06-23 | CodeShop BV | TransDRM for Streaming Media |
-
2019
- 2019-11-14 CN CN201911113977.3A patent/CN112804577B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2007149444A2 (en) * | 2006-06-16 | 2007-12-27 | Droplet Technology, Inc. | System, method and apparatus of video processing and applications |
WO2015098376A1 (en) * | 2013-12-27 | 2015-07-02 | 日立マクセル株式会社 | Broadcast reception device and video display method |
CN103796075A (en) * | 2014-02-27 | 2014-05-14 | 广州视源电子科技股份有限公司 | Method and device for switching television paths and channels |
CN105491452A (en) * | 2015-11-25 | 2016-04-13 | 浙江宇视科技有限公司 | Multi-video-window hierarchy switching method and device |
WO2017185609A1 (en) * | 2016-04-28 | 2017-11-02 | 乐视控股(北京)有限公司 | Video processing method and device |
WO2018090729A1 (en) * | 2016-10-20 | 2018-05-24 | 广州视源电子科技股份有限公司 | Method and apparatus for multi-channel switching in intelligent interaction tablet |
CN107786890A (en) * | 2017-10-30 | 2018-03-09 | 深圳Tcl数字技术有限公司 | Video switching method, device and storage medium |
CN108156520A (en) * | 2017-12-29 | 2018-06-12 | 珠海市君天电子科技有限公司 | Video broadcasting method, device, electronic equipment and storage medium |
CN108337552A (en) * | 2018-01-30 | 2018-07-27 | 庄再濠 | A kind of Web TV quickly cuts platform method and device |
Also Published As
Publication number | Publication date |
---|---|
CN112804577A (en) | 2021-05-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101034080B1 (en) | Uniform video decoding and display | |
CN110366033B (en) | Video playing method, device, equipment and storage medium | |
CN106534952B (en) | Source switching back-film source continuous playing method and smart television | |
US10531149B2 (en) | Method and system for managing buffers | |
CN112804410A (en) | Multi-display-screen synchronous display method and device, video processing equipment and storage medium | |
TW201142702A (en) | Policy-based switching between graphics processing units | |
US11128879B2 (en) | Hybrid decoding | |
US10999643B2 (en) | Subtitle switching method and display device | |
WO2023004995A1 (en) | Seamless video switching method and system in video matrix | |
CN111526404B (en) | Single frame playing method, video playing device, monitoring equipment and storage medium | |
US7010046B2 (en) | Method and/or architecture for implementing MPEG frame display using four frame stores | |
CN113473226B (en) | Method and device for improving video rendering efficiency, computer equipment and storage medium | |
CN114710702A (en) | Video playing method and device | |
US11587274B2 (en) | Time code display system and method, displaying device, storage medium and electronic apparatus | |
CN112804577B (en) | Video switching display method and device, video processing equipment and storage medium | |
JP4585589B2 (en) | Video data processing apparatus and video data processing method | |
CN111107404A (en) | Method, system and storage medium for quickly playing interface video of automobile and mobile terminal | |
CN112511887B (en) | Video playing control method, corresponding device, equipment, system and storage medium | |
CN111467797B (en) | Game data processing method and device, computer storage medium and electronic equipment | |
CN111385600B (en) | Video processing method, device and system, video processor and storage medium | |
CN102376291A (en) | Method and device for controlling image display | |
CN113012657A (en) | Layer processing method and device, video processing equipment and computer readable storage medium | |
CN114071225B (en) | Frame animation playing method, device and system | |
US9066062B2 (en) | Electronic apparatus for processing moving image data | |
JP6903419B2 (en) | Display system, broadcast system, and broadcast program display system |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |