CN111107393A - Video transcoding method, transcoder, electronic device and storage medium - Google Patents

Video transcoding method, transcoder, electronic device and storage medium Download PDF

Info

Publication number
CN111107393A
CN111107393A CN201911206049.1A CN201911206049A CN111107393A CN 111107393 A CN111107393 A CN 111107393A CN 201911206049 A CN201911206049 A CN 201911206049A CN 111107393 A CN111107393 A CN 111107393A
Authority
CN
China
Prior art keywords
data packet
video data
coding
resolution
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.)
Pending
Application number
CN201911206049.1A
Other languages
Chinese (zh)
Inventor
彭宇龙
韩杰
靳玉琼
王艳辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Visionvera Information Technology Co Ltd
Original Assignee
Visionvera Information 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 Visionvera Information Technology Co Ltd filed Critical Visionvera Information Technology Co Ltd
Priority to CN201911206049.1A priority Critical patent/CN111107393A/en
Publication of CN111107393A publication Critical patent/CN111107393A/en
Pending legal-status Critical Current

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/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, manipulating MPEG-4 scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • H04N21/234363Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements by altering the spatial resolution, e.g. for clients with a lower screen resolution
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/14Systems for two-way working
    • H04N7/141Systems for two-way working between two video terminals, e.g. videophone
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/14Systems for two-way working
    • H04N7/15Conference systems

Abstract

The invention provides a video transcoding method, a transcoder, an electronic device and a storage medium. The video transcoding method comprises the following steps: acquiring a video data packet sent by first equipment, and analyzing to obtain first coding and decoding information corresponding to the video data packet and an identifier of a target video networking terminal; acquiring second coding and decoding information supported by the target video network terminal according to the identifier of the target video network terminal; when the first coding and decoding information and the second coding and decoding information are incompatible, transcoding the video data packet according to the second coding and decoding information; transmitting the transcoded video data packet to a second device; the first equipment is a source video network terminal, and the second equipment is a video network server; or the first device is a video network server, and the second device is a target video network terminal. The invention does not need to upgrade the video networking terminal, can cover various resolutions and coding formats, can process the video data packets of a plurality of paths of video networking terminals, and has simpler and more convenient processing process and lower cost.

Description

Video transcoding method, transcoder, electronic device and storage medium
Technical Field
The present invention relates to the field of video processing technologies, and in particular, to a video transcoding method, a transcoder, an electronic device, and a storage medium.
Background
With the rapid development of video services, various video-based two-way communication services have emerged. Such as video conferencing, videotelephony, etc. With the development of video processing technology, videos come in various resolutions, such as 720P, 1080P, 4K, 8K, and the like. The increase in resolution is accompanied by an increasing amount of data in the video, which is typically encoded prior to transmission to save bandwidth. There are also various encoding formats for Video, such as h.264, h.265, AVS (Audio Video coding standard), and the like.
Due to the multiple resolutions and coding formats of video, some terminals may not be able to support certain resolutions or coding formats. In the prior art, a terminal upgrading mode is generally adopted, new hardware generally needs to be replaced, the processing process is complex, and if the new hardware needs to cover various resolutions and coding formats, expensive chips are needed for supporting, so that the cost is greatly increased.
Disclosure of Invention
In view of the above, embodiments of the present invention are proposed in order to provide a video transcoding method, a transcoder, an electronic device and a storage medium that overcome the above problems or at least partially solve the above problems.
In a first aspect, the embodiment of the invention discloses a video transcoding method, which is applied to a multi-channel transcoder, wherein the multi-channel transcoder is respectively in communication connection with a video networking server and a plurality of video networking terminals; the method comprises the following steps:
acquiring a video data packet sent by first equipment, and analyzing to obtain first coding and decoding information corresponding to the video data packet and an identifier of a target video networking terminal;
acquiring second coding and decoding information supported by the target video network terminal according to the identifier of the target video network terminal;
when the first coding and decoding information and the second coding and decoding information are incompatible, transcoding the video data packet according to the second coding and decoding information;
transmitting the transcoded video data packet to a second device;
the first equipment is a source video network terminal, and the second equipment is a video network server; or, the first device is a video network server, and the second device is a target video network terminal.
Optionally, the multi-channel transcoder is in communication connection with a background management end, the first codec information includes a first encoding format and a first resolution, and the second codec information includes a second encoding format and a second resolution; the transcoding the video data packet according to the second encoding and decoding information includes: converting the encoding format of the video data packet from the first encoding format to the second encoding format; transmitting the second resolution to the background management end; and receiving response information returned by the background management end aiming at the second resolution, and transcoding the resolution of the video data packet according to the response information.
Optionally, the transcoding the resolution of the video data packet according to the response information includes: when the response information is a transcoding allowing instruction, converting the resolution of the video data packet from the first resolution to the second resolution; when the response information is the target resolution, determining whether the response information supports the target resolution; the target resolution is the resolution supported by a display of the target video network terminal; when the target resolution is supported by the video data packet, converting the resolution of the video data packet from the first resolution to the target resolution; and when the target resolution is not supported by the video data packet, keeping the resolution of the video data packet as the first resolution.
Optionally, the multi-channel transcoder includes at least two codec chips; the method further comprises the following steps: and respectively acquiring the load information of each coding and decoding chip according to a preset time interval.
Optionally, before the transcoding the video data packet according to the second encoding and decoding information, the method further includes: determining whether the current coding and decoding chip is in need of transcoding the video data packet or not according to load information of the current coding and decoding chip; the current coding and decoding chip is used for obtaining the video data packet sent by the first equipment; when the current coding and decoding chip does not meet the requirement of transcoding the video data packet, selecting a target coding and decoding chip meeting the requirement of transcoding the video data packet from other coding and decoding chips according to the load information of other coding and decoding chips; the transcoding the video data packet according to the second encoding and decoding information includes: and transcoding the video data packet by using the target coding and decoding chip according to the second coding and decoding information.
In a second aspect, the embodiment of the invention discloses a transcoder, which is a multi-channel transcoder, and the multi-channel transcoder is respectively in communication connection with a video network server and a plurality of video network terminals; the multi-way transcoder includes:
the analysis module is used for acquiring a video data packet sent by first equipment, and analyzing to obtain first coding and decoding information corresponding to the video data packet and an identifier of a target video network terminal;
the first acquisition module is used for acquiring second coding and decoding information supported by the target video network terminal according to the identifier of the target video network terminal;
the transcoding module is used for transcoding the video data packet according to the second coding and decoding information when the first coding and decoding information and the second coding and decoding information are incompatible;
the transmission module is used for transmitting the transcoded video data packet to the second equipment;
the first equipment is a source video network terminal, and the second equipment is a video network server; or, the first device is a video network server, and the second device is a target video network terminal.
Optionally, the multi-channel transcoder is in communication connection with a background management end, the first codec information includes a first encoding format and a first resolution, and the second codec information includes a second encoding format and a second resolution; the transcoding module comprises: a first transcoding unit, configured to convert an encoding format of the video data packet from the first encoding format to the second encoding format; the resolution transmission unit is used for transmitting the second resolution to the background management end; and the second transcoding unit is used for receiving response information returned by the background management end aiming at the second resolution, and transcoding the resolution of the video data packet according to the response information.
Optionally, the second transcoding unit includes: a first conversion subunit, configured to convert, when the response information is a transcoding permission instruction, a resolution of the video data packet from the first resolution to the second resolution; a determining subunit, configured to determine whether the response information supports the target resolution when the response information is the target resolution; the target resolution is the resolution supported by a display of the target video network terminal; the second conversion subunit is used for converting the resolution of the video data packet from the first resolution to the target resolution when the second conversion subunit supports the target resolution; and when the target resolution is not supported by the video data packet, keeping the resolution of the video data packet as the first resolution.
Optionally, the multi-channel transcoder includes at least two codec chips; the multi-way transcoder further comprises: and the second acquisition module is used for acquiring the load information of each coding and decoding chip according to a preset time interval.
Optionally, the multi-way transcoder further comprises: the determining module is used for determining whether the current coding and decoding chip is used for transcoding the video data packet according to the load information of the current coding and decoding chip; the current coding and decoding chip is used for obtaining the video data packet sent by the first equipment; the selecting module is used for selecting a target coding and decoding chip which meets the transcoding requirement of the video data packet from other coding and decoding chips according to the load information of other coding and decoding chips when the current coding and decoding chip does not meet the transcoding requirement of the video data packet; and the transcoding module is specifically used for transcoding the video data packet by using the target coding and decoding chip according to the second coding and decoding information.
In a third aspect, an embodiment of the present invention discloses an electronic device, including: one or more processors; and one or more machine-readable media having instructions stored thereon; the instructions, when executed by the one or more processors, cause the processors to perform a method of video transcoding as any one of the above.
In a fourth aspect, an embodiment of the present invention discloses a computer-readable storage medium, on which a computer program is stored, which when executed by a processor, implements a video transcoding method as described in any one of the above.
In the embodiment of the invention, a multi-channel transcoder is arranged, and the multi-channel transcoder is respectively in communication connection with a video networking server and a plurality of video networking terminals. The method comprises the steps that a multi-channel transcoder acquires a video data packet sent by first equipment, and analyzes the video data packet to obtain first coding and decoding information corresponding to the video data packet and an identifier of a target video networking terminal; acquiring second coding and decoding information supported by the target video network terminal according to the identifier of the target video network terminal; when the first coding and decoding information and the second coding and decoding information are incompatible, transcoding the video data packet according to the second coding and decoding information; transmitting the transcoded video data packet to a second device; the first equipment is a source video network terminal, and the second equipment is a video network server; or, the first device is a video network server, and the second device is a target video network terminal. Therefore, in the embodiment of the invention, before the video data packet sent by the source video networking terminal is transmitted to the target video networking terminal, the multi-channel transcoder transcodes the video data packet according to the coding and decoding information of the target video networking terminal to obtain the video data packet which can be processed by the target video networking terminal and transmits the video data packet to the target video networking terminal. Therefore, the video networking terminal does not need to be upgraded, the multi-channel transcoder can cover various resolutions and coding formats, the video data packets of the multi-channel video networking terminal can be processed, the processing process is simpler and more convenient, and the cost is lower.
Drawings
Fig. 1 is a flowchart illustrating steps of a video transcoding method according to a first embodiment of the present invention.
Fig. 2 is a flowchart illustrating steps of a video transcoding method according to a second embodiment of the present invention.
Fig. 3 is a schematic diagram of a device connection according to a third embodiment of the present invention.
Fig. 4 is a structural diagram of a data exchange board according to a third embodiment of the present invention.
Fig. 5 is a structural diagram of an acquisition board according to a third embodiment of the present invention.
Fig. 6 is a schematic flowchart of video transcoding according to a third embodiment of the present invention.
Fig. 7 is a block diagram of a transcoder according to a fourth embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
In the video network, data transmitted between two video network terminals are forwarded through a video network server. The embodiment of the invention is provided with the multi-channel transcoder, which is respectively in communication connection with the video networking server and the plurality of video networking terminals and is used for judging whether transcoding is needed or not according to the video data packets transmitted between the video networking terminals and the video networking servers and carrying out transcoding operation when transcoding is needed. Therefore, the video network terminal does not need to be upgraded, the processing process is simplified, and the cost is reduced. The video network terminal can be a set-top box, a protocol gateway, a streaming media gateway, and the like.
Hereinafter, a video transcoding method in the embodiment of the present invention is described in detail.
Example one
Referring to fig. 1, a flowchart illustrating steps of a video transcoding method according to a first embodiment of the present invention is shown. The video transcoding method provided by the embodiment of the invention can be applied to a multi-channel transcoder.
The video transcoding method of the embodiment of the invention can comprise the following steps:
step 101, obtaining a video data packet sent by a first device, and analyzing to obtain first coding and decoding information corresponding to the video data packet and an identifier of a target video network terminal.
And the video data packet can be packaged with information such as coding and decoding information corresponding to the video data packet and the identification of the target video network terminal. After the multi-channel transcoder acquires the video data packet sent by the first device, the multi-channel transcoder analyzes the video data packet to obtain the coding and decoding information corresponding to the video data packet and the identification of the target video networking terminal. In the embodiment of the present invention, the coding and decoding information corresponding to the video data packet sent by the first device is referred to as first coding and decoding information.
And 102, acquiring second coding and decoding information supported by the target video network terminal according to the identifier of the target video network terminal.
The multi-channel transcoder can pre-store the corresponding relation between the identification of each video network terminal and the supported coding and decoding information. And the multi-channel transcoder can acquire the coding and decoding information supported by the target video network terminal by inquiring the corresponding relation according to the identifier of the target video network terminal obtained by analysis. In the embodiment of the invention, the coding and decoding information supported by the target video network terminal is called as second coding and decoding information.
And 103, when the first coding and decoding information and the second coding and decoding information are incompatible, transcoding the video data packet according to the second coding and decoding information.
And step 104, transmitting the transcoded video data packet to a second device.
And after obtaining the first coding and decoding information and the second coding and decoding information, the multi-channel transcoder determines whether the first coding and decoding information and the second coding and decoding information are compatible. The first codec information and the second codec information may be compatible with each other, and whether the first codec information and the second codec information are the same may be referred to as "whether the first codec information and the second codec information are the same.
And if the first coding and decoding information and the second coding and decoding information are incompatible, transcoding the video data packet according to the second coding and decoding information, and transmitting the transcoded video data packet to the second equipment. If the first coding and decoding information is compatible with the second coding and decoding information, the multi-channel transcoder does not transcode the video data packet, and data forwarding and transparent transmission are carried out on the video data packet, namely the multi-channel transcoder transmits the video data packet sent by the first equipment to the second equipment.
In practical application, when a source video network terminal sends a video data packet to a target video network terminal, the video data packet is forwarded through a video network server. If a multi-channel transcoder is connected between the source video network terminal and the video network server, the multi-channel transcoder processes a video data packet sent to the video network server by the source video network terminal. If a multi-channel transcoder is connected between the video networking server and the target video networking terminal, the multi-channel transcoder processes a video data packet sent to the target video networking terminal by the video networking server. Therefore, in the embodiment of the invention, the first device is a source video network terminal, and the second device is a video network server; or the first device is a video network server, and the second device is a target video network terminal.
For example, the source video network terminal and the target video network terminal are both connected with the multi-channel transcoder.
When the source video network terminal sends a video data packet to the video network server, the first device is the source video network terminal, and the second device is the video network server. And the multi-channel transcoder connected with the source video networking terminal acquires a video data packet sent by the source video networking terminal, and analyzes first coding and decoding information and the identifier of the target video networking terminal from the video data packet, wherein the first coding and decoding information is coding and decoding information adopted when the source video networking terminal codes. And acquiring second coding and decoding information supported by the target video network terminal according to the identifier of the target video network terminal. And when the first coding and decoding information and the second coding and decoding information are incompatible, transcoding the video data packet according to the second coding and decoding information, and transmitting the transcoded video data packet to the video networking server. And when the first coding and decoding information is compatible with the second coding and decoding information, transcoding is not carried out, and the video data packet sent by the source video network terminal is transmitted to the video network server.
When the video networking server sends a video data packet to the target video networking terminal, the first equipment is the video networking server, and the second equipment is the target video networking terminal. And the multi-channel transcoder connected with the target video network terminal acquires a video data packet sent by the video network server, and analyzes the first coding and decoding information and the identifier of the target video network terminal from the video data packet. If the multi-channel transcoder connected with the source video networking terminal transcodes the video data packet sent by the source video networking terminal, the first coding and decoding information is the coding and decoding information after the multi-channel transcoder connected with the source video networking terminal transcodes the video data packet; if the multi-channel transcoder connected with the source video network terminal does not transcode the video data packet sent by the source video network terminal, the first codec information is the codec information adopted by the source video network terminal during encoding. And acquiring second coding and decoding information supported by the target video network terminal according to the identifier of the target video network terminal. Because the multi-channel transcoder connected with the source video network terminal already performs the compatibility judgment and transcoding operation once, the multi-channel transcoder connected with the target video network terminal judges that the first coding and decoding information is compatible with the second coding and decoding information, and transmits the video data packet sent by the video network server to the target video network terminal without transcoding.
For example, the source video network terminal is connected with the multi-channel transcoder, and the target video network terminal is not connected with the multi-channel transcoder.
When the source video network terminal sends a video data packet to the video network server, the first device is the source video network terminal, and the second device is the video network server. And the multi-channel transcoder connected with the source video networking terminal acquires a video data packet sent by the source video networking terminal, and analyzes first coding and decoding information and the identifier of the target video networking terminal from the video data packet, wherein the first coding and decoding information is coding and decoding information adopted when the source video networking terminal codes. And acquiring second coding and decoding information supported by the target video network terminal according to the identifier of the target video network terminal. And when the first coding and decoding information and the second coding and decoding information are incompatible, transcoding the video data packet according to the second coding and decoding information, and transmitting the transcoded video data packet to the video networking server. And when the first coding and decoding information is compatible with the second coding and decoding information, transcoding is not carried out, and the video data packet sent by the source video network terminal is transmitted to the video network server. When the video networking server sends the video data packet to the target video networking terminal, the video networking server can directly forward the video data packet sent by the multi-channel transcoder connected with the source video networking terminal to the target video networking terminal because the target video networking terminal is not connected with the multi-channel transcoder.
For example, the source video network terminal is not connected with the multi-channel transcoder, and the target video network terminal is connected with the multi-channel transcoder.
When the source video network terminal sends the video data packet to the video network server, the source video network terminal can directly send the video data packet to the video network server because the source video network terminal is not connected with the multi-channel transcoder. When the video networking server sends a video data packet to the target video networking terminal, the first equipment is the video networking server, and the second equipment is the target video networking terminal. And the multi-channel transcoder connected with the target video network terminal acquires a video data packet sent by the video network server, and analyzes first coding and decoding information and the identifier of the target video network terminal from the video data packet, wherein the first coding and decoding information is coding and decoding information adopted when the source video network terminal codes. And acquiring second coding and decoding information supported by the target video network terminal according to the identifier of the target video network terminal. And when the first coding and decoding information and the second coding and decoding information are incompatible, transcoding the video data packet according to the second coding and decoding information, and transmitting the transcoded video data packet to a target video network terminal. And when the first coding and decoding information is compatible with the second coding and decoding information, transcoding is not carried out, and the video data packet sent by the video networking server is transmitted to the target video networking terminal.
In the embodiment of the invention, before the video data packet sent by the source video networking terminal is transmitted to the target video networking terminal, the multi-channel transcoder transcodes the video data packet according to the coding and decoding information of the target video networking terminal to obtain the video data packet which can be processed by the target video networking terminal and transmits the video data packet to the target video networking terminal. Therefore, the video networking terminal does not need to be upgraded, the multi-channel transcoder can cover various resolutions and coding formats, the video data packets of the multi-channel video networking terminal can be processed, the processing process is simpler and more convenient, and the cost is lower.
Example two
Referring to fig. 2, a flowchart illustrating steps of a video transcoding method according to a second embodiment of the present invention is shown.
The video transcoding method of the embodiment of the invention can comprise the following steps:
step 201, obtaining a video data packet sent by a first device, and analyzing to obtain first encoding and decoding information corresponding to the video data packet and an identifier of a target video network terminal.
The first codec information includes a first encoding format and a first resolution, and the first resolution is a resolution at the time of encoding and decoding. The identifier of the target video network terminal may be information capable of uniquely identifying the video network terminal, such as a terminal number of the target video network terminal, a Media Access Control (MAC) address, and the like.
Step 202, obtaining the target video network terminal supported according to the identification of the target video network terminal
And second coding and decoding information.
The second encoding and decoding information comprises a second encoding format and a second resolution, and the second resolution is the resolution of the target video network terminal during encoding and decoding.
And 203, respectively acquiring the load information of each coding and decoding chip according to a preset time interval.
In the embodiment of the invention, the multi-channel transcoder comprises at least two coding and decoding chips, and the coding and decoding chips can be used for transcoding the video data packet.
The multi-channel transcoder can acquire the load information of each codec chip according to a preset time interval. The obtaining here may be actively obtained from each codec chip according to a preset time interval, or actively reported according to a preset time interval for each codec chip. The codec chip includes multiple codec resources, and the load information of the codec chip may refer to the number of paths of the codec resources occupied in the codec chip.
For the specific value of the preset time interval, a person skilled in the art may set any suitable value according to practical experience, and the embodiment of the present invention is not limited thereto.
Step 204, determining whether the first coding and decoding information and the second coding and decoding information are compatible. If not, go to step 205; if yes, go to step 210.
After the first coding and decoding information and the second coding and decoding information are obtained, whether the first coding and decoding information and the second coding and decoding information are compatible or not is judged.
Step 205, when the first encoding and decoding information and the second encoding and decoding information are incompatible, determining whether the current encoding and decoding chip is in a transcoding requirement for the video data packet according to load information of the current encoding and decoding chip. If not, go to step 206; if so, go to step 207.
In the embodiment of the invention, the current coding and decoding chip is a coding and decoding chip which acquires the video data packet sent by the first device, and analyzes the video data packet to obtain the first coding and decoding information corresponding to the video data packet and the identifier of the target video network terminal.
When it is determined in step 204 that the first encoding and decoding information and the second encoding and decoding information are incompatible, the multi-channel transcoder determines whether the current encoding and decoding chip is in transcoding satisfaction with the video data packet according to the load information of the current encoding and decoding chip.
In the implementation, the number of encoding and decoding resources required for transcoding the video data packet is obtained. And determining the path number of idle coding and decoding resources in the current coding and decoding chip according to the load information of the current coding and decoding chip, namely the path number of the coding and decoding resources occupied in the current coding and decoding chip. Specifically, the total number of the encoding and decoding resources in the current encoding and decoding chip is calculated to subtract the number of the occupied encoding and decoding resources, and then the number of the idle encoding and decoding resources can be obtained. And judging whether the number of paths of the idle coding and decoding resources in the current coding and decoding chip is greater than or equal to the number of paths of the coding and decoding resources required for transcoding the video data packet. If so, determining that the current coding and decoding chip meets the requirement of transcoding the video data packet; if not, determining that the current coding and decoding chip does not meet the requirement of transcoding the video data packet.
And step 206, when the current coding and decoding chip does not meet the requirement of transcoding the video data packet, selecting a target coding and decoding chip meeting the requirement of transcoding the video data packet from other coding and decoding chips according to the load information of other coding and decoding chips.
In step 205, when it is determined that the current codec chip does not satisfy transcoding of the video data packet, the multi-channel transcoder may select a target codec chip that satisfies transcoding of the video data packet from other codec chips according to load information of the other codec chips.
In implementation, for each other codec chip, the number of paths of the idle codec resources in the other codec chip is determined according to the load information of the other codec chip, that is, the number of paths of the codec resources occupied in the other codec chip. And specifically, the total way number of the coding and decoding resources in the other coding and decoding chips is calculated to subtract the way number of the occupied coding and decoding resources, so that the way number of the idle coding and decoding resources can be obtained. And judging whether the number of paths of the idle coding and decoding resources in the other coding and decoding chips is greater than or equal to the number of paths of the coding and decoding resources required for transcoding the video data packet. If so, determining that the other coding and decoding chips meet the requirement of transcoding the video data packet; if not, determining that the other encoding and decoding chips do not meet the requirement of transcoding the video data packet.
And the multi-channel transcoder selects a target coding and decoding chip which meets the requirement of transcoding the video data packet from other coding and decoding chips. The selecting process may be selecting one connected to the current codec chip, selecting one randomly, or selecting one with the largest number of paths of idle codec resources.
And step 207, transcoding the video data packet by using the target coding and decoding chip according to the second coding and decoding information.
And after a target coding and decoding chip meeting the requirement of transcoding the video data packet is selected, transcoding the video data packet by using the target coding and decoding chip according to the second coding and decoding information.
And 208, when the current coding and decoding chip is used for transcoding the video data packet, transcoding the video data packet by using the current coding and decoding chip according to the second coding and decoding information.
In step 205, when it is determined that the current codec chip is in a condition of transcoding the video data packet, the current codec chip is used to transcode the video data packet according to the second codec information.
In this embodiment of the present invention, the first encoding/decoding information includes a first encoding format and a first resolution, and the second encoding/decoding information includes a second encoding format and a second resolution. For encoding formats, the multi-way transcoder may automatically transcode for an encoding format if the encoding formats are incompatible. Regarding the resolution, since the multi-way transcoder considers whether the resolutions at the time of encoding and decoding are compatible, but does not consider the resolution supported by the display of the target video network terminal at the time of displaying (since the display to which the target video network terminal can be connected is not fixed, it is difficult for the multi-way transcoder to know the resolution supported by the display of the target video network terminal in advance), if the multi-way transcoder transcodes the resolutions directly, it may cause the display of the target video network terminal to be abnormal.
Therefore, in the embodiment of the invention, the multi-channel transcoder is also in communication connection with the background management end, and the background management end can acquire the resolution supported by the display of the target video network terminal, so that whether transcoding is performed or not can be controlled by the background management end aiming at the resolution.
In the above step 207 and step 208, the process of transcoding the video data packet according to the second codec information may include steps a1 to A3:
step a1, converting the encoding format of the video data packet from the first encoding format to the second encoding format.
For the coding format of the video data packet, if the first coding format and the second coding format are not compatible, the multi-channel transcoder converts the coding format of the video data packet from the first coding format to the second coding format.
Step a2, transmitting the second resolution to the backend management end.
Step a3, receiving response information returned by the background management end for the second resolution, and transcoding the resolution of the video data packet according to the response information.
And after receiving the second resolution, the background management terminal inquires whether the display of the target video network terminal supports the second resolution. And if the display of the target video network terminal supports the second resolution, the target video network terminal returns information supporting the second resolution to the background management terminal, and the background management terminal returns a transcoding permission instruction to the multi-channel transcoder. And if the display of the target video network terminal does not support the second resolution, the target video network terminal returns information that the second resolution is not supported to the background management terminal, and the resolution supported by the display of the target video network terminal is returned to the background management terminal, and the background management terminal takes the resolution supported by the display of the target video network terminal as the target resolution and returns the target resolution to the multi-channel transcoder.
And the multi-channel transcoder receives response information returned by the background management end and transcodes the resolution of the video data packet according to the response information. The specific process can comprise the following steps A31-A34:
step a31, when the response information is a transcoding permission instruction, converting the resolution of the video data packet from the first resolution to the second resolution.
Step a32, when the response information is the target resolution, determining whether the response information supports the target resolution.
Step a33, when the target resolution is supported by itself, converting the resolution of the video data packet from the first resolution to the target resolution.
Step a34, when the target resolution is not supported by itself, keeping the resolution of the video data packet at the first resolution.
After receiving the target resolution returned by the background management end, the multi-channel transcoder determines whether the multi-channel transcoder supports the target resolution, namely whether the multi-channel transcoder can convert the first resolution into the target resolution. And when the multi-channel transcoder supports the target resolution, the multi-channel transcoder converts the resolution of the video data packet from the first resolution to the target resolution. When the multi-channel transcoder does not support the target resolution, the resolution of the video data packet is kept unchanged to the first resolution, and under the condition, the target video network terminal can send the video data packet to other transcoders supporting the target resolution for transcoding.
Step 209, transmitting the transcoded video data packet to a second device.
After the multi-channel transcoder transcodes the video data packet in step 207 or step 208, the transcoded video data packet can be transmitted to the second device.
Step 210, when the first codec information and the second codec information are compatible, transmitting the video data packet to a second device.
When it is determined in step 204 that the first encoding/decoding information and the second encoding/decoding information are compatible, the video data packet is transmitted to the second device without transcoding.
In the embodiment of the invention, the video data packet is transcoded by the multi-channel transcoder, the video networking terminal does not need to be upgraded, and the processing process is simple and convenient; by arranging a plurality of coding and decoding chips, the coding and decoding capacity of the multi-channel transcoder can be expanded, coding and decoding resources can be flexibly distributed, the processed data volume can be increased, and a large-data-volume concurrent scene can be processed; the background management end controls the resolution ratio, so that the display of the target video network terminal can be ensured to correctly display the video.
EXAMPLE III
In the embodiment of the invention, the multi-channel transcoder can comprise a data exchange board and a plurality of acquisition boards, wherein the data exchange board is in communication connection with the video network server, and each acquisition board is in communication connection with at least one video network terminal.
Fig. 3 is a schematic diagram of a device connection according to a third embodiment of the present invention. As shown in fig. 3, the multi-way transcoder includes a data exchange board, an acquisition board a, an acquisition board B, an acquisition board C, and an acquisition board D. The data exchange board is in communication connection with the video network server through the trillion optical port, and the data exchange board can also be in communication connection with the background management end. The acquisition board A is in communication connection with the terminal A, the acquisition board B is in communication connection with the terminal B, the acquisition board C is in communication connection with the terminal C, and the acquisition board D is in communication connection with the coordination switch. The terminal A, the terminal B, the terminal C and the protocol conversion are all video networking terminals.
Fig. 4 is a structural diagram of a data exchange board according to a third embodiment of the present invention. As shown in fig. 4, the data exchange board includes two gigabit optical ports (Fiber 10Gb), an FPGA (Field-Programmable Gate Array), a memory (e.g., Flash memory), and N card slots (1 to N in total). The ten-thousand-million light port is used for being connected with a video network server, the FPGA is connected with the ten-thousand-million network port, the FPGA is connected with the storage, and the clamping groove is used for inserting the connector in the acquisition board.
Fig. 5 is a structural diagram of an acquisition board according to a third embodiment of the present invention. As shown in fig. 5, the acquisition board includes an RJ-45 interface (1000Mb), two codec chips 3531D _ a and 3531D _ B, and a connector. The RJ-45 interface is used for connecting with a video network terminal, 3531D _ a and 3531D _ B are connected through a PCIE (peripheral component interconnect express) interface, and 3531D _ B is connected with a card slot of the data exchange board through a PHY (physical layer) interface and a connector. Moreover, each codec chip can be connected with an FPGA of the data exchange board through an IIC bus (not shown in the figure).
The video transcoding process of the embodiment of the invention can comprise the following steps:
1. when the video data packet is sent to the multi-channel transcoder from the source video networking terminal, 3531D _ A in the multi-channel transcoder receives the video data packet, analyzes the transmitted video data packet, and obtains first coding and decoding information corresponding to the video data packet and an identifier of the target video networking terminal. 3531D _ A transmits the first coding and decoding information and the identification of the target video network terminal to the FPGA through the IIC bus.
2. The multi-way transcoder can acquire the coding and decoding information supported by each video network terminal in real time, and store the information in a database (which can also be a memory in fig. 4) inside the multi-way transcoder. And after querying second coding and decoding information supported by the target video network terminal from the database according to the identifier of the target video network terminal, the FPGA judges whether transcoding operation is required.
3. If the transcoding operation is not needed, the FPGA informs 3531D _ A that transcoding is not needed, 3531D _ A transmits the video data packet to 3531D _ B through a PCIE interface, 3531D _ B transmits the video data packet to the FPGA, and the FPGA forwards the video data packet to a video network server through a ten-gigabit network interface.
4. And each coding and decoding chip reports the load information of the coding and decoding chip to the FPGA in real time through the IIC bus. If transcoding operation is needed, the FPGA judges whether 3531D _ A can meet the requirement of transcoding the video data packet. If 3531D _ A can be satisfied, the FPGA transmits the second coding and decoding information back to 3531D _ A, and the 3531D _ A transcodes the video data packet according to the second coding and decoding information. If 3531D _ A cannot be met, the FPGA selects 3531D _ B that can be met, transmits second codec information back to 3531D _ B, and notifies 3531D _ A to transmit video data packets to 3531D _ B. 3531D _ A transmits the video data packets to 3531D _ B through the PCIE interface, and 3531D _ B transcodes the video data packets according to the second coding and decoding information. Through the mode, the FPGA can flexibly schedule the coding and decoding chips, and related data are transmitted between the coding and decoding chips through the PCIE interface, so that automatic scheduling is realized, and transcoding efficiency is maximized. In transcoding video data packets, the transcoding operation involves two types: in the first category, the coding formats are incompatible, for example, H.264 or H.265 coding and decoding are not supported, and the scene coding and decoding chip automatically transcodes without manual confirmation. And in the second type, the resolution is incompatible, for example, 4K or 8K is not supported, in the scene, due to the fact that abnormal display may be caused, the encoding and decoding chip sends resolution correction information (including the resolution supported by the target video network terminal) to the background management terminal, and the background management terminal performs transcoding after confirming that no error exists.
5. If the 3531D _ A transcodes the video data packet, after the transcoding is completed, the 3531D _ A transmits the transcoded video data packet to the 3531D _ B through the PCIE interface, the 3531D _ B transmits the transcoded video data packet to the FPGA, and the FPGA forwards the transcoded video data packet to the video networking server through the gigabit network interface. If the 3531D _ B transcodes the video data packet, after the transcoding is finished, the 3531D _ B transmits the transcoded video data packet to the FPGA, and the FPGA forwards the transcoded video data packet to the video networking server through the ten-gigabit network port.
6. When the video data packet is sent from the video networking server to the multi-way transcoder, the FPGA of the multi-way transcoder receives the video data packet and transmits the video data packet to 3531D _ B. 3531D _ B analyzes the transmitted video data packet to obtain the first coding and decoding information corresponding to the video data packet and the identification of the target video network terminal. 3531D _ B transmits the first coding and decoding information and the identification of the target video network terminal to the FPGA through the IIC bus.
7. And after querying second coding and decoding information supported by the target video network terminal from the database according to the identifier of the target video network terminal, the FPGA judges whether transcoding operation is required.
8. If the transcoding operation is not needed, the FPGA informs 3531D _ B that transcoding is not needed, 3531D _ B transmits the video data packet to 3531D _ A through a PCIE interface, and 3531D _ A transmits the video data packet to a target video networking terminal.
9. If transcoding operation is needed, the FPGA judges whether 3531D _ B can meet the requirement of transcoding the video data packet. If 3531D _ B can be satisfied, the FPGA transmits the second coding and decoding information back to 3531D _ B, and the 3531D _ B transcodes the video data packet according to the second coding and decoding information. If 3531D _ B cannot, the FPGA selects 3531D _ A that can be satisfied, transmits the second codec information back to 3531D _ A, and notifies 3531D _ B to transmit the video data packet to 3531D _ A. 3531D _ B transmits the video data packets to 3531D _ A through the PCIE interface, and 3531D _ A transcodes the video data packets according to the second coding and decoding information. The transcoding method may refer to the description of process 4 above.
10. If the 3531D _ B transcodes the video data packet, after the transcoding is completed, the 3531D _ B transmits the transcoded video data packet to the 3531D _ A through the PCIE interface, and the 3531D _ A transmits the transcoded video data packet to the target video network terminal. If the 3531D _ A transcodes the video data packet, after the transcoding is finished, the 3531D _ A transmits the transcoded video data packet to a target video network terminal.
The following examples are given. Fig. 6 is a schematic flowchart of video transcoding according to a third embodiment of the present invention. As shown in fig. 6, the video transcoding process may include:
1. the terminal a sends a data packet M with an encoding format of h.265 and a resolution of 4K.
2. After the data packet M enters the acquisition board, the data packet M is received by 3531D _ A of the acquisition board, and the 3531D _ A sends the coding format and the resolution of the data packet M and the identification of the target terminal B to the FPGA through an IIC bus.
3. After acquiring the identifier of the target terminal B, the FPGA queries in a database to acquire the encoding format of the target terminal B as H.264 and the resolution as 1080P.
4. And the FPGA judges that transcoding is needed, and transmits the encoding format H.264 and the resolution 1080P of the target terminal B back to 3531D _ A through the IIC bus.
5. 3531D _ A starts decoding H.265 and sends a query whether the resolution is reduced to 1080P to a background management end, and the background management end selects according to the actual situation and controls whether the resolution is variable. If not, 3531D _ A replies to terminal A with a transcoding disabled operation. If the selection is yes, the resolution of 3531D _ A is reduced to 1080P, H.264 encoding is started, the encoded data are transmitted to 3531D _ B through a PCIE interface, and the 3531D _ B sends the data to a video network server through a data exchange board.
The process of sending the data packet to the target video network terminal B by the video network server is similar to the above, and the embodiment of the present invention is not discussed in detail herein.
The embodiment of the invention can realize the direct intercommunication of videos with different resolutions and different coding formats, simultaneously process the coding and decoding data in an intensive way and save the cost.
Example four
Referring to fig. 7, a block diagram of a transcoder according to a fourth embodiment of the present invention is shown. The transcoder of the embodiment of the invention is a multi-channel transcoder which is respectively in communication connection with a video network server and a plurality of video network terminals.
The multi-way transcoder includes:
the analysis module 701 is configured to obtain a video data packet sent by a first device, and analyze the video data packet to obtain first encoding and decoding information corresponding to the video data packet and an identifier of a target video network terminal.
A first obtaining module 702, configured to obtain, according to the identifier of the target video networking terminal, second encoding and decoding information supported by the target video networking terminal.
A transcoding module 703, configured to transcode the video data packet according to the second encoding and decoding information when the first encoding and decoding information and the second encoding and decoding information are incompatible.
A transmitting module 704, configured to transmit the transcoded video data packet to the second device.
The first equipment is a source video network terminal, and the second equipment is a video network server; or, the first device is a video network server, and the second device is a target video network terminal.
Optionally, the multi-channel transcoder is in communication connection with a background management end, the first codec information includes a first encoding format and a first resolution, and the second codec information includes a second encoding format and a second resolution; the transcoding module 703 includes: a first transcoding unit, configured to convert an encoding format of the video data packet from the first encoding format to the second encoding format; the resolution transmission unit is used for transmitting the second resolution to the background management end; and the second transcoding unit is used for receiving response information returned by the background management end aiming at the second resolution, and transcoding the resolution of the video data packet according to the response information.
Optionally, the second transcoding unit includes: a first conversion subunit, configured to convert, when the response information is a transcoding permission instruction, a resolution of the video data packet from the first resolution to the second resolution; a determining subunit, configured to determine whether the response information supports the target resolution when the response information is the target resolution; the target resolution is the resolution supported by a display of the target video network terminal; the second conversion subunit is used for converting the resolution of the video data packet from the first resolution to the target resolution when the second conversion subunit supports the target resolution; and when the target resolution is not supported by the video data packet, keeping the resolution of the video data packet as the first resolution.
Optionally, the multi-channel transcoder includes at least two codec chips; the multi-way transcoder further comprises: and the second acquisition module is used for acquiring the load information of each coding and decoding chip according to a preset time interval.
Optionally, the multi-way transcoder further comprises: the determining module is used for determining whether the current coding and decoding chip is used for transcoding the video data packet according to the load information of the current coding and decoding chip; the current coding and decoding chip is used for obtaining the video data packet sent by the first equipment; and the selecting module is used for selecting a target coding and decoding chip which meets the transcoding requirement of the video data packet from other coding and decoding chips according to the load information of other coding and decoding chips when the current coding and decoding chip does not meet the transcoding requirement of the video data packet. The transcoding module 703 is specifically configured to transcode the video data packet by using the target codec chip according to the second codec information.
In the embodiment of the invention, before the video data packet sent by the source video networking terminal is transmitted to the target video networking terminal, the multi-channel transcoder transcodes the video data packet according to the coding and decoding information of the target video networking terminal to obtain the video data packet which can be processed by the target video networking terminal and transmits the video data packet to the target video networking terminal. Therefore, the video networking terminal does not need to be upgraded, the multi-channel transcoder can cover various resolutions and coding formats, the video data packets of the multi-channel video networking terminal can be processed, the processing process is simpler and more convenient, and the cost is lower.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
In an embodiment of the invention, an electronic device is also provided. The electronic device may include one or more processors and one or more machine-readable media having instructions, such as an application program, stored thereon. The instructions, when executed by the one or more processors, cause the processors to perform the video transcoding method described above.
In an embodiment of the present invention, there is also provided a non-transitory computer-readable storage medium having a computer program stored thereon, the program being executable by a processor of an electronic device to perform the video transcoding method described above. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The video transcoding method, the transcoder, the electronic device and the storage medium provided by the present invention are introduced in detail, and a specific example is applied in the present document to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (12)

1. A video transcoding method is characterized in that the method is applied to a multi-channel transcoder, and the multi-channel transcoder is respectively in communication connection with a video networking server and a plurality of video networking terminals; the method comprises the following steps:
acquiring a video data packet sent by first equipment, and analyzing to obtain first coding and decoding information corresponding to the video data packet and an identifier of a target video networking terminal;
acquiring second coding and decoding information supported by the target video network terminal according to the identifier of the target video network terminal;
when the first coding and decoding information and the second coding and decoding information are incompatible, transcoding the video data packet according to the second coding and decoding information;
transmitting the transcoded video data packet to a second device;
the first equipment is a source video network terminal, and the second equipment is a video network server; or, the first device is a video network server, and the second device is a target video network terminal.
2. The method of claim 1, wherein the multi-way transcoder is communicatively coupled to a backend management side, wherein the first codec information comprises a first encoding format and a first resolution, and wherein the second codec information comprises a second encoding format and a second resolution; the transcoding the video data packet according to the second encoding and decoding information includes:
converting the encoding format of the video data packet from the first encoding format to the second encoding format;
transmitting the second resolution to the background management end;
and receiving response information returned by the background management end aiming at the second resolution, and transcoding the resolution of the video data packet according to the response information.
3. The method of claim 2, wherein transcoding the resolution of the video data packet according to the response information comprises:
when the response information is a transcoding allowing instruction, converting the resolution of the video data packet from the first resolution to the second resolution;
when the response information is the target resolution, determining whether the response information supports the target resolution; the target resolution is the resolution supported by a display of the target video network terminal;
when the target resolution is supported by the video data packet, converting the resolution of the video data packet from the first resolution to the target resolution;
and when the target resolution is not supported by the video data packet, keeping the resolution of the video data packet as the first resolution.
4. The method of claim 1, wherein the multi-way transcoder comprises at least two codec chips; the method further comprises the following steps:
and respectively acquiring the load information of each coding and decoding chip according to a preset time interval.
5. The method of claim 4, wherein prior to said transcoding the video data packet according to the second codec information, further comprising:
determining whether the current coding and decoding chip is in need of transcoding the video data packet or not according to load information of the current coding and decoding chip; the current coding and decoding chip is used for obtaining the video data packet sent by the first equipment;
when the current coding and decoding chip does not meet the requirement of transcoding the video data packet, selecting a target coding and decoding chip meeting the requirement of transcoding the video data packet from other coding and decoding chips according to the load information of other coding and decoding chips;
the transcoding the video data packet according to the second encoding and decoding information includes:
and transcoding the video data packet by using the target coding and decoding chip according to the second coding and decoding information.
6. The transcoder is characterized by being a multi-channel transcoder, and the multi-channel transcoder is respectively in communication connection with a video network server and a plurality of video network terminals; the multi-way transcoder includes:
the analysis module is used for acquiring a video data packet sent by first equipment, and analyzing to obtain first coding and decoding information corresponding to the video data packet and an identifier of a target video network terminal;
the first acquisition module is used for acquiring second coding and decoding information supported by the target video network terminal according to the identifier of the target video network terminal;
the transcoding module is used for transcoding the video data packet according to the second coding and decoding information when the first coding and decoding information and the second coding and decoding information are incompatible;
the transmission module is used for transmitting the transcoded video data packet to the second equipment;
the first equipment is a source video network terminal, and the second equipment is a video network server; or, the first device is a video network server, and the second device is a target video network terminal.
7. The transcoder of claim 6, wherein the transcoder is communicatively coupled to a backend management side, wherein the first codec information comprises a first encoding format and a first resolution, and wherein the second codec information comprises a second encoding format and a second resolution; the transcoding module comprises:
a first transcoding unit, configured to convert an encoding format of the video data packet from the first encoding format to the second encoding format;
the resolution transmission unit is used for transmitting the second resolution to the background management end;
and the second transcoding unit is used for receiving response information returned by the background management end aiming at the second resolution, and transcoding the resolution of the video data packet according to the response information.
8. The transcoder of claim 7, wherein the second transcoding unit comprises:
a first conversion subunit, configured to convert, when the response information is a transcoding permission instruction, a resolution of the video data packet from the first resolution to the second resolution;
a determining subunit, configured to determine whether the response information supports the target resolution when the response information is the target resolution; the target resolution is the resolution supported by a display of the target video network terminal;
the second conversion subunit is used for converting the resolution of the video data packet from the first resolution to the target resolution when the second conversion subunit supports the target resolution; and when the target resolution is not supported by the video data packet, keeping the resolution of the video data packet as the first resolution.
9. The transcoder of claim 6, wherein the multi-way transcoder comprises at least two codec chips; the multi-way transcoder further comprises:
and the second acquisition module is used for acquiring the load information of each coding and decoding chip according to a preset time interval.
10. The transcoder of claim 9, wherein the multi-way transcoder further comprises:
the determining module is used for determining whether the current coding and decoding chip is used for transcoding the video data packet according to the load information of the current coding and decoding chip; the current coding and decoding chip is used for obtaining the video data packet sent by the first equipment;
the selecting module is used for selecting a target coding and decoding chip which meets the transcoding requirement of the video data packet from other coding and decoding chips according to the load information of other coding and decoding chips when the current coding and decoding chip does not meet the transcoding requirement of the video data packet;
and the transcoding module is specifically used for transcoding the video data packet by using the target coding and decoding chip according to the second coding and decoding information.
11. An electronic device, comprising:
one or more processors; and
one or more machine-readable media having instructions stored thereon;
the instructions, when executed by the one or more processors, cause the processors to perform the video transcoding method of any of claims 1 to 5.
12. A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, implements a method of video transcoding as claimed in any one of claims 1 to 5.
CN201911206049.1A 2019-11-29 2019-11-29 Video transcoding method, transcoder, electronic device and storage medium Pending CN111107393A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911206049.1A CN111107393A (en) 2019-11-29 2019-11-29 Video transcoding method, transcoder, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911206049.1A CN111107393A (en) 2019-11-29 2019-11-29 Video transcoding method, transcoder, electronic device and storage medium

Publications (1)

Publication Number Publication Date
CN111107393A true CN111107393A (en) 2020-05-05

Family

ID=70421119

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911206049.1A Pending CN111107393A (en) 2019-11-29 2019-11-29 Video transcoding method, transcoder, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN111107393A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111935545A (en) * 2020-08-03 2020-11-13 腾讯音乐娱乐科技(深圳)有限公司 Method, device and equipment for transcoding video data and storage medium
CN112637589A (en) * 2020-07-31 2021-04-09 西安诺瓦星云科技股份有限公司 Data processing method and device and video processing equipment
WO2022100203A1 (en) * 2020-11-13 2022-05-19 Oppo广东移动通信有限公司 Data processing method, apparatus, medium, network access device, and electronic device
CN117692598A (en) * 2024-02-04 2024-03-12 浙江华创视讯科技有限公司 Video stream sending method and device

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1929462A (en) * 2006-07-25 2007-03-14 中山大学 Device and method for digital household network media format transcoding
US20080052415A1 (en) * 2002-12-11 2008-02-28 Marcus Kellerman Media processing system supporting different media formats via server-based transcoding
CN101945278A (en) * 2010-09-15 2011-01-12 中国科学院深圳先进技术研究院 Video self-adaptive transcoding method and system
CN101999234A (en) * 2008-04-18 2011-03-30 日本电气株式会社 Gateway device, method, and program
CN102007774A (en) * 2008-04-18 2011-04-06 日本电气株式会社 Server device, content distribution method, and program
CN102065269A (en) * 2010-11-18 2011-05-18 深圳市同洲电子股份有限公司 Method for carrying out video session, video session system and set top boxes (STBs)
CN102779063A (en) * 2011-05-10 2012-11-14 北京磊友信息科技有限公司 Method for providing application invocation and server
CN102883216A (en) * 2011-07-14 2013-01-16 上海聚力传媒技术有限公司 Video live broadcasting method and apparatus
CN103825912A (en) * 2014-03-24 2014-05-28 联想(北京)有限公司 Data transmission method, electronic device and server
CN105872595A (en) * 2016-03-31 2016-08-17 乐视控股(北京)有限公司 Transcoding task distribution method and device
CN110213652A (en) * 2018-04-13 2019-09-06 腾讯科技(深圳)有限公司 A kind of audio/video data transmission method, device and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080052415A1 (en) * 2002-12-11 2008-02-28 Marcus Kellerman Media processing system supporting different media formats via server-based transcoding
CN1929462A (en) * 2006-07-25 2007-03-14 中山大学 Device and method for digital household network media format transcoding
CN101999234A (en) * 2008-04-18 2011-03-30 日本电气株式会社 Gateway device, method, and program
CN102007774A (en) * 2008-04-18 2011-04-06 日本电气株式会社 Server device, content distribution method, and program
CN101945278A (en) * 2010-09-15 2011-01-12 中国科学院深圳先进技术研究院 Video self-adaptive transcoding method and system
CN102065269A (en) * 2010-11-18 2011-05-18 深圳市同洲电子股份有限公司 Method for carrying out video session, video session system and set top boxes (STBs)
CN102779063A (en) * 2011-05-10 2012-11-14 北京磊友信息科技有限公司 Method for providing application invocation and server
CN102883216A (en) * 2011-07-14 2013-01-16 上海聚力传媒技术有限公司 Video live broadcasting method and apparatus
CN103825912A (en) * 2014-03-24 2014-05-28 联想(北京)有限公司 Data transmission method, electronic device and server
CN105872595A (en) * 2016-03-31 2016-08-17 乐视控股(北京)有限公司 Transcoding task distribution method and device
CN110213652A (en) * 2018-04-13 2019-09-06 腾讯科技(深圳)有限公司 A kind of audio/video data transmission method, device and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112637589A (en) * 2020-07-31 2021-04-09 西安诺瓦星云科技股份有限公司 Data processing method and device and video processing equipment
CN111935545A (en) * 2020-08-03 2020-11-13 腾讯音乐娱乐科技(深圳)有限公司 Method, device and equipment for transcoding video data and storage medium
WO2022100203A1 (en) * 2020-11-13 2022-05-19 Oppo广东移动通信有限公司 Data processing method, apparatus, medium, network access device, and electronic device
CN117692598A (en) * 2024-02-04 2024-03-12 浙江华创视讯科技有限公司 Video stream sending method and device

Similar Documents

Publication Publication Date Title
CN111107393A (en) Video transcoding method, transcoder, electronic device and storage medium
US20160080824A1 (en) Method and system for optimizing communication in a home network via a gateway
EP1950967A1 (en) Epg, streaming media scheduling and demanding system, method and apparatus
US9282448B2 (en) Method, system and apparatus for providing streaming media service
CN101889425B (en) Apparatus and method for simulcast over variable bandwidth channel
WO2017161762A1 (en) Data transmission method, device and system
CN102695081A (en) Video resource scheduling method based on Internet television and television terminal
US10820229B2 (en) Method for providing streaming service and apparatus therefor
CN103269331A (en) Method and device for selectively playing code rate content
CN101836436A (en) Method for selecting an audio and/or video service received
CN102939765A (en) Dynamic service group discovery
CN114040232B (en) Screen projection system, screen projection method, electronic equipment and storage medium
CN109889521A (en) Memory, communication channel multiplexing implementation method, device and equipment
CN102571409B (en) Service request management system and method for realizing service across-terminal application
CN113301388B (en) Video stream processing system, equipment and method
US20170187763A1 (en) Streaming service system, streaming service method and controller thereof
CN101188733A (en) A home network multimedia access system
CN108616760B (en) Live broadcasting method based on browser, server, anchor terminal and user terminal
CN101621545B (en) Device and method for pulling down media resource towards terminal device
CN102014038B (en) Method and device for managing transmission resource
CN106713846A (en) Live connection establishing method and device
CN103826143B (en) Devices and methods therefor is provided based on the multicast video-on-demand service mixed with unicast
US10504482B2 (en) Smart small form-factor pluggable (SFP) transceiver
CN112788367A (en) Streaming media scheduling method, system and scheduling component
CN112423025A (en) Transcoding method and transcoder supporting multiple video access modes

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200505

RJ01 Rejection of invention patent application after publication