Video code rate control method and system, electronic equipment and storage medium
By dynamically adjusting the video bit rate according to the video window size and user instructions, the problem of bandwidth waste in large-screen monitoring is solved, efficient video playback and cost reduction are achieved, and the user experience is improved.
Patent Information
- Application Number
- CN202510882100.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-27
- Publication Date
- 2025-09-19
AI Technical Summary
In large-screen monitoring, when multiple videos are displayed in split-screen mode, using the original bit rate to play results in bandwidth waste. Especially when each video split-screen is very small, the effect of 1080p and 360p resolutions is not much different.
The video bitrate is dynamically adjusted based on the size of the video window and user instructions. A low bitrate is used for evenly distributed windows, and a high bitrate is used for enlarged windows or windows that require high definition. Streaming of blocked windows is paused to save bandwidth.
By dynamically adjusting the video bit rate, the bandwidth requirements for large-screen video playback are reduced, reducing costs while improving user experience and ensuring that the video switching process is seamless and without black screens.
Smart Images

Figure CN120676168A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of video playback control, and in particular to a method, system, electronic device and storage medium for controlling a video bit rate. Background Art
[0002] Current large-screen monitoring typically provides the original video bitrate. However, when using a spliced screen for large-screen display, each video is actually allocated to a very small screen. In this case, there is actually little difference between playing at 360p and 1080p resolutions, as the final display resolution cannot reach 1080p. Therefore, using the original bitrate for video playback on multiple large-screen playback windows significantly wastes uplink bandwidth. Summary of the Invention
[0003] The present application provides a method, system, electronic device and storage medium for controlling video bit rate to solve at least one technical problem existing in the related art.
[0004] According to one aspect of the present application, a method for controlling a video bit rate is provided, which is applied to a screen with multiple video display windows. The control method includes: obtaining the screen size status of multiple video windows in the screen; obtaining a user instruction for indicating a change in the screen size of the video; and controlling the video bit rate according to the screen size status of the multiple video windows in the screen and the user instruction for indicating a change in the screen size of the video.
[0005] As an optional implementation, the screen size status of multiple video windows in the screen includes: the multiple video windows are the same size and evenly distributed on the screen, which is set to a uniform screen distribution state; or, the screen size of one or more video windows is in an enlarged state, and one or more video windows are blocked by the screen in the enlarged state, which is set to a screen enlarged state.
[0006] As an optional implementation, controlling the video bit rate according to the picture size status of multiple video windows in the screen and the user's instruction for representing the change of the video picture size includes: in the evenly distributed picture state, controlling the multiple video windows to play at a low bit rate.
[0007] As an optional implementation, the controlling of the video bit rate according to the screen size status of multiple video windows in the screen and the user's instruction for representing the change of the video screen size also includes: in the screen magnification state, controlling the magnified video window to play at the original high bit rate of the video, stopping the streaming of the obstructed video, and controlling the video window that is not magnified and not obstructed to play at a low bit rate. As an optional implementation, the controlling of the video bit rate according to the picture size status of multiple video windows in the screen and the user's instruction for representing the change of the video picture size also includes: when the video window is converted from a uniform picture distribution state to a magnified picture state, controlling the magnified window to play at a low bit rate when stretched, stopping the streaming of the obstructed video window after the stretching is completed, and adjusting the bit rate of the magnified window to the original high bit rate of the video for playback.
[0008] As an optional implementation, the controlling of the video bit rate according to the screen size status of multiple video windows in the screen and the user's instruction for representing the change of the video screen size also includes: when the video window is converted from a screen magnification state to a screen uniform distribution state, the bit rate of the magnified window is adjusted to a low bit rate for playback, the blocked video window is pulled, and the magnified video window is reduced.
[0009] As an optional implementation, the low bit rate is 360P.
[0010] According to another aspect of the present application, a video bit rate control system is provided, characterized in that it includes: a monitoring end, used to obtain the screen size status of multiple video windows in the screen; a central server end, used to obtain the user's instructions for representing the change of the video screen size; a video bit rate control module, used to control the video bit rate according to the screen size status of the multiple video windows in the screen and the user's instructions for representing the change of the video screen size.
[0011] According to another aspect of the present application, an electronic device is provided, comprising a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus, the memory is used to store a computer program, and the processor is used to execute the steps of the video bit rate control method by running the computer program stored in the memory.
[0012] According to another aspect of the present application, a computer-readable storage medium is provided, wherein the storage medium stores a computer program, wherein the computer program is configured to execute the steps of the video bit rate control method when running.
[0013] In an embodiment of the present application, a video bitrate control method is provided, applicable to a screen displaying multiple video windows. The control method comprises: obtaining the screen size status of multiple video windows within the screen; obtaining a user instruction for changing the video screen size; and controlling the video bitrate based on the screen size status of the multiple video windows within the screen and the user instruction for changing the video screen size. This method allows playback at a lower bitrate than the original bitrate when multiple windows are evenly distributed and small. When a user zooms in on a specific video window, the video resolution is increased, providing a basis for reducing bandwidth and, in turn, lowering the cost of viewing videos on a large screen. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0015] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0016] Figure 1 1 is a flow chart of a method for controlling a video bit rate according to an embodiment of the present application. DETAILED DESCRIPTION
[0017] In order to enable those skilled in the art to better understand the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of this application.
[0018] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in a sequence other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0019] like Figure 1 As shown, an embodiment of the present application provides a method for controlling a video bit rate, which is applied to a screen with multiple video display windows. The control method includes: S1 obtains the screen size status of multiple video windows on the screen; S2 obtains a user instruction for changing the size of the video window; S3 controls the video bit rate according to the state of the screen sizes of the multiple video windows in the screen and the user's instruction for indicating the change of the screen sizes of the video windows.
[0020] Specifically, for example, when a user needs to view a video in one of the video windows in detail, they can first directly stretch and enlarge the video to be enlarged, ensuring that the conversion process does not go black, improving the user experience. After the enlargement is completed, a high-definition streaming command can be sent to the terminal of the video window whose resolution is to be enlarged. The terminal of the enlarged video window will convert the compressed low-bitrate video (for example, 360p) to a high-bitrate video (for example, 1080p) for streaming.
[0021] Or for example, when the user finishes watching the video in one of the video windows, the terminal of the enlarged video window is first converted from a high-bitrate video (for example, 1080p) to a low-bitrate video (for example, 360p) for streaming, and the user then stretches and shrinks the enlarged video to ensure that the conversion process does not go black, thereby improving the user experience.
[0022] Moreover, when the video window is enlarged, the video stream that is blocked on the large screen can be paused to save bandwidth.
[0023] The video bit rate is controlled according to the screen size status of multiple video windows in the screen and the user's instruction for representing the change of the video screen size. When multiple windows are evenly distributed and are all small windows, playback can be achieved at a low bit rate lower than the original bit rate. When the user watches a specified video window and enlarges the video window, the video resolution is improved, providing a basis for reducing bandwidth, thereby reducing the cost of watching videos on a large screen.
[0024] As an optional implementation, the screen size status of multiple video windows in the screen includes: the multiple video windows are the same size and evenly distributed on the screen, which is set to a uniform screen distribution state; or, the screen size of one or more video windows is in an enlarged state, and one or more video windows are blocked by the screen in the enlarged state, which is set to a screen enlarged state.
[0025] When the screen is in the evenly distributed state, the video is compressed for display in a small video window; when a large window is required for display, the original high-bitrate video is provided; when the specified video window is enlarged, a low-bitrate video stream is first used to stretch the playback window, while blocking some other windows; then the stream pulling of the blocked window is stopped to save bandwidth. When the screen is switched from the enlarged state to the evenly distributed state, the video window to be reduced is first scheduled to pull the low-bitrate video, and then the original blocked video is pulled in the background. After completion, the enlarged video playback window is restored. According to user needs and combined with the window scaling time, the terminal can be dynamically scheduled in real time to provide the corresponding video stream for large-screen presentation, achieving seamless switching.
[0026] As an optional implementation, controlling the video bit rate according to the picture size status of multiple video windows in the screen and the user's instruction for representing the change of the video picture size includes: in the evenly distributed picture state, controlling the multiple video windows to play at a low bit rate.
[0027] Taking advantage of the fact that the actual screen size of each channel is very small when monitoring on a large screen with multiple screens, 360p is used for playback by default, which greatly reduces bandwidth requirements.
[0028] For example, ffmpeg can be used for video bitrate compression, and the output format can be VBR dynamic bitrate, further compressing the video bitrate. By default, when displayed on a large screen, the video is displayed within a grid on the large screen, which uses a 360p video effect to achieve a monitoring effect. This can significantly save bandwidth.
[0029] As an optional implementation, the controlling of the video bit rate according to the screen size status of multiple video windows in the screen and the user's instruction for representing the change of the video screen size also includes: in the screen magnification state, controlling the magnified video window to play at the original high bit rate of the video, stopping the streaming of the obstructed video, and controlling the video window that is not magnified and not obstructed to play at a low bit rate.
[0030] As an optional implementation, the controlling of the video bit rate according to the picture size status of multiple video windows in the screen and the user's instruction for representing the change of the video picture size also includes: when the video window is converted from a uniform picture distribution state to a magnified picture state, controlling the magnified window to play at a low bit rate when stretched, stopping the streaming of the obstructed video window after the stretching is completed, and adjusting the bit rate of the magnified window to the original high bit rate of the video for playback.
[0031] When you need to zoom in on a video, you can first use a low-bitrate video to stretch the playback window on the playback side. At this time, the video is zoomed in but blurred. After zooming in, it will block videos in other windows. At this time, the blocked video does not need to be displayed temporarily, and there is no need to pull the stream, thus saving bandwidth for playing the high-definition stream of the zoomed video.
[0032] As an optional implementation, the controlling of the video bit rate according to the screen size status of multiple video windows in the screen and the user's instruction for representing the change of the video screen size also includes: when the video window is converted from a screen magnification state to a screen uniform distribution state, the bit rate of the magnified window is adjusted to a low bit rate for playback, the blocked video window is pulled, and the magnified video window is reduced.
[0033] When shrinking an already enlarged video window, that is, when the video window switches from a zoomed-in state to a uniformly distributed state, you first need to switch the HD stream of the specified video to SD, then pull the video of the originally obscured portion, and then shrink the specified video. This ensures that the screen does not go black during the operation and the user is unaware of the change.
[0034] As an optional implementation, the low bit rate is 360P.
[0035] According to another aspect of the present application, a video bit rate control system is provided, characterized in that it includes: a monitoring end, used to obtain the screen size status of multiple video windows in the screen; a central server end, used to obtain the user's instructions for representing the change of the video screen size; a video bit rate control module, used to control the video bit rate according to the screen size status of the multiple video windows in the screen and the user's instructions for representing the change of the video screen size.
[0036] If no scheduling task is received from the central server and the video window is in the evenly distributed state, the default push is to send a low-bitrate video stream for large-screen monitoring. If a scheduling task is received from the central server, the stream is transcoded according to the bitrate required by the central server and then pushed to the center.
[0037] According to another aspect of the present application, an electronic device is provided, comprising a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus, the memory is used to store a computer program, and the processor is used to execute the steps of the video bit rate control method by running the computer program stored in the memory.
[0038] According to another aspect of the present application, a computer-readable storage medium is provided, wherein the storage medium stores a computer program, wherein the computer program is configured to execute the steps of the video bit rate control method when running.
[0039] Those skilled in the art will appreciate that the device implementing the above-mentioned video bitrate control method may be a terminal device, such as a smartphone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile internet device (MID), a PAD, or the like. This application does not limit the structure of the above-mentioned electronic device.
[0040] A person skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a computer-readable storage medium, which can include: a flash drive, ROM, RAM, a magnetic disk or an optical disk, etc.
[0041] The serial numbers of the above embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0042] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above-mentioned computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the existing technology, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a number of instructions for enabling one or more electronic devices (such as personal computers, servers, or network devices) to execute all or part of the steps of the methods described in various embodiments of the present application.
[0043] In the above embodiments of the present application, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0044] In the several embodiments provided in this application, it should be understood that the disclosed client can be implemented in other ways. Among them, the device embodiments described above are merely illustrative. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, and can be electrical or other forms.
[0045] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected based on actual needs to achieve the purpose of the solution provided in this embodiment.
[0046] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0047] In the above embodiments of the present application, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0048] The above is only a preferred embodiment of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A method for controlling a video bit rate, characterized in that: Applied to a screen with multiple video display windows, the control method includes: Get the screen size status of multiple video windows on the screen; Obtaining a user instruction for changing the video screen size; The video bit rate is controlled according to the frame size status of the multiple video windows in the screen and the user's instruction for indicating the change of the video frame size.
2. The method for controlling the video bit rate according to claim 1, wherein: The image size states of the multiple video windows in the screen include: The multiple video windows are of the same size and evenly distributed on the screen, and are set to a uniform screen distribution state; Or, the screen size of one or more video windows is in an enlarged state, and the state in which one or more video windows are blocked by the screen in the enlarged state is set as the screen enlarged state.
3. The method for controlling the video bit rate according to claim 2, wherein: The controlling of the video bit rate according to the state of the screen sizes of the multiple video windows in the screen and the user's instruction for indicating the change of the screen size of the video includes: In the evenly distributed state, the multiple video windows are controlled to play at a low bit rate.
4. The method for controlling the video bit rate according to claim 2, wherein: The controlling of the video bit rate according to the state of the screen size of the plurality of video windows in the screen and the user's instruction for indicating the change of the screen size of the video further includes: In the zoomed-in state, the zoomed-in video window is controlled to play at the original high bit rate of the video, the streaming of the blocked video is stopped, and the unzoomed and unblocked video window is controlled to play at a low bit rate.
5. The method for controlling the video bit rate according to claim 2, wherein: The controlling of the video bit rate according to the state of the screen size of the plurality of video windows in the screen and the user's instruction for indicating the change of the screen size of the video further includes: When the video window changes from the evenly distributed state to the magnified state, the magnified window is controlled to play at a low bit rate when stretched. After the stretching is completed, the streaming of the obstructed video window is stopped, and the bit rate of the magnified window is adjusted to the original high bit rate of the video for playback.
6. The method for controlling the video bit rate according to claim 5, wherein: The controlling of the video bit rate according to the state of the screen size of the plurality of video windows in the screen and the user's instruction for indicating the change of the screen size of the video further includes: When the video window changes from the magnified state to the evenly distributed state, the bit rate of the magnified window is adjusted to a low bit rate for playback, the blocked video window is pulled, and the magnified video window is reduced.
7. The method for controlling the video bit rate according to claim 3, wherein: The low bit rate is 360P.
8. A video bit rate control system, characterized in that: include: The monitoring end is used to obtain the screen size status of multiple video windows on the screen; The central server is used to obtain the user's instruction for changing the video screen size; The video bit rate control module is used to control the video bit rate according to the picture size status of multiple video windows in the screen and the user's instruction for indicating the change of the video picture size.
9. An electronic device comprising a processor, a communication interface, a memory and a communication bus, wherein: The processor, the communication interface and the memory communicate with each other via the communication bus, wherein: The memory is used to store computer programs; The processor is configured to execute the steps of the video bit rate control method according to any one of claims 1 to 7 by running the computer program stored in the memory.
10. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, wherein the computer program is configured to execute the steps of the method for controlling the video bit rate according to any one of claims 1 to 7 when running.
Citation Information
Patent Citations
Intelligent video stream bandwidth regulating method
CN101742223A
Streaming media transmitting method, device and system
CN102595204A
Method and device for displaying of K virtual machines (KVMs)
CN105867864A
Video playing method and device
CN114827725A
Systems and methods for delivering picture-in-picture signals at diverse compressions and bandwidths
US20050052578A1