CN110971943B - Video code rate adjusting method, device, terminal and storage medium - Google Patents

Video code rate adjusting method, device, terminal and storage medium Download PDF

Info

Publication number
CN110971943B
CN110971943B CN201811161595.3A CN201811161595A CN110971943B CN 110971943 B CN110971943 B CN 110971943B CN 201811161595 A CN201811161595 A CN 201811161595A CN 110971943 B CN110971943 B CN 110971943B
Authority
CN
China
Prior art keywords
code rate
video
terminal
data
target video
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
CN201811161595.3A
Other languages
Chinese (zh)
Other versions
CN110971943A (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.)
Beijing Microlive Vision Technology Co Ltd
Original Assignee
Beijing Microlive Vision 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 Microlive Vision Technology Co Ltd filed Critical Beijing Microlive Vision Technology Co Ltd
Priority to CN201811161595.3A priority Critical patent/CN110971943B/en
Priority to PCT/CN2019/073195 priority patent/WO2020062743A1/en
Publication of CN110971943A publication Critical patent/CN110971943A/en
Application granted granted Critical
Publication of CN110971943B publication Critical patent/CN110971943B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • H04N21/234381Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements by altering the temporal resolution, e.g. decreasing the frame rate by frame skipping
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/266Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel
    • H04N21/2662Controlling the complexity of the video stream, e.g. by scaling the resolution or bitrate of the video stream based on the client capabilities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4334Recording operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The embodiment of the disclosure discloses a video code rate adjustment method, a device, a terminal and a storage medium, wherein the method comprises the following steps: acquiring data corresponding to a target video during recording, wherein the data comprises terminal data and/or user data; and when the target video is synthesized, adjusting the integrated code rate of the target video according to the terminal data and/or the user data. The embodiment of the disclosure can effectively reduce the data volume of the recorded video file under the condition of ensuring the recording definition, so as to facilitate the transmission of the video file.

Description

Video code rate adjusting method, device, terminal and storage medium
Technical Field
The embodiment of the disclosure relates to the technical field of internet, in particular to a video code rate adjusting method, a video code rate adjusting device, a video code rate adjusting terminal and a storage medium.
Background
In recent years, the continuous development of network technology makes our lives more and more colorful. With the convenient carrier of the network, the multimedia technology has also advanced day by day, and the multimedia video coding and decoding are particularly important as the core and key of the multimedia technology.
For video multimedia services, direct transmission requires a relatively large network bandwidth due to the large data volume of video. Therefore, on the premise of ensuring the video quality, how to effectively reduce the data volume of the video becomes a technical problem to be solved.
BRIEF SUMMARY OF THE PRESENT DISCLOSURE
The embodiment of the disclosure provides a video code rate adjustment method, a video code rate adjustment device, a terminal and a storage medium, so as to achieve the purpose of effectively reducing the data volume of a video on the premise of ensuring the video quality.
In a first aspect, an embodiment of the present disclosure provides a method for adjusting a video bitrate, where the method includes:
acquiring data corresponding to a target video during recording, wherein the data comprises terminal data and/or user data;
and when the target video is synthesized, adjusting the integrated code rate of the target video according to the terminal data and/or the user data.
Optionally, the terminal data includes a motion state parameter of the terminal, and the user data includes data selected by the user when the video is processed.
Optionally, before acquiring data corresponding to the target video during recording, the method further includes:
and responding to the triggering operation of a user on a video shooting button on the current terminal interface, and recording the video according to the preset code rate.
Optionally, the obtaining terminal data corresponding to the target video during recording includes:
acquiring parameters acquired by at least one sensor arranged on a terminal;
and determining the corresponding terminal data of the target video during recording according to the parameters.
Optionally, the adjusting the integrated bitrate of the target video according to the terminal data and/or the user data includes:
determining a first code rate correction value according to the terminal data and/or determining a second code rate correction value according to the user data;
determining a target code rate correction value according to the first code rate correction value and/or the second code rate correction value;
and adjusting the code rate of the synthesized target video according to the target code rate correction value.
Optionally, the target code rate correction value is determined by performing weighted summation on the first code rate correction value and the second code rate correction value.
Optionally, the method further includes:
and compensating the adjusted code rate of the target video.
Optionally, the compensating the adjusted bitrate of the target video includes:
and if the user name, the terminal model, the terminal data and/or the user data of the target video meet preset specific conditions, compensating the adjusted code rate of the target video according to a set standard corresponding to the specific conditions.
In a second aspect, an embodiment of the present disclosure further provides a video bitrate adjusting apparatus, where the apparatus includes:
the acquisition module is used for acquiring corresponding data of a target video during recording, wherein the data comprises terminal data and/or user data;
and the code rate adjusting module is used for adjusting and integrating the code rate of the target video according to the terminal data and/or the user data when the target video is synthesized.
Optionally, the terminal data includes a motion state parameter of the terminal, and the user data includes data selected by the user when the video is processed.
Optionally, the apparatus further comprises:
and the recording module is used for responding to the triggering operation of the user on the video shooting button on the current terminal interface and recording the video according to the preset code rate.
Optionally, the obtaining module is further configured to:
acquiring parameters acquired by at least one sensor arranged on a terminal;
and determining the corresponding terminal data of the target video during recording according to the parameters.
Optionally, the code rate adjusting module includes:
a first determining unit, configured to determine a first code rate correction value according to the terminal data, and/or determine a second code rate correction value according to the user data;
a second determining unit, configured to determine a target code rate correction value according to the first code rate correction value and/or the second code rate correction value;
and the adjusting unit is used for adjusting the code rate of the synthesized target video according to the target code rate correction value.
Optionally, the target code rate correction value is determined by performing weighted summation on the first code rate correction value and the second code rate correction value.
Optionally, the apparatus further comprises:
and the compensation module is used for compensating the adjusted code rate of the target video.
Optionally, the compensation module is specifically configured to:
and if the user name, the terminal model, the terminal data and/or the user data of the target video meet preset specific conditions, compensating the adjusted code rate of the target video according to a set standard corresponding to the specific conditions.
In a third aspect, an embodiment of the present disclosure further provides a terminal, including:
one or more processors;
a memory for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the video bitrate adjustment method according to any embodiment of the disclosure.
In a fourth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the video bitrate adjustment method according to any embodiment of the present disclosure.
The embodiment of the disclosure discloses a video code rate adjusting method, a device, a terminal and a storage medium, which effectively reduce the data volume of a recorded video file under the condition of ensuring the recording definition by recording terminal data and user data in the video recording process and adjusting the original code rate when the video is recorded according to the terminal data and the user data so as to facilitate the transmission of the video file.
Drawings
Fig. 1 is a flowchart of a video bitrate adjustment method provided by an embodiment of the disclosure;
fig. 2 is a flowchart of a video bitrate adjustment method provided by an embodiment of the disclosure;
fig. 3 is a schematic structural diagram of a video bitrate adjustment apparatus according to an embodiment of the disclosure;
fig. 4 is a schematic structural diagram of a terminal in an embodiment of the present disclosure.
Detailed Description
The present disclosure is described in further detail below with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the disclosure and are not limiting of the disclosure. It should be further noted that, for the convenience of description, only some of the structures relevant to the present disclosure are shown in the drawings, not all of them.
Referring to fig. 1, a flowchart of a video bitrate adjustment method provided in an embodiment of the present disclosure is shown, where the method is applicable to a situation where the data size of a video is effectively reduced on the premise of ensuring the video quality, and the method may be executed by a video bitrate adjustment device, where the device may be implemented in a software and/or hardware manner, and may be configured in a terminal, such as an intelligent device with a camera device. As shown in fig. 1, the method specifically includes:
s110, acquiring data corresponding to the target video during recording, wherein the data comprises terminal data and/or user data.
At present, with the popularization of mobile terminals and the speed increase of networks, the recording of short videos is more and more favored by people, and in order to increase the interestingness of the recorded videos, a user can do various actions (such as dancing) in the video recording process to drive the terminal to perform corresponding motions or add various special effects to the shot videos. However, the motion of the terminal or the special effect added by the user increases the complexity of the recorded video, and the more violent the motion or the more complicated the added special effect is, the larger the recorded video file is, that is, the larger the code rate required for recording the video is.
Based on this, in order to ensure that the recorded video has sufficient definition, when the video starts to be recorded, the terminal device executes a video recording action in response to a user's trigger operation on a video shooting button on a current terminal interface, and records the video according to a preset code rate, where the preset code rate may be, for example, the maximum code rate supported by the terminal system, such as the preset code rate of 12 Mb/s.
Illustratively, the present embodiment records a target video at a code rate of 12Mb/s, and records terminal data and/or user data during the recording of the target video, where the terminal data may illustratively include a motion state parameter of the terminal, and the user data includes data selected by a user during processing of the video, such as special effect data added by the user, a filter added by the user, or a cover selected by the user.
The whole video recording process comprises a video shooting link and a compiling link, so that terminal data can be recorded in the video shooting link, specifically, parameters acquired by at least one sensor arranged on a terminal can be acquired, and terminal data corresponding to a target video during recording can be determined according to the parameters, illustratively, angular velocity information of the terminal acquired by a gyroscope on the terminal equipment is acquired, the motion attitude of the terminal is determined according to the angular velocity information, and the motion speed, the motion intensity and the like of the terminal equipment are determined according to data acquired by acceleration sensing; in the compiling step, user data is recorded, for example, various special effects added by a user are recorded, and detail information of each special effect is obtained correspondingly, such as the complexity of each special effect, wherein the special effects comprise 'burr', 'illusion', 'neon', and the like.
And S120, when the target video is synthesized, adjusting the integrated code rate of the target video according to the terminal data and/or the user data.
In this embodiment, transcoding the video when synthesizing the target video includes performing corresponding processing on the shot video according to the user data, and illustratively, if the user adds at least one special effect in the compiling link, the special effect is superimposed on the video shot in the video shooting link to obtain the target video. Then, the code rate of the target video after the integration is adjusted according to the terminal data and/or the user data, when the specific implementation is realized, the code rate can be adjusted according to the following steps:
and S121, determining a first code rate correction value according to the terminal data, and/or determining a second code rate correction value according to the user data.
When a video is shot, if a user drives a terminal to do various actions, determining a terminal motion type according to the obtained terminal data, and determining a corresponding first code rate correction value according to the terminal motion type. The motion intensity and the complexity corresponding to each motion type are different, so that the first code rate correction values corresponding to different motion types are different. Specifically, the first code rate correction values corresponding to different motion types may be set in advance, or may be learned according to a machine learning method, so as to obtain the optimal code rate correction values corresponding to different motion types.
In the compiling link, if the user processes the shot video, determining a second code rate correction value according to the obtained user data, and exemplarily, if the user adds a special effect to the shot video in the compiling link, determining the second code rate correction value according to the complexity level corresponding to the added special effect. Since each special effect has different complexity, different complexity levels are divided in advance based on the complexity of each special effect and stored in a data packet corresponding to the special effect, and illustratively, the special effect is divided into A, B, C levels which are reduced in sequence. And the second code rate correction values corresponding to the special effects of the same grade are the same. Of course, the optimal code rate correction values corresponding to the complexity levels of different special effects may also be determined according to a machine learning method.
And S122, determining a target code rate correction value according to the first code rate correction value and/or the second code rate correction value.
In this step, if the video is recorded, only the terminal data is obtained, and the user does not process the video, the first code rate correction value is the target code rate correction value; if the terminal does not perform any action during video recording, only the user processes the shot video in the compiling link, and the second code rate correction value determined according to the user data is the target code rate correction value; in addition, when the terminal operates during video recording and the user processes the shot video, the target bitrate correction value is preferably a result of weighted summation of the first bitrate correction value and the second bitrate correction value. Illustratively, if the motion type determined according to the terminal data is a jerk, the corresponding first code rate correction value is 2Mb/s, the special effects added by the user are "burr" and "illusion", and the corresponding second code rate correction values are 2.5Mb/s and 3.5Mb/s, respectively, then the target code rate correction value is 8 Mb/s. Further, in order to ensure the accuracy of the target code rate correction value, the weighting coefficients corresponding to the first code rate correction value and the second code rate correction value may be determined according to an empirical value or other related algorithms. For example, the first rate correction value M corresponds to the weighting factor a, and the second rate correction value N corresponds to the weighting factor b, so that the target rate correction value P is a × M + b × N.
And S123, adjusting the code rate of the synthesized target video according to the target code rate correction value. The target video is recorded at the maximum code rate allowed by the terminal system when the target video is recorded, so that the target video code rate can be adjusted only by subtracting the target code rate correction value from the maximum code rate. Illustratively, the maximum code rate is 12Mb/s, the target code rate is corrected by 8Mb/s, and the adjusted target video code rate is 4 Mb/s.
For the video with the adjusted code rate, the data volume of the video file is reduced, so that the video file can be quickly uploaded to a server, and limit compression and video distribution can be conveniently carried out on the server.
According to the method and the device, the terminal data and the user data in the video recording process are recorded, and the original code rate during video recording is adjusted according to the terminal data and the user data, so that the data volume of the recorded video file is effectively reduced under the condition that the recording definition is ensured, and the transmission of the video file is facilitated.
Referring to fig. 2, a flowchart of a video bitrate adjustment method provided in an embodiment of the present disclosure is shown, where the embodiment is further optimized based on the foregoing embodiment. As shown in fig. 2, the method includes:
s210, acquiring data corresponding to the target video during recording, wherein the data comprises terminal data and/or user data.
And S220, when the target video is synthesized, adjusting the integrated code rate of the target video according to the terminal data and/or the user data.
And S230, if the user name, the terminal model and the terminal data and/or the user data of the target video meet preset specific conditions, compensating the adjusted code rate of the target video according to a set standard corresponding to the specific conditions.
In the embodiment of the disclosure, for some people who have special requirements on the recorded video, such as a netpage or various anchor broadcasters, the people usually use a professional video shooting device when recording the video, and it is undesirable to reduce the definition of the recorded video due to the reduction of the size of the video file by modifying the code rate, so for this special situation, after the adjustment of the code rate of the target video is completed, the code rate of the adjusted target video needs to be compensated.
Illustratively, whether a user is a main broadcasting or a network red is judged according to a user name of a target video, whether a terminal is a professional video shooting device is determined according to a terminal model, and meanwhile, if the terminal data and/or the user data are judged to meet preset specific conditions, the adjusted code rate of the target video is compensated according to a set standard corresponding to the specific conditions. For example, the adjusted target video code rate is 4Mb/s, the compensation value is 3Mb/s, the code rate of the compensated target video is 7Mb/s, the requirement of the network red or the anchor on the definition of the recorded video is met, and meanwhile, the transmission speed of the target video is ensured.
The embodiment of the disclosure is directed to the situation that a video is recorded by professional equipment in a network red or a main broadcast, and if the terminal model, the terminal data and/or the user data meet preset specific conditions, the adjusted code rate of the target video is compensated according to the set standard corresponding to the specific conditions, so that the definition of the recorded video is ensured, and the data volume of the recorded video file is reduced, thereby facilitating the transmission of the video file.
Referring to fig. 3, a schematic structural diagram of a video bitrate adjustment apparatus provided in an embodiment of the present disclosure is shown, where the embodiment is applicable to a situation that data size of a video is effectively reduced on the premise that video quality is guaranteed. As shown in fig. 3, the video bitrate adjusting apparatus includes:
an obtaining module 310, configured to obtain data corresponding to a target video during recording, where the data includes terminal data and/or user data;
and a code rate adjustment module 320, configured to adjust the integrated code rate of the target video according to the terminal data and/or the user data when synthesizing the target video.
In the embodiment of the present disclosure, the code rate adjustment module 320 adjusts the original code rate when the target video is synthesized according to the terminal data and/or the user data recorded by the acquisition module 310 during the video recording process, so that the data volume of the recorded video file is effectively reduced while the recording definition is ensured, so as to facilitate transmission of the video file.
Optionally, the terminal data includes a motion state parameter of the terminal, and the user data includes data selected by the user when the video is processed.
Optionally, the apparatus further comprises:
and the recording module is used for responding to the triggering operation of the user on the video shooting button on the current terminal interface and recording the video according to the preset code rate.
Optionally, the obtaining module is further configured to:
acquiring parameters acquired by at least one sensor arranged on a terminal;
and determining the corresponding terminal data of the target video during recording according to the parameters.
Optionally, the code rate adjusting module includes:
a first determining unit, configured to determine a first code rate correction value according to the terminal data, and/or determine a second code rate correction value according to the user data;
a second determining unit, configured to determine a target code rate correction value according to the first code rate correction value and/or the second code rate correction value;
and the adjusting unit is used for adjusting the code rate of the synthesized target video according to the target code rate correction value.
Optionally, the target code rate correction value is determined by performing weighted summation on the first code rate correction value and the second code rate correction value.
Optionally, the apparatus further comprises:
and the compensation module is used for compensating the adjusted code rate of the target video.
Optionally, the compensation module is specifically configured to:
and if the user name, the terminal model, the terminal data and/or the user data of the target video meet preset specific conditions, compensating the adjusted code rate of the target video according to a set standard corresponding to the specific conditions.
The video code rate adjusting device provided by the embodiment of the disclosure can execute the video code rate adjusting method provided by any embodiment of the disclosure, and has corresponding functional modules and beneficial effects of the executing method.
Referring now to fig. 4, a block diagram of a terminal 400 suitable for use in implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The terminal shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 4, the terminal 400 may include a processing device (e.g., a central processing unit, a graphics processor, etc.) 401, which may perform various suitable actions and processes according to a program stored in a Read Only Memory (ROM)402 or a program loaded from a storage device 408 into a Random Access Memory (RAM)403, for example, implement a video bitrate adjustment method provided by the embodiment of the present disclosure, including:
acquiring terminal motion data corresponding to a target video during recording and special effect data added by a user;
and when the target video is synthesized, adjusting the code rate of the synthesized target video according to the terminal motion data and the special effect data.
In the RAM 403, various programs and data necessary for the operation of the terminal 400 are also stored. The processing device 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
Generally, the following devices may be connected to the I/O interface 405: input devices 406 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 407 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 408 including, for example, tape, hard disk, etc.; and a communication device 409; further, an image pickup device 410 for video shooting, such as a camera, is also included. The communication means 409 may allow the terminal 400 to communicate with other devices, either wirelessly or by wire, for exchanging data. While fig. 4 illustrates a terminal 400 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication device 409, or from the storage device 408, or from the ROM 402. The computer program performs the above-described functions defined in the methods of the embodiments of the present disclosure when executed by the processing device 401.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having 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 portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the terminal; or may exist separately and not be assembled into the terminal.
The computer readable medium carries one or more programs which, when executed by the terminal, cause the terminal to: acquiring data corresponding to a target video during recording, wherein the data comprises terminal data and/or user data; and when the target video is synthesized, adjusting the integrated code rate of the target video according to the terminal data and/or the user data.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules or units described in the embodiments of the present disclosure may be implemented by software or hardware. The name of a module or unit does not in some cases constitute a limitation of the module or unit itself, and for example, the acquisition module may also be described as a "module that acquires data corresponding to a target video at the time of recording".
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.

Claims (10)

1. A method for adjusting video bitrate, comprising:
acquiring data corresponding to a target video during recording, wherein the data comprises terminal data and user data;
when the target video is synthesized, adjusting the code rate of the integrated target video according to the terminal data and the user data;
the terminal data comprises motion state parameters of the terminal, and the user data comprises data selected by a user when the video is processed; the terminal is a terminal for processing video; the processing includes adding information in the video;
the code rate of the target video modulated and integrated according to the terminal data and the user data includes:
determining a first code rate modification value according to the terminal data and a second code rate modification value according to the user data;
determining a target code rate correction value according to the first code rate correction value and the second code rate correction value;
adjusting the code rate of the synthesized target video according to the target code rate correction value; and adjusting the code rate of the synthesized target video to be smaller than that of the target video before synthesis.
2. The method of claim 1, wherein before the obtaining data corresponding to the target video at the time of recording, the method further comprises:
and responding to the triggering operation of a user on a video shooting button on the current terminal interface, and recording the video according to the preset code rate.
3. The method of claim 1, wherein obtaining terminal data corresponding to the target video during recording comprises:
acquiring parameters acquired by at least one sensor arranged on a terminal;
and determining the corresponding terminal data of the target video during recording according to the parameters.
4. The method of claim 1, wherein the target rate conection value is determined by a weighted sum of the first rate conection value and the second rate conection value.
5. The method of claim 1, wherein after the bitrate of the target video is adjusted according to terminal data and user data, the method further comprises:
and compensating the adjusted code rate of the target video.
6. The method of claim 5, wherein compensating for the adjusted bitrate of the target video comprises:
and if the user name, the terminal model, the terminal data and the user data of the target video meet preset specific conditions, compensating the adjusted code rate of the target video according to a set standard corresponding to the specific conditions.
7. An apparatus for adjusting video bitrate, comprising:
the acquisition module is used for acquiring corresponding data of a target video during recording, wherein the data comprises terminal data and user data;
a code rate adjusting module, configured to adjust the integrated code rate of the target video according to the terminal data and the user data when synthesizing the target video;
the terminal data comprises motion state parameters of the terminal, and the user data comprises data selected by a user when the video is processed; the terminal is a terminal for processing video; the processing includes adding information in the video;
the code rate of the target video modulated and integrated according to the terminal data and the user data includes:
determining a first code rate modification value according to the terminal data and a second code rate modification value according to the user data;
determining a target code rate correction value according to the first code rate correction value and the second code rate correction value;
adjusting the code rate of the synthesized target video according to the target code rate correction value;
and adjusting the code rate of the synthesized target video to be smaller than that of the target video before synthesis.
8. The apparatus of claim 7, further comprising:
and the recording module is used for responding to the triggering operation of the user on the video shooting button on the current terminal interface and recording the video according to the preset code rate.
9. A terminal, characterized in that the terminal comprises:
one or more processors;
a memory for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the video bitrate adjustment method of any one of claims 1-6.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the video bitrate adjustment method according to any one of claims 1 to 6.
CN201811161595.3A 2018-09-30 2018-09-30 Video code rate adjusting method, device, terminal and storage medium Active CN110971943B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201811161595.3A CN110971943B (en) 2018-09-30 2018-09-30 Video code rate adjusting method, device, terminal and storage medium
PCT/CN2019/073195 WO2020062743A1 (en) 2018-09-30 2019-01-25 Video code rate adjustment method and apparatus, terminal, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811161595.3A CN110971943B (en) 2018-09-30 2018-09-30 Video code rate adjusting method, device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN110971943A CN110971943A (en) 2020-04-07
CN110971943B true CN110971943B (en) 2021-10-15

Family

ID=69950241

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811161595.3A Active CN110971943B (en) 2018-09-30 2018-09-30 Video code rate adjusting method, device, terminal and storage medium

Country Status (2)

Country Link
CN (1) CN110971943B (en)
WO (1) WO2020062743A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112468807B (en) * 2020-11-16 2024-07-02 北京达佳互联信息技术有限公司 Coding type determining method and device
CN114125277B (en) * 2021-11-12 2024-02-09 北京达佳互联信息技术有限公司 Method and equipment for controlling video shooting special effects of application

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101047845A (en) * 2006-03-29 2007-10-03 腾讯科技(深圳)有限公司 Device and method for regulating vedio communication data code ratio
CN101945287A (en) * 2010-10-14 2011-01-12 杭州华三通信技术有限公司 ROI encoding method and system thereof
CN102413307A (en) * 2011-11-30 2012-04-11 苏州希图视鼎微电子有限公司 Self-adaptive code rate adjustment method and device for television video chat

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020191951A1 (en) * 2001-06-15 2002-12-19 Hitachi, Ltd. Image recording apparatus
US7369159B2 (en) * 2004-03-17 2008-05-06 Rgb Systems, Inc. Method and apparatus for dynamically testing video equipment
US20110292997A1 (en) * 2009-11-06 2011-12-01 Qualcomm Incorporated Control of video encoding based on image capture parameters
US8768648B2 (en) * 2010-09-30 2014-07-01 Fitbit, Inc. Selection of display power mode based on sensor data
US9568985B2 (en) * 2012-11-23 2017-02-14 Mediatek Inc. Data processing apparatus with adaptive compression algorithm selection based on visibility of compression artifacts for data communication over camera interface and related data processing method
CN106358004B (en) * 2015-07-14 2019-08-16 腾讯科技(深圳)有限公司 Video call method and device
CN108304753B (en) * 2017-01-24 2020-05-19 腾讯科技(深圳)有限公司 Video communication method and video communication device
CN107071421B (en) * 2017-05-23 2019-11-22 北京理工大学 A kind of method for video coding of combination video stabilization

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101047845A (en) * 2006-03-29 2007-10-03 腾讯科技(深圳)有限公司 Device and method for regulating vedio communication data code ratio
CN101945287A (en) * 2010-10-14 2011-01-12 杭州华三通信技术有限公司 ROI encoding method and system thereof
CN102413307A (en) * 2011-11-30 2012-04-11 苏州希图视鼎微电子有限公司 Self-adaptive code rate adjustment method and device for television video chat

Also Published As

Publication number Publication date
WO2020062743A1 (en) 2020-04-02
CN110971943A (en) 2020-04-07

Similar Documents

Publication Publication Date Title
CN110890945B (en) Data transmission method, device, terminal and storage medium
CN111641828B (en) Video processing method and device, storage medium and electronic equipment
CN117063461A (en) Image processing method and electronic equipment
CN111225209B (en) Video data plug flow method, device, terminal and storage medium
EP4044578A1 (en) Audio processing method and electronic device
CN112289279B (en) Screen brightness adjusting method and device, storage medium and electronic equipment
WO2021139630A1 (en) Data transmission method, apparatus, data processing system, and storage medium
CN110347875B (en) Video scene classification method and device, mobile terminal and storage medium
GB2589731A (en) Video processing method and apparatus, terminal and medium
CN111741303B (en) Deep video processing method and device, storage medium and electronic equipment
US11822854B2 (en) Automatic volume adjustment method and apparatus, medium, and device
CN114071197A (en) Screen projection data processing method and device
CN111488273A (en) Test verification method, test verification device, storage medium, and electronic apparatus
CN110971943B (en) Video code rate adjusting method, device, terminal and storage medium
EP4346218A1 (en) Audio processing method and apparatus, and electronic device and storage medium
CN114845212A (en) Volume optimization method and device, electronic equipment and readable storage medium
CN111586433B (en) Code rate adjusting method, device, equipment and storage medium
CN112599144A (en) Audio data processing method, audio data processing apparatus, medium, and electronic device
CN113395539B (en) Audio noise reduction method, device, computer readable medium and electronic equipment
CN115460343A (en) Image processing method, apparatus and storage medium
CN111131019B (en) Multiplexing method and terminal for multiple HTTP channels
CN115567831A (en) Method and device for improving tone quality of loudspeaker
CN113099101A (en) Camera shooting parameter adjusting method and device and electronic equipment
CN110266915B (en) Method and device for controlling video acquisition content on android device
CN111381797B (en) Processing method and device for realizing KTV function on client and user equipment

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