CN113784143A - Video transcoding method, device, electronic equipment and computer readable medium - Google Patents

Video transcoding method, device, electronic equipment and computer readable medium Download PDF

Info

Publication number
CN113784143A
CN113784143A CN202111037731.XA CN202111037731A CN113784143A CN 113784143 A CN113784143 A CN 113784143A CN 202111037731 A CN202111037731 A CN 202111037731A CN 113784143 A CN113784143 A CN 113784143A
Authority
CN
China
Prior art keywords
video
security standard
coding
preset color
user terminal
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
CN202111037731.XA
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.)
Guangdong Zhongxing Electronics Co ltd
Original Assignee
Guangdong Zhongxing Electronics 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 Guangdong Zhongxing Electronics Co ltd filed Critical Guangdong Zhongxing Electronics Co ltd
Priority to CN202111037731.XA priority Critical patent/CN113784143A/en
Publication of CN113784143A publication Critical patent/CN113784143A/en
Pending legal-status Critical Current

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
    • H04N19/40Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using video transcoding, i.e. partial or full decoding of a coded input stream followed by re-encoding of the decoded output stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The embodiment of the disclosure discloses a video transcoding method, a video transcoding device, an electronic device and a computer readable medium. One embodiment of the method comprises: receiving at least one non-security standard coding video sent by the associated network camera; for each received non-security standard encoded video, performing the following steps: decoding the non-security standard coded video based on a preset color space to obtain a decoded non-security standard coded video serving as a preset color format video; performing security standard coding processing on the video with the preset color format to obtain a security standard coded video; packaging the security standard coding video to obtain a packaged video; the encapsulated video is sent to an associated user terminal so that the user terminal can decode and display the encapsulated video. According to the embodiment, the target camera is accessed into the video monitoring system, so that the waste of configuration resources is reduced, and the expandability of the video monitoring system is improved.

Description

Video transcoding method, device, electronic equipment and computer readable medium
Technical Field
Embodiments of the present disclosure relate to the field of computer technologies, and in particular, to a video transcoding method, apparatus, electronic device, and computer-readable medium.
Background
With the popularization of the GB35114 and GB37300 standards, more and more network cameras at video monitoring sites are required to implement video coding of the GB/T25724 standard, i.e., the SVAC (Technical specification of modern video and audio coding, safety precaution monitoring digital video and audio coding) standard. When the video monitoring system is established, a user can directly select a camera supporting the SVAC coding standard. For a video monitoring system which is already put into use, if a network camera of the video monitoring system does not support the SVAC coding standard, the video monitoring system needs to be modified. The current transformation mode is mainly to install a transcoding gateway.
However, when the video monitoring system is modified in the above manner, the following technical problems often exist:
firstly, a transcoding gateway needs to be installed for each network camera, so that configuration resource waste is caused, and the expandability of a video monitoring system is low;
secondly, SVAC encoding processing of multiple paths of videos cannot be realized, and the number of target cameras to be configured is large, thereby further causing waste of configuration resources.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
Some embodiments of the present disclosure propose video transcoding methods, apparatuses, electronic devices and computer readable media to address one or more of the technical problems mentioned in the background section above.
In a first aspect, some embodiments of the present disclosure provide a video transcoding method, including: receiving at least one non-security standard encoded video transmitted by an associated webcam, wherein a video encoding pixel processing amount corresponding to a target camera is greater than a pixel amount corresponding to an image sensor of the webcam; for each received non-security standard encoded video, performing the following steps: decoding the non-security standard coded video based on a preset color space to obtain a decoded non-security standard coded video serving as a preset color format video; performing security standard coding processing on the video with the preset color format to obtain a security standard coded video; packaging the security standard coding video to obtain a packaged video; the encapsulated video is sent to an associated user terminal so that the user terminal can decode and display the encapsulated video.
In a second aspect, some embodiments of the present disclosure provide a video transcoding device, the device comprising: a receiving unit configured to receive at least one non-security standard encoded video transmitted by an associated network camera, wherein a video encoding pixel processing amount corresponding to a target camera is greater than a pixel amount corresponding to an image sensor of the network camera; an execution unit configured to, for each received non-security standard encoded video, perform the following steps: decoding the non-security standard coded video based on a preset color space to obtain a decoded non-security standard coded video serving as a preset color format video; performing security standard coding processing on the video with the preset color format to obtain a security standard coded video; packaging the security standard coding video to obtain a packaged video; the encapsulated video is sent to an associated user terminal so that the user terminal can decode and display the encapsulated video.
In a third aspect, some embodiments of the present disclosure provide an electronic device, comprising: one or more processors; a storage device having one or more programs stored thereon, which when executed by one or more processors, cause the one or more processors to implement the method described in any of the implementations of the first aspect.
In a fourth aspect, some embodiments of the present disclosure provide a computer readable medium on which a computer program is stored, wherein the program, when executed by a processor, implements the method described in any of the implementations of the first aspect.
The above embodiments of the present disclosure have the following beneficial effects: by the video transcoding method of some embodiments of the present disclosure, waste of configuration resources is reduced, and scalability of the video monitoring system is improved. Specifically, the reasons for the waste of configuration resources and the low scalability of the video surveillance system are: and a transcoding gateway needs to be installed for each network camera, so that the waste of configuration resources is caused, and the expandability of the video monitoring system is low. Based on this, the video transcoding method of some embodiments of the present disclosure first receives the non-security standard encoded video sent by the associated webcam. Therefore, the non-security standard coded video sent by the original network camera can be directly transcoded, the network camera can be directly accessed into the video monitoring system, and the expandability of the video monitoring system is improved. Then, for each received non-security standard encoded video, the following steps are performed: firstly, decoding the non-security standard coded video based on a preset color space to obtain a decoded non-security standard coded video serving as a preset color format video. Therefore, the decoding processing of the non-security standard coded video can be transferred to the target camera for processing. And secondly, performing security standard coding processing on the video with the preset color format to obtain a security standard coded video. Therefore, transcoding processing of the non-security standard coded video is completed by the target camera, so that the security standard coded video obtained after security standard coding processing meets the security standard, and resource waste is reduced. And thirdly, packaging the security standard coding video to obtain a packaged video. Therefore, the packaged video obtained after packaging processing can be used for transmission and playing. And fourthly, sending the packaged video to the associated user terminal so that the user terminal can decode and display the packaged video. Therefore, the packaged video received by the user terminal meets the security standard. The non-security standard coded video sent by the original network camera can be transcoded by the target camera, so that the format of the obtained security standard coded video meets the security standard, a transcoding gateway does not need to be installed on the original network camera, and configuration resources are saved. And because the non-security standard coded video corresponding to the original network camera can be directly transcoded, a plurality of original network cameras can be directly accessed into the video monitoring system, thereby improving the expandability of the video monitoring system.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and elements are not necessarily drawn to scale.
Fig. 1 is a schematic diagram of one application scenario of a video transcoding method of some embodiments of the present disclosure;
fig. 2 is a flow diagram of some embodiments of a video transcoding method according to the present disclosure;
fig. 3 is a schematic structural diagram of some embodiments of a video transcoding device according to the present disclosure;
FIG. 4 is a schematic block diagram of an electronic device suitable for use in implementing some embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings. The embodiments and features of the embodiments in the present disclosure may be combined with each other without conflict.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 is a schematic diagram of one application scenario of a video transcoding method of some embodiments of the present disclosure.
In the application scenario of fig. 1, first, a target camera 101 may receive at least one non-security standard encoded video transmitted by an associated network camera 102, wherein a video encoding pixel processing amount corresponding to the target camera 101 is greater than a pixel amount corresponding to an image sensor of the network camera 102. Then, for each received non-security standard encoded video (e.g., non-security standard encoded video 103), the following steps are performed: firstly, decoding the non-security standard coded video 103 based on a preset color space to obtain a decoded non-security standard coded video serving as a preset color format video 104. And secondly, performing security standard coding processing on the preset color format video 104 to obtain a security standard coding video 105. And thirdly, packaging the security standard coding video 105 to obtain a packaged video 106. Finally, the encapsulated video 106 is sent to the associated user terminal 107 so that the user terminal 107 can decode and display the encapsulated video.
The target camera 101 may be hardware or software. When the target camera is hardware, it may be implemented as a distributed cluster composed of multiple servers or terminal devices, or may be implemented as a single server or a single terminal device. When the target camera is embodied as software, it may be installed in the above-listed hardware devices. It may be implemented, for example, as multiple software or software modules to provide distributed services, or as a single software or software module. And is not particularly limited herein.
It should be understood that the number of target cameras in fig. 1 is merely illustrative. There may be any number of target cameras, as desired for the implementation.
With continued reference to fig. 2, a flow 200 of some embodiments of a video transcoding method according to the present disclosure is shown. The video transcoding method comprises the following steps:
step 201, receiving a non-security standard coded video sent by an associated network camera.
In some embodiments, the executing subject of the video transcoding method (e.g., the target camera 101 shown in fig. 1) may receive at least one non-security standard encoded video sent by the associated webcam. Wherein the video encoding pixel processing amount corresponding to the target camera is larger than the pixel amount corresponding to the image sensor of the network camera. The network camera may be a network camera which is planned in advance and is in communication connection with the target camera through a wired connection mode or a wireless connection mode. The non-security standard coded video can be a non-security standard coded video obtained by coding the acquired original format video by the network camera. For example, the non-security standard encoded video may be a video in h.264 format. The video coding pixel processing amount may be a threshold of a processing amount of pixels processed by the target camera during video coding. The pixel may be a minimum unit of each frame image of the video. For example, the video encoding pixel throughput may be 800 ten thousand pixels. The pixel amount may be a pixel value of a pixel resolution of an image sensor of the network camera. The pixel value of the pixel resolution may be the number of pixels per inch of the image in the image sensor. For example, the pixel value of the above pixel resolution may be 200 ten thousand pixels. The number of pixels may be 200 ten thousand pixels. In practice, the execution subject may receive at least one non-security standard encoded video transmitted by the associated webcam through a wired connection or a wireless connection. Therefore, the non-security standard coded video sent by the original network camera can be directly transcoded, the network camera can be directly accessed into the video monitoring system, and the expandability of the video monitoring system is improved. It should be noted that the wireless connection means may include, but is not limited to, a 3G/4G connection, a WiFi connection, a bluetooth connection, a WiMAX connection, a Zigbee connection, a uwb (ultra wideband) connection, and other wireless connection means now known or developed in the future.
In some optional implementations of some embodiments, the execution subject may receive at least one non-security standard encoded video transmitted by an associated at least one webcam. Wherein the video encoding pixel processing amount corresponding to the target camera is equal to or greater than a sum of a total pixel amount of the image sensors corresponding to each of the at least one network camera and a pixel amount of the image sensor corresponding to the target camera. Therefore, the connection with a plurality of network cameras can be realized, and further, the SVAC coding processing of multi-channel videos can be realized.
Step 201 and its related content are regarded as an inventive point of the embodiment of the present disclosure, and solve the technical problem two mentioned in the background art that "SVAC encoding processing of multiple channels of videos cannot be realized, and the number of target cameras to be configured is large, thereby further causing waste of configuration resources". The factors that lead to the waste of configuration resources are as follows: and the at least one non-security standard coded video transmitted by the associated at least one network camera cannot be received. If the above factors are solved, the number of the configured target cameras can be reduced, thereby further saving the configuration resources. In order to achieve the effect, the present disclosure implements connection between one target camera and multiple webcams, so that the execution main body can receive at least one non-security standard encoded video sent by at least one associated webcam, thereby implementing SVAC encoding processing of multiple paths of videos. Therefore, the number of the configuration target cameras is reduced, and configuration resources are further saved.
Step 202, for each received non-security standard coded video, executing the following steps:
step 2021, decoding the non-security standard encoded video based on the preset color space to obtain a decoded non-security standard encoded video as a preset color format video.
In some embodiments, the execution main body may decode the non-security standard encoded video based on a preset color space to obtain a decoded non-security standard encoded video serving as a preset color format video. The preset color space may be a color space in which colors are described by luminance and color difference. For example, the preset color space may be a YUV color space. The preset color format video may be a video having the same format as the original format video. The original format video can be an original video acquired by a network camera. The original format video may be a YUV format video. In practice, the execution main body may decode the non-security standard encoded video by using a decoder based on a preset color space to obtain a decoded non-security standard encoded video serving as a preset color format video, so that a format of the preset color format video corresponds to the preset color space. The decoder can be a decoder for decoding the non-security standard coded video. For example, the decoder may be an FFmpeg. Therefore, the decoding processing of the non-security standard coded video can be transferred to the target camera for processing.
And step 2022, performing security standard coding processing on the video with the preset color format to obtain a security standard coded video.
In some embodiments, the execution main body may perform security standard encoding processing on the video with the preset color format to obtain a security standard encoded video. The security standard coded video can be a video with a video format meeting the security standard. The security standard may be an SVAC (Technical specification of scientific video and audio coding, safety precaution monitoring digital video and audio coding) standard. In practice, first, the execution main body may perform video predictive coding processing on a preset color format video, and obtain the preset color format video after the video predictive coding processing as a video after the predictive coding processing. The above-described video predictive encoding process may be a process of encoding and compressing video by prediction. For example, the Video predictive Coding process may include an HEVC (High Efficiency Video Coding) intra-frame predictive Coding process and a forward predictive Coding process. Then, the execution main body may perform VLC (Variable Length Coding) processing on the video after the predictive Coding processing, so as to obtain a security standard coded video. Therefore, transcoding processing of the non-security standard coded video is completed by the target camera, so that the security standard coded video obtained after security standard coding processing meets the security standard, and resource waste is reduced.
In some optional implementation manners of some embodiments, first, the execution main body may perform inter-frame bidirectional predictive coding processing on the preset color format video to obtain a predictive coded video. The inter-frame bidirectional predictive encoding process may be a process of encoding and compressing video by inter-frame bidirectional prediction. The inter-frame bidirectional prediction encoding process may be a Bi-prediction with CU-level weight (CU-level bidirectional weighted prediction) encoding process. Secondly, the region-of-interest variable-quality coding processing can be performed on the predictive coding video to obtain a variable-quality coding video. The variable quality coding process for the region of interest may be a process of coding the region of interest, and reducing or not coding the region of no interest. In practice, the execution subject may extract the region of interest by using a gaussian background modeling method, so as to implement variable-quality encoding of the region of interest of the binary coded video. The gaussian background modeling method may be a method capable of extracting a region of interest. Then, the variable quality coded video may be subjected to adaptive binary coding to obtain a binary coded video. The Adaptive Binary Arithmetic Coding process may be a CABAC (Context-based Adaptive Binary Arithmetic Coding) process. And finally, the execution main body can obtain a security standard coded video based on the binary coded video. In practice, the execution body may perform encryption processing on the binary coded video by using an encryption algorithm. The encryption algorithm may be an algorithm for video encryption of binary coded video. For example, the Encryption algorithm may be an AES (Advanced Encryption Standard) algorithm. Therefore, the video quality of the region of interest can be preferentially ensured under the condition of limited network bandwidth or storage space, and the security standard coded video which better meets the monitoring requirement is provided.
In some optional implementation manners of some embodiments, first, the execution main body may perform encryption processing on the binary coded video to obtain an encrypted video. In practice, the execution body may perform encryption processing on the binary coded video by using an encryption algorithm. The encryption algorithm may be an algorithm for video encryption of binary coded video. For example, the Encryption algorithm may be an AES (Advanced Encryption Standard) algorithm. Then, scalable video coding processing can be performed on the encrypted video to obtain a security standard coded video. The scalable video encoding process may be a process of layer-coding the encrypted video to obtain a base layer encoded video and an enhancement layer encoded video. In practice, when the bandwidth is insufficient, the execution body may perform subsequent processing and transmission on the encoded video of the base layer, but at this time, the quality of the video decoded by the user terminal is not high. When the bandwidth is sufficient, the encoded video of the enhancement layer can be subsequently processed and transmitted to improve the decoding quality of the video. Thereby, the bandwidth of the target camera is saved.
Step 2023, performing encapsulation processing on the security standard coded video to obtain an encapsulated video.
In some embodiments, the execution subject may perform encapsulation processing on the security standard encoded video to obtain an encapsulated video. In practice, the execution main body can perform encapsulation processing on the security standard coded video, that is, the security standard coded video and the audio are combined to obtain the encapsulated video. The audio may be an audio obtained by performing audio coding processing on the initial audio collected by the network camera by the target camera. The initial audio may be audio collected by the webcam when the original format video is collected. The audio encoding process may be a process of encoding the acquired audio. The Audio encoding process may include an ACELP (Algebraic codebook excited linear Prediction) encoding process and a TAC (transform Audio Compression) encoding process. Therefore, the packaged video obtained after packaging processing can be used for transmission and playing.
Step 2024, the packaged video is sent to the associated user terminal so that the user terminal can decode and display the packaged video.
In some embodiments, the execution body may send the encapsulated video to an associated user terminal so that the user terminal may decode and display the encapsulated video. The associated user terminal may be a terminal of a user who can decode the encapsulated video and can present the decoded encapsulated video. Therefore, the packaged video received by the user terminal meets the security standard.
Optionally, the execution subject may send a prompt message to an associated user terminal in response to not receiving the non-security standard encoded video sent by the network camera within a preset time period. The specific setting of the preset time period is not limited. The prompt message may be a message indicating that the network camera is in failure. For example, the network camera may be "network camera No. 1". The prompt message may be "the network camera No. 1 is out of order and please repair". Therefore, related workers can know the prompt information so as to maintain the network camera.
Optionally, first, the executing body may perform security standard encoding processing on the target preset color format video in response to detecting the target preset color format video acquired by the image sensor of the target camera, so as to obtain a target security standard encoded video. Then, the execution main body can send the target security standard coded video to the user terminal, so that the user terminal can decode and display the target security standard coded video. Therefore, the user terminal can display the video collected by the target camera.
Optionally, the executing body may control the associated alarm device to execute an alarm operation corresponding to an interval duration in response to that the interval duration between the time when the non-security standard encoded video is received and the time when the encapsulated video is sent to the associated user terminal is greater than or equal to a preset duration. The preset time length can be the longest time length which can be delayed in real-time monitoring. The alarm device may be a device having an alarm function. For example, the alarm device may be an alarm. The alarm operation may be an operation of making the alarm device sound a prompt sound. The cue sound may correspond to the interval duration. For example, the webcam corresponding to the non-security standard encoded video may be network camera No. 1. The interval time may be 10 minutes. The prompt sound may be "the interval duration for processing the non-security standard coded video sent by the network camera No. 1 at present is 10 minutes, and the delay time is too long". Therefore, the timeliness of the video can be guaranteed.
The above embodiments of the present disclosure have the following beneficial effects: by the video transcoding method of some embodiments of the present disclosure, waste of configuration resources is reduced, and scalability of the video monitoring system is improved. Specifically, the reasons for the waste of configuration resources and the low scalability of the video surveillance system are: and a transcoding gateway needs to be installed for each network camera, so that the waste of configuration resources is caused, and the expandability of the video monitoring system is low. Based on this, the video transcoding method of some embodiments of the present disclosure first receives the non-security standard encoded video sent by the associated webcam. Therefore, the non-security standard coded video sent by the original network camera can be directly transcoded, the network camera can be directly accessed into the video monitoring system, and the expandability of the video monitoring system is improved. Then, for each received non-security standard encoded video, the following steps are performed: firstly, decoding the non-security standard coded video based on a preset color space to obtain a decoded non-security standard coded video serving as a preset color format video. Therefore, the decoding processing of the non-security standard coded video can be transferred to the target camera for processing. And secondly, performing security standard coding processing on the video with the preset color format to obtain a security standard coded video. Therefore, transcoding processing of the non-security standard coded video is completed by the target camera, so that the security standard coded video obtained after security standard coding processing meets the security standard, and resource waste is reduced. And thirdly, packaging the security standard coding video to obtain a packaged video. Therefore, the packaged video obtained after packaging processing can be used for transmission and playing. And fourthly, sending the packaged video to the associated user terminal so that the user terminal can decode and display the packaged video. Therefore, the packaged video received by the user terminal meets the security standard. The non-security standard coded video sent by the original network camera can be transcoded by the target camera, so that the format of the obtained security standard coded video meets the security standard, a transcoding gateway does not need to be installed on the original network camera, and configuration resources are saved. And because the non-security standard coded video corresponding to the original network camera can be directly transcoded, a plurality of original network cameras can be directly accessed into the video monitoring system, thereby improving the expandability of the video monitoring system.
With further reference to fig. 3, as an implementation of the methods shown in the above figures, the present disclosure provides some embodiments of a video transcoding apparatus, which correspond to those shown in fig. 2, and which can be applied in various electronic devices.
As shown in fig. 3, the video transcoding device 300 of some embodiments includes: a receiving unit 301 and an executing unit 302. Wherein the receiving unit 301 is configured to receive at least one non-security standard encoded video transmitted by an associated network camera, wherein a video encoding pixel processing amount corresponding to the target camera is greater than a pixel amount corresponding to an image sensor of the network camera; the execution unit 302 is configured to, for each received non-security standard encoded video, perform the following steps: decoding the non-security standard coded video based on a preset color space to obtain a decoded non-security standard coded video serving as a preset color format video; performing security standard coding processing on the preset color format video to obtain a security standard coding video; packaging the security standard coding video to obtain a packaged video; and sending the packaged video to an associated user terminal so that the user terminal can decode and display the packaged video.
It will be understood that the units described in the apparatus 300 correspond to the various steps in the method described with reference to fig. 2. Thus, the operations, features and resulting advantages described above with respect to the method are also applicable to the apparatus 300 and the units included therein, and are not described herein again.
Referring now to FIG. 4, a block diagram of an electronic device (such as computing device 101 shown in FIG. 1)400 suitable for use in implementing some embodiments of the present disclosure is shown. The electronic device 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, electronic device 400 may include a processing device (e.g., central processing unit, graphics processor, etc.) 401 that may perform various appropriate actions and processes in accordance with 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. In the RAM403, various programs and data necessary for the operation of the electronic apparatus 400 are also stored. The processing device 401, the ROM 402, and the RAM403 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. The communication means 409 may allow the electronic device 400 to communicate wirelessly or by wire with other devices to exchange data. While fig. 4 illustrates an electronic device 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. Each block shown in fig. 4 may represent one device or may represent multiple devices as desired.
In particular, according to some embodiments of the present disclosure, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, some 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 some such embodiments, the computer program may be downloaded and installed from a network through the communication device 409, or from the storage device 408, or from the ROM 402. The computer program, when executed by the processing apparatus 401, performs the above-described functions defined in the methods of some embodiments of the present disclosure.
It should be noted that the computer readable medium described in some embodiments of the present disclosure may 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 some embodiments of the 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 some embodiments of the present disclosure, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, 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.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: receiving at least one non-security standard encoded video transmitted by an associated webcam, wherein a video encoding pixel processing amount corresponding to a target camera is greater than a pixel amount corresponding to an image sensor of the webcam; for each received non-security standard encoded video, performing the following steps: decoding the non-security standard coded video based on a preset color space to obtain a decoded non-security standard coded video serving as a preset color format video; performing security standard coding processing on the video with the preset color format to obtain a security standard coded video; packaging the security standard coding video to obtain a packaged video; the encapsulated video is sent to an associated user terminal so that the user terminal can decode and display the encapsulated video.
Computer program code for carrying out operations for embodiments 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 units described in some embodiments of the present disclosure may be implemented by software, and may also be implemented by hardware. The described units may also be provided in a processor, and may be described as: a processor includes a receiving unit and an execution unit. Where the names of the units do not in some cases constitute a limitation of the unit itself, for example, a receiving unit may also be described as a "unit that receives at least one non-security standard encoded video transmitted by an associated webcam".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
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 invention in the embodiments of the present disclosure is not limited to the specific combination of the above-mentioned features, but also encompasses other embodiments in which any combination of the above-mentioned features or their equivalents is made without departing from the inventive concept as defined above. For example, the above features and (but not limited to) technical features with similar functions disclosed in the embodiments of the present disclosure are mutually replaced to form the technical solution.

Claims (10)

1. A video transcoding method is applied to a target camera and comprises the following steps:
receiving at least one non-security standard encoded video transmitted by an associated webcam, wherein a video encoding pixel processing amount corresponding to the target camera is greater than a pixel amount corresponding to an image sensor of the webcam;
for each received non-security standard encoded video, performing the following steps:
decoding the non-security standard coded video based on a preset color space to obtain a decoded non-security standard coded video serving as a preset color format video;
performing security standard coding processing on the preset color format video to obtain a security standard coding video;
packaging the security standard coding video to obtain a packaged video;
the encapsulated video is sent to an associated user terminal so that the user terminal can decode and display the encapsulated video.
2. The method of claim 1, wherein the receiving at least one non-security standard encoded video transmitted by an associated webcam comprises:
receiving at least one non-security standard encoded video transmitted by an associated at least one network camera, wherein a video encoding pixel processing amount corresponding to the target camera is equal to or greater than a sum of a total pixel amount of image sensors corresponding to each of the at least one network camera and a pixel amount of an image sensor corresponding to the target camera.
3. The method of claim 1, wherein the performing security standard encoding processing on the preset color format video comprises:
performing inter-frame bidirectional predictive coding processing on the preset color format video to obtain a predictive coded video;
carrying out region-of-interest variable-quality coding processing on the predictive coding video to obtain a variable-quality coding video;
carrying out self-adaptive binary coding processing on the variable-quality coded video to obtain a binary coded video;
and generating a security standard coded video based on the binary coded video.
4. The method of claim 3, wherein the generating a security standard encoded video based on the binary encoded video comprises:
encrypting the binary coded video to obtain an encrypted video;
and carrying out scalable video coding processing on the encrypted video to obtain a security standard coded video.
5. The method of claim 1, wherein the method further comprises:
and responding to the situation that the non-security standard coded video sent by the network camera is not received within a preset time period, and sending prompt information to the user terminal.
6. The method according to one of claims 1-5, wherein the method further comprises:
in response to the detection of a target preset color format video acquired by an image sensor of the target camera, performing security standard coding processing on the target preset color format video to obtain a target security standard coding video;
and sending the target security standard coded video to the user terminal, so that the user terminal can decode and display the target security standard coded video.
7. The method of claim 1, wherein the method further comprises:
and in response to the time interval between the time of receiving the non-security standard coded video and the time of sending the packaged video to the user terminal being greater than or equal to the preset time, controlling the associated alarm equipment to execute the alarm operation corresponding to the time interval.
8. A video transcoding device, comprising:
a receiving unit configured to receive at least one non-security standard encoded video transmitted by an associated network camera, wherein a video encoding pixel processing amount corresponding to the target camera is greater than a pixel amount of an image sensor corresponding to the network camera;
an execution unit configured to, for each received non-security standard encoded video, perform the following steps: decoding the non-security standard coded video based on a preset color space to obtain a decoded non-security standard coded video serving as a preset color format video; performing security standard coding processing on the preset color format video to obtain a security standard coding video; packaging the security standard coding video to obtain a packaged video; the encapsulated video is sent to an associated user terminal so that the user terminal can decode and display the encapsulated video.
9. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon;
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-7.
10. A computer-readable medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the method of any one of claims 1 to 7.
CN202111037731.XA 2021-09-06 2021-09-06 Video transcoding method, device, electronic equipment and computer readable medium Pending CN113784143A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111037731.XA CN113784143A (en) 2021-09-06 2021-09-06 Video transcoding method, device, electronic equipment and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111037731.XA CN113784143A (en) 2021-09-06 2021-09-06 Video transcoding method, device, electronic equipment and computer readable medium

Publications (1)

Publication Number Publication Date
CN113784143A true CN113784143A (en) 2021-12-10

Family

ID=78841170

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111037731.XA Pending CN113784143A (en) 2021-09-06 2021-09-06 Video transcoding method, device, electronic equipment and computer readable medium

Country Status (1)

Country Link
CN (1) CN113784143A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114866778A (en) * 2022-07-08 2022-08-05 天讯瑞达通信技术有限公司 Monitoring video safety system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107070686A (en) * 2016-12-23 2017-08-18 武汉烽火众智数字技术有限责任公司 A kind of system and method for the parallel transcoding of video monitoring platform code stream
CN107318000A (en) * 2017-06-22 2017-11-03 重庆邮电大学 A kind of wireless video monitoring system based on cloud platform
CN108063953A (en) * 2017-12-28 2018-05-22 武汉烽火众智数字技术有限责任公司 The code-transferring method of video code conversion gateway, monitoring system and video code conversion gateway
CN207399398U (en) * 2017-09-30 2018-05-22 厦门瞳景智能科技有限公司 Remote monitoring system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107070686A (en) * 2016-12-23 2017-08-18 武汉烽火众智数字技术有限责任公司 A kind of system and method for the parallel transcoding of video monitoring platform code stream
CN107318000A (en) * 2017-06-22 2017-11-03 重庆邮电大学 A kind of wireless video monitoring system based on cloud platform
CN207399398U (en) * 2017-09-30 2018-05-22 厦门瞳景智能科技有限公司 Remote monitoring system
CN108063953A (en) * 2017-12-28 2018-05-22 武汉烽火众智数字技术有限责任公司 The code-transferring method of video code conversion gateway, monitoring system and video code conversion gateway

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114866778A (en) * 2022-07-08 2022-08-05 天讯瑞达通信技术有限公司 Monitoring video safety system
CN114866778B (en) * 2022-07-08 2022-09-06 天讯瑞达通信技术有限公司 Monitoring video safety system

Similar Documents

Publication Publication Date Title
WO2018010662A1 (en) Video file transcoding method and device, and storage medium
CN110662114B (en) Video processing method and device, electronic equipment and storage medium
EP3861484A1 (en) An apparatus, a method and a computer program for running a neural network
CN113938470B (en) Method and device for playing RTSP data source by browser and streaming media server
WO2021057697A1 (en) Video encoding and decoding methods and apparatuses, storage medium, and electronic device
CN111343503B (en) Video transcoding method and device, electronic equipment and storage medium
CN114125432B (en) Video data processing method, device, equipment and storage medium
CN111385576B (en) Video coding method and device, mobile terminal and storage medium
CN113784143A (en) Video transcoding method, device, electronic equipment and computer readable medium
US20140313327A1 (en) Processing device, integrated circuit, processing method, and recording medium
WO2021057686A1 (en) Video decoding method and apparatus, video encoding method and apparatus, storage medium and electronic device
CN113259729A (en) Data switching method, server, system and storage medium
CN113242446B (en) Video frame caching method, video frame forwarding method, communication server and program product
CN115767149A (en) Video data transmission method and device
CN112203103B (en) Message processing method, device, electronic equipment and computer readable storage medium
CN113038277B (en) Video processing method and device
CN111385081A (en) End-to-end communication method, device, electronic equipment and medium
CN116760992B (en) Video encoding, authentication, encryption and transmission methods, devices, equipment and media
EP4203479A1 (en) Rendering media streams
CN113727183B (en) Live push method, apparatus, device, storage medium and computer program product
CN111818366A (en) Method and device for playing television programs
WO2023029689A1 (en) Multimedia data sharing method, media sharing server, terminal, electronic device, and computer-readable storage medium
CN115942000B (en) H.264 format video stream transcoding method, device, equipment and medium
CN113364672B (en) Method, device, equipment and computer readable medium for determining media gateway information
CN116781973B (en) Video encoding and decoding method and device, storage medium and electronic 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