CN115988269A - Video playing method, device, system, electronic equipment and storage medium - Google Patents

Video playing method, device, system, electronic equipment and storage medium Download PDF

Info

Publication number
CN115988269A
CN115988269A CN202211651668.3A CN202211651668A CN115988269A CN 115988269 A CN115988269 A CN 115988269A CN 202211651668 A CN202211651668 A CN 202211651668A CN 115988269 A CN115988269 A CN 115988269A
Authority
CN
China
Prior art keywords
video
screen
split
video stream
demand
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211651668.3A
Other languages
Chinese (zh)
Inventor
蒋俊兰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Feixun Digital Technology Co ltd
Original Assignee
Beijing Feixun Digital 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 Beijing Feixun Digital Technology Co ltd filed Critical Beijing Feixun Digital Technology Co ltd
Priority to CN202211651668.3A priority Critical patent/CN115988269A/en
Publication of CN115988269A publication Critical patent/CN115988269A/en
Pending legal-status Critical Current

Links

Images

Abstract

The embodiment of the invention discloses a video playing method, a video playing device, a video playing system, electronic equipment and a storage medium. The method comprises the following steps: responding to the on-demand information of the video stream, determining video address information and on-demand quantity corresponding to the video stream, determining split-screen video playing parameters according to the on-demand quantity and the preset screen resolution, transmitting the split-screen video playing parameters and the video address information to the coding and decoding equipment to obtain one path of video stream, decoding and playing a decoded video corresponding to the one path of video stream. According to the embodiment of the invention, the split-screen video playing parameters are determined according to the video address information, the on-demand quantity and the preset screen resolution corresponding to the video stream, the split-screen video playing parameters and the video address information are transmitted to the coding and decoding equipment to obtain one video stream, and the one video stream is decoded and played, so that the operation terminal can always decode the one video stream to output multi-channel video synthesis, and on the basis of reducing the dependence of the operation terminal on the performance of domestic software and hardware, the system resources can be saved, and the video can be efficiently decoded.

Description

Video playing method, device, system, electronic equipment and storage medium
Technical Field
The present invention relates to the field of audio/video encoding and decoding technologies, and in particular, to a video playing method, apparatus, system, electronic device, and storage medium.
Background
In the prior art, an operation terminal transmits a signal to a computer input of the operation terminal through an HDMI line to request audio and video resources, when the audio and video resources are requested, one path of audio and video is frequently requested only once, if multiple paths of video are requested, multiple paths of audio and video are often required to be decoded, so that the performance requirement on a computer is very high, the central processing unit resource occupies double, the video synthesis and the video decoding cannot be efficiently performed, and in addition, on a domestic software and hardware platform, the performance is often insufficient to support the multiple paths of audio and video encoding and decoding, so that the processing of image and sound is required to be assisted by encoding and decoding equipment, but the operation terminal is required to be physically connected with the encoding and decoding equipment, so that the operation terminal is inconvenient to move.
Disclosure of Invention
In view of this, the present invention provides a video playing method, device, system, electronic device and storage medium, which can enable an operation terminal to always perform one-path video decoding and output multi-path video synthesis, and can save system resources and efficiently decode videos on the basis of reducing the performance dependence of the operation terminal on domestic software and hardware.
According to an aspect of the present invention, an embodiment of the present invention provides a video playing method, which is applied to an operation terminal, and the method includes:
responding to the on-demand information of the video stream, and determining video address information and on-demand quantity corresponding to the video stream;
determining split-screen video playing parameters according to the on-demand number and a preset screen resolution;
transmitting the split-screen video playing parameters and the video address to coding and decoding equipment to obtain a path of video stream;
and decoding and playing the decoded video corresponding to the video stream.
According to an aspect of the present invention, an embodiment of the present invention provides a video playing method, which is applied to a coding and decoding device, and the method includes:
receiving split screen video playing parameters and video address information transmitted by an operation terminal;
acquiring at least one path of video-on-demand video from a server based on the video address information;
encoding the at least one path of on-demand video into a path of video stream according to the split-screen video playing parameters;
and transmitting the video stream to the operation terminal so that the operation terminal decodes and plays the decoded video corresponding to the video stream.
According to another aspect of the present invention, an embodiment of the present invention further provides a video playing apparatus, which is applied to an operation terminal, and the apparatus includes:
the determining module is used for responding to video stream on-demand information and determining video address information and on-demand quantity corresponding to the video stream;
the parameter determining module is used for determining split-screen video playing parameters according to the on-demand quantity and the preset screen resolution;
the transmission module is used for transmitting the split-screen video playing parameters and the video addresses to coding and decoding equipment to obtain a path of video stream;
and the decoding module is used for decoding and playing the decoded video corresponding to the video stream.
According to another aspect of the present invention, an embodiment of the present invention further provides a video playing apparatus, which is applied to a coding and decoding device, and the apparatus includes:
the information receiving module is used for receiving the split-screen video playing parameters and the video address information transmitted by the operation terminal;
the acquisition module is used for acquiring at least one path of on-demand video from the server based on the video address information;
the coding module is used for coding the at least one path of on-demand video into a path of video stream according to the split-screen video playing parameters;
and the transmission module is used for transmitting the video stream to the coding and decoding equipment so as to enable the coding and decoding equipment to decode and play the decoded video corresponding to the video stream.
According to another aspect of the present invention, an embodiment of the present invention further provides a video playing system, where the system includes: the system comprises an operation terminal, coding and decoding equipment and a switch;
the operation terminal is connected with the switch and is used for executing the video playing method of claims 1-4;
the coding and decoding device is connected with the switch and is used for executing the video playing method of the claims 5-6;
the switch is respectively connected with the operation terminal and the coding and decoding equipment and is used for transmitting the split-screen video playing parameters and the video address information to the coding and decoding equipment and transmitting the video stream to the operation terminal.
According to another aspect of the present invention, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform a video playback method according to an aspect of the invention or a video playback method according to another aspect of the invention.
According to another aspect of the present invention, an embodiment of the present invention further provides a computer-readable storage medium, which stores computer instructions for causing a processor to implement the video playing method according to the one aspect of the present invention or the video playing method according to the another aspect of the present invention when executed.
According to the technical scheme of the embodiment of the invention, the video address information and the on-demand quantity corresponding to the video stream are determined by responding to the on-demand information of the video stream, the split-screen video playing parameter is determined according to the on-demand quantity and the preset screen resolution, the split-screen video playing parameter and the video address information are transmitted to the coding and decoding equipment, so that one path of video stream is obtained, and the decoding video corresponding to the one path of video stream is decoded and played. According to the embodiment of the invention, the split-screen video playing parameters are determined according to the video address information, the on-demand quantity and the preset screen resolution corresponding to the video stream, the split-screen video playing parameters and the video address information are transmitted to the coding and decoding equipment to obtain one video stream, and the one video stream is decoded and played, so that the operation terminal can always perform one video decoding and output multi-channel video synthesis, and system resources can be saved and videos can be efficiently decoded on the basis of reducing the performance dependence of the operation terminal on domestic software and hardware.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present invention, nor do they necessarily limit the scope of the invention. Other features of the present invention will become apparent from the following description.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the description below are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a video playing method according to an embodiment of the present invention;
fig. 2 is a flowchart of another video playing method according to an embodiment of the present invention;
fig. 3 is a flowchart of another video playing method according to an embodiment of the present invention;
fig. 4 is a flowchart of another video playing method according to an embodiment of the present invention;
fig. 5 is a block diagram of a video playing system according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a video synthesis structure performed by an operation terminal using a codec device in the prior art according to an embodiment of the present invention;
fig. 7 is a block diagram of a video playback device according to an embodiment of the present invention;
fig. 8 is a block diagram of another video playback device according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, 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 invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Moreover, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In an embodiment, fig. 1 is a flowchart of a video playing method according to an embodiment of the present invention, where the present embodiment is applicable to a situation when a video is decoded and played, the method may be executed by a video playing apparatus, the video playing apparatus may be implemented in a form of hardware and/or software, and the video playing apparatus may be configured in an electronic device.
As shown in fig. 1, a video playing method is applied to an operation terminal, and the method includes:
and S110, responding to the on-demand information of the video stream, and determining video address information and on-demand quantity corresponding to the video stream.
The on-demand information refers to relevant on-demand information of the video stream, and may include, but is not limited to, the number of on-demand programs, the type of on-demand programs, the size of on-demand programs, video address information corresponding to on-demand video, and the like. The video address information may be understood as an address corresponding to the requested video stream, the video address information may be a Protocol address interconnected between networks, or may also be a Session Initiation Protocol (SIP) proxy server address, and it may be understood that a negotiation may be performed using the SIP server address to obtain a corresponding video stream.
In this embodiment, the on-demand quantity is an on-demand resource quantity corresponding to the video stream, the on-demand resource quantity may be one or more, one video stream is on-demand in the operation terminal, and one operation may be added to the on-demand video stream, so that the total on-demand quantity of the video streams can be determined, or the on-demand quantity can be uniformly counted by obtaining all on-demand video resources, which is not limited herein.
In this embodiment, the operation terminal may send a request instruction of a relevant video-on-demand resource to the server, and then the server returns to inform the operation terminal of the video address information corresponding to the request instruction. It should be noted that the operation terminal may request a video stream, the requested number of the video stream may be one or more, the video stream includes, but is not limited to, video information, image information, audio information, and the like, and for example, the operation terminal may statement a corresponding requested address to request a video and the like corresponding to a certain camera.
And S120, determining split-screen video playing parameters according to the on-demand quantity and the preset screen resolution.
The preset screen resolution refers to the resolution of a display screen in the operation terminal.
In this embodiment, the split-screen video playing parameters may be understood as parameter information corresponding to one or more video streams during playing, and the split-screen video playing parameters may include, but are not limited to, the number of split screens, the split-screen ordering, and the split-screen display position corresponding to each video stream. It should be noted that the number of split screens may be determined by the number of on-demand video streams, the split screen sorting may be performed according to the number of on-demand video streams corresponding to each video stream and the size, type, and the like corresponding to each video stream, and the split screen display position is the split screen display position corresponding to each video stream.
In this embodiment, the number of split screens and the split screen ordering corresponding to the video streams can be determined by the number of requests corresponding to the video streams, the time corresponding to the requests, and the like, and the split screen size information corresponding to each video stream can be determined by the number of split screens and the split screen ordering corresponding to the video streams and the preset screen resolution, so that the split screen display position corresponding to each video stream is determined, and the number of split screens, the split screen ordering, and the split screen display position corresponding to each video stream are transmitted as the split screen video playing parameters; in some embodiments, the corresponding sub-interface may also be determined according to the binding relationship between the video interfaces corresponding to the video streams, and the split-screen display position corresponding to each video stream is determined according to the position relationship between the sub-interface and the video interface.
S130, transmitting the split screen video playing parameters and the video address information to the coding and decoding equipment to obtain a path of video stream.
In this embodiment, the operation terminal may notify the codec device, through the switch, of the video address information of the video stream that needs to be requested, the number of split screens and the sequence of the split screens corresponding to the multiple requested video streams, and the split screen display position corresponding to each video stream, the codec device obtains the multiple requested videos from the server according to the video address information of the video stream that needs to be requested, and the codec device encodes the requested videos into one video stream according to the number of split screens and the sequence of the split screens corresponding to the multiple requested video streams, and the split screen display position corresponding to each video stream, and then transmits the encoded video stream to the operation terminal through the switch again, so that the operation terminal obtains the synthesized one video stream.
And S140, decoding and playing a decoded video corresponding to one video stream.
In this embodiment, the operation terminal requests the one video stream synthesized by the encoding and decoding device, performs decoding rendering, and plays the decoded video corresponding to the one video stream, so as to achieve the effect of requesting multiple images, and thus, the operation terminal only decodes the one video stream forever, which reduces the performance requirement on the computer.
According to the technical scheme of the embodiment of the invention, the split-screen video playing parameters are determined according to the video address information, the on-demand quantity and the preset screen resolution corresponding to the video stream, the split-screen video playing parameters and the video address information are transmitted to the coding and decoding equipment to obtain one video stream, and the one video stream is decoded and played, so that the operation terminal can always perform one video decoding to output multi-channel video synthesis, and on the basis of reducing the dependence of the operation terminal on the performance of home-made software and hardware, the system resources can be saved, and the video can be efficiently decoded.
In an embodiment, fig. 2 is a flowchart of another video playing method according to an embodiment of the present invention, and in this embodiment, on the basis of the foregoing embodiments, to determine video address information and an on-demand number corresponding to a video stream, determine a split-screen video playing parameter according to the on-demand number and a preset screen resolution, and transmit the split-screen video playing parameter and the video address information to an encoding and decoding device, so as to obtain a video stream and further refine the video stream.
As shown in fig. 2, the video playing method in this embodiment may specifically include the following steps:
s210, responding to the video-on-demand information of the video stream, sending a request instruction for requesting the video stream to the server, and receiving video address information corresponding to the request instruction returned by the server.
The request instruction refers to a request instruction for requesting videos, which is initiated to the server by the operation terminal.
In this embodiment, in response to the video-on-demand information of the video stream, the operation terminal initiates a request instruction for requesting video resources to the server, the server notifies the operation terminal of video address information corresponding to the request instruction, the operation terminal notifies the codec device of the video address information of the video stream after receiving the video address information corresponding to the request instruction returned by the server, and the codec device acquires the video stream required to be requested according to the video address information.
S220, counting the number of the on-demand information of the video stream and taking the number as the on-demand number.
In this embodiment, the number of the on-demand information of the video stream may be counted according to the video address information, so as to serve as the on-demand number corresponding to the video stream. Of course, the on-demand information of multiple video streams may be obtained from one video address information, or the on-demand information corresponding to multiple video streams may be obtained through multiple video address information, which is not limited herein.
S230, determining layout information corresponding to the video stream according to the on-demand quantity; wherein the layout information includes at least one of: the number of split screens and the sorting of the split screens.
The layout information refers to layout information corresponding to a plurality of video streams, and the layout information may include, but is not limited to, the number of split screens corresponding to the on-demand amount, and the split screen ordering.
In this embodiment, the screen splitting number and the screen splitting order corresponding to the video stream may be determined according to the on-demand quantity, and it may be understood that the on-demand quantity of the video stream may determine the screen splitting number and the corresponding screen splitting order corresponding to the video stream, so as to display the video stream corresponding to the on-demand quantity in the operation terminal, where the screen splitting order may be ordered according to a sequence corresponding to the on-demand of the video stream, may also be ordered according to an on-demand size corresponding to the video stream, and may also be ordered according to an on-demand type corresponding to the video stream, and this embodiment is not limited herein.
In some embodiments, the number of split screens includes at least one of: the method comprises the following steps of 2 screen splitting, 4 screen splitting, 8 screen splitting, 16 screen splitting, 25 screen splitting and 36 screen splitting, and when the on-demand quantity of the video stream is not equal to the screen splitting quantity, the screen splitting is carried out by selecting the screen splitting quantity which is larger than the on-demand quantity.
In this embodiment, the split screens corresponding to the split screen number at least include one of the following: the method comprises the steps of 2 split screen, 4 split screen, 8 split screen, 16 split screen, 25 split screen and 36 split screen, when the video stream on demand quantity is not equal to the split screen quantity, the split screen quantity corresponding to the video stream larger than the video stream on demand quantity is selected to be split screen, the video stream on demand quantity is corresponding to the split screen quantity, and the method can be understood that the corresponding split screen is directly selected to be displayed under the condition that the video stream on demand quantity is equal to the split screen corresponding to the split screen quantity, and the split screen quantity corresponding to the video stream larger than the video stream on demand quantity is selected to be split screen under the condition that the video stream on demand quantity is not equal to the split screen corresponding to the split screen quantity. Illustratively, the on-demand number of video streams is 3, and at this time, 4 split screens should be selected to display the three video streams, and if the on-demand number of video streams is 8, 8 split screens should be directly selected to display the eight video streams.
S240, determining the split screen size information corresponding to each video stream according to the preset screen resolution and the layout information.
The split screen size information may be understood as size information corresponding to each video stream in the split screen.
In this embodiment, under the condition that the preset screen resolution is known, the split screen size information corresponding to each video stream in the split screens may be determined according to the preset screen resolution, the number of split screens, and the split screen sorting, where the split screen size information may include a height and a width corresponding to each video stream.
And S250, determining the split screen display position corresponding to each video stream according to the split screen number, the split screen sequencing and the split screen size information.
In this embodiment, the coordinate information corresponding to the video stream in each split screen may be obtained according to the number of split screens, the split screen sorting and the split screen size information, and the coordinate information is used as the split screen display position corresponding to each video stream. Specifically, the display position corresponding to each video stream is determined by determining the initial reference coordinates corresponding to the video streams according to the initial reference coordinates and the split screen size information.
In one embodiment, determining the display position corresponding to each video stream according to the number of split screens, the split screen sorting and the split screen size information includes:
determining an initial reference coordinate corresponding to the video stream according to the number of split screens and the split screen sequencing;
and determining coordinate information corresponding to each video stream according to the initial reference coordinates and the split screen size information, and taking the coordinate information as a display position corresponding to the video stream.
The initial reference coordinates can be understood as the coordinate position initially corresponding to each video stream.
In this embodiment, the initial reference coordinates corresponding to the video streams may be determined according to the number of split screens and the split screen sorting, and then the coordinate information corresponding to each video stream is determined according to the initial reference coordinates and the split screen size information, and the coordinate information is used as the display position corresponding to the video stream.
And S260, taking the number of split screens, the split screen sequencing and the split screen display position corresponding to each video stream as a split screen video playing parameter.
In this embodiment, the number of split screens, the split screen ordering, and the split screen display position corresponding to each video stream are used as split screen video playing parameters, and the split screen video playing parameters are transmitted to the encoding and decoding device.
S270, transmitting the split screen video playing parameters and the video address information to the coding and decoding device through a pre-connected switch to obtain a video stream.
In this embodiment, after obtaining the split-screen video playing parameters corresponding to the split screens of each video stream, the pre-connected switch may be used to transmit the split-screen video playing parameters and the video address information to the encoding and decoding device, so that the encoding and decoding device may obtain the target number of on-demand video streams according to the video address information, and then the encoding and decoding device combines all the on-demand video streams into one video stream according to the number of split screens, the sorting of the split screens, and the split-screen display position corresponding to each video stream, and the operation terminal decodes and plays the decoded video corresponding to the one video stream.
And S280, decoding and playing a decoded video corresponding to one path of video stream.
According to the technical scheme of the embodiment of the invention, the layout information corresponding to the video streams is determined according to the on-demand quantity, the split screen size information corresponding to each video stream is determined according to the preset screen resolution and the layout information, the split screen display positions corresponding to each video stream are determined according to the split screen number, the split screen sequencing and the split screen size information, the split screen number, the split screen sequencing and the split screen display positions corresponding to each video stream are used as split screen video playing parameters, and the split screen video playing parameters and the video address information are transmitted to the coding and decoding equipment through the pre-connected switch to obtain one path of video stream, so that the physical connection between the operation terminal and the access terminal is not needed, the operation terminal is convenient to move, the performance dependence of the operation terminal on domestic hardware is reduced, and system resources are saved.
In an embodiment, fig. 3 is a flowchart of another video playing method according to an embodiment of the present invention, where the method is applicable to a situation when a video is played, and the method may be executed by a video playing apparatus, where the video playing apparatus may be implemented in a form of hardware and/or software, and the video playing apparatus may be configured in an electronic device.
As shown in fig. 3, the video playing method is applied to a coding and decoding device, and the method includes:
s310, receiving split screen video playing parameters and video address information transmitted by the operation terminal.
In this embodiment, the operation terminal notifies the codec device of the video address information of the video stream to be requested and the split-screen video playing parameter corresponding to the video stream to be requested through the switch, and the codec device receives the split-screen video playing parameter and the video address information transmitted by the operation terminal and pulls the video stream to be requested through the video address information.
S320, acquiring at least one path of on-demand video from the server based on the video address information.
In this embodiment, the encoding and decoding device receives the split-screen video playing parameter and the video address information transmitted by the operation terminal, and pulls out at least one path of on-demand video required to be on-demand through the video address information.
S330, coding at least one path of on-demand video into a path of video stream according to the split screen video playing parameters.
In this embodiment, at least one channel of on-demand videos may be encoded into one channel of video streams according to the split-screen video playing parameters, specifically, the split-screen number, the split-screen ordering and the split-screen display position corresponding to each video stream are obtained from the split-screen video playing parameters, and each video stream is combined into one channel of video stream according to the split-screen number, the split-screen ordering and the split-screen display position.
S340, transmitting one video stream to the operation terminal so that the operation terminal decodes and plays a decoded video corresponding to the video stream.
In this embodiment, the codec device transmits one video stream to the operation terminal through the switch connected in advance, so that the operation terminal requests the composite one video stream of the codec device, and performs decoding and rendering to achieve the effect of requesting multiple images.
According to the technical scheme, the split-screen video playing parameters and the video address information transmitted by the operating terminal are received, at least one path of on-demand video is obtained from the server based on the video address information, at least one path of on-demand video is coded into one path of video stream according to the split-screen video playing parameters, one path of video stream is transmitted to the operating terminal so that the operating terminal decodes and plays the decoded video corresponding to one path of video stream, further, the operating terminal can always decode one path of video to output multi-path video synthesis, and on the basis of reducing the performance dependence of the operating terminal on domestic software and hardware, system resources can be saved, and the video can be efficiently decoded.
In an embodiment, fig. 4 is a flowchart of another video playing method according to an embodiment of the present invention, and in this embodiment, based on the above embodiment, further refinement is performed on the split-screen video playing parameter and the video address information transmitted by the receiving operation terminal, and at least one on-demand video is encoded into one video stream according to the split-screen video playing parameter.
As shown in fig. 4, the video playing method in this embodiment includes the following specific steps:
s410, receiving the split screen video playing parameters and the video address information transmitted by the operation terminal through a pre-connected switch.
In this embodiment, the codec device receives the split-screen video playing parameters and the video address information transmitted by the operation terminal through the switch connected in advance, and obtains at least one path of on-demand video required to be on-demand from the server through the video address information.
And S420, acquiring at least one channel of on-demand video from the server based on the video address information.
And S430, acquiring the screen splitting number, the screen splitting sequence and the screen splitting display position corresponding to each video stream from the screen splitting video playing parameters.
In this embodiment, after the coding and decoding device obtains at least one on-demand video to be on-demand based on the video address information, the coding and decoding device obtains the screen splitting number, the screen splitting order and the screen splitting display position corresponding to each video stream from the received screen splitting video playing parameters, and combines each video stream into one video stream according to the screen splitting number, the screen splitting order and the screen splitting display position.
S440, combining the video streams into a video stream according to the number of split screens, the split screen sequencing and the split screen display position.
In this embodiment, the screen splitting number, the screen splitting order, and the screen splitting display position corresponding to each video stream are obtained from the screen splitting video playing parameters, and the video streams are combined into one video stream according to the screen splitting number, the screen splitting order, and the screen splitting display position. Illustratively, if 4 paths of video streams are combined into 1 path, the corresponding split screen display position, the split screen number and the split screen sequencing are combined into 1 path of video stream to be displayed, and the operation terminal directly requests the path of video stream.
S450, one video stream is transmitted to the operation terminal so that the operation terminal can decode and play the decoded video corresponding to the video stream.
According to the technical scheme of the embodiment of the invention, the number of split screens, the split screen sequencing and the split screen display position corresponding to each video stream are obtained from the split screen video playing parameters, each video stream is synthesized into one video stream according to the number of split screens, the split screen sequencing and the split screen display position, one video stream is transmitted to the operation terminal so that the operation terminal decodes and plays one decoded video corresponding to the video stream, further, the operation terminal can output multi-channel video synthesis by decoding one video all the time, and on the basis of reducing the performance dependence of the operation terminal on domestic software and hardware, system resources can be saved, and the video can be efficiently decoded.
In an embodiment, to facilitate better understanding of the video playing method, fig. 5 is a structural diagram of a video playing system according to an embodiment of the present invention, and in this embodiment, the video playing method is further described through interaction among the operation terminal, the codec device, and the switch.
As shown in fig. 5, the video playing system includes: an operation terminal 510, a codec device 520, and a switch 530;
the operation terminal 510 is connected with the switch 530; the encoding and decoding device 520 is connected with the switch 530; the switch 530 is respectively connected to the operation terminal 510 and the codec device 520, and is configured to transmit the split-screen video playing parameter and the video address information to the codec device 520, and transmit the video stream to the operation terminal 530.
In this embodiment, the operation terminal 510 notifies the codec device 520 of the video address information corresponding to the video resource that needs to be requested through the switch 530, the operation terminal 510 counts the requested number of the video streams, calculates the number of split screens, the split screen ordering, and the split screen display positions corresponding to the video streams, and then notifies the codec device 520 of the video address information corresponding to the video resource that needs to be requested, and the number of split screens, the split screen ordering, and the split screen display positions corresponding to the video streams, the codec device 520 obtains the video resource that needs to be requested according to the video address information, the codec device 520 synthesizes all the requested video streams into one video stream according to the received number of split screens, the split screen ordering, and the split screen display positions corresponding to the video streams, and decodes and renders the one video stream synthesized by the codec device 520, so that the operation terminal 510 only decodes one video stream, the performance requirement of the computer is reduced, and the home-made video system can always satisfy the mobile terminal that can request the requested video.
In this embodiment, in order to better understand the difference between the present application and the conventional scheme, fig. 6 is a schematic diagram of a structure in which an operating terminal performs video synthesis by using a codec device in the prior art according to an embodiment of the present invention, as shown in fig. 6, when the operating terminal performs video-on-demand on audio and video resources, only one path of video stream may be requested at a time, if multiple paths of video are requested, multiple paths of audio and video often need to be decoded, so that performance requirements on a computer are very High, and a central processing unit resource occupies twice, so that video synthesis and video decoding cannot be efficiently performed.
In the application, the operation terminal is connected with the switch, the coding and decoding equipment is connected with the switch, so that the problem of performance dependence of the operation terminal on domestic software and hardware is solved well through the switch, the operation terminal is inconvenient to move, the operation terminal informs the coding and decoding equipment of video address information of resources required to be requested through the switch, the operation terminal calculates the number of split screens and calculates the split screen display position of each video according to the requested number of video streams requested, then the coding and decoding equipment actively pulls the streams according to the video address information, all the requested video streams are combined into one path according to the number of the split screens and the split screen display position required by the operation terminal, the operation terminal requests one path of combined video stream, decoding and rendering are carried out, the effect of requesting multi-path images is achieved, the operation terminal only decodes one path of video stream forever, the performance requirement on a computer is lowered, system resources can be saved, and videos can be efficiently decoded.
In an embodiment, fig. 7 is a block diagram of a video playing apparatus according to an embodiment of the present invention, where the apparatus is suitable for a situation when a video is played, and the apparatus may be implemented by hardware/software. The method can be configured in the electronic device to implement a video playing method in the embodiment of the invention.
As shown in fig. 7, the apparatus is applied to an operation terminal, and includes: a determination module 710, a parameter determination module 720, a transmission module 730, and a decoding module 740.
The determining module 710 is configured to determine, in response to video stream on-demand information, video address information and an on-demand number corresponding to a video stream;
a parameter determining module 720, configured to determine a split-screen video playing parameter according to the on-demand number and a preset screen resolution;
the transmission module 730 is configured to transmit the split-screen video playing parameter and the video address information to a coding and decoding device to obtain a video stream;
the decoding module 740 is configured to decode and play a decoded video corresponding to the one video stream.
In the embodiment of the invention, the parameter determining module determines the split-screen video playing parameters through the video address information, the on-demand quantity and the preset screen resolution corresponding to the video stream, and the transmission module obtains one path of video stream through transmitting the split-screen video playing parameters and the video address information to the coding and decoding equipment, decodes and plays the one path of video stream, so that the operation terminal can always perform one path of video decoding to output multi-path video synthesis, and on the basis of reducing the performance dependence of the operation terminal on domestic software and hardware, the system resources can be saved, and the video can be efficiently decoded.
In one embodiment, the determining module 710 includes:
the information receiving unit is used for sending a request instruction for requesting video streaming to a server and receiving video address information corresponding to the request instruction returned by the server;
and the counting unit is used for counting the quantity of the on-demand information of the video stream and taking the quantity as the on-demand quantity.
In one embodiment, the parameter determination module 720 includes:
determining layout information corresponding to the video stream according to the on-demand quantity; wherein the layout information includes at least one of: the number of split screens and the split screen sequencing;
the size determining unit is used for determining split screen size information corresponding to each video stream according to a preset screen resolution and the layout information;
the position determining unit is used for determining the split screen display positions corresponding to the video streams respectively according to the split screen number, the split screen sequencing and the split screen size information;
and the parameter determining unit is used for taking the split screen number, the split screen sequencing and the split screen display position corresponding to each video stream as a split screen video playing parameter.
In an embodiment, the position determination unit further comprises:
the first coordinate determination subunit is used for determining the initial reference coordinates corresponding to the video stream according to the split screen number and the split screen sequencing;
and the second coordinate determination subunit is used for determining the coordinate information corresponding to each video stream according to the initial reference coordinate and the split screen size information, and taking the coordinate information as the display position corresponding to the video stream.
In one embodiment, the transmission module 730 includes:
and the transmission unit is used for transmitting the split-screen video playing parameters and the video address information to the coding and decoding equipment through a pre-connected switch.
In an embodiment, the split screen corresponding to the split screen number at least includes one of the following: the method comprises the following steps of 2 screen splitting, 4 screen splitting, 8 screen splitting, 16 screen splitting, 25 screen splitting and 36 screen splitting, and when the on-demand quantity of the video stream is not equal to the screen splitting quantity, the screen splitting quantity which is larger than the screen splitting quantity corresponding to the on-demand quantity is selected.
The video playing device provided by the embodiment of the invention can execute the video playing method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
In an embodiment, fig. 8 is a block diagram of another video playing apparatus according to an embodiment of the present invention, where the apparatus is suitable for a situation when a video is played, and the apparatus may be implemented by hardware/software. The method can be configured in the electronic device to implement a video playing method in the embodiment of the invention.
As shown in fig. 8, the apparatus is applied to a coding and decoding device, and includes: the information processing apparatus includes an information receiving module 810, an obtaining module 820, an encoding module 830, and a transmitting module 840.
The information receiving module 810 is configured to receive split-screen video playing parameters and video address information transmitted by the operation terminal;
an obtaining module 820, configured to obtain at least one channel of video-on-demand at a server based on the video address information;
the encoding module 830 is configured to encode the at least one channel of on-demand video into a channel of video stream according to the split-screen video playing parameter;
the transmission module 840 is configured to transmit the one video stream to the encoding and decoding device so that the encoding and decoding device decodes and plays the decoded video corresponding to the one video stream.
In one embodiment, the information receiving module 810 includes:
and the transmission unit is used for receiving the split-screen video playing parameters and the video address information transmitted by the operation terminal through a pre-connected switch.
In one embodiment, the encoding module 830 includes:
the acquisition unit is used for acquiring the split screen number, the split screen sequencing and the split screen display position corresponding to each video stream from the split screen video playing parameters;
and the synthesizing unit is used for synthesizing the video streams into one video stream according to the split screen number, the split screen sequencing and the split screen display position.
The video playing device provided by the embodiment of the invention can execute the video playing method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
In an embodiment, fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. The electronic device 10 is intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 9, the electronic device 10 includes at least one processor 11, and a memory communicatively connected to the at least one processor 11, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, and the like, wherein the memory stores a computer program executable by the at least one processor, and the processor 11 can perform various suitable actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from a storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data necessary for the operation of the electronic apparatus 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
A number of components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, or the like; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, or the like. The processor 11 performs the various methods and processes described above, such as a video playback method.
In some embodiments, the video playback method may be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the video playback method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the video playback method by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Computer programs for implementing the methods of the present invention can be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be performed. A computer program can execute entirely on a machine, partly on a machine, as a stand-alone software package partly on a machine and partly on a remote machine or entirely on a remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. A computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user may provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service are overcome.
In an embodiment, an embodiment of the present invention further includes a computer program product, where the computer program product includes a computer program, and when the computer program is executed by a processor, the computer program implements the video playing method according to any embodiment of the present invention.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present invention may be executed in parallel, sequentially, or in different orders, and are not limited herein as long as the desired result of the technical solution of the present invention can be achieved.
The above-described embodiments should not be construed as limiting the scope of the invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (14)

1. A video playing method is applied to an operation terminal, and the method comprises the following steps:
responding to the on-demand information of the video stream, and determining video address information and on-demand quantity corresponding to the video stream;
determining split screen video playing parameters according to the on-demand quantity and the preset screen resolution;
transmitting the split-screen video playing parameters and the video address information to coding and decoding equipment to obtain a path of video stream;
and decoding and playing the decoded video corresponding to the video stream.
2. The method of claim 1, wherein the determining the video address information and the on-demand number corresponding to the video stream comprises:
sending a request instruction for requesting a video stream to a server, and receiving video address information corresponding to the request instruction returned by the server;
and counting the quantity of the on-demand information of the video stream and taking the quantity as the on-demand quantity.
3. The method of claim 1, wherein determining split-screen video playing parameters according to the on-demand number and a preset screen resolution comprises:
determining layout information corresponding to the video stream according to the on-demand quantity; wherein the layout information includes at least one of: the number of split screens and the split screen sequencing;
determining the split screen size information corresponding to each video stream according to the preset screen resolution and the layout information;
determining the split screen display position corresponding to each video stream according to the split screen number, the split screen sequencing and the split screen size information;
and taking the screen splitting number, the screen splitting sequence and the screen splitting display position corresponding to each video stream as screen splitting video playing parameters.
4. The method according to claim 3, wherein the determining the display position corresponding to each of the video streams according to the number of split screens, the split screen ordering, and the split screen size information comprises:
determining an initial reference coordinate corresponding to the video stream according to the split screen number and the split screen sequence;
and determining coordinate information corresponding to each video stream according to the initial reference coordinates and the split screen size information, and taking the coordinate information as a display position corresponding to the video stream.
5. The method of claim 1, wherein transmitting the split-screen video playing parameters and the video address information to a codec device comprises:
and transmitting the split-screen video playing parameters and the video address to information coding and decoding equipment through a pre-connected switch.
6. The method of claim 3, wherein the number of split screens comprises at least one of: the method comprises the following steps of 2 screen splitting, 4 screen splitting, 8 screen splitting, 16 screen splitting, 25 screen splitting and 36 screen splitting, and when the on-demand quantity of the video stream is not equal to the screen splitting quantity, the screen splitting quantity which is larger than the screen splitting quantity corresponding to the on-demand quantity is selected.
7. A video playing method is applied to a coding and decoding device, and comprises the following steps:
receiving split screen video playing parameters and video address information transmitted by an operation terminal;
acquiring at least one path of video-on-demand video from a server based on the video address information;
encoding the at least one path of on-demand video into a path of video stream according to the split-screen video playing parameters;
and transmitting the video stream to the operation terminal so that the operation terminal decodes and plays the decoded video corresponding to the video stream.
8. The method according to claim 7, wherein the receiving the split-screen video playing parameter and the video address information transmitted by the operation terminal comprises:
and receiving the split-screen video playing parameters and the video address information transmitted by the operation terminal through a pre-connected switch.
9. The method according to claim 7, wherein said encoding said at least one on-demand video into one video stream according to said split-screen video playback parameters comprises:
acquiring the screen splitting number, the screen splitting sequence and the screen splitting display position corresponding to each video stream from the screen splitting video playing parameters;
and combining the video streams into a video stream according to the split screen number, the split screen sequencing and the split screen display position.
10. A video playback apparatus, applied to an operation terminal, the apparatus comprising:
the determining module is used for responding to video stream on-demand information and determining video address information and on-demand quantity corresponding to the video stream;
the parameter determining module is used for determining split-screen video playing parameters according to the on-demand quantity and the preset screen resolution;
the transmission module is used for transmitting the split-screen video playing parameters and the video address information to coding and decoding equipment to obtain a path of video stream;
and the decoding module is used for decoding and playing the decoded video corresponding to the video stream.
11. A video playing apparatus, applied to a coding and decoding device, the apparatus comprising:
the information receiving module is used for receiving the split-screen video playing parameters and the video address information transmitted by the operation terminal;
the acquisition module is used for acquiring at least one path of video-on-demand at the server based on the video address information;
the coding module is used for coding the at least one path of on-demand video into a path of video stream according to the split-screen video playing parameters;
and the transmission module is used for transmitting the video stream to the coding and decoding equipment so as to enable the coding and decoding equipment to decode and play the decoded video corresponding to the video stream.
12. A video playback system, comprising: the system comprises an operation terminal, coding and decoding equipment and a switch;
the operation terminal is connected with the switch and is used for executing the video playing method of claims 1-6;
the coding and decoding device is connected with the switch and is used for executing the video playing method of the claims 7-9;
the switch is respectively connected with the operation terminal and the coding and decoding equipment and is used for transmitting the split-screen video playing parameters and the video address information to the coding and decoding equipment and transmitting the video stream to the operation terminal.
13. An electronic device, characterized in that the electronic device comprises:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the first and the second end of the pipe are connected with each other,
the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform the video playback method of any of claims 1-6 or claims 7-9.
14. A computer-readable storage medium storing computer instructions for causing a processor to implement the video playback method of any one of claims 1-6 or claims 7-9 when executed.
CN202211651668.3A 2022-12-21 2022-12-21 Video playing method, device, system, electronic equipment and storage medium Pending CN115988269A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211651668.3A CN115988269A (en) 2022-12-21 2022-12-21 Video playing method, device, system, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211651668.3A CN115988269A (en) 2022-12-21 2022-12-21 Video playing method, device, system, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115988269A true CN115988269A (en) 2023-04-18

Family

ID=85957521

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211651668.3A Pending CN115988269A (en) 2022-12-21 2022-12-21 Video playing method, device, system, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115988269A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116582699A (en) * 2023-05-31 2023-08-11 广州融生信息技术有限公司 Audio and video processing method, device, equipment and medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116582699A (en) * 2023-05-31 2023-08-11 广州融生信息技术有限公司 Audio and video processing method, device, equipment and medium
CN116582699B (en) * 2023-05-31 2023-10-13 广州融生信息技术有限公司 Audio and video processing method, device, equipment and medium

Similar Documents

Publication Publication Date Title
US11694316B2 (en) Method and apparatus for determining experience quality of VR multimedia
CN110636346A (en) Code rate self-adaptive switching method and device, electronic equipment and storage medium
WO2016192431A1 (en) Film source pushing method, set-top box and video server
WO2019075428A1 (en) Systems and methods for cloud storage direct streaming
CN111836076A (en) Video resolution switching method and device and electronic equipment
CN113766270A (en) Video playing method, system, server, terminal equipment and electronic equipment
WO2023142716A1 (en) Encoding method and apparatus, real-time communication method and apparatus, device, and storage medium
CN115988269A (en) Video playing method, device, system, electronic equipment and storage medium
CN111031389B (en) Video processing method, electronic device and storage medium
CN115643449A (en) Video display method, device, equipment, storage medium and system of cloud service
CN111617466A (en) Method and device for determining coding format and method for realizing cloud game
CN113490055B (en) Data processing method and device
CN114245175A (en) Video transcoding method and device, electronic equipment and storage medium
CN115209189B (en) Video stream transmission method, system, server and storage medium
CN112929704A (en) Data transmission method, device, electronic equipment and storage medium
CN113766266B (en) Audio and video processing method, device, equipment and storage medium
CN114501084B (en) Play method, device, equipment and medium of player
CN115633191A (en) Video playing method, device, system, electronic equipment and readable storage medium
RU2662648C1 (en) Method and device for data processing
CN110798700B (en) Video processing method, video processing device, storage medium and electronic equipment
CN112422961A (en) Data transmission method and device, display equipment and computer readable storage medium
US10025550B2 (en) Fast keyboard for screen mirroring
WO2023142662A1 (en) Image coding method, real-time communication method, and device, storage medium and program product
CN113965714B (en) Video stream processing method and device, electronic equipment and storage medium
US11350160B1 (en) Management of a client device buffer

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