WO2020030044A1 - 电视墙场景切换方法、装置、电子设备及存储介质 - Google Patents

电视墙场景切换方法、装置、电子设备及存储介质 Download PDF

Info

Publication number
WO2020030044A1
WO2020030044A1 PCT/CN2019/099793 CN2019099793W WO2020030044A1 WO 2020030044 A1 WO2020030044 A1 WO 2020030044A1 CN 2019099793 W CN2019099793 W CN 2019099793W WO 2020030044 A1 WO2020030044 A1 WO 2020030044A1
Authority
WO
WIPO (PCT)
Prior art keywords
scene
target output
output board
instruction
video data
Prior art date
Application number
PCT/CN2019/099793
Other languages
English (en)
French (fr)
Inventor
夏超伟
宋义
倪斌
Original Assignee
杭州海康威视数字技术股份有限公司
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 杭州海康威视数字技术股份有限公司 filed Critical 杭州海康威视数字技术股份有限公司
Publication of WO2020030044A1 publication Critical patent/WO2020030044A1/zh

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
    • H04N7/181Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast for receiving images from a plurality of remote sources
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/268Signal distribution or switching
    • 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

Definitions

  • the present application relates to video surveillance technology, and in particular, to a method, a device, an electronic device, and a storage medium for switching a TV wall scene.
  • the TV wall scene is composed of multiple front-end cameras (such as IPC (Internet Protocol Camera) to decode and output images according to the arrangement of the TV wall window.
  • IPC Internet Protocol Camera
  • the user operates a window through the client interface on the PC (Personal Computer) terminal (the window corresponds to a certain IPC).
  • the server board receives the command, it notifies the sub-chip on a certain output board to initiate the IPC.
  • the network connection fetches the stream.
  • the sub-chip sends the stream to the decoding chip for decoding, and finally outputs it to the display for image output display.
  • the present application provides a TV wall scene switching method, device, electronic device and storage medium.
  • a method for switching a TV wall scene including:
  • a prefetch stream instruction for the second scene is issued to a first target output board, so that the first A target output board pre-fetches the audio and video data of the second scene, and saves the media header information of the audio and video data of the second scene;
  • a stop display instruction for the first scene is issued to the second target output board, and the target output board is issued for the first target output board.
  • a display enable instruction for the second scene so that the second target output board stops outputting, fetching, and decoding audio and video data for the first scene, and causes the first target output board to output the second target output board.
  • the audio and video data of the scene are decoded and output.
  • a television wall scene switching device including:
  • a receiving unit configured to receive a scene switching instruction for instructing to switch a TV wall scene from a first scene to a second scene;
  • a sending unit configured to send a prefetch stream instruction for the second scene to the first target output board, so that the first target output board prefetches the audio and video data of the second scene, and Save media header information of the audio and video data of the second scene;
  • the sending unit is further configured to, when it is determined that the pre-fetching flow of the first target output board is completed, send a stop display instruction for the first scene to the second target output board, and send the first display output stop command to the first target output board.
  • the target output board issues an open display instruction for the second scene, so that the second target output board stops outputting, streaming, and decoding audio and video data for the first scene, and makes the first The target output board decodes and outputs audio and video data of the second scene.
  • a scene switching method including:
  • a prefetch stream instruction for the second scene is issued, and the prefetch stream instruction is used for the second scene. Pre-fetch the audio and video data of the scene;
  • a stop display instruction for the first scene is issued, and an open display instruction for the second scene is issued, and the stop display instruction is used to stop The output, streaming, and decoding of the audio and video data of the first scene, and the display enable instruction is used to decode and output the audio and video data of the second scene.
  • an electronic device including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory complete communication with each other through the communication bus;
  • the processor is configured to implement the foregoing method steps when executing a program stored in the memory.
  • a computer-readable storage medium stores a computer program, and the computer program implements the foregoing method steps when executed by a processor.
  • a television wall scene switching system including a service board and multiple output boards, where the multiple output boards include one or more first target output boards and one or more first boards.
  • Two target output boards of which:
  • the service board is configured to, when receiving a scene switching instruction instructing to switch a TV wall scene from a first scene to a second scene, issue a pre-plan for the second scene to the first target output board.
  • the first target output board is configured to pre-fetch the audio and video data of the second scene when a pre-fetch instruction for the second scene is received, and save the audio of the second scene.
  • Media header information of video data
  • the service board is further configured to, when it is determined that the pre-fetching flow of the first target output board is completed, send a stop display instruction for the first scene to the second target output board, and send the first display output stop command to the first target output board.
  • the target output board issues an open display instruction for the second scene;
  • the second target output board is further configured to stop outputting, streaming, and decoding audio and video data for the first scene when receiving a stop display instruction for the first scene;
  • the first target output board is further configured to decode and output audio and video data of the second scene when a display start instruction for the second scene is received.
  • FIG. 1 is a schematic diagram of a network architecture of a video surveillance system according to an exemplary embodiment of the present application
  • FIG. 2 is a schematic flowchart of a video wall scene switching method according to an exemplary embodiment of the present application
  • FIG. 3 is a schematic structural diagram of a specific application scenario shown in an exemplary embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of a video wall scene switching device according to an exemplary embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of a video wall scene switching device according to another exemplary embodiment of the present application.
  • FIG. 6 is a schematic diagram of a hardware structure of an electronic device according to an exemplary embodiment of the present application.
  • Fig. 7 is a schematic structural diagram of a video wall scene switching system according to an exemplary embodiment of the present application.
  • a method for scene switching provided in the embodiment of the present application, wherein the method for scene switching can be applied to a controller. It should be noted that the method can also be applied to, for example, an integrated platform or a decoder having functions such as streaming, decoding and output. Other equipment.
  • the controller may include a main control chip, a stream taking unit, a decoding unit, and an output unit.
  • the scene switching method provided in the embodiment of the present application may include the following steps:
  • Step 1 When receiving a scene switching instruction that instructs the scene to be switched from the first scene to the second scene, the controller issues a prefetch stream instruction for the second scene, and the prefetch stream instruction is used for the second scene. Pre-fetch the audio and video data of the scene;
  • the main control chip when the main control chip receives a scene switching instruction for instructing the scene to switch from the first scene to the second scene, the main control chip does not stop the display of the first scene first, but keeps the first When a scene is displayed, a pre-fetch instruction for the second scene is issued to the stream taking unit corresponding to the second scene, so that the stream taking unit corresponding to the second scene pre-fetches the audio and video data of the second scene. flow.
  • the controller may save the data obtained in the pre-fetching stream stage.
  • Media header information of the audio and video data of the second scene and discard the audio and video data of the subject to save storage space.
  • Step 2 When it is determined that the prefetch flow for the second scene is completed, a stop display instruction for the first scene is issued, and a start display instruction for the second scene is issued, and the stop display instruction is used to stop the first scene.
  • the display enable instruction is used to decode and output the audio and video data of the second scene.
  • the main control chip when the main control chip determines that the pre-fetching of the stream taking unit corresponding to the second scene is completed, on the one hand, the main control chip may issue a stop display instruction for the first scene, so that the output corresponding to the first scene is output.
  • the unit, the stream fetching unit and the decoding unit stop the output, streaming and decoding of the audio and video data of the first scene; on the other hand, the main control chip can issue an open display instruction for the second scene to enable the corresponding decoding of the second scene
  • the unit and the output unit decode and output the audio and video data of the second scene, so that the scene is switched from the first scene to the second scene.
  • the streaming unit corresponding to the second scene is controlled to pre-fetch the audio and video data of the second scene, and when the When pre-fetching the audio and video data of the second scene, the display of the first scene is stopped and the display of the second scene is started. Because the streaming unit corresponding to the second scene has pre-fetched the audio and video data of the second scene before the display of the first scene is stopped, the audio and video data of the second scene can be quickly decoded and output. It greatly reduces the transition time during scene switching, realizes smooth switching of scenes, and greatly improves the user experience.
  • the display of the second scene when the display of the second scene is turned on, the acquired audio and video data stream of the second scene is decoded, and at this time, a decoding resource is allocated to the second scene to implement code stream decoding. .
  • determining the decoding resources of the second scene in advance can further improve the efficiency of scene switching.
  • the method before issuing the stop display instruction for the first scene and the start display instruction for the second scene, the method may further include: pre-allocating decoding resources for the second scene.
  • all the decoding units (including the decoding unit used in the first scene) in the controller may be used as available decoding resources, and the second scene is pre-allocated with decoding resources from the available decoding resources.
  • One decoding unit can be divided into multiple decoding resources.
  • the issuing of the stop display instruction for the first scene and the start display instruction for the second scene may include:
  • a decoding resource recycling instruction for the first scene is issued, and a decoding instruction for the second scene is issued.
  • the decoding resource recycling instruction is used to release the decoding resource of the first scene, and the decoding instruction is used to use the allocated decoding resource pair. Decode the audio and video data of the second scene;
  • the audio and video data output instruction is used to output audio and video data for the second scene
  • the stop streaming instruction It is used to stop the streaming of the audio and video data of the first scene.
  • the controller may stop and clear the audio and video data output of all windows of the first scene ⁇ switch decoding resources, turn off decoding of the first scene, and turn on decoding of the second scene ⁇ open all windows of the second scene
  • the audio and video data is output, and the order of streaming the first scene is stopped, the display of the first scene is stopped, and the display of the second scene is turned on to further improve the efficiency of scene switching and reduce the time of empty scenes during the scene switching.
  • FIG. 1 is a schematic diagram of a network architecture of a video monitoring system according to an embodiment of the present application.
  • the video monitoring system may include a monitoring center, a service board (including a main control chip), and multiple outputs.
  • the monitoring center may send a scene switching instruction to the service board to instruct the service board to perform scene switching on the TV wall.
  • the TV wall is switched from the first scene to the second scene as an example, where the first scene is the current scene of the TV wall and the second scene is the scene after the TV wall is switched.
  • the service board When the service board receives the scene switching instruction, it will not first control the output board to stop the display of the first scene on the TV wall, but will first control the output board to pre-fetch the audio and video data of the second scene and save the second Media header information of the scene's audio and video data.
  • the media header information of the audio and video data is used to distinguish the type and bit rate of the code stream.
  • the decoding chip can decode the audio and video data of the same channel according to the media header information of the audio and video data of a certain channel.
  • the service board may control the output board to stop the display of the first scene on the TV wall, and control the output board to turn on the display of the second scene on the TV wall.
  • the output board has pre-fetched the audio and video data of the second scene, that is, the front end of the second scene
  • the camera establishes a streaming connection (usually a TCP (Transmission Control Protocol) connection) and saves the media header information of the audio and video data of each front-end camera. Therefore, when the audio and video data of the second scene is uploaded, When the wall is displayed, the output board can quickly decode and output, which greatly reduces the transition time during the TV wall scene switching process, and realizes the smooth switching of the TV wall scene.
  • TCP Transmission Control Protocol
  • the time during which the TV wall is in the middle of the empty scene is extremely short, which can even make the user undetectable, optimize the display effect of the TV wall, and greatly improve the user experience.
  • the service board may be packaged and deployed as a server, and the output board may be packaged and deployed as an output box.
  • multiple output boards can be packaged as one or more output boxes.
  • the multiple output boxes can be deployed in a distributed manner.
  • FIG. 2 is a schematic flowchart of a television wall scene switching method according to an embodiment of the present application.
  • the television wall switching method can be applied to a service board (such as a service board in a video monitoring system shown in FIG. 1).
  • the TV wall scene switching method may include the following steps:
  • Step S200 When receiving a scene switching instruction for instructing to switch the TV wall scene from the first scene to the second scene, issue a prefetch stream instruction for the second scene to the first target output board, so that the first The target output board pre-fetches the audio and video data of the second scene, and saves the media header information of the audio and video data of the second scene.
  • the service board when the service board receives a scene switching instruction for instructing the TV wall scene to be switched from the first scene to the second scene, the service board does not first stop the display of the first scene on the TV wall, but instead While maintaining the display of the first scene on the TV wall, a prefetch stream instruction for the second scene is issued to the first target output board.
  • the first target output board may include one or more output boards among a plurality of output boards in a video surveillance system.
  • the sub-chip of the first target output board when the sub-chip of the first target output board receives the prefetching stream instruction issued by the service board, it may be based on the stream taking parameters carried in the prefetching stream instruction (such as the IPC corresponding to the second scenario (under The address referred to herein as the target IPC) establishes a TCP connection with the target IPC, and obtains audio and video data of the second scene from the target IPC.
  • the stream taking parameters carried in the prefetching stream instruction such as the IPC corresponding to the second scenario (under The address referred to herein as the target IPC) establishes a TCP connection with the target IPC, and obtains audio and video data of the second scene from the target IPC.
  • the sub chip of the first target output board obtains the audio and video data from the target IPC, it does not transmit the acquired audio and video data to the decoding chip for decoding, but saves the media header information of the acquired audio and video data.
  • the acquired audio and video data can be decoded according to the saved media header information in the subsequent process.
  • the first target output board can Save the media header information of the audio and video data of the second scene obtained in the pre-fetching stage, and discard the audio and video data of the subject to save storage space.
  • Step S210 When it is determined that the pre-fetching flow of the first target output board is completed, a stop display instruction for the first scene is issued to the second target output board, and an open display instruction for the second scene is issued to the first target output board. To make the second target output board stop outputting, streaming, and decoding audio and video data for the first scene, and cause the first target output board to decode and output audio and video data for the second scene.
  • the first target output board when the first target output board establishes a TCP connection with the corresponding target IPC and obtains audio and video data including media header information from the corresponding target IPC, it may send a prefetch stream completion response to the service board Message.
  • the server board may determine that the first target output board has completed the prefetch stream.
  • the server board may send a prefetch stream instruction to output board 1 that carries the address information of IPC1 and IPC2, and output board 2 to output board 2.
  • a prefetch stream instruction carrying the IPC3 address information is issued, and a prefetch stream instruction carrying the IPC4 address information is issued to the output board 3.
  • output board 1 When receiving the prefetch stream instruction, output board 1 can establish TCP connections with IPC1 and IPC2 respectively, and obtain audio and video data streams from IPC1 and IPC2, respectively. When output board 1 obtains the media header from both IPC1 and IPC2 When streaming audio and video data, the output board 1 may send a prefetch stream completion response message to the service board.
  • the output board 2 can send a prefetch stream completion response message to the server board when it establishes a TCP connection with IPC3 and obtains an audio and video data stream containing media header information from IPC3;
  • the output board 3 may send a prefetch stream completion response message to the server board when a TCP connection is established with IPC4 and an audio and video data stream containing media header information is obtained from the IPC4.
  • the service board may determine that the first target output board prefetch stream is completed.
  • the service board when the service board determines that the pre-fetching flow of the first target output board is completed, the service board may send a stop display instruction for the first scene to the second target output board, so that the second target output board Stop the output, streaming, and decoding of audio and video data for the first scene; on the other hand, you can send an open display instruction for the second scene to the first target output board, so that the first target output board for the second scene The audio and video data is decoded and output, so that the TV wall is switched from the first scene to the second scene.
  • the second target output board is an output board for acquiring audio and video data of the first scene, and decoding and outputting the acquired audio and video data of the first scene.
  • the output board may include multiple outputs in a video surveillance system.
  • the output board when a scene switching instruction is received, while the display of the audio and video data of the first scene on the TV wall is maintained, the output board is controlled to perform the audio and video data prediction of the second scene. Take the stream, and when the output board completes the pre-fetching of the audio and video data of the second scene, control the output board to stop the display of the first scene on the TV wall, and control the output board to turn on the display of the second scene on the TV wall.
  • the output board has pre-fetched the audio and video data of the second scene before the display of the first scene on the TV wall is stopped, when the audio and video data of the second scene is displayed on the wall, the output board It can decode and output quickly, greatly reducing the transition time during the TV wall scene switching, achieving smooth switching of the TV wall scene, optimizing the display effect of the TV wall, and greatly improving the user experience.
  • the display of the second scene on the TV wall when the display of the second scene on the TV wall is turned on, the acquired audio and video data stream of the second scene is decoded, and at this time, a decoding resource is allocated for the second scene to Implement code stream decoding.
  • the service board when the service board receives the scene switching instruction, in addition to controlling the first target output board to pre-fetch the second scene in the manner described in step S200, it can also control the TV wall to stop the first scene. Before displaying the scene and turning on the display of the second scene, pre-allocate decoding resources for the second scene.
  • the service board may use all normal decoding chips (including the decoding chip used in the first scene) in the video surveillance system as available decoding resources, and pre-allocate decoding resources for the second scene from the available decoding resources.
  • the audio and video data of the second scene is not decoded (i.e. Decoding the audio and video data of the second scene obtained in the prefetching stream stage).
  • a decoding chip can decode multiple code streams obtained from the IPC, using one decoding chip only as a decoding resource of one code stream of the IPC will cause waste of resources. Therefore, in order to improve resource utilization, a decoding chip can be divided into multiple decoding resources, and each decoding resource can be used to decode an IPC code stream.
  • a decoding chip it can be divided into 8 decoding resources.
  • the video surveillance system includes 5 output boards and 1 decoding chip is deployed on one output board, there can be 40 copies in the video surveillance system.
  • Decoding resources When decoding resource pre-allocation is performed, the 40 decoding resources can be used as available decoding resources.
  • the issuing the stop display instruction for the first scene to the second target output board and the opening display instruction for the second scene to the first target output board may include:
  • a decoding resource recovery instruction is issued to the second target output board, and a decoding instruction for the second scene is issued to the first target output board, so that the second target output board releases the decoding resources, and the first target output board uses all the resources.
  • the allocated decoding resources decode the audio and video data of the second scene;
  • the data is output, and the second target output board stops streaming the audio and video data of the first scene.
  • the service board may stop and clear audio and video data output of all windows of the first scene ⁇ switch decoding resources, and close the first Decode the scene and enable the decoding of the second scene ⁇ turn on the audio and video data output of all windows of the second scene, and stop the order of streaming of the first scene, stop the display of the first scene of the TV wall, and start the second scene. It is shown that its specific implementation can be described below with specific examples.
  • the service board when the first target output board includes multiple output boards, in order to ensure the display effect of the video wall, the service board sends a stream instruction, a decoding instruction, or a first target output board.
  • a batch interface can be used to ensure that the instructions can be sent to each first target output board synchronously.
  • FIG. 3 is a schematic diagram of a specific application scenario provided by an embodiment of the present application.
  • a monitoring center is a PC client
  • a front-end camera is an IPC
  • an output board is used as an example.
  • 1 ⁇ output board n is deployed in a distributed deployment mode.
  • the implementation process of the TV wall scene switching solution provided by the embodiment of the present application is as follows (taking the TV wall scene from scene A (that is, the first scene) to scene B (that is, the second scene) as an example):
  • Pre-allocate decoding resources for scenario B One copy of decoding resources decodes the bitstream obtained from IPC: Mark the resources used in scenario A as available decoding resources, and form the currently available decoding resources with the remaining decoding resources. Among the currently available decoding resources, a decoding resource is selected to be pre-allocated to Scene B. The resource pre-allocation process is completed on the main control chip of the service board.
  • each decoding chip has 8 decoding resources and a total of 5 decoding chips (assuming that one output board contains 1 decoding chip), there are a total of 40 decoding resources.
  • the 40 decoding All resources can be used as currently available decoding resources.
  • the sub chip of the output board may discard the acquired main data of the audio and video data of the scene B (that is, only the media header information needs to be saved).
  • the time for establishing the streaming connection and obtaining the media header information is "hidden" in the process of displaying scene A on the TV wall, so that subsequent decoding resources can be smoothly switched to achieve audio and video data output during the scene switching Non-stop effect to eliminate the intermediate state of the empty scene during scene switching.
  • the sub-chip when the sub-chip receives the decoding instruction issued by the main control chip of the service board, it can transmit the acquired audio and video data of scene B to the decoding chip corresponding to the allocated decoding resource to implement scene B Decoding of audio and video data.
  • the audio and video data of scene B is first Perform prefetching without decoding (only fetching does not occupy decoding resources), and the obtained bitstream only retains media header information (media header information is used to distinguish the type of bitstream, bit rate, etc.), so that it can be used for subsequent scenes.
  • the audio and video data of B is quickly decoded, and all the main data is discarded.
  • a prefetch stream instruction for the second scene is issued to the first target output board, so as to Enable the first target output board to pre-fetch the audio and video data of the second scene, and save the media header information of the audio and video data of the second scene;
  • the output board issues a stop display instruction for the first scene, and issues an open display instruction for the second scene to the first target output board, so that the second target output board stops outputting audio and video data for the first scene, Streaming and decoding, and enabling the first target output board to decode and output the audio and video data of the second scene, realize the smooth switching of the TV wall scene, optimize the display effect of the TV wall, and improve the user experience.
  • FIG. 4 is a schematic structural diagram of a TV wall scene switching device according to an embodiment of the present application.
  • the TV wall scene switching device can be applied to a service board in the foregoing method embodiment, as shown in FIG. 4.
  • the TV wall scene switching device may include:
  • the receiving unit 410 is configured to receive a scene switching instruction for instructing to switch a TV wall scene from a first scene to a second scene.
  • the sending unit 420 is configured to send a prefetching stream instruction for the second scene to the first target output board, so that the first target output board performs prefetching of the audio and video data of the second scene, And save media header information of the audio and video data of the second scene;
  • the sending unit 420 is further configured to, when it is determined that the pre-fetching flow of the first target output board is completed, send a stop display instruction for the first scene to the second target output board, and send the stop display instruction to the first target output board.
  • a target output board issues an open display instruction for the second scene, so that the second target output board stops outputting, streaming, and decoding audio and video data for the first scene, and causes the first A target output board decodes and outputs audio and video data of the second scene.
  • the TV wall scene switching device further includes:
  • a resource allocation unit 430 is configured to pre-allocate decoding resources for the second scene.
  • the sending unit 420 is specifically configured to pronounce a video data output stop instruction under the second target output board, so that the second target output board stops outputting the first scene Audio and video data;
  • the first target output board includes one or more of a plurality of output boards deployed in a distributed manner
  • the second target output board includes one or more of a plurality of output boards deployed in a distributed manner.
  • a decoding chip on an output board is divided into multiple decoding resources
  • FIG. 6 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
  • the electronic device may include a processor 601, a communication interface 602, a memory 603, and a communication bus 604.
  • the processor 601, the communication interface 602, and the memory 603 complete communication with each other through the communication bus 604.
  • a computer program is stored in the memory 603; the processor 601 can execute the scene switching method and the TV wall scene switching method described in the foregoing method flow by executing the program stored in the memory 603.
  • the memory 603 mentioned herein may be any electronic, magnetic, optical or other physical storage device, and may contain or store information such as executable instructions, data, and so on.
  • the memory 603 may be: RAM (Radom Access Memory), volatile memory, nonvolatile memory, flash memory, storage drive (such as hard drive), solid state hard disk, any type of storage disk (such as optical disk , Dvd, etc.), or similar storage media, or a combination thereof.
  • An embodiment of the present application further provides a machine-readable storage medium storing a computer program, such as the memory 603 in FIG. 6, and the computer program may be executed by the processor 601 in the electronic device shown in FIG. 6 to implement the foregoing description.
  • Scene switching method and TV wall scene switching method are examples of computer program.
  • FIG. 7 is a schematic structural diagram of a television wall scene switching system according to an embodiment of the present application.
  • the television wall scene switching system may include a service board 710 and multiple output boards 720;
  • the service board 710 is configured to issue a prefetch for the second scene to the first target output board when a scene switching instruction for switching the TV wall scene from the first scene to the second scene is received.
  • the output board 720 is configured to pre-fetch the audio and video data of the second scene when a pre-fetch instruction for the second scene is received, and save the audio and video data of the second scene Media header information;
  • the service board 710 is further configured to, when it is determined that the pre-fetching flow of the first target output board is completed, send a stop display instruction to the second target output board for the first scene, and send the stop display instruction to the first target.
  • the output board issues a display start instruction for the second scene;
  • the output board 720 is further configured to stop outputting, streaming, and decoding of audio and video data for the first scene when receiving a stop display instruction for the first scene;
  • the output board 720 is further configured to decode and output audio and video data of the second scene when a display start instruction for the second scene is received.
  • the service board 710 and the output board 720 can implement the TV wall scene switching in the manner described in the above method embodiments.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

本申请提供一种电视墙场景切换方法、装置、电子设备及存储介质,该方法包括:当接收到用于指示将电视墙场景由第一场景切换为第二场景的场景切换指令时,向第一目标输出板下发针对所述第二场景的预取流指令;当确定所述第一目标输出板预取流完成时,向所述第二目标输出板下发针对所述第一场景的停止显示指令,并向所述第一目标输出板下发针对所述第二场景的开启显示指令。

Description

电视墙场景切换方法、装置、电子设备及存储介质
相关申请的交叉引用
本专利申请要求于2018年8月10日提交的、申请号为2018109115278、发明名称为“电视墙场景切换方法、装置、电子设备及存储介质”的中国专利申请的优先权,该申请的全文以引用的方式并入本文中。
技术领域
本申请涉及视频监控技术,尤其涉及一种电视墙场景切换方法、装置、电子设备及存储介质。
背景技术
电视墙场景是由多个前端摄像机(如IPC(Internet Protocol Camera,网络摄像机))按照电视墙窗口的排布进行解码输出图像组成的。
用户通过PC(Personal Computer,个人计算机)端的客户端界面操作一个窗口进行上墙操作(该窗口对应某一个IPC),服务板接收到命令后,通知某一块输出板上的子芯片去向该IPC发起网络连接取流,取到视频码流后,子芯片将该码流发送给解码芯片进行解码,最后输出到显示器上进行图像输出显示。
发明内容
有鉴于此,本申请提供一种电视墙场景切换方法、装置、电子设备及存储介质。
具体地,本申请是通过如下技术方案实现的:
根据本申请实施例的第一方面,提供一种电视墙场景切换方法,包括:
当接收到用于指示将电视墙场景由第一场景切换为第二场景的场景切换指令时,向第一目标输出板下发针对所述第二场景的预取流指令,以使所述第一目标输出板对所述第二场景的音视频数据进行预取流,并保存所述第二场景的音视频数据的媒体头信息;
当确定所述第一目标输出板预取流完成时,向所述第二目标输出板下发针对所述第一场景的停止显示指令,并向所述第一目标输出板下发针对所述第二场景的开启显示指令,以使所述第二目标输出板停止针对所述第一场景的音视频数据的输出、取流和解码, 并使所述第一目标输出板对所述第二场景的音视频数据进行解码和输出。
根据本申请实施例的第二方面,提供一种电视墙场景切换装置,包括:
接收单元,用于接收用于指示将电视墙场景由第一场景切换为第二场景的场景切换指令;
发送单元,用于向第一目标输出板下发针对所述第二场景的预取流指令,以使所述第一目标输出板对所述第二场景的音视频数据进行预取流,并保存所述第二场景的音视频数据的媒体头信息;
所述发送单元,还用于当确定所述第一目标输出板预取流完成时,向所述第二目标输出板下发针对所述第一场景的停止显示指令,并向所述第一目标输出板下发针对所述第二场景的开启显示指令,以使所述第二目标输出板停止针对所述第一场景的音视频数据的输出、取流和解码,并使所述第一目标输出板对所述第二场景的音视频数据进行解码和输出。
根据本申请实施例的第三方面,提供一种场景切换方法,包括:
当接收到用于指示将场景由第一场景切换为第二场景的场景切换指令时,下发针对所述第二场景的预取流指令,所述预取流指令用于对所述第二场景的音视频数据进行预取流;
当确定针对所述第二场景的预取流完成时,下发针对所述第一场景的停止显示指令,并下发针对所述第二场景的开启显示指令,所述停止显示指令用于停止所述第一场景的音视频数据的输出、取流和解码,所述开启显示指令用于对所述第二场景的音视频数据进行解码和输出。
根据本申请实施例的第四方面,提供一种电子设备,包括处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;
存储器,用于存放计算机程序;
处理器,用于执行存储器上所存放的程序时,实现上述方法步骤。
根据本申请实施例的第五方面,提供一种计算机可读存储介质,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现上述方法步骤。
根据本申请实施例的第六方面,提供一种电视墙场景切换系统,包括服务板以及多个输出板,所述多个输出板包括一个或多个第一目标输出板以及一个或多个第二目标输 出板,其中:
所述服务板,用于当接收到用于指示将电视墙场景由第一场景切换为第二场景的场景切换指令时,向所述第一目标输出板下发针对所述第二场景的预取流指令;
所述第一目标输出板,用于当接收到针对所述第二场景的预取流指令时,对所述第二场景的音视频数据进行预取流,并保存所述第二场景的音视频数据的媒体头信息;
所述服务板,还用于当确定所述第一目标输出板预取流完成时,向所述第二目标输出板下发针对所述第一场景的停止显示指令,并向所述第一目标输出板下发针对所述第二场景的开启显示指令;
所述第二目标输出板,还用于当接收到针对所述第一场景的停止显示指令时,停止针对第一场景的音视频数据的输出、取流和解码;
所述第一目标输出板,还用于当接收到针对所述第二场景的开启显示指令时,对所述第二场景的音视频数据进行解码和输出。
附图说明
图1是本申请一示例性实施例示出的一种视频监控系统的组网架构示意图;
图2是本申请一示例性实施例示出的一种视频墙场景切换方法的流程示意图;
图3是本申请一示例性实施例示出的一种具体应用场景的架构示意图;
图4是本申请一示例性实施例示出的一种视频墙场景切换装置的结构示意图;
图5是本申请又一示例性实施例示出的一种视频墙场景切换装置的结构示意图;
图6是本申请一示例性实施例示出的一种电子设备的硬件结构示意图;
图7是本申请一示例性实施例示出的一种视频墙场景切换系统的结构示意图。
具体实施方式
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。
在本申请使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本申请。在本申请和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。
目前,当进行电视墙场景切换时,以从场景A切换到场景B为例,首先停止电视墙场景A里所有窗口的显示(视频图像停止输出);然后,服务板的主控芯片发命令给输出板的子芯片停止对当前场景下的全部IPC的取流,子芯片再发命令给解码芯片使其停止对码流的解码;接着服务板下发场景B的全部窗口的取流参数给输出板;输出板的子芯片开始取流,解码芯片开始解码,最后开启电视墙场景B全部窗口的图像输出显示。
上述电视墙场景切换方案中,从场景A停止显示再到场景B重新开始显示的时间比较长,这就导致电视墙上在场景切换过程中会有一段时间没有图像输出显示,用户体验差。
下面对本申请实施例的技术方案进行说明。本申请实施例提供的一种场景切换方法,其中,该场景切换方法可以应用于控制器,需要说明的是,该方法也可以应用于例如综合平台或解码器等具备取流、解码和输出功能的其他设备。
以执行主体为控制器为例,该控制器可以包括主控芯片、取流单元、解码单元和输出单元。具体地,本申请实施例提供的场景切换方法可以包括以下步骤:
步骤一:当接收到用于指示将场景由第一场景切换为第二场景的场景切换指令时,控制器下发针对第二场景的预取流指令,该预取流指令用于对第二场景的音视频数据进行预取流;
本申请实施例中,当主控芯片接收到用于指示场景由第一场景切换为第二场景的场景切换指令时,主控芯片并不会先停止第一场景的显示,而是在保持第一场景的显示的情况下,向第二场景对应的取流单元下发针对第二场景的预取流指令,以使第二场景对应的取流单元对第二场景的音视频数据进行预取流。
需要说明的是,在本申请实施例中,由于在预取流阶段获取到的第二场景的音视频数据并不会用于解码和显示,因此,控制器可以保存预取流阶段获取到的第二场景的音视频数据的媒体头信息,并丢弃主体的音视频数据,以节省存储空间。
步骤二:当确定针对第二场景的预取流完成时,下发针对第一场景的停止显示指令,并下发针对第二场景的开启显示指令,该停止显示指令用于停止第一场景的音视频数据的输出、取流和解码,该开启显示指令用于对第二场景的音视频数据进行解码和输出。
本申请实施例中,当主控芯片确定第二场景对应的取流单元预取流完成时,一方面主控芯片可以下发针对第一场景的停止显示指令,以使第一场景对应的输出单元、取流单元和解码单元停止第一场景的音视频数据的输出、取流和解码;另一方面主控芯片可以下发针对第二场景的开启显示指令,以使第二场景对应的解码单元和输出单元对第二场景的音视频数据进行解码和输出,实现场景由第一场景切换为第二场景。
可见,当接收到场景切换指令时,在保持第一场景的音视频数据的显示的情况下,控制第二场景对应的取流单元对第二场景的音视频数据进行预取流,并当完成第二场景的音视频数据的预取流时,停止第一场景的显示并开启第二场景的显示。由于在停止第一场景的显示之前,第二场景对应的取流单元已经对第二场景的音视频数据进行了预取流,因此,第二场景的音视频数据可以被快速地解码和输出,大大减少了场景切换过程中的过渡时间,实现了场景的平滑切换,大大提升了用户体验。
进一步地,在本申请实施例中,当开启第二场景的显示时,对获取到的第二场景的音视频数据流进行解码,此时,为第二场景分配解码资源,以实现码流解码。
考虑到当对第二场景的音视频数据进行解码时,为第二场景选择和分配解码资源会占用一定的时间,因此,若提前确定好第二场景的解码资源可以进一步提高场景切换的效率。
相应地,在本申请其中一个实施例中,上述下发针对第一场景的停止显示指令,并下发针对第二场景的开启显示指令之前,还可以包括:为第二场景预分配解码资源。
在该实施例中,可以将控制器中的解码单元(包括第一场景使用的解码单元)均作为可用解码资源,并从可用解码资源中为第二场景预分配解码资源。
其中,一个解码单元可以被划分为多份解码资源。
在本申请其中一个实施例中,上述下发针对第一场景的停止显示指令,并下发针对第二场景的开启显示指令,可以包括:
下发针对第一场景的音视频数据输出停止指令,该音视频数据输出停止指令用于停止输出第一场景的音视频数据;
下发针对第一场景的解码资源回收指令,并下发针对第二场景的解码指令,该解码资源回收指令用于释放第一场景的解码资源,该解码指令用于利用所分配的解码资源对第二场景的音视频数据进行解码;
下发针对第二场景的音视频数据输出指令,并下发针对第一场景的停止取流指令,该音视频数据输出指令用于对第二场景的音视频数据进行输出,该停止取流指令用于停止对第一场景的音视频数据的取流。
在该实施例中,控制器可以按照停止并清除第一场景所有窗口的音视频数据输出→切换解码资源,关闭第一场景的解码,并开启第二场景的解码→开启第二场景所有窗口的音视频数据输出,并停止第一场景的取流的顺序,停止第一场景的显示,并开启第二场景的显示,以进一步提高场景切换的效率,减少场景切换过程中空场景的时间。
为了使本领域技术人员更好地理解本申请实施例提供的技术方案,下面以视频监控系统为例详细说明本申请实施例提供的技术方案。请参见图1,为本申请实施例提供的一种视频监控系统的组网架构示意图,如图1所示,该视频监控系统可以包括监控中心、服务板(包括主控芯片)、多个输出板(包括子芯片和解码芯片)、多个前端摄像机以及电视墙(由LCD(Liquid Crystal Display,液晶显示器)显示器或LED(Light Emitting Diode,发光二极管)显示单元拼接而成);其中,服务板、输出板以及监控中心分别通过交换机连接到网络,实现网络通信。
在图1所示视频监控系统中,监控中心可以向服务板下发场景切换指令,以指示服务板对电视墙进行场景切换。
本文中以将电视墙由第一场景切换为第二场景为例,其中,第一场景为电视墙当前的场景,第二场景为电视墙切换后的场景。
服务板接收到场景切换指令时,并不会先控制输出板停止电视墙上第一场景的显示,而是会先控制输出板对第二场景的音视频数据进行预取流,并保存第二场景的音视频数据的媒体头信息。其中,音视频数据的媒体头信息用于区分码流的类型、码率等,解码芯片可以根据某一路音视频数据的媒体头信息对同一路的音视频数据进行解码。
当输出板对第二场景的音视频数据预取流完成时,服务板可以控制输出板停止电视墙上的第一场景的显示,并控制输出板开启电视墙上的第二场景的显示。
由于在停止电视墙上的第一场景的显示之前(保持电视墙上的第一场景的显示),输出板已经对第二场景的音视频数据进行了预取流,即与第二场景的前端摄像机建立了取流连接(通常为TCP(Transmission Control Protocol,传输控制协议)连接),并保存了各前端摄像机的音视频数据的媒体头信息,因此,当对第二场景的音视频数据进行上墙显示时,输出板可以快速地解码和输出,大大减少了电视墙场景切换过程中的过渡 时间,实现电视墙场景的平滑切换。
其中,电视墙场景切换过程中,电视墙处于空场景的中间状态的时间极短,甚至可以使用户无法察觉,优化了电视墙的显示效果,大大提升了用户体验。
需要说明的是,在本申请实施例的实际应用场景中,服务板可以封装为服务器的形式部署,输出板可以封装为输出盒子的形式部署。
其中,多个输出板可以封装为一个或多个输出盒子。当多个输出板封装为多个输出盒子时,该多个输出盒子可以分布式部署。
为了使本申请实施例的上述目的、特征和优点能够更加明显易懂,下面结合附图对本申请实施例中技术方案作进一步详细的说明。
请参见图2,为本申请实施例提供的一种电视墙场景切换方法的流程示意图,其中,该电视墙切换方法可以应用于服务板(如图1所示视频监控系统中的服务板),如图2所示,该电视墙场景切换方法可以包括以下步骤:
步骤S200、当接收到用于指示将电视墙场景由第一场景切换为第二场景的场景切换指令时,向第一目标输出板下发针对第二场景的预取流指令,以使第一目标输出板对第二场景的音视频数据进行预取流,并保存第二场景的音视频数据的媒体头信息。
本申请实施例中,当服务板接收到用于指示电视墙场景由第一场景切换为第二场景的场景切换指令时,服务板并不会先停止电视墙上第一场景的显示,而是在保持电视墙上第一场景的显示的情况下,向第一目标输出板下发针对第二场景的预取流指令。
其中,第一目标输出板可以包括视频监控系统中的多个输出板中的一个或多个输出板。
本申请实施例中,第一目标输出板的子芯片接收到服务板下发的预取流指令时,可以根据该预取流指令中携带的取流参数(如第二场景对应的IPC(下文中称为目标IPC)的地址)与目标IPC建立TCP连接,并从目标IPC中获取第二场景的音视频数据。
第一目标输出板的子芯片从目标IPC中获取到音视频数据时,并不会将获取到的音视频数据传输给解码芯片进行解码,而是保存获取到的音视频数据的媒体头信息,以便后续流程中可以根据所保存的媒体头信息对获取到的音视频数据进行解码,以提高后续流程中第二场景的音视频数据的解码效率。
需要说明的是,在本申请实施例中,由于第一目标输出板在预取流阶段获取到的第 二场景的音视频数据并不会用于解码和显示,因此,第一目标输出板可以保存预取流阶段获取到的第二场景的音视频数据的媒体头信息,并丢弃主体的音视频数据,以节省存储空间。
步骤S210、当确定第一目标输出板预取流完成时,向第二目标输出板下发针对第一场景的停止显示指令,并向第一目标输出板下发针对第二场景的开启显示指令,以使第二目标输出板停止针对第一场景的音视频数据的输出、取流和解码,并使第一目标输出板对第二场景的音视频数据进行解码和输出。
本申请实施例中,第一目标输出板与对应的目标IPC建立了TCP连接,并从对应的目标IPC中获取到包含媒体头信息的音视频数据时,可以向服务板发送预取流完成响应消息。
当服务板接收到全部第一目标输出板发送的预取流完成响应消息时,服务板可以确定第一目标输出板预取流完成。
举例来说,假设第一目标输出板包括输出板1~3,目标IPC包括IPC1~4,服务板可以向输出板1下发携带IPC1和IPC2的地址信息的预取流指令,向输出板2下发携带IPC3的地址信息的预取流指令,并向输出板3下发携带IPC4的地址信息的预取流指令。
当接收到预取流指令时,输出板1可以分别与IPC1和IPC2建立TCP连接,并分别从IPC1和IPC2中获取音视频数据流,当输出板1从IPC1和IPC2中均获取到包含媒体头信息的音视频数据流时,输出板1可以向服务板发送预取流完成响应消息。
同理,输出板2可以在与IPC3建立了TCP连接,并从IPC3中获取到了包含媒体头信息的音视频数据流时,向服务板发送预取流完成响应消息;
输出板3可以在与IPC4建立了TCP连接,并从IPC4中获取到了包含媒体头信息的音视频数据流时,向服务板发送预取流完成响应消息。
当服务板接收到输出板1、输出板2和输出板3发送的预取流完成响应消息时,服务板可以确定第一目标输出板预取流完成。
本申请实施例中,当服务板确定第一目标输出板预取流完成时,服务板一方面可以向第二目标输出板下发针对第一场景的停止显示指令,以使第二目标输出板停止针对第一场景的音视频数据的输出、取流和解码;另一方面可以向第一目标输出板下发针对第二场景的开启显示指令,以使第一目标输出板对第二场景的音视频数据进行解码和输出,实现电视墙由第一场景切换为第二场景。
其中,第二目标输出板为用于获取第一场景的音视频数据,并对获取到的第一场景的音视频数据进行解码和输出的输出板,其可以包括视频监控系统中的多个输出板中的一个或多个输出板。
可见,在图2所示方法流程中,当接收到场景切换指令时,在保持电视墙上第一场景的音视频数据的显示的情况下,控制输出板进行第二场景的音视频数据的预取流,并当输出板完成第二场景的音视频数据的预取流时,控制输出板停止电视墙上的第一场景的显示,并控制输出板开启电视墙上的第二场景的显示。由于在停止电视墙上的第一场景的显示之前,输出板已经对第二场景的音视频数据进行了预取流,因此,当对第二场景的音视频数据进行上墙显示时,输出板可以快速地解码和输出,大大减少了电视墙场景切换过程中的过渡时间,实现了电视墙场景的平滑切换,优化了电视墙的显示效果,大大提升了用户体验。
进一步地,在本申请实施例中,当开启电视墙上的第二场景的显示时,对获取到的第二场景的音视频数据流进行解码,此时,为第二场景分配解码资源,以实现码流解码。
考虑到当对第二场景的音视频数据进行解码时,为第二场景选择和分配解码资源会占用一定的时间,因此,若提前确定好第二场景的解码资源可以进一步提高电视墙场景切换的效率。
相应地,在本申请其中一个实施例中,上述向第二目标输出板下发针对第一场景的停止显示指令,并向第一目标输出板下发针对第二场景的开启显示指令之前,还可以包括:为第二场景预分配解码资源。
在该实施例中,当服务板接收到场景切换指令时,除了可以按照步骤S200中描述的方式控制第一目标输出板对第二场景进行预取流之外,还可以控制电视墙停止第一场景的显示并开启第二场景的显示之前,为第二场景预分配解码资源。
其中,服务板可以将视频监控系统中全部正常的解码芯片(包括第一场景使用的解码芯片)均作为可用解码资源,并从可用解码资源中为第二场景预分配解码资源。
需要说明的是,在该实施例中,对于预分配给第二场景的解码资源,在服务板控制电视墙显示第二场景之前,并不会对第二场景的音视频数据进行解码(即不会对预取流阶段获取到的第二场景的音视频数据进行解码)。
进一步地,在本申请实施例中,考虑到一个解码芯片可以对从IPC获取到的多路码流进行解码,将一个解码芯片仅用于作为IPC的一路码流的解码资源会造成资源的浪费, 因此,为了提高资源利用率,可以将一个解码芯片划分为多份解码资源,每一份解码资源可以用于解码IPC的一路码流。
例如,对于一个解码芯片,可以将其划分为8份解码资源,则当视频监控系统中包括5个输出板,1个输出板上部署有1个解码芯片时,视频监控系统中可以存在40份解码资源,当进行解码资源预分配时,该40份解码资源均可以作为可用解码资源。
在本申请其中一个实施例中,上述向第二目标输出板下发针对第一场景的停止显示指令,并向第一目标输出板下发针对第二场景的开启显示指令,可以包括:
向第二目标输出板下发音视频数据输出停止指令,使第二目标输出板停止输出第一场景的音视频数据;
向第二目标输出板下发解码资源回收指令,并向第一目标输出板下发针对第二场景的解码指令,以使第二目标输出板释放解码资源,并使第一目标输出板利用所分配的解码资源对第二场景的音视频数据进行解码;
向第一目标输出板下发针对第二场景的音视频数据输出指令,并向第二目标输出板针对第一场景的停止取流指令,以使第一目标输出板对第二场景的音视频数据进行输出,并使第二目标输出板停止对第一场景的音视频数据的取流。
在该实施例中,为了进一步提高电视墙场景切换的效率,减少场景切换过程中空场景的时间,服务板可以按照停止并清除第一场景所有窗口的音视频数据输出→切换解码资源,关闭第一场景的解码,并开启第二场景的解码→开启第二场景所有窗口的音视频数据输出,并停止第一场景的取流的顺序,停止电视墙第一场景的显示,并开启第二场景的显示,其具体实现可以在下文中结合具体实例进行说明。
需要说明的是,在本申请实施例中,当第一目标输出板包括多个输出板时,为了保证电视墙的显示效果,服务板向第一目标输出板下发取流指令、解码指令或音视频数据输出指令时,可以使用批量接口,保证指令能同步达到发送给各第一目标输出板。
为了使本领域技术人员更好地理解本申请实施例提供的技术方案,下面结合具体应用场景对本申请实施例提供的技术方案进行说明。
请参见图3,为本申请实施例提供的一种具体应用场景的架构示意图,如图3所示,在该应用场景中,以监控中心为PC客户端,前端摄像机为IPC为例,输出板1~输出板n采用分布式部署方式部署。
基于图3所示应用场景,本申请实施例提供的电视墙场景切换方案实现流程如下(以电视墙场景由场景A(即第一场景)切换为场景B(即第二场景)为例):
1、预分配场景B的解码资源,一份解码资源解码一路从IPC取到的码流:将场景A使用的资源标记为可用解码资源,并和剩余的解码资源组成当前可用的解码资源,从当前可用的解码资源中选择解码资源预分配给场景B。其中,资源预分配流程在服务板的主控芯片上完成。
假设每个解码芯片有8份解码资源,总共有5个解码芯片(假设1个输出板含有1块解码芯片),则总共存在40份解码资源,当进行解码资源预分配时,该40份解码资源均可以作为当前可用的解码资源。
2、下发预取流指令,开启场景B预取流:输出板的子芯片收到预取流指令时,在保持电视墙的场景A显示的情况下,对场景B的音视频数据进行预取流,获取到的码流保存其媒体头信息。
在该实施例中,在接收到解码指令之前,输出板的子芯片可以丢弃获取到的场景B的音视频数据的主体数据(即仅需保存媒体头信息)。
通过预取流的方式,将建立取流连接和获取媒体头信息的时间“隐藏”在电视墙显示场景A的过程中,以便后续进行解码资源平滑地切换,达到场景切换过程中音视频数据输出不停止的效果,以消除场景切换过程中空场景的中间状态。
3、停止场景A的音视频数据输出:子芯片开启场景B的预取流后,可以停止场景A的音视频数据的输出。
4、清除场景A的解码资源,并开启场景B的解码:服务板的主控芯片将场景A使用的解码资源进行资源回收,并将步骤1中预分配的解码资源分配给场景B。
在该实施例中,子芯片接收到服务板的主控芯片下发的解码指令时,可以将获取到的场景B的音视频数据传输给所分配的解码资源对应的解码芯片,以实现场景B的音视频数据的解码。
可见,通过解码资源预分配,在不停止解码的前提下,直接将从场景A切换到场景B下取到的场景B的码流进行解码。
5、开启场景B的音视频数据输出,并停止场景A的取流。
由于停止音视频数据输出和开启音视频数据输出的指令执行时间是非常短的 (几乎可以忽略不计),因此,通过在不停止场景A解码和显示的情况下,先对场景B的音视频数据进行预取流但不解码(只取流不占用解码资源),取到的码流只保留媒体头信息(媒体头信息用于区分码流的类型,码率等),以便于后续能对场景B的音视频数据快速解码,主体数据全部丢弃。场景B的预取流完成时,停掉场景A的显示和解码资源,同时将解码资源切换到场景B下进行码流的解码,并开启场景B的音视频数据输出和停止场景A的取流,实现场景A到场景B的平滑切换。
本申请实施例中,当接收到用于指示将电视墙场景由第一场景切换为第二场景的场景切换指令时,向第一目标输出板下发针对第二场景的预取流指令,以使第一目标输出板对第二场景的音视频数据进行预取流,并保存第二场景的音视频数据的媒体头信息;当确定第一目标输出板预取流完成时,向第二目标输出板下发针对第一场景的停止显示指令,并向第一目标输出板下发针对第二场景的开启显示指令,以使第二目标输出板停止针对第一场景的音视频数据的输出、取流和解码,并使第一目标输出板对第二场景的音视频数据进行解码和输出,实现了电视墙场景的平滑切换,优化了电视墙的显示效果,提升了用户体验。
以上对本申请提供的方法进行了描述。下面对本申请提供的装置进行描述:
请参见图4,为本申请实施例提供的一种电视墙场景切换装置的结构示意图,其中,该电视墙场景切换装置可以应用于上述方法实施例中的服务板,如图4所示,该电视墙场景切换装置可以包括:
接收单元410,用于接收用于指示将电视墙场景由第一场景切换为第二场景的场景切换指令;
发送单元420,用于向第一目标输出板下发针对所述第二场景的预取流指令,以使所述第一目标输出板对所述第二场景的音视频数据进行预取流,并保存所述第二场景的音视频数据的媒体头信息;
所述发送单元420,还用于当确定所述第一目标输出板预取流完成时,向所述第二目标输出板下发针对所述第一场景的停止显示指令,并向所述第一目标输出板下发针对所述第二场景的开启显示指令,以使所述第二目标输出板停止针对所述第一场景的音视频数据的输出、取流和解码,并使所述第一目标输出板对所述第二场景的音视频数据进行解码和输出。
在一种可选的实施方式中,如图5所示,所述电视墙场景切换装置还包括:
资源分配单元430,用于为所述第二场景预分配解码资源。
在一种可选的实施方式中,所述发送单元420,具体用于向所述第二目标输出板下发音视频数据输出停止指令,使所述第二目标输出板停止输出所述第一场景的音视频数据;
向所述第二目标输出板下发解码资源回收指令,并向所述第一目标输出板下发针对所述第二场景的解码指令,以使所述第二目标输出板释放解码资源,并使所述第一目标输出板利用所分配的解码资源对所述第二场景的音视频数据进行解码;
向所述第一目标输出板下发针对所述第二场景的音视频数据输出指令,并向所述第二目标输出板针对所述第一场景的停止取流指令,以使所述第一目标输出板对所述第二场景的音视频数据进行输出,并使所述第二目标输出板停止对所述第一场景的音视频数据的取流。
在一种可选的实施方式中,所述第一目标输出板包括分布式部署的多个输出板中的一个或多个;
所述第二目标输出板包括分布式部署的多个输出板中的一个或多个。
在一种可选的实施方式中,输出板上的一个解码芯片被划分为多份解码资源
请参见图6,为本申请实施例提供的一种电子设备的硬件结构示意图。该电子设备可以包括处理器601、通信接口602、存储器603和通信总线604。处理器601、通信接口602以及存储器603通过通信总线604完成相互间的通信。其中,存储器603上存放有计算机程序;处理器601可以通过执行存储器603上所存放的程序,执行上述方法流程中描述的场景切换方法和电视墙场景切换方法。
本文中提到的存储器603可以是任何电子、磁性、光学或其它物理存储装置,可以包含或存储信息,如可执行指令、数据,等等。例如,存储器603可以是:RAM(Radom Access Memory,随机存取存储器)、易失存储器、非易失性存储器、闪存、存储驱动器(如硬盘驱动器)、固态硬盘、任何类型的存储盘(如光盘、dvd等),或者类似的存储介质,或者它们的组合。
本申请实施例还提供了一种存储有计算机程序的机器可读存储介质,例如图6中的存储器603,所述计算机程序可由图6所示电子设备中的处理器601执行以实现上文描述的场景切换方法和电视墙场景切换方法。
请参见图7,为本申请实施例提供的一种电视墙场景切换系统的结构示意图,如图7所示,该电视墙场景切换系统可以包括服务板710以及多个输出板720;其中:
所述服务板710,用于当接收到用于指示将电视墙场景由第一场景切换为第二场景的场景切换指令时,向第一目标输出板下发针对所述第二场景的预取流指令;
所述输出板720,用于当接收到针对所述第二场景的预取流指令时,对所述第二场景的音视频数据进行预取流,并保存所述第二场景的音视频数据的媒体头信息;
所述服务板710,还用于当确定所述第一目标输出板预取流完成时,向第二目标输出板下发针对所述第一场景的停止显示指令,并向所述第一目标输出板下发针对所述第二场景的开启显示指令;
所述输出板720,还用于当接收到针对所述第一场景的停止显示指令时,停止针对第一场景的音视频数据的输出、取流和解码;
所述输出板720,还用于当接收到针对所述第二场景的开启显示指令时,对所述第二场景的音视频数据进行解码和输出。
其中,服务板710和输出板720可以按照上述方法实施例中描述的方式实现电视墙场景切换。
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。
以上所述仅为本申请的较佳实施例而已,并不用以限制本申请,凡在本申请的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请保护的范围之内。

Claims (16)

  1. 一种电视墙场景切换方法,其特征在于,包括:
    当接收到用于指示将电视墙场景由第一场景切换为第二场景的场景切换指令时,向第一目标输出板下发针对所述第二场景的预取流指令,以使所述第一目标输出板对所述第二场景的音视频数据进行预取流,并保存所述第二场景的音视频数据的媒体头信息;
    当确定所述第一目标输出板预取流完成时,向所述第二目标输出板下发针对所述第一场景的停止显示指令,并向所述第一目标输出板下发针对所述第二场景的开启显示指令,以使所述第二目标输出板停止针对所述第一场景的音视频数据的输出、取流和解码,并使所述第一目标输出板对所述第二场景的音视频数据进行解码和输出。
  2. 根据权利要求1所述的方法,其特征在于,所述向所述第二目标输出板下发针对所述第一场景的停止显示指令,并向所述第一目标输出板下发针对所述第二场景的开启显示指令之前,还包括:
    为所述第二场景预分配解码资源。
  3. 根据权利要求1所述的方法,其特征在于,所述向所述第二目标输出板下发针对所述第一场景的停止显示指令,并向所述第一目标输出板下发针对所述第二场景的开启显示指令,包括:
    向所述第二目标输出板下发音视频数据输出停止指令,使所述第二目标输出板停止输出所述第一场景的音视频数据;
    向所述第二目标输出板下发解码资源回收指令,并向所述第一目标输出板下发针对所述第二场景的解码指令,以使所述第二目标输出板释放解码资源,并使所述第一目标输出板利用所分配的解码资源对所述第二场景的音视频数据进行解码;
    向所述第一目标输出板下发针对所述第二场景的音视频数据输出指令,并向所述第二目标输出板下发针对所述第一场景的停止取流指令,以使所述第一目标输出板对所述第二场景的音视频数据进行输出,并使所述第二目标输出板停止对所述第一场景的音视频数据的取流。
  4. 根据权利要求1-3任一项所述的方法,其特征在于,所述第一目标输出板包括分布式部署的多个输出板中的一个或多个;
    所述第二目标输出板包括分布式部署的多个输出板中的一个或多个。
  5. 根据权利要求1-3任一项所述的方法,其特征在于,输出板上的一个解码芯片被划分为多份解码资源。
  6. 一种电视墙场景切换装置,其特征在于,包括:
    接收单元,用于接收用于指示将电视墙场景由第一场景切换为第二场景的场景切换指令;
    发送单元,用于向第一目标输出板下发针对所述第二场景的预取流指令,以使所述第一目标输出板对所述第二场景的音视频数据进行预取流,并保存所述第二场景的音视频数据的媒体头信息;
    所述发送单元,还用于当确定所述第一目标输出板预取流完成时,向所述第二目标输出板下发针对所述第一场景的停止显示指令,并向所述第一目标输出板下发针对所述第二场景的开启显示指令,以使所述第二目标输出板停止针对所述第一场景的音视频数据的输出、取流和解码,并使所述第一目标输出板对所述第二场景的音视频数据进行解码和输出。
  7. 根据权利要求6所述的装置,其特征在于,所述装置还包括:
    资源分配单元,用于为所述第二场景预分配解码资源。
  8. 根据权利要求6所述的装置,其特征在于,
    所述发送单元,具体用于向所述第二目标输出板下发音视频数据输出停止指令,使所述第二目标输出板停止输出所述第一场景的音视频数据;
    向所述第二目标输出板下发解码资源回收指令,并向所述第一目标输出板下发针对所述第二场景的解码指令,以使所述第二目标输出板释放解码资源,并使所述第一目标输出板利用所分配的解码资源对所述第二场景的音视频数据进行解码;
    向所述第一目标输出板下发针对所述第二场景的音视频数据输出指令,并向所述第二目标输出板针对所述第一场景的停止取流指令,以使所述第一目标输出板对所述第二场景的音视频数据进行输出,并使所述第二目标输出板停止对所述第一场景的音视频数据的取流。
  9. 根据权利要求6-8任一项所述的装置,其特征在于,所述第一目标输出板包括分布式部署的多个输出板中的一个或多个;
    所述第二目标输出板包括分布式部署的多个输出板中的一个或多个。
  10. 根据权利要求6-8任一项所述的装置,其特征在于,输出板上的一个解码芯片被划分为多份解码资源。
  11. 一种电视墙场景切换系统,其特征在于,包括服务板以及多个输出板,所述多个输出板包括一个或多个第一目标输出板以及一个或多个第二目标输出板,其中:
    所述服务板,用于当接收到用于指示将电视墙场景由第一场景切换为第二场景的场景切换指令时,向所述第一目标输出板下发针对所述第二场景的预取流指令;
    所述第一目标输出板,用于当接收到针对所述第二场景的预取流指令时,对所述第二场景的音视频数据进行预取流,并保存所述第二场景的音视频数据的媒体头信息;
    所述服务板,还用于当确定所述第一目标输出板预取流完成时,向所述第二目标输出板下发针对所述第一场景的停止显示指令,并向所述第一目标输出板下发针对所述第二场景的开启显示指令;
    所述第二目标输出板,还用于当接收到针对所述第一场景的停止显示指令时,停止针对所述第一场景的音视频数据的输出、取流和解码;
    所述第一目标输出板,还用于当接收到针对所述第二场景的开启显示指令时,对所述第二场景的音视频数据进行解码和输出。
  12. 一种场景切换方法,其特征在于,包括:
    当接收到用于指示将场景由第一场景切换为第二场景的场景切换指令时,下发针对所述第二场景的预取流指令,所述预取流指令用于对所述第二场景的音视频数据进行预取流;
    当确定针对所述第二场景的预取流完成时,下发针对所述第一场景的停止显示指令,并下发针对所述第二场景的开启显示指令,所述停止显示指令用于停止所述第一场景的音视频数据的输出、取流和解码,所述开启显示指令用于对所述第二场景的音视频数据进行解码和输出。
  13. 根据权利要求12所述的方法,其特征在于,下发针对所述第一场景的停止显示指令,并下发针对所述第二场景的开启显示指令之前,还包括:
    为所述第二场景预分配解码资源。
  14. 根据权利要求12所述的方法,其特征在于,下发针对所述第一场景的停止显示指令,并下发针对所述第二场景的开启显示指令,包括:
    下发针对所述第一场景的音视频数据输出停止指令,所述音视频数据输出停止指令用于停止输出所述第一场景的音视频数据;
    下发针对所述第一场景的解码资源回收指令,并下发针对所述第二场景的解码指令,所述解码资源回收指令用于释放所述第一场景的解码资源,所述解码指令用于利用所分配的解码资源对所述第二场景的音视频数据进行解码;
    下发针对所述第二场景的音视频数据输出指令,并下发针对所述第一场景的停止取流指令,所述音视频数据输出指令用于对所述第二场景的音视频数据进行输出,所述停止取流指令用于停止对所述第一场景的音视频数据的取流。
  15. 一种电子设备,其特征在于,包括处理器、通信接口、存储器和通信总线,其 中,处理器,通信接口,存储器通过通信总线完成相互间的通信;
    存储器,用于存放计算机程序;
    处理器,用于执行存储器上所存放的程序时,实现权利要求1-5或12-14任一所述的方法步骤。
  16. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1-5或12-14任一所述的方法步骤。
PCT/CN2019/099793 2018-08-10 2019-08-08 电视墙场景切换方法、装置、电子设备及存储介质 WO2020030044A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810911527.8A CN110830761B (zh) 2018-08-10 2018-08-10 电视墙场景切换方法、装置、系统、电子设备及存储介质
CN201810911527.8 2018-08-10

Publications (1)

Publication Number Publication Date
WO2020030044A1 true WO2020030044A1 (zh) 2020-02-13

Family

ID=69413969

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/099793 WO2020030044A1 (zh) 2018-08-10 2019-08-08 电视墙场景切换方法、装置、电子设备及存储介质

Country Status (2)

Country Link
CN (1) CN110830761B (zh)
WO (1) WO2020030044A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113382196B (zh) * 2020-02-25 2022-06-03 杭州海康消防科技有限公司 一种场景切换方法、系统、装置及视频综合处理平台

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102302A (zh) * 2006-07-04 2008-01-09 北京江南天安科技有限公司 多路音视频信号输出切换器和音视频监控系统及切换方法
CN102801956A (zh) * 2012-04-28 2012-11-28 武汉兴图新科电子股份有限公司 一种网络视频监控装置及方法
CN103458292A (zh) * 2013-08-30 2013-12-18 小米科技有限责任公司 一种显示输入源的视频数据的方法和装置
US20150147731A1 (en) * 2013-05-15 2015-05-28 Julia Pavlovna Astafiev Shifting visual attention between multiple video displays to train attention and memory
CN106792120A (zh) * 2017-02-07 2017-05-31 青岛海信电器股份有限公司 视频画面的显示方法、装置和终端
CN107465884A (zh) * 2017-09-15 2017-12-12 广州视源电子科技股份有限公司 电视信号的切换方法及装置、智能电视及存储介质
CN107888846A (zh) * 2017-11-08 2018-04-06 深圳Tcl数字技术有限公司 新接入信源的信号预览方法及电视机

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104519372B (zh) * 2014-12-19 2017-11-21 深圳市九洲电器有限公司 一种流媒体播放的切换方法和系统

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102302A (zh) * 2006-07-04 2008-01-09 北京江南天安科技有限公司 多路音视频信号输出切换器和音视频监控系统及切换方法
CN102801956A (zh) * 2012-04-28 2012-11-28 武汉兴图新科电子股份有限公司 一种网络视频监控装置及方法
US20150147731A1 (en) * 2013-05-15 2015-05-28 Julia Pavlovna Astafiev Shifting visual attention between multiple video displays to train attention and memory
CN103458292A (zh) * 2013-08-30 2013-12-18 小米科技有限责任公司 一种显示输入源的视频数据的方法和装置
CN106792120A (zh) * 2017-02-07 2017-05-31 青岛海信电器股份有限公司 视频画面的显示方法、装置和终端
CN107465884A (zh) * 2017-09-15 2017-12-12 广州视源电子科技股份有限公司 电视信号的切换方法及装置、智能电视及存储介质
CN107888846A (zh) * 2017-11-08 2018-04-06 深圳Tcl数字技术有限公司 新接入信源的信号预览方法及电视机

Also Published As

Publication number Publication date
CN110830761B (zh) 2020-12-29
CN110830761A (zh) 2020-02-21

Similar Documents

Publication Publication Date Title
WO2021135160A1 (zh) 游戏直播控制方法及装置、计算机存储介质、电子设备
US20160353160A1 (en) Smart terminal as well as fast channel switching method and device thereof
US20220272402A1 (en) Video stream playing method, system, terminal and storage medium
US9769239B2 (en) Systems and methods for user agent signaling request acceleration by transport accelerator
RU2392753C2 (ru) Способ подачи устройству команды не выполнять синхронизацию или ввести задержку синхронизации для мультимедийных потоков
US10225613B2 (en) Method and apparatus for video playing processing and television
WO2019154221A1 (zh) 发送流数据的方法及数据发送设备
US20140111670A1 (en) System and method for enhanced image capture
CN111147947B (zh) 一种基于websocket的flv视频传输及网页播放的方法
JP2008503926A (ja) ネットワークを介したメディアの対話型制御のための方法及びシステム
WO2017101355A1 (zh) 图像处理方法及装置
WO2007059684A1 (en) Device for managing video image and method thereof
US9525892B2 (en) Video image distribution method
WO2018001184A1 (zh) 频道快速切换的方法、服务器和机顶盒
WO2017080175A1 (zh) 用于多机位的视频播放器、播放系统及播放方法
CN108174280A (zh) 一种音视频在线播放方法及系统
WO2017088394A1 (zh) 在线直播视频播放器及方法
CN110582012A (zh) 视频切换方法、视频处理方法、装置及存储介质
WO2023160361A1 (zh) Rtc数据的处理方法以及装置
WO2020030044A1 (zh) 电视墙场景切换方法、装置、电子设备及存储介质
US11811890B2 (en) Pushing content in time windows based on different positions
KR101710011B1 (ko) 영상 데이터 전송 및 수신 방법 및 장치
CN113709518B (zh) 一种基于rtsp协议的视频实时传输模式设计方法
CN115278319A (zh) 一种投屏数据传输方法、装置、电子设备和存储介质
CN108600696B (zh) 一种视频流解码方法及解码设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19847974

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19847974

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 19847974

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 10.08.2021)

122 Ep: pct application non-entry in european phase

Ref document number: 19847974

Country of ref document: EP

Kind code of ref document: A1