CN113382196B - Scene switching method, system and device and video comprehensive processing platform - Google Patents

Scene switching method, system and device and video comprehensive processing platform Download PDF

Info

Publication number
CN113382196B
CN113382196B CN202010117347.XA CN202010117347A CN113382196B CN 113382196 B CN113382196 B CN 113382196B CN 202010117347 A CN202010117347 A CN 202010117347A CN 113382196 B CN113382196 B CN 113382196B
Authority
CN
China
Prior art keywords
video
sub
scene
memory space
video memory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010117347.XA
Other languages
Chinese (zh)
Other versions
CN113382196A (en
Inventor
周建
孙旷野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Haikang Fire Technology Co ltd
Original Assignee
Hangzhou Haikang Fire 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 Hangzhou Haikang Fire Technology Co ltd filed Critical Hangzhou Haikang Fire Technology Co ltd
Priority to CN202010117347.XA priority Critical patent/CN113382196B/en
Publication of CN113382196A publication Critical patent/CN113382196A/en
Application granted granted Critical
Publication of CN113382196B publication Critical patent/CN113382196B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
    • 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/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation 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
    • 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/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4334Recording operations
    • 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 or rendering scenes according to encoded video stream scene graphs
    • H04N21/44004Processing 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
    • 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 or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing 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 reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440263Processing 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 reformatting operations of video signals for household redistribution, storage or real-time display by altering the spatial resolution, e.g. for displaying on a connected PDA

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The embodiment of the application provides a scene switching method, a system, a device and a video comprehensive processing platform, which relate to the technical field of video monitoring and comprise the following steps: obtaining a second video of a second scene; when the first scene needs to be switched to the second scene, determining a second video memory space for caching each sub video of the second video; respectively caching each sub-video obtained by cutting the second video and the video parameter of each sub-video to the determined second video memory space; configuring the display equipment according to the configuration information of the second video; and after the configuration is finished, controlling the display equipment to stop displaying the first video and displaying the sub-video stored in the determined second video memory space according to the video parameters of the sub-video stored in the determined second video memory space. Therefore, the scene switching effect can be improved by applying the scheme provided by the embodiment of the application.

Description

Scene switching method, system and device and video comprehensive processing platform
Technical Field
The present application relates to the field of video monitoring technologies, and in particular, to a scene switching method, system, device, and video comprehensive processing platform.
Background
With the enhancement of safety consciousness of people, the application of video monitoring is more and more extensive. For example, video surveillance may be applied to large areas such as malls, roads, and factories, and may also be applied to small areas such as stores. In addition, whether a large area is monitored or a small area is monitored, there may be many scenes that need to be monitored in an important manner, such as elevator hatches and doorways of floors of a mall, shelves of each row of a shop, cash registers, and the like. The video acquisition equipment is used for acquiring the monitoring video of the monitoring scene. In order to enable the user to clearly understand the situation of the monitored scene, the monitoring video acquired by the video acquisition device is generally displayed by the display device.
Since there are many scenes that need to be monitored and it is difficult to simultaneously display the monitoring videos of the respective scenes on the display device, the monitoring videos of the respective scenes are generally displayed on the display device in a scene switching manner. Suppose that the currently displayed surveillance video of the first type of scene is to be switched to the surveillance video of the second type of scene, at this time, the video acquiring device for acquiring the surveillance video of the first type of scene stops sending the acquired surveillance video to the display device, and the video acquiring device for acquiring the surveillance video of the second type of scene starts sending the acquired surveillance video to the display device, but when the display device displays the surveillance video of the second type of scene, information such as display parameters of the surveillance video for displaying the second type of scene is configured first, and the configured surveillance video of the second type of scene can be displayed only after configuration, and the configuration operation needs a period of time, so that a period of time of jamming occurs on the display device, resulting in poor scene switching effect.
Disclosure of Invention
An object of the embodiments of the present application is to provide a method, a system, a device and a video comprehensive processing platform for scene switching, so as to improve the effect of scene switching. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present application provides a scene switching method, where the method includes:
obtaining a second video of a second scene;
when the first scene needs to be switched to the second scene, determining a second video memory space for caching each sub-video of the second video, wherein the sub-videos are: the video obtained by cutting the second video is obtained, the content contained in each video frame in each sub-video is a part of the content contained in each video frame in the second video, the determined second video memory space and the determined first video memory space are respectively located in different video memories, and the first video memory space is as follows: a video memory space for storing a first video of the first scene;
respectively caching each sub-video obtained by cutting the second video and the video parameter of each sub-video to the determined second video memory space;
configuring the display equipment according to the configuration information of the second video;
and after the configuration is finished, controlling the display equipment to stop displaying the first video and displaying the sub-video stored in the determined second video memory space according to the video parameters of the sub-video stored in the determined second video memory space.
In an embodiment of the application, the determining a second video memory space for caching each sub-video of the second video includes:
and distributing a second video memory space for caching each sub-video according to the memory space occupied by each sub-video of the second video.
In one embodiment of the present application, the method further comprises:
and releasing the first video memory space after the display equipment stops displaying the first video.
In one embodiment of the present application, the configuration information includes at least one of the following information: resolution information of each sub-video of the second video, position information of each sub-video of the second video displayed on the display device, and layer information of each sub-video of the second video displayed on the display device;
the configuring the display device according to the configuration information of the second video includes:
and configuring at least one of a resolution, a position and a layer of each sub video of the second video, which is used for displaying by the display device, according to the configuration information.
In a second aspect, an embodiment of the present application provides a scene switching system, where the system includes a video integrated processing platform and a display device, where the video integrated processing platform includes: scene control module, video acquisition module, demonstration switching module and two at least display memories, wherein:
the video acquisition module is used for acquiring a second video of a second scene;
the scene control module is configured to, when a first scene needs to be switched to a second scene, determine a second video memory address of a second video memory space for caching each sub-video of the second video, send a scene input switching instruction including the determined second video memory address to the video acquisition module, and send a scene display switching instruction including the second video configuration information to the display switching module, where a video memory corresponding to the determined second video memory address is different from a video memory corresponding to a first video memory address, the first video memory address is a video memory address of a first video memory space for caching a first video of the first scene, and the sub-videos are: the video obtained by cutting the second video is obtained, and the content contained in each video frame in each sub video is a part of the content contained in each video frame in the second video;
the video acquisition module is used for receiving the scene input switching instruction, and caching video parameters of each sub-video and each sub-video obtained by cutting the second video to a second video memory space corresponding to a second video memory address according to the second video memory address of each sub-video;
and the display switching module is used for receiving the scene display switching instruction, configuring the display equipment according to the configuration information, controlling the display equipment to stop displaying the video cached at the first video memory address after the configuration is finished, and displaying the sub-video stored in the determined second video memory space according to the video parameter of the sub-video stored in the determined second video memory space.
In an embodiment of the present application, the scene control module is further configured to send a video memory allocation instruction to the display switching module;
the display switching module is configured to allocate, according to the received video memory allocation instruction, video memory spaces for caching the sub videos of the second video, and send video memory addresses of the allocated video memory spaces to the scene control module;
the determining a second video memory address of a second video memory space used for caching each sub-video of a second video of the second scene includes:
and receiving the video memory address sent by the display switching module as a second video memory address of a second video memory space for caching each sub video of the second video.
In an embodiment of the application, the display switching module is further configured to release the video memory space indicated by the first video memory address after the display device stops displaying the video cached at the first video memory address.
In one embodiment of the present application, the configuration information includes at least one of the following information: resolution information of each sub-video of the second video, position information of each sub-video of the second video displayed on the display device, and layer information of each sub-video of the second video displayed on the display device;
configuring the display device according to the configuration information, including:
and configuring at least one of a resolution, a position and a layer of each sub video of the second video, which is used for displaying by the display device, according to the configuration information.
In a third aspect, an embodiment of the present application provides a scene switching apparatus, where the apparatus includes:
the second video acquisition module is used for acquiring a second video of a second scene;
a video memory space determining module, configured to determine, when it is required to switch from the first scene to the second scene, a second video memory space for caching each sub-video of the second video, where the sub-video is: the second video is cut to obtain a video, the content included in each video frame in each sub-video is a part of the content included in each video frame in the second video, the determined second video memory space and the determined first video memory space are respectively located in different video memories, and the first video memory space is as follows: a video memory space for storing a first video of the first scene;
the video caching module is used for respectively caching each sub-video obtained by cutting the second video and the video parameter of each sub-video to the determined second video memory space;
the display configuration module is used for configuring the display equipment according to the configuration information of the second video;
and the video switching module is used for controlling the display equipment to stop displaying the first video and displaying the sub-video stored in the determined second video memory space according to the video parameter of the sub-video stored in the determined second video memory space after the configuration is finished.
In an embodiment of the present application, the video memory space determining module is specifically configured to:
and when the first scene needs to be switched to the second scene, allocating a second video memory space for caching each sub-video according to the memory space occupied by each sub-video of the second video.
In one embodiment of the present application, the apparatus further comprises:
and the video memory space releasing module is used for releasing the first video memory space after the display equipment stops displaying the first video.
In one embodiment of the present application, the configuration information includes at least one of the following information: resolution information of each sub-video of the second video, position information of each sub-video of the second video displayed on the display device, and layer information of each sub-video of the second video displayed on the display device;
the display configuration module is specifically configured to:
and configuring at least one of a resolution, a position and a layer of each sub video of the second video, which is used for displaying by the display device, according to the configuration information.
In a fourth aspect, an embodiment of the present application provides a video comprehensive processing platform, where the video comprehensive processing platform includes a processor, a communication interface, a computer-readable storage medium, a communication bus, and at least two video memories, where the processor, the communication interface, and the computer-readable storage medium complete mutual communication between the at least two video memories through the communication bus;
a computer-readable storage medium for storing a computer program;
a processor for implementing the method steps of any one of the first aspect when executing a program stored on a computer readable storage medium.
In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium in a video integrated processing platform, where the video integrated processing platform includes a processor and at least two video memories, and a computer program is stored in the computer-readable storage medium, and when being executed by the processor, the computer program implements the method steps in any one of the first aspects.
The embodiment of the application has the following beneficial effects:
when the scheme provided by the embodiment of the application is applied to scene switching, a second video of a second scene is firstly obtained, when the scene switching from a first scene to the second scene is needed, a second video memory space for caching each sub video of the second video is determined, video parameters of each sub video and each sub video obtained by cutting the second video are respectively cached to the determined second video memory space, the display equipment is configured according to configuration information of the second video, and after the configuration is completed, the display equipment is controlled to stop displaying the first video and display the sub video stored in the determined second video memory space according to the video parameters of the sub video stored in the determined second video memory space.
Because the video comprehensive processing platform comprises at least two video memories, the first video memory space and the second video memory space are respectively positioned in different video memories, and the first video memory space stores the first video of the first scene, and the second video memory space stores the second video of the second scene, the video memory conflict can not occur when the videos of different scenes are stored. On this basis, when the first scene needs to be switched to the second scene, each sub-video of the second video can be cached in another video memory. In the process of configuring the parameters of the display device, the display device continues to display the video of the first scene cached in one of the video memories, and after the second video is cut and the configuration of the display device is completed, the display device starts to display the video of the second scene cached in the other video memory. Therefore, when the scheme provided by the embodiment of the application is applied to scene switching, the video displayed on the display equipment can achieve the effect of smooth switching, the video cannot be blocked for a period of time, and the scene switching effect is good.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic structural diagram of a scene switching system according to an embodiment of the present application;
fig. 2 is a schematic view of a scene switching process provided in an embodiment of the present application;
fig. 3a and fig. 3b are schematic diagrams of video cutting provided by an embodiment of the present application;
fig. 4 is a schematic view of video stitching provided in an embodiment of the present application;
fig. 5 is a schematic view of a video layer according to an embodiment of the present application;
fig. 6 is a signaling diagram of a scene change according to an embodiment of the present application;
fig. 7 is a schematic flowchart of a scene switching method according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a scene switching apparatus according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a video integrated processing platform according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a scene switching system according to an embodiment of the present application, and as shown in fig. 1, the system includes a video integration processing platform 101 and a display device 102.
The video comprehensive processing platform 101 is configured to perform comprehensive processing on a video, including caching and cutting a received video, and controlling the display device 102 to display the video. Specifically, the video comprehensive processing platform comprises: the video display system comprises a scene control module 1011, a video acquisition module 1012, a display switching module 1013 and at least two video memories.
The scene control module 1011 is configured to control each module to coordinate, and when a scene needs to be switched, switch a first video of a first scene to a second video of a second scene;
the video acquiring module 1012 is configured to acquire videos of various scenes, and specifically, may directly acquire a video acquired by an image acquiring device, where the image acquiring device may be a camera or the like, and may also acquire the video through other ways, for example, the video may be acquired from a database. The video acquired by the video acquisition module 1012 may be analog video or digital video. The video capture module 1012 may also segment the captured video according to the scene.
The display switching module 1013 is configured to perform parameter configuration on the display device 102, and may set a resolution, a display position, a layer position, and the like of the display device 102.
At least two video memories in the video comprehensive processing platform are used for caching videos of different scenes, wherein each video memory is used for caching the video of one scene once.
The display device 102 is configured to display a video, and the display device 102 may include a display screen on which at least one display area is divided for video display, or may include a plurality of display screens on each of which at least one display area is divided for video display.
The following describes the scene switching scheme specifically:
a video obtaining module 1012, configured to obtain a second video of a second scene;
the scene control module 1011 is configured to determine a second video memory address of a second video memory space for caching each sub video of a second video when a first scene needs to be switched to a second scene, send a scene input switching instruction including the determined second video memory address to the video acquisition module 1012, and send a scene display switching instruction including second video configuration information to the display switching module 1013;
the video obtaining module 1012 is configured to receive a scene input switching instruction, and cache video parameters of each sub-video and each sub-video obtained by cutting the second video to a second video memory space corresponding to a second video memory address according to the second video memory address of each sub-video;
the display switching module 1013 is configured to receive a scene display switching instruction, configure the display device 102 according to the configuration information, control the display device 102 to stop displaying the video cached at the first video memory address after the configuration is completed, and display the sub-video stored in the determined second video memory space according to the video parameter of the sub-video stored in the determined second video memory space.
Specifically, as shown in fig. 2, the video obtaining module 1012 may obtain the first video and the second video, and cache the first video in the first video memory space. When the first scene needs to be switched to the second scene, the scene control module 1011 determines the second video memory address of the second video memory space for caching each sub-video, sends the scene input switching instruction to the video acquiring module 1012, and sends the scene display switching instruction to the display switching module 1013. The video acquisition module 1011 sends each sub-video obtained by cutting the second video and the video parameter of each sub-video to the second video memory space indicated by the second video memory address according to the second video memory address carried in the scene input switching instruction.
After receiving the scene display switching instruction, the display device 102 performs parameter configuration on the display device 102 according to configuration information in the scene display switching instruction. In the configuration process, the display device 102 continuously accesses the first video memory space indicated by the first video memory address, and displays the first video cached at the first video memory address on the display screen. After the configuration is completed, the display device 102 stops displaying the first video and starts accessing the video and the video parameters cached in the second video memory space, so as to display each sub-video of the second video.
Because the video integrated processing platform 101 includes at least two video memories, and the first video memory space and the second video memory space are respectively located in different video memories, and because the first video memory space stores the first video of the first scene and the second video memory space stores the second video of the second scene, video memory conflicts can not occur when the videos of different scenes are stored. On this basis, when the first scene needs to be switched to the second scene, each sub-video of the second video can be cached in another video memory. In the process of configuring the parameters of the display device, the display device 102 may continue to display the video of the first scene cached in one of the video memories, and after the second video is cut and the configuration of the display device is completed, the display device starts to display the video of the second scene cached in the other video memory. Therefore, when the scheme provided by the embodiment of the application is applied to scene switching, the video displayed on the display equipment can achieve the effect of smooth switching, the video cannot be blocked for a period of time, and the scene switching effect is good.
The following explains the scene switching scheme provided by the above embodiments in detail:
wherein, the video memory that the second video memory address that confirms corresponds is different with the video memory that first video memory address corresponds, and first video memory address is the video memory address in the first video memory space that is used for caching the first video of first scene, and the sub video is: and cutting the second video to obtain a video, wherein the content contained in each video frame in each sub video is a part of the content contained in each video frame in the second video.
Wherein the first scenario is: the scene currently displayed by the display device 102, the first video is a video of the first scene.
The second scenario is: the scene switching system needs to switch to the scene.
The second video is: the video of the second scene may contain a plurality of videos since there may be a plurality of apparatuses for acquiring the video of each scene. For example, assume that a scene is a supermarket, and a device for acquiring a video of the scene is a camera, where the supermarket is equipped with 3 cameras, and each camera can acquire a video, so that the scene includes 3 videos.
The video memory address is: the access address of the video memory space may specifically be an initial address of the video memory space in the video memory. The first video memory address is a video memory address of a first video memory space for caching the first video. The second video memory address is a video memory address of a second video memory space for caching the second video. The video memory corresponding to the second video memory address is different from the video memory corresponding to the first video memory address, and the first video and the second video are respectively cached through the double video memories, so that when the first video and the second video are cached simultaneously, the cached data are prevented from interfering with each other.
The sub-videos of the second video are: and cutting the second video to obtain a video, wherein the content contained in each video frame in each sub video is a part of the content contained in each video frame in the second video. That is, when video slicing is performed on the second video, each video frame in the video is sliced. For example, assuming that fig. 3a is a video frame in a video of a supermarket scene acquired by the video acquisition module 1012, the video acquisition module 1012 performs video segmentation on the video to obtain 4 sub-videos, and a video frame of each sub-video is as shown in fig. 3 b.
The video parameter is parameter information of the video, and may include, for example, resolution information of the video, format information of the video, and input interface information of the video. Wherein the resolution information of the video may be 720 × 576 pixels, 1280 × 720 pixels, 1920 × 1080 pixels, etc.; the format information of the Video may be an AVI (Audio Video Interleaved) format, a FLV (Flash Video format) format, an MPEG (Moving Picture Experts Group) format; the input Interface information of the Video may be HDMI (High Definition Multimedia Interface), DVI (digital Video Interface), VGA (Video Graphics Array Interface), or the like.
In an embodiment of the present application, the scene control module 1011 may receive a scene switching instruction, and after the scene control module 1011 receives a switching instruction for switching from a first scene to a second scene, it determines that a subsequent step needs to be triggered when the first scene needs to be switched to the second scene, where the scene switching instruction may be an instruction sent by a user to the video integrated processing platform 101 through an input device, and the video integrated processing platform sends the instruction triggered by the user to the scene control module 1011.
In an embodiment of the present application, the scene switching system may further switch the scene according to a preset switching rule. The switching rule may be that scene switching is performed at preset time intervals, for example, scene switching is performed every 15 minutes; the switching rule may be that scene switching is performed according to a time period, for example, scene a is switched at the 0 th time, scene B is switched at the 1 st hour time, and scene C is switched at the 3 rd hour time.
The switching rule further includes a switching sequence of the scenes, and the switching sequence may be determined according to a distribution sequence of the scenes, for example, in a mall, the scenes are switched according to a floor sequence, specifically, the scenes are switched from a first-floor scene to a second-floor scene, and then switched from the second-floor scene to a third-floor scene. The switching order may be set in advance according to the scene requirement.
In this case, when the switching rule is satisfied, the scene control module 1011 starts to perform the corresponding steps.
In an embodiment of the present application, the second video memory address may be determined through the following process:
the scene control module 1011 is configured to send a memory allocation instruction to the display switching module 1013.
The video memory allocation instruction is used for instructing the display switching module 1013 to perform video memory allocation, so as to obtain a video memory space for caching each sub-video of the second video. Because each sub-video needs to occupy one video memory space, the video memory command includes: the number of video memory spaces to be allocated and the size of each video memory space.
The number of the video memory spaces to be allocated is related to the number of the sub-videos of the second scene, for example, when the second scene includes 6 sub-videos, 6 video memory spaces need to be allocated. In this way, the video parameters of each sub-video and sub-video can be buffered separately, and errors can be avoided when the display device 102 reads the video.
The space size of each video memory space is related to the size of the memory space occupied by the sub-video to be cached in the video memory space. The storage space occupied by the sub-video to be cached can be obtained according to the video code rate and the video duration to be cached. For example, if the video code rate is 25Mbps and the duration of the video to be cached is 4s, the storage space occupied by the video to be cached is:
25Mbps*4s/8=12.5MB
therefore, in order to implement the buffering of the sub-video, a video memory space of 12.5MB needs to be configured.
The display switching module 1013 is configured to allocate, according to the received video memory allocation instruction, each sub-video memory space for caching the second video, and send a video memory address of the allocated video memory space to the scene control module 1011.
Specifically, after receiving the video memory allocation instruction, the display switching module 1013 allocates the video memory according to the number of the video memory spaces to be allocated carried in the video memory allocation instruction and the size of each video memory space. The video integrated processing platform 101 includes at least two video memories, and one of the video memories is used for caching the first video of the first scene. Therefore, the display switching module 1013 needs to allocate the memory space in another memory according to the memory allocation instruction.
After the display switching module 1013 allocates the video memory spaces, the video memory addresses of the video memory spaces are sent to the scene control module 1011. The scene control module 1011 receives the video memory address sent by the display switching module 1013, and the video memory address is used as a second video memory address of a second video memory space for caching each sub video of the second video.
After the scene control module 1011 determines the second video memory address of the video memory space for caching each sub video, the scene control module 1011 may send a scene input switching instruction including the second video memory address to the video acquiring module 1012.
The video obtaining module 1012 caches each sub-video of the second video and the video parameter of the sub-video to the corresponding second video memory space according to the second video memory address in the scene input switching instruction. For example, assume that after the video obtaining module 1012 obtains a video, the video is divided into a sub-video 1 and a sub-video 2, and a video parameter 1 and a video parameter 2 of each sub-video are obtained. The video memory address of the sub-video 1 contained in the video input switching instruction is known as the video memory address 1, and the video memory address of the sub-video 2 is known as the video memory address 2. In this case, the video obtaining module 1012 sends the sub-video 1 and the video parameter 1 to the corresponding video memory space according to the video memory address 1, and sends the sub-video 2 and the video parameter 2 to the corresponding video memory space according to the video memory address 2.
The size of the video memory space allocated by the embodiment is equal to that of the video to be cached in the video memory space, so that the video memory can be saved, and the operation efficiency of the scene switching system can be improved.
For the above situation, in an embodiment of the present application, the display switching module 1013 is further configured to release the video memory space indicated by the first video memory address after the display device 102 stops displaying the video cached at the first video memory address. After the display device 102 stops displaying the video cached at the first video memory address, the video cached at the second video memory address is started to be displayed, and at this time, the video cached at the first video memory address does not need to be displayed any more, so that the video memory space indicated by the first video memory address is released. Therefore, on one hand, the video memory resources can be saved, and the video memory space can be distributed again when the scene is switched next time. On the other hand, after the video memory space is released, the video obtaining module 1012 cannot continue to cache the first video into the video memory, so that resource loss caused by data reading and writing of the video obtaining module 1012 can be reduced.
In an embodiment of the present application, when determining the second video memory address, the display switching module 1013 may allocate a plurality of video memory spaces in advance. Specifically, the display switching module 1013 may divide the video memory into a plurality of video memory spaces according to the size of the preset space, for example, if the size of the video memory is 1024MB and the size of the preset video memory space is 64MB, the video memory is divided into 16 video memory spaces according to the size of the preset video memory space. The display switching module 1013 may also allocate the video memory according to the size of the video memory space and the required number of the video memory spaces, for example, if the size of the video memory is 1024MB and the required number of the video memory spaces is 24, the size of each allocated video memory space is 42 MB.
The display switching module 1013 sends the pre-allocated video memory address of each video memory space to the scene control module 1011, and the scene control module 1011 determines, according to the scene to be switched, the video memory space for caching each sub video of the second video from the pre-allocated video memory space, and further determines the second video memory address of the second video memory space for caching each sub video of the second video.
In an embodiment of the present application, when performing video segmentation, the video obtaining module 1012 may perform video segmentation on the obtained video according to a scene layout of the second scene.
The scene layout may be the layout of each shop in a mall, or the layout of each shelf in a supermarket, or the like. The video usually includes a plurality of stores or a plurality of shelves, the acquired video is video-cut according to scene distribution, and each obtained sub-video may include a store or a shelf, so that each picture displayed by the display device 102 also includes a store or a shelf, which is convenient for a user to view for each store or each shelf.
In an embodiment of the present application, when performing video segmentation, the video obtaining module 1012 may perform video segmentation according to a region layout of a display region of the display device 102. For example, assuming that the display device 102 includes 2 × 2 display areas with the same size, for a video to be displayed in the 2 × 2 display areas, the video needs to be divided into 4 sub-videos on average, and the corresponding sub-videos are displayed on each display area, as shown in fig. 3 b.
In an embodiment of the present application, the video obtaining module 1012 may cut each video when receiving the video of each scene, so as to obtain a sub-video of the video of each scene. Thus, when the first scene needs to be switched to the second scene, the video obtaining module 1012 may directly cache the sub-video of the second video obtained after the cutting to the corresponding video memory space. Therefore, before the sub-videos are cached, the delay caused by video cutting can be avoided, the efficiency of video caching is improved, and the efficiency of video display switching is further improved.
In an embodiment of the present application, the video obtaining module 1012 may cut the second video of the second scene to obtain each sub-video when the first scene needs to be switched to the second scene, and then cache the video parameters of each sub-video and the sub-video to the corresponding video memory space. In this way, only the video of the scene to be switched is cut, and the operation efficiency of the video acquisition module 1012 can be saved.
In an embodiment of the present application, the configuration information may include at least one of the following information: the resolution information of each sub-video of the second video, the position information of each sub-video of the second video displayed on the display device 102, and the layer information of each sub-video of the second video displayed on the display device 102, where the configuration information may include one, two, or three of the above information.
The resolution information is the resolution of each sub-video of the second video, such as 1024 × 768, 640 × 480, and the like. The specific resolution information may be determined according to the resolution of the sub-video to be displayed, for example, when the resolution of the sub-video to be displayed is 1024 × 758, the resolution information in the set configuration information is also 1024 × 758. The value of the resolution information does not exceed the maximum resolution supported by the display device.
The position information is a position of a display area in the display device 102 for displaying each sub-video, for example, the position of the display area may be an upper left corner, a middle corner, a lower right corner, and the like of the display device 102. By controlling the position of each sub-video displayed in the display device, a plurality of videos can be displayed in one display device, and video splicing is realized. For example, as shown in fig. 4, four videos are respectively displayed on the upper left corner, the upper right corner, the lower left corner, and the lower right corner of the display device, so that the four videos are displayed on one display device in a splicing manner. The specific position information may be set in advance according to an application scene, for example, the position information of an important sub video may be set as the middle of the display device.
The layer information represents the layer position of each sub-video. Under the condition that the sub-videos are overlapped, the sub-video on the upper layer of the sub-video on the lower layer of the image layer is located on the upper layer of the sub-video on the lower layer of the image layer, as shown in fig. 5, the sub-video on the upper left corner in the image layer is located on the lower layer of the image layer, and the sub-video on the lower right corner is located on the upper layer of the image layer, so that on a display screen, the sub-video on the lower right corner can shield the sub-video on the upper left corner. The layer information of each sub-video may be determined according to the importance of the scene corresponding to the sub-video, for example, assuming that the scene corresponding to a sub-video is a cash register and has a higher importance, the layer information of the sub-video is set as the uppermost layer.
In an embodiment of the present application, the display switching module 1013 may configure at least one of a resolution, a position, and a layer of each sub-video used by the display device 102 to display the second video according to the configuration information. For example, when the information included in the configuration information is position information and layer information, the position and layer used by the display device to display each sub-video of the second video may be configured.
The configured display device 102 is capable of adapting to each sub-video of the second video to be displayed, so as to display each sub-video.
In an embodiment of the present application, after receiving the scene display switching instruction, the display switching module 1013 configures the display device 102 according to the configuration information, and after the configuration is completed, controls the display device 102 to stop accessing the first video memory address, so as to stop displaying the first video cached at the first video memory address, and access the second video memory address, so as to obtain each sub-video of the second video at the second video memory address, and then the display device displays each sub-video according to the resolution, the position, and the layer in the display device of each configured sub-video.
In an embodiment of the application, in a case that the image capturing device in the scene is a camera, the video integrated processing platform 101 may further be configured to send a pan-tilt control instruction to the image capturing device, and after receiving the pan-tilt control instruction, the image capturing device adjusts its posture according to the received instruction, for example, a pitch angle, a yaw angle, and the like of the camera may be adjusted. Therefore, the video comprehensive processing platform can conveniently control the image acquisition equipment, the monitoring range can be enlarged, and the monitoring video can be acquired in a targeted manner.
Referring to fig. 6, fig. 6 is a signaling diagram of a scene switching according to an embodiment of the present application, specifically:
the video acquisition module is used for acquiring a first video of a first scene and a second video of a second scene and caching video parameters of the first video and the first video to a first video memory space;
the display device is used for acquiring the first video and the video parameters of the first video from the first video memory space and displaying the first video according to the acquired video parameters;
the scene control module is used for determining a second video memory address of a second video memory space for caching each sub video of a second video when the scene needs to be switched from a first scene to a second scene, inputting a switching instruction of a scene containing the second video memory address to the video acquisition module, and sending a scene display switching instruction containing configuration information of the second video to the display switching module;
the video acquisition module is used for cutting the second video to obtain each sub-video after receiving a scene input switching instruction, and caching video parameters of each sub-video and the sub-video to a second video memory space corresponding to a second video memory address;
and the display switching module is used for configuring the display equipment according to the configuration information after receiving the scene display switching instruction, controlling the display equipment to stop displaying the first video after the configuration is finished, and displaying the sub-video according to the video parameters of the sub-video stored in the second video memory space.
When the scheme provided by the embodiment of the application is applied to scene switching, a second video of a second scene is firstly obtained, when the scene switching from a first scene to the second scene is needed, a second video memory space for caching each sub video of the second video is determined, video parameters of each sub video and each sub video obtained by cutting the second video are respectively cached to the determined second video memory space, the display equipment is configured according to configuration information of the second video, and after the configuration is completed, the display equipment is controlled to stop displaying the first video and display the sub video stored in the determined second video memory space according to the video parameters of the sub video stored in the determined second video memory space.
Because the video comprehensive processing platform comprises at least two video memories, the first video memory space and the second video memory space are respectively positioned in different video memories, and the first video memory space stores the first video of the first scene, and the second video memory space stores the second video of the second scene, the video memory conflict can not occur when the videos of different scenes are stored. On this basis, when the first scene needs to be switched to the second scene, each sub-video of the second video can be cached in another video memory. In the process of configuring the parameters of the display device, the display device continues to display the video of the first scene cached in one of the video memories, and after the second video is cut and the configuration of the display device is completed, the display device starts to display the video of the second scene cached in the other video memory. Therefore, when the scheme provided by the embodiment of the application is applied to scene switching, the video displayed on the display equipment can achieve the effect of smooth switching, the video cannot be blocked for a period of time, and the scene switching effect is good.
Referring to fig. 7, fig. 7 is a schematic flowchart of a scene switching method provided in the embodiment of the present application, where the method includes the following steps 701 to 705:
step 701, obtaining a second video of a second scene;
step 702, when it is required to switch from the first scene to the second scene, determining a second video memory space for caching each sub-video of the second video, where the sub-videos are: the video obtained by cutting the second video is obtained, the content contained in each video frame in each sub-video is a part of the content contained in each video frame in the second video, the determined second video memory space and the determined first video memory space are respectively located in different video memories, and the first video memory space is as follows: a video memory space for storing a first video of the first scene;
specifically, after receiving a scene switching instruction, it is considered that switching from a first scene to a second scene is required, where the scene switching instruction may carry the second scene to be switched.
The scene switching may also be performed according to a preset switching rule, where the switching rule may be that the scene switching is performed according to a preset time interval, or the scene switching is performed at a preset time point. The switching rule may further include a switching order of the scenes, and specifically, the switching order of the scenes may be determined according to a distribution order of each scene. When the switching rule is met, the scene switching is considered to be needed, and the second scene to be switched to is determined according to the switching sequence of the scenes.
Step 703, caching each sub-video obtained by cutting the second video and the video parameter of each sub-video to the determined second video memory space;
step 704, configuring the display device according to the configuration information of the second video;
step 705, after the configuration is completed, controlling the display device to stop displaying the first video, and displaying the sub-video stored in the determined second video memory space according to the video parameter of the sub-video stored in the determined second video memory space.
In an embodiment of the application, the determining a second video memory space for caching each sub-video of the second video includes:
and distributing a second video memory space for caching each sub-video according to the memory space occupied by each sub-video of the second video.
In one embodiment of the present application, the method further comprises:
and releasing the first video memory space after the display equipment stops displaying the first video.
In one embodiment of the present application, the configuration information includes at least one of the following information: resolution information of each sub-video of the second video, position information of each sub-video of the second video displayed on the display device, and layer information of each sub-video of the second video displayed on the display device;
the configuring the display device according to the configuration information of the second video includes:
and configuring at least one of a resolution, a position and a layer of each sub video of the second video, which is used for displaying by the display device, according to the configuration information.
When the scheme provided by the embodiment of the application is applied to scene switching, a second video of a second scene is firstly obtained, when the scene switching from a first scene to the second scene is needed, a second video memory space for caching each sub video of the second video is determined, video parameters of each sub video and each sub video obtained by cutting the second video are respectively cached to the determined second video memory space, the display equipment is configured according to configuration information of the second video, and after the configuration is completed, the display equipment is controlled to stop displaying the first video and display the sub video stored in the determined second video memory space according to the video parameters of the sub video stored in the determined second video memory space.
Because the video comprehensive processing platform comprises at least two video memories, the first video memory space and the second video memory space are respectively positioned in different video memories, and the first video memory space stores the first video of the first scene, and the second video memory space stores the second video of the second scene, the video memory conflict can not occur when the videos of different scenes are stored. On this basis, when the first scene needs to be switched to the second scene, each sub-video of the second video can be cached in another video memory. In the process of configuring the parameters of the display device, the display device continues to display the video of the first scene cached in one of the video memories, and after the second video is cut and the configuration of the display device is completed, the display device starts to display the video of the second scene cached in the other video memory. Therefore, when the scheme provided by the embodiment of the application is applied to scene switching, the video displayed on the display equipment can achieve the effect of smooth switching, the video cannot be blocked for a period of time, and the scene switching effect is good.
Referring to fig. 8, fig. 8 is a schematic structural diagram of a scene switching apparatus provided in an embodiment of the present application, where the apparatus includes:
a second video obtaining module 801, configured to obtain a second video of a second scene;
a video memory space determining module 802, configured to determine, when the first scene needs to be switched to the second scene, a second video memory space for caching each sub-video of the second video, where the sub-video is: the second video is cut to obtain a video, the content included in each video frame in each sub-video is a part of the content included in each video frame in the second video, the determined second video memory space and the determined first video memory space are respectively located in different video memories, and the first video memory space is as follows: a video memory space for storing a first video of the first scene;
the video caching module 803 is configured to cache each sub-video obtained by cutting the second video and the video parameter of each sub-video to the determined second video memory space;
a display configuration module 804, configured to configure the display device according to the configuration information of the second video;
the video switching module 805 is configured to control the display device to stop displaying the first video and display the sub-video stored in the determined second video memory space according to the video parameter of the sub-video stored in the determined second video memory space after the configuration is completed.
In an embodiment of the present application, the video memory space determining module 802 is specifically configured to:
and when the first scene needs to be switched to the second scene, allocating a second video memory space for caching each sub-video according to the memory space occupied by each sub-video of the second video.
In one embodiment of the present application, the apparatus further comprises:
and the video memory space releasing module is used for releasing the first video memory space after the display equipment stops displaying the first video.
In one embodiment of the present application, the configuration information includes at least one of the following information: resolution information of each sub-video of the second video, position information of each sub-video of the second video displayed on the display device, and layer information of each sub-video of the second video displayed on the display device;
the display configuration module 804 is specifically configured to:
and configuring at least one of a resolution, a position and a layer of each sub video of the second video, which is used for displaying by the display device, according to the configuration information.
When the scheme provided by the embodiment of the application is applied to scene switching, a second video of a second scene is firstly obtained, when the scene switching from a first scene to the second scene is needed, a second video memory space for caching each sub video of the second video is determined, video parameters of each sub video and each sub video obtained by cutting the second video are respectively cached to the determined second video memory space, the display equipment is configured according to configuration information of the second video, and after the configuration is completed, the display equipment is controlled to stop displaying the first video and display the sub video stored in the determined second video memory space according to the video parameters of the sub video stored in the determined second video memory space.
Because the video comprehensive processing platform comprises at least two video memories, the first video memory space and the second video memory space are respectively positioned in different video memories, and the first video memory space stores the first video of the first scene, and the second video memory space stores the second video of the second scene, the video memory conflict can not occur when the videos of different scenes are stored. On this basis, when the first scene needs to be switched to the second scene, each sub-video of the second video can be cached in another video memory. In the process of configuring the parameters of the display device, the display device continues to display the video of the first scene cached in one of the video memories, and after the second video is cut and the configuration of the display device is completed, the display device starts to display the video of the second scene cached in the other video memory. Therefore, when the scheme provided by the embodiment of the application is applied to scene switching, the video displayed on the display equipment can achieve the smooth switching effect, the pause within a period of time can not occur, and the scene switching effect is good.
The embodiment of the present application further provides a video comprehensive processing platform, as shown in fig. 9, the video comprehensive processing platform includes a processor 901, a communication interface 902, a computer-readable storage medium 903, a communication bus 904, and at least two video memories 905, where the processor 901, the communication interface 902, the computer-readable storage medium 903, and the at least two video memories 905 complete mutual communication through the communication bus 904,
a computer-readable storage medium 903 for storing a computer program;
the processor 901 is configured to implement any of the above-described scene switching methods when executing a program stored in the computer-readable storage medium 903.
The communication bus mentioned in the video integrated processing platform device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this is not intended to represent only one bus or type of bus. The communication interface is used for communication between the video integrated processing platform and other equipment.
The computer-readable storage medium may include a Random Access Memory (RAM) and may also include a Non-Volatile Memory (NVM), such as at least one disk Memory. Alternatively, the computer readable storage medium may be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In another embodiment provided by the present application, a computer-readable storage medium is further provided, where the computer-readable storage medium is a computer-readable storage medium in a video integrated processing platform, the video integrated processing platform includes a processor and at least two video memories, and when executed by the processor, the computer program implements any of the above scene switching methods.
In another embodiment provided by the present application, there is also provided a computer program product containing instructions that, when run on a computer, cause the computer to perform any of the above-described scene switching methods.
When the scheme provided by the embodiment of the application is applied to scene switching, a second video of a second scene is firstly obtained, when the scene switching from a first scene to the second scene is needed, a second video memory space for caching each sub video of the second video is determined, video parameters of each sub video and each sub video obtained by cutting the second video are respectively cached to the determined second video memory space, the display equipment is configured according to configuration information of the second video, and after the configuration is completed, the display equipment is controlled to stop displaying the first video and display the sub video stored in the determined second video memory space according to the video parameters of the sub video stored in the determined second video memory space.
Because the video comprehensive processing platform comprises at least two video memories, the first video memory space and the second video memory space are respectively positioned in different video memories, and the first video memory space stores the first video of the first scene, and the second video memory space stores the second video of the second scene, the video memory conflict can not occur when the videos of different scenes are stored. On this basis, when the first scene needs to be switched to the second scene, each sub-video of the second video can be cached in another video memory. In the process of configuring the parameters of the display device, the display device continues to display the video of the first scene cached in one of the video memories, and after the second video is cut and the configuration of the display device is completed, the display device starts to display the video of the second scene cached in the other video memory. Therefore, when the scheme provided by the embodiment of the application is applied to scene switching, the video displayed on the display equipment can achieve the effect of smooth switching, the video cannot be blocked for a period of time, and the scene switching effect is good.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the method embodiment, the apparatus embodiment, the video integrated processing platform embodiment, the storage medium embodiment, and the computer program product embodiment, since they are substantially similar to the system embodiment, the description is relatively simple, and the relevant points can be referred to the partial description of the system embodiment.
The above description is only for the preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims (13)

1. A method for scene change, the method comprising:
obtaining a second video of a second scene;
when the first scene needs to be switched to the second scene, determining a second video memory space for caching each sub-video of the second video, wherein the sub-videos are as follows: the video obtained by cutting the second video is obtained, the content contained in each video frame in each sub-video is a part of the content contained in each video frame in the second video, the determined second video memory space and the determined first video memory space are respectively located in different video memories, and the first video memory space is as follows: a video memory space for storing a first video of the first scene;
respectively caching each sub-video obtained by cutting the second video and the video parameter of each sub-video to the determined second video memory space;
configuring display equipment according to the configuration information of the second video;
and after the configuration is finished, controlling the display equipment to stop displaying the first video and displaying the sub-video stored in the determined second video memory space according to the video parameters of the sub-video stored in the determined second video memory space.
2. The method of claim 1, wherein the determining a second video memory space for buffering each sub-video of the second video comprises:
and distributing a second video memory space for caching each sub-video according to the memory space occupied by each sub-video of the second video.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
and releasing the first video memory space after the display equipment stops displaying the first video.
4. The method according to claim 1 or 2,
the configuration information includes at least one of the following information: resolution information of each sub-video of the second video, position information of each sub-video of the second video displayed on the display device, and layer information of each sub-video of the second video displayed on the display device;
the configuring the display device according to the configuration information of the second video includes:
and configuring at least one of a resolution, a position and a layer of each sub video of the second video, which is used for displaying by the display device, according to the configuration information.
5. A scene switching system, comprising a video integrated processing platform and a display device, wherein the video integrated processing platform comprises: scene control module, video acquisition module, demonstration switching module and two at least display memories, wherein:
the video acquisition module is used for acquiring a second video of a second scene;
the scene control module is configured to, when a first scene needs to be switched to a second scene, determine a second video memory address of a second video memory space for caching each sub-video of the second video, send a scene input switching instruction including the determined second video memory address to the video acquisition module, and send a scene display switching instruction including the second video configuration information to the display switching module, where a video memory corresponding to the determined second video memory address is different from a video memory corresponding to a first video memory address, the first video memory address is a video memory address of a first video memory space for caching a first video of the first scene, and the sub-videos are: the video obtained by cutting the second video is obtained, and the content contained in each video frame in each sub video is a part of the content contained in each video frame in the second video;
the video acquisition module is used for receiving the scene input switching instruction, and caching video parameters of each sub-video and each sub-video obtained by cutting the second video to a second video memory space corresponding to a second video memory address according to the second video memory address of each sub-video;
and the display switching module is used for receiving the scene display switching instruction, configuring the display equipment according to the configuration information, controlling the display equipment to stop displaying the video cached at the first video memory address after the configuration is finished, and displaying the sub-video stored in the determined second video memory space according to the video parameter of the sub-video stored in the determined second video memory space.
6. The system of claim 5,
the scene control module is also used for sending a video memory allocation instruction to the display switching module;
the display switching module is configured to allocate, according to the received video memory allocation instruction, video memory spaces for caching the sub videos of the second video, and send video memory addresses of the allocated video memory spaces to the scene control module;
the determining a second video memory address of a second video memory space for caching each sub-video of a second video of the second scene includes:
and receiving the video memory address sent by the display switching module as a second video memory address of a second video memory space for caching each sub video of the second video.
7. The system of claim 5 or 6,
the display switching module is further configured to release the video memory space indicated by the first video memory address after the display device stops displaying the video cached at the first video memory address.
8. The system of claim 5 or 6,
the configuration information includes at least one of the following information: resolution information of each sub-video of the second video, position information of each sub-video of the second video displayed on the display device, and layer information of each sub-video of the second video displayed on the display device;
configuring the display device according to the configuration information, including:
and configuring at least one of a resolution, a position and a layer of each sub video of the second video, which is used for displaying by the display device, according to the configuration information.
9. A scene switching apparatus, characterized in that the apparatus comprises:
the second video acquisition module is used for acquiring a second video of a second scene;
a video memory space determining module, configured to determine, when a first scene needs to be switched to the second scene, a second video memory space for caching each sub-video of the second video, where the sub-video is: the video obtained by cutting the second video is obtained, the content contained in each video frame in each sub-video is a part of the content contained in each video frame in the second video, the determined second video memory space and the determined first video memory space are respectively located in different video memories, and the first video memory space is as follows: a video memory space for storing a first video of the first scene;
the video caching module is used for respectively caching each sub-video obtained by cutting the second video and the video parameter of each sub-video to the determined second video memory space;
the display configuration module is used for configuring the display equipment according to the configuration information of the second video;
and the video switching module is used for controlling the display equipment to stop displaying the first video and displaying the sub-video stored in the determined second video memory space according to the video parameter of the sub-video stored in the determined second video memory space after the configuration is finished.
10. The apparatus of claim 9, wherein the video memory space determining module is specifically configured to:
and when the first scene needs to be switched to the second scene, distributing a second video memory space for caching each sub-video according to the memory space occupied by each sub-video of the second video.
11. The apparatus of claim 9 or 10, further comprising:
and the video memory space releasing module is used for releasing the first video memory space after the display equipment stops displaying the first video.
12. The apparatus of claim 9 or 10,
the configuration information includes at least one of the following information: resolution information of each sub-video of the second video, position information of each sub-video of the second video displayed on the display device, and layer information of each sub-video of the second video displayed on the display device;
the display configuration module is specifically configured to:
and configuring at least one of a resolution, a position and a layer of each sub video of the second video, which is used for displaying by the display device, according to the configuration information.
13. The video comprehensive processing platform is characterized by comprising a processor, a communication interface, a computer readable storage medium, a communication bus and at least two video memories, wherein the processor, the communication interface and the computer readable storage medium are used for completing mutual communication between the at least two video memories through the communication bus;
a computer-readable storage medium for storing a computer program;
a processor for implementing the method steps of any one of claims 1-4 when executing a program stored on a computer readable storage medium.
CN202010117347.XA 2020-02-25 2020-02-25 Scene switching method, system and device and video comprehensive processing platform Active CN113382196B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010117347.XA CN113382196B (en) 2020-02-25 2020-02-25 Scene switching method, system and device and video comprehensive processing platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010117347.XA CN113382196B (en) 2020-02-25 2020-02-25 Scene switching method, system and device and video comprehensive processing platform

Publications (2)

Publication Number Publication Date
CN113382196A CN113382196A (en) 2021-09-10
CN113382196B true CN113382196B (en) 2022-06-03

Family

ID=77569367

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010117347.XA Active CN113382196B (en) 2020-02-25 2020-02-25 Scene switching method, system and device and video comprehensive processing platform

Country Status (1)

Country Link
CN (1) CN113382196B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117014585B (en) * 2023-10-07 2024-02-09 联通在线信息科技有限公司 Household monitoring scene automatic switching method and system based on intelligent video analysis

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105100644A (en) * 2015-07-15 2015-11-25 西安诺瓦电子科技有限公司 Seamless switching method for video source
CN106412676A (en) * 2016-10-21 2017-02-15 乐视控股(北京)有限公司 Video code stream switching method and device, and electronic device
CN108833960A (en) * 2018-06-14 2018-11-16 青岛海信传媒网络技术有限公司 A kind of method and device of audiovisual applications switching
CN109495697A (en) * 2017-09-11 2019-03-19 广州彩熠灯光有限公司 Multi-screen extended method, system, storage medium and terminal based on video cutting
CN109922360A (en) * 2019-03-07 2019-06-21 腾讯科技(深圳)有限公司 Method for processing video frequency, device and storage medium
CN110809168A (en) * 2018-08-06 2020-02-18 中兴通讯股份有限公司 Video live broadcast processing method and device, terminal and storage medium
CN110830761A (en) * 2018-08-10 2020-02-21 杭州海康威视数字技术股份有限公司 Television wall scene switching method and device, electronic equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7099569B2 (en) * 2002-02-11 2006-08-29 Sony Corporation Method and apparatus for efficiently allocating memory when switching between DVD audio and DVD video

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105100644A (en) * 2015-07-15 2015-11-25 西安诺瓦电子科技有限公司 Seamless switching method for video source
CN106412676A (en) * 2016-10-21 2017-02-15 乐视控股(北京)有限公司 Video code stream switching method and device, and electronic device
CN109495697A (en) * 2017-09-11 2019-03-19 广州彩熠灯光有限公司 Multi-screen extended method, system, storage medium and terminal based on video cutting
CN108833960A (en) * 2018-06-14 2018-11-16 青岛海信传媒网络技术有限公司 A kind of method and device of audiovisual applications switching
CN110809168A (en) * 2018-08-06 2020-02-18 中兴通讯股份有限公司 Video live broadcast processing method and device, terminal and storage medium
CN110830761A (en) * 2018-08-10 2020-02-21 杭州海康威视数字技术股份有限公司 Television wall scene switching method and device, electronic equipment and storage medium
CN109922360A (en) * 2019-03-07 2019-06-21 腾讯科技(深圳)有限公司 Method for processing video frequency, device and storage medium

Also Published As

Publication number Publication date
CN113382196A (en) 2021-09-10

Similar Documents

Publication Publication Date Title
JP6479142B2 (en) Image identification and organization according to layout without user intervention
CN111182235B (en) Method, device, computer device and storage medium for recording spliced screen pictures
US10390076B2 (en) Image receiving/reproducing device, image generating/transmitting device, display system, image receiving/reproducing method, image generating/transmitting method, and computer readable medium
US10349020B2 (en) Information processing method and electronic apparatus
CN106162232A (en) video playing control method and device
US10944920B2 (en) Video switching method, device and video patrol system
CN113382196B (en) Scene switching method, system and device and video comprehensive processing platform
CN107103890A (en) Display application on fixed-direction display
US10893206B1 (en) User experience with digital zoom in video from a camera
CN111522476B (en) Method, device, computer device and storage medium for monitoring window switching
CN113301413B (en) Information display method and device
JP2019125054A (en) Information terminal device, information processing system, and display control program
CN112966256A (en) Equipment management method based on building information model and related device
CN112153459A (en) Method and device for screen projection display
CN111835955B (en) Data acquisition method and device
US20150181166A1 (en) Electronic device and method for video conference management
US11381793B2 (en) Room capture and projection
CN115134677A (en) Video cover selection method and device, electronic equipment and computer storage medium
US20210303117A1 (en) Zoom control of digital images on a display screen
US20160134842A1 (en) Mobile device capable of being associated with security equipment using widget
US20180097865A1 (en) Video processing apparatus and method
CN112835488B (en) Display window control method and device
CN109743521B (en) Video data transmission method and device, electronic equipment and storage medium
WO2013015816A1 (en) Positioning video streams from video conferencing sites
KR102164315B1 (en) Method for controlling display of panorama content and content providing server

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