CN110611843A - Video processing method and device, video access gateway and storage medium - Google Patents

Video processing method and device, video access gateway and storage medium Download PDF

Info

Publication number
CN110611843A
CN110611843A CN201910992429.6A CN201910992429A CN110611843A CN 110611843 A CN110611843 A CN 110611843A CN 201910992429 A CN201910992429 A CN 201910992429A CN 110611843 A CN110611843 A CN 110611843A
Authority
CN
China
Prior art keywords
video
video stream
access interface
analog
digital converter
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
CN201910992429.6A
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.)
Chengdu Zhonghang Xinhong Technology Co Ltd
Original Assignee
Chengdu Zhonghang Xinhong 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 Chengdu Zhonghang Xinhong Technology Co Ltd filed Critical Chengdu Zhonghang Xinhong Technology Co Ltd
Priority to CN201910992429.6A priority Critical patent/CN110611843A/en
Publication of CN110611843A publication Critical patent/CN110611843A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440263Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by altering the spatial resolution, e.g. for displaying on a connected PDA
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440263Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by altering the spatial resolution, e.g. for displaying on a connected PDA
    • H04N21/440272Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by altering the spatial resolution, e.g. for displaying on a connected PDA for performing aspect ratio conversion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/643Communication protocols

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The application provides a video processing method and device, a video access gateway and a storage medium, and relates to the technical field of video processing. In the application, first, a to-be-processed video stream converted by an analog-to-digital converter is acquired from a target access interface based on a preset transmission protocol, wherein the transmission protocol is matched with the target access interface. And secondly, decoding the video stream to be processed, and performing rotation processing on the first video stream obtained by decoding based on the acquired angle information. Then, the first video stream after the rotation processing is subjected to encoding processing, and a second video stream obtained by encoding is output. By the method, the problem of poor universality in the existing video stream processing technology can be solved.

Description

Video processing method and device, video access gateway and storage medium
Technical Field
The present application relates to the field of video processing technologies, and in particular, to a video processing method and apparatus, a video access gateway, and a storage medium.
Background
In some video playing applications, angle conversion may be required for the played video based on different requirements, for example, horizontal screen playing and vertical screen playing in a mobile phone application. The angle conversion may be performed at the player terminal or at the server.
The inventors have found that, when the player terminal performs the angle conversion process, it is necessary to design the player terminal separately for each player terminal, and thus the player terminal has a problem of poor versatility. When the server performs the angle conversion process, the output video stream is difficult to be widely used because the transport protocol is not processed, and thus, the problem of poor general usability also exists.
Disclosure of Invention
In view of the above, an object of the present application is to provide a video processing method and apparatus, a video access gateway and a storage medium, so as to solve the problem of poor universality existing in the existing video stream processing technology.
In order to achieve the above purpose, the embodiment of the present application adopts the following technical solutions:
a video processing method applied to a processor of a video access gateway, the video access gateway further comprising an analog-to-digital converter communicatively connected to the processor, the analog-to-digital converter having a target access interface configured thereon, the method comprising:
acquiring a to-be-processed video stream converted by the analog-to-digital converter from the target access interface based on a preset transmission protocol, wherein the transmission protocol is matched with the target access interface;
decoding the video stream to be processed, and performing rotation processing on a first video stream obtained by decoding based on the acquired angle information;
and performing coding processing on the first video stream after the rotation processing, and outputting a second video stream obtained by coding.
In a preferred option of the embodiment of the present application, in the video processing method, the target access interface is a real-time stream access interface or a real-time message access interface, and the step of obtaining the to-be-processed video stream converted by the analog-to-digital converter from the target access interface based on a preset transmission protocol includes:
acquiring a to-be-processed video stream converted by the analog-to-digital converter from the real-time stream access interface based on a preset real-time stream transmission protocol; or
And acquiring the video stream to be processed converted by the analog-to-digital converter from the real-time message access interface based on a preset real-time message transmission protocol.
In a preferred option of the embodiment of the present application, in the video processing method, the step of outputting the second video stream obtained by encoding includes:
and outputting the second video stream obtained by encoding to a target position based on a real-time message transmission protocol.
In a preferred choice of the embodiment of the present application, in the video processing method, the method further includes:
and acquiring the angle information based on a preset angle acquisition rule.
In a preferred option of the embodiment of the present application, in the video processing method, the step of obtaining the angle information based on a preset angle obtaining rule includes:
judging whether an angle replacing instruction generated based on the operation of a user is received within a preset time length;
and if the angle change instruction is received within the preset time length, obtaining the angle information based on the angle change instruction.
In a preferred option of the embodiment of the present application, in the video processing method, the step of obtaining the angle information based on a preset angle obtaining rule further includes:
if the angle change instruction is not received within the preset time length, a preset configuration file is obtained, and the angle information is obtained based on the configuration file.
The embodiment of the present application further provides a video processing apparatus, which is applied to a processor of a video access gateway, where the video access gateway further includes an analog-to-digital converter in communication connection with the processor, and a target access interface is configured on the analog-to-digital converter, and the apparatus includes:
the video acquisition module is used for acquiring the video stream to be processed converted by the analog-to-digital converter from the target access interface based on a preset transmission protocol, wherein the transmission protocol is matched with the target access interface;
the video rotation module is used for decoding the video stream to be processed and rotating a first video stream obtained by decoding based on the acquired angle information;
and the video output module is used for coding the first video stream after the rotation processing and outputting a second video stream obtained by coding.
In a preferred option of the embodiment of the present application, in the video processing apparatus, the target access interface is a real-time stream access interface or a real-time message access interface, and the video obtaining module is specifically configured to:
acquiring a to-be-processed video stream converted by the analog-to-digital converter from the real-time stream access interface based on a preset real-time stream transmission protocol; or
And acquiring the video stream to be processed converted by the analog-to-digital converter from the real-time message access interface based on a preset real-time message transmission protocol.
On the basis, an embodiment of the present application further provides a video access gateway, including:
the analog-to-digital converter is provided with a target access interface;
a processor in communication with the analog-to-digital converter, the processor configured to perform the video processing method described above.
On the basis of the foregoing, embodiments of the present application further provide a computer-readable storage medium, on which a computer program is stored, and the computer program implements the video processing method described above when executed.
According to the video processing method and device, the video access gateway and the storage medium, the matched transmission protocol and the target access interface are set, and then the video stream to be processed is obtained through the target access interface based on the transmission protocol and is correspondingly rotated (angle conversion processed) and output. Therefore, on one hand, because the angle conversion processing is completed in the video access gateway, different conversion schemes do not need to be designed according to different player terminals; on the other hand, the acquired video stream to be processed has a uniform protocol, so that a plurality of transcoding or output schemes are not required to be configured in advance in the transcoding and outputting process. Therefore, the technical scheme provided by the application can be used for solving the problem of poor universality existing in the existing video stream processing technology.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
Fig. 1 is an application scene interaction diagram of a video access gateway according to an embodiment of the present application.
Fig. 2 is a flowchart of a video processing method according to an embodiment of the present application.
Fig. 3 is a schematic diagram illustrating an effect of performing rotation processing on a video frame according to an embodiment of the present application.
Fig. 4 is a block diagram illustrating functional modules included in a video processing apparatus according to an embodiment of the present disclosure.
Icon: 10-a video access gateway; 12-an analog-to-digital converter; 14-a processor; 16-a memory; 100-video processing means; 110-a video acquisition module; 120-video rotation module; 130-video output module.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
As shown in fig. 1, the present embodiment provides a video access gateway 10. The video access gateway 10 may be in communication connection with a video matrix device (or a video source device capable of outputting an analog signal) and a terminal device, respectively, and is configured to process a video stream output by the video matrix device and output the processed video stream to the terminal device, so that the terminal device plays the video stream.
In detail, the video access gateway 10 may include an analog-to-digital converter 12 and a processor 14. The analog-to-digital converter 12 may be communicatively connected to the video matrix device, and is configured to receive a video stream (the video stream is an analog signal) output by the video matrix device and perform an analog-to-digital conversion process on the video stream (the processed video stream is a digital signal). The processor 14 may also be communicatively coupled to the analog-to-digital converter 12 for obtaining an analog-to-digital converted processed video stream.
The analog-to-digital converter 12 is configured with a target access interface, so that the processor 14 can obtain a video stream obtained by analog-to-digital conversion through the target access interface for processing based on a transmission protocol matched with the target access interface.
It should be noted that the specific type of the video stream is not limited, and may be selected according to the actual application requirements.
For example, in an alternative example, the video stream may be surveillance video (e.g., obtained by capturing a surveillance object via an image capture device communicatively coupled to the video matrix device). Therefore, the video stream is played through the terminal equipment, so that a user can monitor the corresponding monitored object.
Optionally, the specific type of the analog-to-digital converter 12 is not limited, and may be selected according to the requirements of the actual application.
For example, in an alternative example, the analog-to-digital converter 12 may be a hardware encoder model DS-6701 HFH. For another example, in another alternative example, the analog-to-digital converter 12 may also be another device having an analog-to-digital conversion function, as long as the target access interface can be provided and the transmission protocol is supported.
Optionally, the specific type of the processor 14 is not limited, and may be selected according to the actual application requirements.
For example, in an alternative example, the processor 14 may be a Central Processing Unit (CPU). For another example, in another alternative example, the processor 14 may also be a Graphics Processing Unit (GPU).
The specific type of the target access interface is also not limited, and may be, for example, a real-time streaming access interface (RTSP interface) or a real-time message access interface (RTMP interface).
Correspondingly, the specific type of the transmission Protocol is not limited, and may be, for example, a Real Time Streaming Protocol (RTSP) Protocol or a Real Time Messaging Protocol (RTMP) Protocol.
It is understood that the video access gateway 10 may further include a memory 16 and a video processing device 100 stored on the memory 16.
In detail, the memory 16 and the processor 14 may be directly or indirectly electrically connected to realize data transmission or interaction. For example, they may be electrically connected to each other via one or more communication buses or signal lines. The video processing apparatus 100 includes at least one software functional module that can be stored in the memory 16 in the form of software or firmware (firmware). The processor 14 is configured to execute executable computer programs stored in the memory 16, such as software functional modules and computer programs included in the video processing apparatus 100, so as to implement the video processing method provided by the embodiment of the present application.
The Memory 16 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like.
It should be noted that the structure shown in fig. 1 is only an illustration, and the video access gateway 10 may further include more or fewer components than those shown in fig. 1, or have a different configuration from that shown in fig. 1, for example, may further include a communication unit for information interaction with other devices.
With reference to fig. 2, an embodiment of the present application further provides a video processing method applicable to the processor 14 of the video access gateway 10. Wherein the video access gateway 10 further comprises an analog-to-digital converter 12 communicatively connected to the processor 14, the analog-to-digital converter 12 is configured with a target access interface, and the method steps defined by the flow related to the video processing method can be implemented by the processor 14. The specific process shown in fig. 2 will be described in detail below.
Step S110, obtaining the to-be-processed video stream converted by the analog-to-digital converter 12 from the target access interface based on a preset transmission protocol.
In this embodiment, the transmission protocol is matched with the target access interface, so that the processor 14 can obtain the video stream to be processed (i.e. the digital video stream converted by the analog-to-digital converter 12) from the target access interface based on the transmission protocol.
That is, the processor 14 may perform a stream fetching operation from the target access interface based on the transmission protocol to obtain the to-be-processed video stream.
Step S120, decoding the video stream to be processed, and performing rotation processing on the first video stream obtained by decoding based on the acquired angle information.
In this embodiment, after the to-be-processed video stream is obtained in step S110, the to-be-processed video stream may be decoded first. Then, the first video stream obtained by decoding is subjected to rotation processing based on the acquired angle information.
Step S130, performing encoding processing on the first video stream after the rotation processing, and outputting a second video stream obtained by encoding.
In this embodiment, after the rotated first video stream is obtained in step S120, the first video stream may be encoded to obtain a second video stream. Then, the second video stream is output.
Based on the above method, on one hand, since the angle conversion process (the rotation process based on the angle information) is performed at the video access gateway 10, it is not necessary to design different conversion schemes according to different player terminals (such as the above terminal devices). On the other hand, the acquired video stream to be processed has a uniform protocol (such as the preset transmission protocol), so that a plurality of transcoding or output schemes are not required to be configured in advance in the transcoding and outputting process. Therefore, the video processing method can solve the problem of poor universality in the existing video stream processing technology.
Optionally, the specific manner of obtaining the video to be processed based on step S110 is not limited, and may be selected according to the actual application requirement.
For example, in an alternative example, the target access interface may be a real-time stream access interface, and correspondingly, step S110 may include the following sub-steps: and acquiring the to-be-processed video stream converted by the analog-to-digital converter 12 from the real-time stream access interface based on a preset real-time stream transmission protocol.
That is, the processor 14 may perform a stream fetching operation from the real-time stream access interface based on the real-time streaming protocol, so as to obtain the to-be-processed video stream.
For another example, in another alternative example, the target access interface may be a real-time message access interface, and correspondingly, step S110 may include the following sub-steps: and acquiring the video stream to be processed converted by the analog-to-digital converter 12 from the real-time message access interface based on a preset real-time message transmission protocol.
That is, the processor 14 may perform a stream fetching operation from the real-time message access interface based on the real-time message transmission protocol, so as to obtain the to-be-processed video stream.
It should be noted that, when the processor 14 performs a flow fetching operation, the processor 14 may further determine, based on a preset configuration file, a number of ways to fetch a flow and an initial address, so as to perform the flow fetching operation based on the number of ways and the initial address.
Optionally, the way of performing the rotation processing on the first video stream based on step S120 is also not limited, and may be selected according to the actual application requirement.
For example, in an alternative example, the rotation process for the first video stream may be completed based on performing a rotation assignment operation on each video frame in the first video stream.
In detail, referring to fig. 3, a certain video frame of the first video stream includes 4 vertices A, B, C and D, and the corresponding coordinates may be (0, 0), (2, 1) and (0, 1). Thus, after the video frame is rotated 90 degrees clockwise, the coordinates corresponding to A, B, C and D are (1, 0), (1, 2), (0, 2), and (0, 0), respectively.
Optionally, the manner of encoding the rotation-processed first video stream based on step S130 is also not limited, and may be selected according to the actual application requirement.
For example, in an alternative example, the first video stream may be encoded in YUV420 data format to obtain the second video stream.
Moreover, the specific manner of outputting the second video stream based on step S130 is not limited, and may be selected according to the actual application requirements.
For example, in an alternative example, in order to enable the output second video stream to be played on more playing devices (such as the terminal device described above), so as to further improve the versatility of the video processing method described above, step S130 may include the following sub-steps: and outputting the second video stream obtained by encoding to a target position based on a real-time message transmission protocol.
That is to say, a protocol header conforming to the real-time messaging protocol may be added to the second video stream, and then, an address of the target location is obtained from a preset configuration file, and stream pushing processing is performed based on the address, so as to output the address to the target location.
The target position may refer to a streaming media soft switching controller, so that the streaming media soft switching controller may forward the second video stream to a playing device (or, the playing device may perform a streaming operation from the streaming media soft switching controller to obtain the second video stream).
The streaming media soft switching controller may refer to a software function module formed by a computer program stored in the video access gateway 10, or may refer to a software function module formed on a streaming media server communicatively connected to the video access gateway 10.
That is, the software functional module corresponding to the streaming media soft switching controller may be configured in the video access gateway 10, or may be configured in a streaming media server communicatively connected to the video access gateway 10.
In addition, in order to facilitate the playing device to perform an effective stream fetching operation on the streaming media soft switch controller, after the processor 14 outputs the second video stream to the streaming media soft switch controller, a push address may be generated based on an address of the streaming media soft switch controller and time information for performing encoding processing, so that after the playing device acquires the push address, the playing device may perform an effective stream fetching operation on the streaming media soft switch controller based on the push address.
Further, considering that in step S120, the decoded first video stream needs to be subjected to rotation processing based on the acquired angle information, the video processing method may further include the following steps: and acquiring the angle information based on a preset angle acquisition rule.
The specific content of the angle acquisition rule is not limited, and can be selected according to the actual application requirements.
For example, in an alternative example, the corresponding angle information may be set in a preset configuration file. Then, when the first video stream needs to be rotated, the configuration file is directly read to obtain the angle information.
For another example, in another alternative example, the corresponding angle information may be obtained based on an instruction generated by an operation of a user. In detail, the step of acquiring the angle information may include the sub-steps of:
firstly, whether an angle replacing instruction generated based on user operation is received in a preset time length can be judged; secondly, if the angle change instruction is received within the preset time, the angle information can be obtained based on the angle change instruction.
That is, as long as the angle change instruction is received within the preset time period, the corresponding angle information is determined based on the angle change instruction, and then the corresponding rotation processing is performed based on the angle information.
The receiving of the angle change instruction within the preset time period may be receiving the angle change instruction within a period of time before the rotation process needs to be started.
For example, if the preset time period is 30 minutes, the time required to start the rotation process is 16 o 'clock 23 o' clock 2019, and thus, if the angle change instruction is received between 15 o 'clock 40 o' clock 23 o 'clock 2019 and 23 o' clock 16 o 'clock 10 o' clock 2019, then the corresponding angle information is determined based on the angle change instruction, and the angle information includes, but is not limited to, 45 degrees, 90 degrees, 180 degrees, 270 degrees, and the like).
It should be noted that the specific value of the preset duration is not limited, and may be selected according to the actual application requirement. For example, it may be 30 minutes as described above, or it may be other time periods, such as 5 minutes, 1 minute, or 30 seconds.
Further, based on the foregoing determining step, if it is determined that the angle change instruction is not received within the preset duration, the manner of obtaining the angle information is not limited.
For example, in an alternative example, when it is determined that the angle change instruction is not received within the preset time period, the angle information determined to correspond to the most recently received angle change instruction may be acquired.
For another example, in another alternative example, when it is determined that the angle change instruction is not received within the preset time period, a preset configuration file may be obtained, and the angle information may be obtained based on the configuration file.
That is, in a specific application example, when receiving an instruction from a user, angle information may be determined based on the instruction from the user, and corresponding rotation processing may be performed based on the angle information. If the instruction of the user is not received, corresponding rotation processing can be carried out based on the preset angle information.
Therefore, on the basis of ensuring that the first video stream after decoding processing can be subjected to rotation processing at a certain angle, the first video stream after decoding processing can be subjected to rotation processing at a certain angle according to the requirements of users, the practical value of the video processing method is effectively improved, and the requirements of different users can be met.
The manner of receiving the angle change instruction is not limited, and for example, a TCP (Transmission Control Protocol) command generated and transmitted by another device in response to the operation of the user may be received through a configured TCP Control interface. That is, the angle change instruction may be a TCP command received.
With reference to fig. 4, the embodiment of the present application further provides a video processing apparatus 100 applicable to the processor 14 of the video access gateway 10. The video access gateway 10 further includes an analog-to-digital converter 12 communicatively connected to the processor 14, the analog-to-digital converter 12 is configured with a target access interface, and the video processing apparatus 100 may include a video acquisition module 110, a video rotation module 120, and a video output module 130.
The video obtaining module 110 is configured to obtain, from the target access interface, a to-be-processed video stream obtained by converting by the analog-to-digital converter 12 based on a preset transmission protocol, where the transmission protocol is matched with the target access interface. In this embodiment, the video obtaining module 110 may be configured to perform step S110 shown in fig. 2, and reference may be made to the foregoing description of step S110 regarding relevant contents of the video obtaining module 110.
The video rotation module 120 is configured to decode the video stream to be processed, and perform rotation processing on a first video stream obtained by decoding based on the obtained angle information. In this embodiment, the video rotation module 120 may be configured to perform step S120 shown in fig. 2, and reference may be made to the foregoing description of step S120 for relevant contents of the video rotation module 120.
The video output module 130 is configured to perform encoding processing on the first video stream after the rotation processing, and output a second video stream obtained by encoding. In this embodiment, the video output module 130 can be configured to perform step S130 shown in fig. 2, and reference may be made to the foregoing description of step S130 for relevant contents of the video output module 130.
It should be noted that the specific role of the video capture module 110 may also be different based on the specific type of the target access interface configured on the analog-to-digital converter 12.
For example, in an alternative example, the target access interface may be a real-time streaming access interface (RTSP interface), and the video obtaining module 110 may be specifically configured to obtain, based on a preset real-time streaming protocol, the to-be-processed video stream converted by the analog-to-digital converter 12 from the real-time streaming access interface.
For another example, in another alternative example, the target access interface may be a real-time messaging access interface (RTMP interface), and the video acquiring module 110 may be specifically configured to acquire the to-be-processed video stream converted by the analog-to-digital converter 12 from the real-time messaging access interface based on a preset real-time messaging protocol.
In an embodiment of the present application, there is also provided a computer-readable storage medium, in which a computer program is stored, and the computer program executes the steps of the video processing method when running.
Here, the steps executed when the computer program runs are not described in detail, and reference may be made to the foregoing explanation of the video processing method.
To sum up, the video processing method and apparatus, the video access gateway, and the storage medium provided by the present application set a transmission protocol and a target access interface that are matched with each other, and then obtain a video stream to be processed through the target access interface based on the transmission protocol and perform corresponding rotation processing (angle conversion processing) and output. Therefore, on one hand, since the angle conversion processing is completed in the video access gateway 10, different conversion schemes do not need to be designed according to different player terminals; on the other hand, the acquired video stream to be processed has a uniform protocol, so that a plurality of transcoding or output schemes are not required to be configured in advance in the transcoding and outputting process. Therefore, the technical scheme provided by the application can be used for solving the problem of poor universality existing in the existing video stream processing technology.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus and method embodiments described above are illustrative only, as the flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. 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.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, an electronic device, or a network device) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes. It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus 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 apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A video processing method applied to a processor of a video access gateway, the video access gateway further comprising an analog-to-digital converter communicatively connected to the processor, the analog-to-digital converter having a target access interface configured thereon, the method comprising:
acquiring a to-be-processed video stream converted by the analog-to-digital converter from the target access interface based on a preset transmission protocol, wherein the transmission protocol is matched with the target access interface;
decoding the video stream to be processed, and performing rotation processing on a first video stream obtained by decoding based on the acquired angle information;
and performing coding processing on the first video stream after the rotation processing, and outputting a second video stream obtained by coding.
2. The video processing method according to claim 1, wherein the target access interface is a real-time stream access interface or a real-time message access interface, and the step of obtaining the video stream to be processed converted by the analog-to-digital converter from the target access interface based on a preset transmission protocol comprises:
acquiring a to-be-processed video stream converted by the analog-to-digital converter from the real-time stream access interface based on a preset real-time stream transmission protocol; or
And acquiring the video stream to be processed converted by the analog-to-digital converter from the real-time message access interface based on a preset real-time message transmission protocol.
3. The video processing method according to claim 1, wherein the step of outputting the encoded second video stream comprises:
and outputting the second video stream obtained by encoding to a target position based on a real-time message transmission protocol.
4. A video processing method according to any of claims 1-3, characterized in that the method further comprises:
and acquiring the angle information based on a preset angle acquisition rule.
5. The video processing method according to claim 4, wherein the step of obtaining the angle information based on a preset angle obtaining rule comprises:
judging whether an angle replacing instruction generated based on the operation of a user is received within a preset time length;
and if the angle change instruction is received within the preset time length, obtaining the angle information based on the angle change instruction.
6. The video processing method according to claim 5, wherein the step of obtaining the angle information based on a preset angle obtaining rule further comprises:
if the angle change instruction is not received within the preset time length, a preset configuration file is obtained, and the angle information is obtained based on the configuration file.
7. A video processing apparatus for use in a processor of a video access gateway, the video access gateway further comprising an analog-to-digital converter communicatively coupled to the processor, the analog-to-digital converter having a target access interface configured thereon, the apparatus comprising:
the video acquisition module is used for acquiring the video stream to be processed converted by the analog-to-digital converter from the target access interface based on a preset transmission protocol, wherein the transmission protocol is matched with the target access interface;
the video rotation module is used for decoding the video stream to be processed and rotating a first video stream obtained by decoding based on the acquired angle information;
and the video output module is used for coding the first video stream after the rotation processing and outputting a second video stream obtained by coding.
8. The video processing apparatus according to claim 7, wherein the target access interface is a real-time stream access interface or a real-time message access interface, and the video acquisition module is specifically configured to:
acquiring a to-be-processed video stream converted by the analog-to-digital converter from the real-time stream access interface based on a preset real-time stream transmission protocol; or
And acquiring the video stream to be processed converted by the analog-to-digital converter from the real-time message access interface based on a preset real-time message transmission protocol.
9. A video access gateway, comprising:
the analog-to-digital converter is provided with a target access interface;
a processor communicatively coupled to the analog-to-digital converter, the processor configured to perform the video processing method of any of claims 1-6.
10. A computer-readable storage medium, on which a computer program is stored, characterized in that the program, when executed, implements the video processing method of any of claims 1-6.
CN201910992429.6A 2019-10-18 2019-10-18 Video processing method and device, video access gateway and storage medium Pending CN110611843A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910992429.6A CN110611843A (en) 2019-10-18 2019-10-18 Video processing method and device, video access gateway and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910992429.6A CN110611843A (en) 2019-10-18 2019-10-18 Video processing method and device, video access gateway and storage medium

Publications (1)

Publication Number Publication Date
CN110611843A true CN110611843A (en) 2019-12-24

Family

ID=68893233

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910992429.6A Pending CN110611843A (en) 2019-10-18 2019-10-18 Video processing method and device, video access gateway and storage medium

Country Status (1)

Country Link
CN (1) CN110611843A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113079351A (en) * 2021-03-23 2021-07-06 无锡耘林大数据科技有限公司 Data gateway, video monitoring time calibration method and monitoring system
CN115150369A (en) * 2022-06-29 2022-10-04 湖北天融信网络安全技术有限公司 Audio and video proxy method and audio and video proxy container

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103458106A (en) * 2013-08-07 2013-12-18 广东欧珀移动通信有限公司 Method for controlling transverse-vertical-screen display mode of mobile terminal and mobile terminal
CN105611295A (en) * 2015-12-23 2016-05-25 中国航天时代电子公司 System and method for implementing video capture, compression and transmission on SOC (System On Chip)
CN108260018A (en) * 2017-02-13 2018-07-06 广州市动景计算机科技有限公司 Full frame setting method, equipment and the mobile equipment of video web page
CN108574806A (en) * 2017-03-09 2018-09-25 腾讯科技(深圳)有限公司 Video broadcasting method and device
CN108732775A (en) * 2018-05-24 2018-11-02 芜湖科弟电子科技有限公司 A kind of bore hole 3D advertisement machines that rotatably adjustable horizontal/vertical screen is shown
CN108965711A (en) * 2018-07-27 2018-12-07 广州酷狗计算机科技有限公司 Method for processing video frequency and device
CN109981898A (en) * 2019-03-14 2019-07-05 维沃移动通信有限公司 A kind of method, apparatus and terminal of record screen

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103458106A (en) * 2013-08-07 2013-12-18 广东欧珀移动通信有限公司 Method for controlling transverse-vertical-screen display mode of mobile terminal and mobile terminal
CN105611295A (en) * 2015-12-23 2016-05-25 中国航天时代电子公司 System and method for implementing video capture, compression and transmission on SOC (System On Chip)
CN108260018A (en) * 2017-02-13 2018-07-06 广州市动景计算机科技有限公司 Full frame setting method, equipment and the mobile equipment of video web page
CN108574806A (en) * 2017-03-09 2018-09-25 腾讯科技(深圳)有限公司 Video broadcasting method and device
CN108732775A (en) * 2018-05-24 2018-11-02 芜湖科弟电子科技有限公司 A kind of bore hole 3D advertisement machines that rotatably adjustable horizontal/vertical screen is shown
CN108965711A (en) * 2018-07-27 2018-12-07 广州酷狗计算机科技有限公司 Method for processing video frequency and device
CN109981898A (en) * 2019-03-14 2019-07-05 维沃移动通信有限公司 A kind of method, apparatus and terminal of record screen

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王公儒: "《可视对讲系统工程实用技术》", 31 December 2018, 中国铁道出版社 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113079351A (en) * 2021-03-23 2021-07-06 无锡耘林大数据科技有限公司 Data gateway, video monitoring time calibration method and monitoring system
CN115150369A (en) * 2022-06-29 2022-10-04 湖北天融信网络安全技术有限公司 Audio and video proxy method and audio and video proxy container

Similar Documents

Publication Publication Date Title
CN108282164B (en) Data encoding and decoding method and device
CN110784718B (en) Video data encoding method, apparatus, device and storage medium
CN110536176B (en) Video resolution adjusting method, electronic equipment and storage medium
CN109391585B (en) Video data processing method, device, terminal and computer readable storage medium
WO2017041551A1 (en) Spice protocol-based image transmission method and apparatus
CN105163134A (en) Video coding parameter setting method, device and video coding device for live video
JP2012521721A5 (en)
CN112533059B (en) Image rendering method and device, electronic equipment and storage medium
CN110611843A (en) Video processing method and device, video access gateway and storage medium
WO2017084467A1 (en) Method for processing video stream, device, and system
CN112073737A (en) Re-encoding predicted image frames in live video streaming applications
WO2021057684A1 (en) Video decoding method and apparatus, video encoding method and apparatus, storage medium, and electronic apparatus
CN111343503B (en) Video transcoding method and device, electronic equipment and storage medium
US10819951B2 (en) Recording video from a bitstream
CN113101654A (en) Cloud game picture display method and device and storage medium
CN112954457A (en) Video playing and displaying method, device and system
CN111225191A (en) Three-dimensional video fusion method and device and electronic equipment
CN108055595B (en) Video image redirection method and computer-readable storage medium
CN112354177A (en) Webrtc-based cloud game instant starting method, device and system
CN111031032A (en) Cloud video transcoding method and device, decoding method and device, and electronic device
CN109547839A (en) The dynamic previewing processing method and processing device of live content, medium, electronic equipment
CN107493478B (en) Method and device for setting coding frame rate
CN112543348A (en) Remote screen recording method, device, equipment and computer readable storage medium
CN116668741A (en) Cloud desktop display method, image display method, device and storage medium
JP2016530750A (en) Frame processing and playback

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

Application publication date: 20191224