CN109195010B - Code rate adjusting method and device - Google Patents

Code rate adjusting method and device Download PDF

Info

Publication number
CN109195010B
CN109195010B CN201810930796.9A CN201810930796A CN109195010B CN 109195010 B CN109195010 B CN 109195010B CN 201810930796 A CN201810930796 A CN 201810930796A CN 109195010 B CN109195010 B CN 109195010B
Authority
CN
China
Prior art keywords
display area
code rate
bandwidth
main display
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810930796.9A
Other languages
Chinese (zh)
Other versions
CN109195010A (en
Inventor
李立锋
周治尹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
MIGU Video Technology Co Ltd
MIGU Culture Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
MIGU Video Technology Co Ltd
MIGU Culture 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 China Mobile Communications Group Co Ltd, MIGU Video Technology Co Ltd, MIGU Culture Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201810930796.9A priority Critical patent/CN109195010B/en
Publication of CN109195010A publication Critical patent/CN109195010A/en
Application granted granted Critical
Publication of CN109195010B publication Critical patent/CN109195010B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44227Monitoring of local network, e.g. connection or bandwidth variations; Detecting new devices in the local network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • H04N21/4363Adapting the video or multiplex stream to a specific local network, e.g. a IEEE 1394 or Bluetooth® network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/4728End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for selecting a Region Of Interest [ROI], e.g. for requesting a higher resolution version of a selected region
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/647Control signaling between network components and server or clients; Network processes for video distribution between server and clients, e.g. controlling the quality of the video stream, by dropping packets, protecting content from unauthorised alteration within the network, monitoring of network load, bridging between two different networks, e.g. between IP and wireless
    • H04N21/64746Control signals issued by the network directed to the server or the client
    • H04N21/64761Control signals issued by the network directed to the server or the client directed to the server
    • H04N21/64769Control signals issued by the network directed to the server or the client directed to the server for rate control

Abstract

The invention discloses a code rate adjusting method, which comprises the following steps: determining the minimum bandwidth required by a main display area according to the minimum code rate corresponding to the resolution of the main display area in the electronic equipment; comparing the minimum bandwidth to a current bandwidth of a network; and determining the target code rate corresponding to the main display area according to the comparison result. The invention also provides a code rate adjusting device.

Description

Code rate adjusting method and device
Technical Field
The present invention relates to data transmission technologies, and in particular, to a method and an apparatus for adjusting a code rate.
Background
In the prior art, in the process of playing multiple channels of videos, the setting of the code rates of a main display area and a slave display area in electronic equipment is usually adjusted manually. This not only increases the complexity of the user's operation, but also severely affects the user's viewing experience.
Disclosure of Invention
In order to solve the above technical problem, embodiments of the present invention provide a data transmission method and apparatus.
The technical scheme of the embodiment of the invention is realized as follows:
according to an aspect of the embodiments of the present invention, there is provided a method for adjusting a code rate, the method including:
determining the minimum bandwidth required by a main display area according to the minimum code rate corresponding to the resolution of the main display area in the electronic equipment;
comparing the minimum bandwidth to a current bandwidth of a network;
and determining the target code rate corresponding to the main display area according to the comparison result.
In the foregoing solution, determining the target code rate corresponding to the main display area according to the comparison result includes:
when the comparison result represents that the minimum bandwidth is larger than the current bandwidth, acquiring the maximum code rate corresponding to the current bandwidth;
and determining the maximum code rate corresponding to the current bandwidth as the target code rate corresponding to the main display area.
In the foregoing solution, determining the target code rate corresponding to the main display area according to the comparison result includes:
when the comparison result indicates that the minimum bandwidth is larger than the current bandwidth, adjusting a first resolution corresponding to the main display area to generate a second resolution lower than the first resolution;
acquiring the maximum code rate corresponding to the second resolution;
and determining the maximum code rate corresponding to the second resolution as the target code rate corresponding to the main display area.
In the above scheme, the method further comprises: when the comparison result represents that the minimum bandwidth is larger than the current bandwidth, converting video information displayed from a display area in the electronic equipment into a plurality of pictures;
and playing the plurality of pictures in a continuous playing mode in the slave display area.
In the foregoing solution, determining the target code rate corresponding to the main display area according to the comparison result includes:
and when the comparison result represents that the minimum bandwidth is smaller than or equal to the current bandwidth, determining the minimum code rate as a target code rate corresponding to the main display area.
In the above scheme, when the comparison result indicates that the minimum bandwidth is smaller than the current bandwidth, determining the number of slave display areas in the electronic device;
and determining the code rate of the slave display area according to the number of the slave display areas and the bandwidth difference between the current bandwidth and the bandwidth of the master display area.
In the above scheme, when the comparison result indicates that the minimum bandwidth is smaller than the current bandwidth, the video information played in the secondary display area in the electronic device is cached according to the target code rate and the resolution corresponding to the primary display area, so as to obtain a cache file of the secondary display area.
In the above scheme, the method further comprises: acquiring display positions corresponding to display areas in the electronic equipment; determining an area corresponding to a display position matched with a preset display position as the main display area; or receiving a region selection instruction sent by the electronic equipment; responding to the area selection instruction, and determining a display area corresponding to the area selection instruction as the main display area.
According to another aspect of the embodiments of the present invention, there is provided a code rate adjusting apparatus, the apparatus including: the determining unit is used for determining the minimum bandwidth required by the main display area according to the minimum code rate corresponding to the resolution of the main display area in the electronic equipment; the target code rate corresponding to the main display area is determined according to the comparison result of the minimum bandwidth and the current bandwidth of the network;
and the comparison unit is used for comparing the minimum bandwidth with the current bandwidth of the network.
According to a third aspect of the embodiments of the present invention, there is provided a code rate adjusting apparatus, the apparatus including a memory and a processor; wherein the memory is to store a computer program operable on the processor; the processor is configured to execute the steps of any one of the above code rate adjustment methods when the computer program is run.
The technical scheme of the embodiment of the invention provides a code rate adjusting method and a device, and the method and the device are used for determining the minimum bandwidth corresponding to a main display area according to the minimum code rate corresponding to the resolution of the main display area in electronic equipment; comparing the minimum bandwidth to a current bandwidth of a network; and determining the target code rate corresponding to the main display area according to the comparison result. Thus, the phenomenon of pause in the main display area when the bandwidth is insufficient can be avoided.
Drawings
FIG. 1 is a flowchart illustrating a method for adjusting a code rate according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a terminal screen during multi-channel video playing;
FIG. 3 is a first schematic diagram illustrating the structure of a code rate adjusting apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a code rate adjusting device in the embodiment of the present invention.
Detailed Description
The following detailed description of embodiments of the invention refers to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the present invention, are given by way of illustration and explanation only, not limitation.
FIG. 1 is a flowchart illustrating a method for adjusting a code rate according to an embodiment of the present invention; as shown in fig. 1, the method includes:
step 101, determining a minimum bandwidth required by a main display area according to a minimum code rate corresponding to a resolution of the main display area in electronic equipment;
in the embodiment of the invention, the method is mainly applied to terminals capable of playing multi-channel videos, and the terminals include but are not limited to mobile phones, tablet computers, desktop computers, televisions, servers and other electronic equipment. Specifically, an application program capable of playing videos may be installed on the electronic device, and a user may play multiple channels of videos through the application program. When a user plays multiple channels of videos through the electronic device, a screen display interface of the electronic device may be specifically as shown in fig. 2.
FIG. 2 is a schematic diagram of a terminal screen during multi-channel video playing; as shown in fig. 2, the display device includes a main display area 201 and at least one slave display area 202, wherein the electronic device can obtain a display position corresponding to each display area in the electronic device; determining an area corresponding to a display position matched with a preset display position as a main display area; or the electronic equipment receives a region selection instruction sent by the user aiming at the electronic equipment; in response to the area selection instruction, the display area corresponding to the area selection instruction is determined as the main display area.
The area selection instruction may be an area selection instruction triggered by an operation of clicking a certain display area by a user, or may also be an area selection instruction triggered by an operation of dragging a certain display area by a user, specifically how to trigger the area selection instruction, which is not limited in the embodiment of the present invention.
Since the user usually focuses on the video content played by the main display region 201 during the video viewing process, the display area of the main display region 201 is usually larger than that of the at least one slave display region 202.
In practical applications, the resolution of the main display area 201 may be set actively by a user, or may be a default resolution set for a video playing application. When the electronic device needs to acquire the resolution of the main display area 201, the resolution of the main display area 201 may be determined according to the detection result by detecting the video playing parameter played by the main display area 201.
In the embodiment of the present invention, when the electronic device determines the resolution of the main display area 201, the minimum code rate corresponding to the resolution may also be determined according to the resolution of the main display area 201 in the electronic device.
Here, the same resolution usually corresponds to a plurality of selectable code rates, for example, the resolution a may correspond to three code rates a1, a2, A3 from top to bottom. Therefore, after determining the resolution of the main display area 201, the electronic device may determine the minimum bitrate corresponding to the resolution of the main display area 201 by querying the corresponding relationship between the resolution and the bitrate recorded in the database.
In the embodiment of the present invention, the electronic device may further determine the minimum bandwidth required by the main display area according to the minimum code rate corresponding to the resolution.
Specifically, when the electronic device determines the minimum bitrate corresponding to the resolution of the main display area, the minimum bandwidth required by the main display area when the minimum bitrate is used for video playing may be calculated, or the minimum bandwidth corresponding to the minimum bitrate may be queried through a resolution and bandwidth comparison table.
Step 102, comparing the minimum bandwidth with the current bandwidth of the network;
in the embodiment of the invention, the electronic equipment can determine the current bandwidth of the network according to the detection result by detecting the current bandwidth of the network.
The method for detecting the network bandwidth may be to detect the network transmission speed first, and then measure and calculate the current bandwidth of the network according to the detected network transmission speed.
And 103, determining a target code rate corresponding to the main display area according to the comparison result.
In the embodiment of the invention, when the comparison result represents that the minimum bandwidth required by the main display area is greater than the current bandwidth, the current bandwidth is not enough to support the main display area to play the video at the current display code rate of the main display area, and at the moment, the electronic equipment can obtain the maximum code rate corresponding to the current bandwidth; and then, determining the maximum code rate corresponding to the current bandwidth as a target code rate corresponding to the main display area, and playing the video in the main display area at the target code rate. Thus, the phenomenon of pause when a user watches the video file in the main display area can be avoided.
In the embodiment of the present invention, when the comparison result represents that the minimum bandwidth required by the main display area is greater than the current bandwidth, the electronic device may further adjust a resolution (hereinafter referred to as a first resolution) corresponding to the main display area, and generate a second resolution lower than the first resolution according to the adjustment result; for example, the first resolution is 1080P and the second resolution is 720P or 320P. Then, acquiring the maximum code rate corresponding to the second resolution; and determining the maximum code rate corresponding to the second resolution as the target code rate corresponding to the main display area, and playing the video in the main display area according to the target code rate.
Here, a corresponding relation table of the bandwidth and the code rate may be established in advance, and the maximum code rate corresponding to the second resolution may be obtained by querying the code rate corresponding to the second resolution in the corresponding relation table.
In addition, the resolution parameter in the present invention is not limited to a specific value as long as the second resolution is less than the first resolution.
In the embodiment of the invention, when the comparison result represents that the minimum bandwidth is larger than the current bandwidth, the electronic device can also convert video information played from a display area in the electronic device into a plurality of pictures; and playing the plurality of pictures in a continuous playing manner in the slave display area, namely, carrying out dynamic picture display in a connected picture form in the slave display area. Because the bandwidth used when the picture is displayed is smaller than the bandwidth used when the video is played, the video content played from the display area is displayed in a dynamic picture mode, enough bandwidth can be provided for the main display area to support the video file played from the main display area, and the phenomenon of network blockage when the video file is played in the main display area is avoided.
Here, when the dynamic display is performed by using continuous pictures in the display area, the picture display frequency may be 1 picture per second or 2 pictures per 1 second, and the specific display number is not limited. The picture displayed in the display area is a screenshot of the corresponding video picture played from the display area.
In the embodiment of the present invention, when the comparison result indicates that the minimum bandwidth corresponding to the resolution of the main display area is less than or equal to the current bandwidth of the network, it indicates that the current bandwidth meets the playing requirement of the main display area, and therefore, the minimum bitrate corresponding to the resolution of the main display area can be directly determined as the target bitrate corresponding to the main display area.
In the embodiment of the present invention, when the comparison result represents that the minimum bandwidth corresponding to the resolution of the main display area is smaller than the current bandwidth of the network, the electronic device may further determine the number of the slave display areas and a bandwidth difference between the current bandwidth and the bandwidth of the main display area, and then determine the code rate of the slave display area according to the number of the slave display areas and the bandwidth difference.
For example, the minimum bandwidth required for the main display area is BMaster and slaveRepresents; current bandwidth of network uses BDetection ofRepresents; determining a code rate from the display area by the following equation 1):
(Bdetection of-BMaster and slave)/N=BFrom 1)
Where N is the number of slave display areas, BFromThe code rate of the secondary display area is obtained by inquiring the corresponding relation table of the bandwidth and the code rate from the available bandwidth of the display area.
In the embodiment of the present invention, when the comparison result indicates that the minimum bandwidth is smaller than the current bandwidth, the electronic device may further cache the video information played in the secondary display area according to the target code rate and the resolution corresponding to the primary display area, so as to obtain the cache file of the secondary display area.
Specifically, the user usually switches the master display area and the slave display area during the process of playing multiple paths of videos, and in order to reduce the video waiting time of the user after switching, when B isMaster and slaveIs less than BDetection ofIn this way, when the video in the slave display area is switched to the main display area for playing, the user can directly watch the video in the switched display area without waiting for the video buffering.
It should be further noted that, since the definition and bitrate of the main display area are higher than those of the slave display area, when the video of the slave display area is cached, the video file of the slave display area can be cached according to the definition and bitrate standards of the main display area.
Here, the video caching method in the slave display area may be referred to as backup streaming, and when the electronic device caches the video file in the slave display area in the backup streaming, the required bandwidth is referred to as BPrepare for. When B is presentMaster and slave+BPrepare forIs less than or equal to BDetection ofThe main display area can be adjustedPlaying the minimum code rate corresponding to the previous resolution, playing the video file from the display area at the code rate corresponding to the following formula 2), and caching the video file from the display area in a backup stream mode.
(BDetection of-BMaster and slave-BPrepare for)/N 2);
According to the code rate adjusting method provided by the embodiment of the invention, when the main display area has the stuck phenomenon, the code rate corresponding to the resolution of the main display area can be increased, and the code rate corresponding to the resolution of the auxiliary display area is decreased, instead of setting the main display area and the auxiliary display area to be the uniform code rate, the stuck phenomenon when the bandwidth of the main display area does not meet the requirements of a user can be effectively avoided. On the other hand, the phenomenon of broadband resource waste caused when the current bandwidth meets the user requirement is also avoided.
Fig. 3 is a schematic structural diagram of a code rate adjusting device in the embodiment of the present invention, as shown in fig. 3, the device includes:
a determining unit 301, configured to determine a minimum bandwidth required by a main display area according to a minimum code rate corresponding to a resolution of the main display area in an electronic device; the target code rate corresponding to the main display area is determined according to the comparison result of the minimum bandwidth and the current bandwidth of the network;
a comparing unit 302, configured to compare the minimum bandwidth with a current bandwidth of the network.
In the embodiment of the present invention, the apparatus further includes: an acquisition unit 303;
the obtaining unit 303 is configured to obtain a maximum code rate corresponding to the current bandwidth when the comparison result indicates that the minimum bandwidth is greater than the current bandwidth;
the determining unit 301 is specifically configured to determine the maximum code rate corresponding to the current bandwidth as the target code rate corresponding to the main display area.
In the embodiment of the present invention, the apparatus further includes: an adjustment unit 304;
the adjusting unit 304 is configured to adjust a first resolution corresponding to the main display area and generate a second resolution lower than the first resolution when the comparison result indicates that the minimum bandwidth is greater than the current bandwidth;
an obtaining unit 303, further configured to obtain a maximum code rate corresponding to the second resolution;
the determining unit 301 is specifically further configured to determine the maximum code rate corresponding to the second resolution as the target code rate corresponding to the main display area.
In the embodiment of the present invention, the apparatus further includes: a conversion unit 305 and a playback unit 306;
specifically, the converting unit 305 is configured to convert video information displayed from a display area in the electronic device into a plurality of pictures when the comparison result indicates that the minimum bandwidth is greater than the current bandwidth;
the playing unit 306 is configured to play the plurality of pictures in the slave display area in a continuous playing manner.
In this embodiment of the present invention, the determining unit 301 is further specifically configured to determine the minimum code rate as a target code rate corresponding to the main display area when the comparison result indicates that the minimum bandwidth is less than or equal to the current bandwidth.
In this embodiment of the present invention, the determining unit 301 is further configured to determine, when the comparison result indicates that the minimum bandwidth is smaller than the current bandwidth, the number of slave display areas in the electronic device; and determining the code rate of the slave display area according to the number of the slave display areas and the bandwidth difference between the current bandwidth and the bandwidth of the master display area.
In the embodiment of the present invention, the apparatus further includes: a buffer unit (not shown in fig. 3);
and the cache unit is used for caching the video information played in the secondary display area in the electronic equipment according to the target code rate and the resolution corresponding to the main display area when the comparison result represents that the minimum bandwidth is smaller than the current bandwidth, so as to obtain a cache file of the secondary display area.
It should be noted that: in the code rate adjustment apparatus provided in the foregoing embodiment, when the code rate corresponding to the resolution of the main display area and/or the sub display area of the electronic device is adjusted, only the division of the program modules is illustrated, and in practical applications, the processing allocation may be completed by different program modules according to needs, that is, the internal structure of the apparatus is divided into different program modules, so as to complete all or part of the processing described above. In addition, the embodiments of the code rate adjusting device and the code rate adjusting method provided in the foregoing embodiments belong to the same concept, and specific implementation processes thereof are detailed in the embodiments of the methods and are not described herein again.
Fig. 4 is a schematic structural diagram of a code rate adjusting apparatus 400 according to an embodiment of the present invention, where the code rate adjusting apparatus 400 may be a mobile phone, a computer, a digital broadcast terminal, an information transceiver device, a game console, a tablet device, a personal digital assistant, an information push server, a content server, and the like. The code rate adjustment apparatus 400 shown in fig. 4 comprises: at least one processor 401, memory 402, at least one network interface 404, and a user interface 403. The various components in the rate adjustment apparatus 400 are coupled together by a bus system 405. It is understood that the bus system 405 is used to enable connection communication between these components. The bus system 405 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 405 in fig. 4.
The user interface 403 may include, among other things, a display, a keyboard, a mouse, a trackball, a click wheel, a key, a button, a touch pad, or a touch screen.
It will be appreciated that the memory 402 can be either volatile memory or nonvolatile memory, and can include both volatile and nonvolatile memory. Among them, the nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic random access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced DRAM), Synchronous Dynamic Random Access Memory (SLDRAM), Direct Memory (DRmb Access), and Random Access Memory (DRAM). The memory 402 described in connection with the embodiments of the invention is intended to comprise, without being limited to, these and any other suitable types of memory.
The memory 402 in the embodiment of the present invention is used for storing various types of data to support the operation of the rate adjustment apparatus 400. Examples of such data include: any computer program for operating on the rate adjustment device 400, such as an operating system 4021 and an application 4022; music data; animation data; book information; video, etc. The operating system 4021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is configured to implement various basic services and process hardware-based tasks. The application 4022 may include various applications such as a Media Player (Media Player), a Browser (Browser), and the like for implementing various application services. A program for implementing the method according to the embodiment of the present invention may be included in the application 4022.
The method disclosed in the above embodiments of the present invention may be applied to the processor 401, or implemented by the processor 401. The processor 401 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 401. The Processor 401 described above may be a general purpose Processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. Processor 401 may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed by the embodiment of the invention can be directly implemented by a hardware decoding processor, or can be implemented by combining hardware and software modules in the decoding processor. The software modules may be located in a storage medium located in the memory 402, and the processor 401 reads the information in the memory 402 and performs the steps of the aforementioned methods in conjunction with its hardware.
In an exemplary embodiment, the bitrate adjustment apparatus 400 can be implemented by one or more Application Specific Integrated Circuits (ASICs), DSPs, Programmable Logic Devices (PLDs), Complex Programmable Logic Devices (CPLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, Micro Controllers (MCUs), microprocessors (microprocessors), or other electronic components for performing the foregoing methods.
Wherein the memory is to store a computer program operable on the processor;
the processor is configured to, when running the computer program, execute: determining the minimum bandwidth required by a main display area according to the minimum code rate corresponding to the resolution of the main display area in the electronic equipment;
comparing the minimum bandwidth to a current bandwidth of a network;
and determining the target code rate corresponding to the main display area according to the comparison result.
The processor, when running the computer program, further executes: when the comparison result represents that the minimum bandwidth is larger than the current bandwidth, acquiring the maximum code rate corresponding to the current bandwidth; and determining the maximum code rate corresponding to the current bandwidth as the target code rate corresponding to the main display area.
The processor, when running the computer program, further executes: when the comparison result indicates that the minimum bandwidth is larger than the current bandwidth, adjusting a first resolution corresponding to the main display area to generate a second resolution lower than the first resolution; acquiring the maximum code rate corresponding to the second resolution; and determining the maximum code rate corresponding to the second resolution as the target code rate corresponding to the main display area.
The processor, when running the computer program, further executes: when the comparison result represents that the minimum bandwidth is larger than the current bandwidth, converting video information displayed from a display area in the electronic equipment into a plurality of pictures; and playing the plurality of pictures in a continuous playing mode in the slave display area.
The processor, when running the computer program, further executes: and when the comparison result represents that the minimum bandwidth is smaller than or equal to the current bandwidth, determining the minimum code rate as a target code rate corresponding to the main display area.
The processor, when running the computer program, further executes: determining the number of slave display areas in the electronic device; and determining the code rate of the slave display area according to the number of the slave display areas and the bandwidth difference between the current bandwidth and the bandwidth of the master display area.
The processor, when running the computer program, further executes: and caching the video information played in the secondary display area in the electronic equipment according to the target code rate and the resolution corresponding to the main display area to obtain a cache file of the secondary display area.
The processor, when running the computer program, further executes: acquiring display positions corresponding to display areas in the electronic equipment; determining an area corresponding to a display position matched with a preset display position as the main display area;
or receiving a region selection instruction sent by the electronic equipment; responding to the area selection instruction, and determining a display area corresponding to the area selection instruction as the main display area.
In an exemplary embodiment, the present invention further provides a computer-readable storage medium, such as a memory 402, comprising a computer program, which is executable by a processor 401 of the code rate adjusting apparatus 400 to perform the steps of the foregoing method. The computer readable storage medium can be Memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface Memory, optical disk, or CD-ROM; or may be a variety of devices including one or any combination of the above memories, such as a mobile phone, computer, tablet device, personal digital assistant, etc.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, performs: determining the minimum bandwidth required by a main display area according to the minimum code rate corresponding to the resolution of the main display area in the electronic equipment; comparing the minimum bandwidth to a current bandwidth of a network; and determining the target code rate corresponding to the main display area according to the comparison result.
The computer program, when executed by the processor, further performs: when the comparison result represents that the minimum bandwidth is larger than the current bandwidth, acquiring the maximum code rate corresponding to the current bandwidth; and determining the maximum code rate corresponding to the current bandwidth as the target code rate corresponding to the main display area.
The computer program, when executed by the processor, further performs: when the comparison result indicates that the minimum bandwidth is larger than the current bandwidth, adjusting a first resolution corresponding to the main display area to generate a second resolution lower than the first resolution; acquiring the maximum code rate corresponding to the second resolution; and determining the maximum code rate corresponding to the second resolution as the target code rate corresponding to the main display area.
The computer program, when executed by the processor, further performs: when the comparison result represents that the minimum bandwidth is larger than the current bandwidth, converting video information displayed from a display area in the electronic equipment into a plurality of pictures; and playing the plurality of pictures in a continuous playing mode in the slave display area.
The computer program, when executed by the processor, further performs: and when the comparison result represents that the minimum bandwidth is smaller than or equal to the current bandwidth, determining the minimum code rate as a target code rate corresponding to the main display area.
The computer program, when executed by the processor, further performs: when the comparison result represents that the minimum bandwidth is smaller than the current bandwidth, determining the number of slave display areas in the electronic equipment; and determining the code rate of the slave display area according to the number of the slave display areas and the bandwidth difference between the current bandwidth and the bandwidth of the master display area.
The computer program, when executed by the processor, further performs: and when the comparison result represents that the minimum bandwidth is smaller than the current bandwidth, caching the video information played in the secondary display area in the electronic equipment according to the target code rate and the resolution corresponding to the main display area to obtain a cache file of the secondary display area.
The computer program, when executed by the processor, further performs: acquiring display positions corresponding to display areas in the electronic equipment; determining an area corresponding to a display position matched with a preset display position as the main display area;
or receiving a region selection instruction sent by the electronic equipment; responding to the area selection instruction, and determining a display area corresponding to the area selection instruction as the main display area.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention.

Claims (9)

1. A method of code rate adjustment, the method comprising:
determining a minimum bandwidth required by a main display area according to a minimum code rate corresponding to the resolution of the main display area in electronic equipment, wherein the display area of the electronic equipment comprises the main display area and at least one auxiliary display area;
comparing the minimum bandwidth to a current bandwidth of a network;
determining a target code rate corresponding to the main display area according to the comparison result;
after the comparing the minimum bandwidth to the current bandwidth of the network, the method further comprises:
when the comparison result represents that the minimum bandwidth is larger than the current bandwidth, converting video information displayed from a display area in the electronic equipment into a plurality of pictures;
when the comparison result represents that the minimum bandwidth is smaller than the current bandwidth, determining the number of the slave display areas in the electronic equipment; and determining the code rate of the slave display area according to the number of the slave display areas and the bandwidth difference between the current bandwidth and the bandwidth of the master display area.
2. The method of claim 1, wherein determining the target bitrate corresponding to the main display area according to the comparison result comprises:
when the comparison result represents that the minimum bandwidth is larger than the current bandwidth, acquiring the maximum code rate corresponding to the current bandwidth;
and determining the maximum code rate corresponding to the current bandwidth as the target code rate corresponding to the main display area.
3. The method of claim 1, wherein determining the target bitrate corresponding to the main display area according to the comparison result comprises:
when the comparison result indicates that the minimum bandwidth is larger than the current bandwidth, adjusting a first resolution corresponding to the main display area to generate a second resolution lower than the first resolution;
acquiring the maximum code rate corresponding to the second resolution;
and determining the maximum code rate corresponding to the second resolution as the target code rate corresponding to the main display area.
4. The method of claim 1, further comprising: and playing the plurality of pictures in a continuous playing mode in the slave display area.
5. The method of claim 1, wherein determining the target bitrate corresponding to the main display area according to the comparison result comprises:
and when the comparison result represents that the minimum bandwidth is smaller than or equal to the current bandwidth, determining the minimum code rate as a target code rate corresponding to the main display area.
6. The method of claim 5, when the comparison result characterizes that the minimum bandwidth is less than the current bandwidth, the method further comprising:
and caching the video information played in the secondary display area in the electronic equipment according to the target code rate and the resolution corresponding to the main display area to obtain a cache file of the secondary display area.
7. The method of claim 1, further comprising:
acquiring display positions corresponding to display areas in the electronic equipment; determining an area corresponding to a display position matched with a preset display position as the main display area;
or receiving a region selection instruction sent by the electronic equipment; responding to the area selection instruction, and determining a display area corresponding to the area selection instruction as the main display area.
8. An apparatus for rate adjustment, the apparatus comprising:
the determining unit is used for determining the minimum bandwidth required by the main display area according to the minimum code rate corresponding to the resolution of the main display area in the electronic equipment; the target code rate corresponding to the main display area is determined according to the comparison result of the minimum bandwidth and the current bandwidth of the network; the display area of the electronic equipment comprises the main display area and at least one auxiliary display area;
a comparing unit, configured to compare the minimum bandwidth with a current bandwidth of a network;
the determining unit is further configured to convert video information displayed from a display area in the electronic device into a plurality of pictures when the comparison result indicates that the minimum bandwidth is greater than the current bandwidth; when the comparison result represents that the minimum bandwidth is smaller than the current bandwidth, determining the number of the slave display areas in the electronic equipment; and determining the code rate of the slave display area according to the number of the slave display areas and the bandwidth difference between the current bandwidth and the bandwidth of the master display area.
9. A code rate adjustment apparatus includes a memory and a processor;
wherein the memory is to store a computer program operable on the processor;
the processor, when executing the computer program, is configured to perform the steps of the method of any of claims 1 to 7.
CN201810930796.9A 2018-08-15 2018-08-15 Code rate adjusting method and device Active CN109195010B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810930796.9A CN109195010B (en) 2018-08-15 2018-08-15 Code rate adjusting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810930796.9A CN109195010B (en) 2018-08-15 2018-08-15 Code rate adjusting method and device

Publications (2)

Publication Number Publication Date
CN109195010A CN109195010A (en) 2019-01-11
CN109195010B true CN109195010B (en) 2021-08-06

Family

ID=64918020

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810930796.9A Active CN109195010B (en) 2018-08-15 2018-08-15 Code rate adjusting method and device

Country Status (1)

Country Link
CN (1) CN109195010B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111602389B (en) * 2019-07-23 2022-06-03 深圳市大疆创新科技有限公司 Code stream transmission control method, device and computer readable storage medium
CN110650341A (en) * 2019-09-29 2020-01-03 华为终端有限公司 Video interaction method and related equipment
CN110784745B (en) * 2019-11-26 2021-12-07 科大讯飞股份有限公司 Video transmission method, device, system, equipment and storage medium
CN111866586B (en) * 2020-07-28 2022-08-02 精英数智科技股份有限公司 Underground video data processing method and device, electronic equipment and storage medium
CN113242438A (en) * 2021-04-12 2021-08-10 郑州阿帕斯数云信息科技有限公司 Video data transmission method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104144322A (en) * 2013-05-10 2014-11-12 中国电信股份有限公司 Method and system for achieving video monitoring on mobile terminal and video processing server
CN106210781A (en) * 2016-08-04 2016-12-07 乐视控股(北京)有限公司 A kind of multichannel control method for playing back and system
CN108111910A (en) * 2017-12-22 2018-06-01 烽火通信科技股份有限公司 A kind of method and system for adjusting video playing clarity

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8341672B2 (en) * 2009-04-24 2012-12-25 Delta Vidyo, Inc Systems, methods and computer readable media for instant multi-channel video content browsing in digital video distribution systems
CN103024342B (en) * 2012-12-25 2016-05-18 广东威创视讯科技股份有限公司 Band width control method in video conferencing system and system
CN104717555B (en) * 2013-12-11 2018-01-02 华为技术有限公司 The acquisition methods and device of video code flow
CN107105317B (en) * 2017-05-22 2020-10-23 华为技术有限公司 Video playing method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104144322A (en) * 2013-05-10 2014-11-12 中国电信股份有限公司 Method and system for achieving video monitoring on mobile terminal and video processing server
CN106210781A (en) * 2016-08-04 2016-12-07 乐视控股(北京)有限公司 A kind of multichannel control method for playing back and system
CN108111910A (en) * 2017-12-22 2018-06-01 烽火通信科技股份有限公司 A kind of method and system for adjusting video playing clarity

Also Published As

Publication number Publication date
CN109195010A (en) 2019-01-11

Similar Documents

Publication Publication Date Title
CN109195010B (en) Code rate adjusting method and device
JP7038021B2 (en) Adaptive transfer function for video coding and decoding
CN108737908B (en) Media playing method, device and storage medium
US9473548B1 (en) Latency reduction in streamed content consumption
CN108066986B (en) Streaming media determining method and device and storage medium
US9794605B2 (en) Using time-stamped event entries to facilitate synchronizing data streams
CN112104915B (en) Video data processing method and device and storage medium
CN110636370B (en) Video processing method and device, electronic equipment and readable medium
US8811797B2 (en) Switching between time order and popularity order sending of video segments
RU2619089C2 (en) Method and device for multiple videos reproduction
CN102298947A (en) Method for carrying out playing switching among multimedia players and equipment
JP2021506196A (en) Video processing methods, devices, terminals and media
CN112738633B (en) Video playing method, device, equipment and readable storage medium
US9779093B2 (en) Spatial seeking in media files
US9872054B2 (en) Presentation of a multi-frame segment of video content
CN109379621B (en) Bullet screen display method and device
WO2020207101A1 (en) Video information synchronous display method, apparatus, terminal device, and computer-readable storage medium
US20180359516A1 (en) Flexible Video Platform with Optional Advertising
US20170280092A1 (en) Method and electronic device for playing quality adjustment in multi-window video playing
US20140229832A1 (en) Media file user interface
CN108462901A (en) A kind of media file playing method and device
CN114385109B (en) Audio playing processing method and device, electronic equipment and storage medium
WO2023072251A1 (en) Interaction method, interaction apparatus, electronic device, and computer-readable storage medium
CN107852529B (en) Method and apparatus for controlling media playback using a single control
CA3177065A1 (en) Systems and methods for customizing media player playback speed

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant