CN115643255A - Video transmission method, device, equipment and storage medium - Google Patents

Video transmission method, device, equipment and storage medium Download PDF

Info

Publication number
CN115643255A
CN115643255A CN202211301791.2A CN202211301791A CN115643255A CN 115643255 A CN115643255 A CN 115643255A CN 202211301791 A CN202211301791 A CN 202211301791A CN 115643255 A CN115643255 A CN 115643255A
Authority
CN
China
Prior art keywords
video
attribute information
recorded
video attribute
information
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
CN202211301791.2A
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.)
Agricultural Bank of China
Original Assignee
Agricultural Bank of China
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 Agricultural Bank of China filed Critical Agricultural Bank of China
Priority to CN202211301791.2A priority Critical patent/CN115643255A/en
Publication of CN115643255A publication Critical patent/CN115643255A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a video transmission method, a video transmission device, video transmission equipment and a storage medium, and relates to the technical field of computers. The video transmission method comprises the following steps: acquiring a video attribute information stream of the recorded video from the message queue; and transmitting the corresponding recorded video according to the video attribute information in the video attribute information stream. According to the technical scheme of the embodiment of the invention, the video attribute information stream is acquired from the message queue, and the corresponding recorded video is transmitted according to the video attribute information in the video attribute information stream, so that the real-time transmission of the video is realized, and the video transmission efficiency is improved.

Description

Video transmission method, device, equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a video transmission method, apparatus, device, and storage medium.
Background
With the rapid development of computer technology, people have more requirements on information forms, and video transmission is widely applied in various industries.
At present, the main scheme of video transmission is end-of-day transmission, i.e., all videos accumulated from a fixed period of the previous day to this period are collectively transmitted within a fixed period of the day. According to the method, the time difference exists in video transmission, real-time transmission cannot be achieved, videos are accumulated in a fixed time period and transmitted in a centralized mode, network congestion is easily caused, and the video transmission efficiency is low.
Disclosure of Invention
The invention provides a video transmission method, a video transmission device, video transmission equipment and a storage medium, which are used for improving the video transmission efficiency.
According to an aspect of the present invention, there is provided a video transmission method including:
acquiring a video attribute information stream of the recorded video from the message queue;
and transmitting the corresponding recorded video according to the video attribute information in the video attribute information stream.
According to another aspect of the present invention, there is provided a video transmission apparatus including:
the information flow obtaining module is used for obtaining the video attribute information flow of the recorded video from the information queue;
and the video transmission module is used for transmitting the corresponding recorded video according to the video attribute information in the video attribute information stream.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the first and the second end of the pipe are connected with each other,
the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform the video transmission method of any of the embodiments of the invention.
According to another aspect of the present invention, there is provided a computer-readable storage medium storing computer instructions for causing a processor to implement the transmission method of any of the embodiments of the present invention when executed.
According to the technical scheme of the embodiment of the invention, the video attribute information stream of the recorded video is obtained from the message queue; and transmitting the corresponding recorded video according to the video attribute information in the video attribute information stream. According to the technical scheme of the embodiment of the invention, the video attribute information stream is obtained from the message queue, and the corresponding recorded video is transmitted according to the video attribute information in the video attribute information stream, so that the real-time transmission of the video is realized, and the video transmission efficiency is improved.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present invention, nor do they necessarily limit the scope of the invention. Other features of the present invention will become apparent from the following description.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the description below are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a video transmission method according to an embodiment of the present invention;
fig. 2A is a flowchart of a video transmission method according to a second embodiment of the present invention;
fig. 2B is a schematic flow chart of video transmission according to a second embodiment of the present invention;
fig. 3A is a flowchart of a video transmission method according to a third embodiment of the present invention;
fig. 3B is a schematic flowchart of a video transmission according to a third embodiment of the present invention;
fig. 4 is a block diagram of a video transmission apparatus according to a fourth embodiment of the present invention;
fig. 5 is a structural diagram of an electronic device implementing a video transmission method according to a fifth embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. 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 invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in other sequences than those illustrated or described herein. Moreover, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In addition, in the technical scheme of the invention, the collection, storage, use, processing, transmission, provision, disclosure and other processing of the related video attribute information and the like all meet the regulations of related laws and regulations and do not violate the good custom of the public order.
Example one
Fig. 1 is a flowchart of a video transmission method according to an embodiment of the present invention, where the present embodiment is applicable to a case of transmitting a video, the method may be performed by a video transmission apparatus, the video transmission apparatus may be implemented in a form of hardware and/or software, and the video transmission apparatus may be configured in an electronic device.
As shown in fig. 1, the method includes:
s101, obtaining video attribute information flow of the recorded video from the message queue.
In this embodiment, the message queue may be a container that stores messages in sequence during message transmission, and the number may be one or more. The messages in the message queue may include, but are not limited to, video attribute information of the recorded video, and the like. The recorded video may be a video recorded with product-related information, such as a recorded video of an appearance of a product, a recorded video of a function introduction of a product, a recorded video of a preparation process of a product, and the like. The video attribute information may include, but is not limited to, at least one of a video upload account number, a video upload time, and a video upload IP (Internet Protocol) address, etc., for uniquely identifying the corresponding recorded video. The video attribute information stream may refer to an information stream formed by continuously acquiring the video attribute information in the message queue and the video attribute information of the at least one recorded video. A plurality of video attribute information is received in succession from the message queue, i.e. a stream of video attribute information is received.
In an alternative embodiment, the message queue may include a message queue composed of video attribute information of recorded video that is recorded completely and/or a message queue composed of video attribute information of recorded video that is stored completely, and the like. Specifically, a message that the recorded video is recorded is received, and a video attribute information stream of the recorded video which is recorded is obtained from a message queue; and receiving a message of finishing the storage of the recorded video, and acquiring the video attribute information of the recorded video after the storage from the message queue. Wherein, the storage completion can be understood as that the recorded video is stored locally.
In one embodiment, the message queue may be configured in a Kafka distributed publish-subscribe messaging system, and the operation of acquiring the video attribute information stream may be configured in a Flink stream computation framework. Namely, a Flink stream calculation framework is used for acquiring a video attribute information stream of a recorded video from a message queue in a Kafka distributed publish-subscribe message system.
And S102, transmitting the corresponding recorded video according to the video attribute information in the video attribute information stream.
Specifically, video attribute information is sequentially acquired from the video attribute information stream, and the recorded video corresponding to the video attribute information is transmitted.
In an alternative embodiment, the video attribute information may be video attribute information of a recorded video that is completed for recording and/or video attribute information of a recorded video that is completed for storing. Specifically, receiving a recorded video corresponding to the video attribute information of the recorded video, and storing the recorded video to the local; and transmitting the recorded video corresponding to the attribute information of the recorded video after storage to a video downloading party.
By adopting the technical scheme, the video transmission can be carried out in real time, and the centralized transmission of the video in a certain time period at the end of the day is spread to 24 hours, so that the occupation of the video transmission on the network bandwidth is reduced, the network congestion is reduced, and the stability of the network is improved.
According to the technical scheme of the embodiment of the invention, the video attribute information stream of the recorded video is obtained from the message queue; and transmitting the corresponding recorded video according to the video attribute information in the video attribute information stream. According to the technical scheme of the embodiment of the invention, the video attribute information stream is obtained from the message queue, and the corresponding recorded video is transmitted according to the video attribute information in the video attribute information stream, so that the real-time transmission of the video is realized, and the video transmission efficiency is improved.
Example two
Fig. 2A is a flowchart of a video transmission method according to a second embodiment of the present invention, and this embodiment optimizes and improves an operation of acquiring a video attribute information stream based on the second embodiment.
Further, the step of obtaining the video attribute information stream of the recorded video from the message queue is refined into the step of obtaining the video attribute information stream of the recorded video which is recorded from the first queue; the method comprises the steps of transmitting corresponding recorded videos according to video attribute information in a video attribute information stream, and refining the video attribute information into recorded videos corresponding to video attribute information which is requested from a recorded video storage system; and receiving the recorded video corresponding to the video attribute information, and uploading the video to a file management system so as to perfect the acquisition operation of the video attribute information stream.
It should be noted that, for parts that are not described in detail in the embodiments of the present invention, reference may be made to related descriptions of other embodiments, and details are not repeated herein.
As shown in fig. 2A, the method includes:
s201, receiving the recorded information, and obtaining the video attribute information flow of the recorded video from the first queue.
Wherein, the recorded message can represent that the recorded video is recorded. The first queue is used for storing video attribute information of the recorded video after recording.
Specifically, a message that the recording of the recorded video is completed is received, and a video attribute information stream of the recorded video that is completed is obtained from a first queue that stores video attribute information of the recorded video that is completed.
Fig. 2B is a schematic flowchart of video transmission according to a second embodiment of the present invention. The stream calculation module 1, the video temporary storage module 2, the video download module 3, and the flow control module 4 are modules deployed on an electronic device that implements the video transmission method provided in the embodiment of the present invention. Wherein the content of the first and second substances,
and the flow calculation module 1 comprises a flow distribution operator, a trigger operator and an information sending operator. The shunting operator is specifically used for receiving the recorded message, acquiring a video attribute information stream of the recorded video from a first queue of the message queue, and sending video attribute information in the video attribute information stream to the trigger operator; receiving a message of which the storage is finished, acquiring a video attribute information stream of the recorded video of which the storage is finished from a second queue of the message queue, and sending the video attribute information in the video attribute information stream to an information sending operator; the trigger operator is specifically used for sending the video attribute information in the video attribute information stream to the video temporary storage module 2; the sending information operator is specifically used for sending the video attribute information in the video attribute information stream to a downloading party;
the video temporary storage module 2 is used for receiving the recorded video corresponding to the video attribute information sent by the recorded video storage system and uploading the recorded video to the file management system;
the video downloading module 3 is used for downloading the corresponding recorded video from the file management system according to the video attribute information in the downloading request of the downloading party and sending the video to the downloading party;
the flow control module 4 is used for controlling the receiving process of receiving the recorded video from the recorded video storage system, the uploading process of uploading the recorded video to the file management system and the transmission concurrency number in the downloading process of sending the recorded video to the downloading party;
the video recording system is used for recording videos, uploading the recorded videos which are recorded to the recorded video storage system, and issuing the video attribute information of the recorded videos which are recorded to the first queue of the message queue so as to issue the recorded messages;
the recorded video storage system is used for storing recorded videos which are uploaded by the video recording system and are recorded completely; when receiving a request of the video temporary storage module 2, sending the corresponding recorded video to the video temporary storage module 2;
the file management system is used for storing and recording videos;
the downloading party may be a device in communication connection with the electronic device implementing the video transmission method provided by the embodiment of the present invention, and may request the corresponding recorded video from the video downloading module 3 according to the received video attribute information of the recorded video that is stored.
The overall flow of video transmission as shown in fig. 2B: the video recording system records the video, stores the recorded video to the recorded video storage system after the recorded video is recorded, and issues the recorded video attribute information to a first queue in the message queue to issue the recorded message; the stream computing module 1 receives the recorded message, wherein a trigger operator acquires a video attribute information stream of the recorded video from a first queue of a message queue, and sends video attribute information in the video attribute information stream to the video temporary storage module 2; the video temporary storage module 2 requests a corresponding recorded video from the recorded video storage system according to the video attribute information; the recorded video storage system sends a corresponding recorded video to the video temporary storage module 2 according to the video attribute information in the request of the video temporary storage module 2; the video temporary storage module 2 receives the recorded video sent by the recorded video storage system based on the transmission concurrency number set by the flow control module 4, uploads the recorded video to the file management system, and issues corresponding video attribute information to a second queue to generate a message of completing storage; the stream computing module 1 receives the information of which the storage is finished, wherein the sending information operator obtains the video attribute information stream of the recorded video of which the storage is finished from a second queue of the information queue and sends the video attribute information in the video attribute information stream to a downloading party; the downloading party sends a corresponding downloading request to the video downloading module 3 according to the received video attribute information; the video downloading module 3 downloads the corresponding recorded video from the file management system based on the transmission concurrency number set by the flow control module 4 according to the video attribute information in the received downloading request, and sends the video to the downloading party.
As shown in fig. 2B, when a message that the recording of the video recording system is completed is received, a trigger operator of the stream calculation module 1 obtains a video attribute information stream of the recorded video that is completed by recording from a first queue of the message queue.
S202, requesting the recorded video corresponding to the video attribute information from the recorded video storage system.
And the user records the video through the video recording system and stores the video in the video recording storage system. The recorded video storage system stores recorded videos which are recorded completely. And according to the arrangement sequence of the video attribute information in the video attribute information stream, sequentially positioning the recorded videos corresponding to the video attribute information in the recorded video storage system, and requesting the recorded video storage system to send the recorded videos corresponding to the video attribute information.
As shown in fig. 2B, the video buffering module 2 requests the recorded video corresponding to the video attribute information from the recorded video storage system according to the video attribute information sent by the trigger operator in the stream calculation module 1.
And S203, receiving the recorded video corresponding to the video attribute information, and uploading the recorded video to a file management system.
The file management system is used for temporarily storing the recorded video corresponding to the video attribute information.
Specifically, a recorded video corresponding to the video attribute information sent by the recorded video storage system is received, and the recorded video is uploaded to the file management system.
As shown in fig. 2B, the video temporary storage module 2 receives the recorded video corresponding to the video attribute information sent by the recorded video storage system, and uploads the recorded video to the file management system concurrently.
Optionally, after uploading to the file management system, the method further includes: publishing the video attribute information to a second queue to publish the stored information; receiving the information of the storage completion, and acquiring the video attribute information stream of the recorded video of the storage completion from the second queue; sending the video attribute information of the recorded video which is stored to a downloading party; and when receiving a downloading request of the recorded video which is stored completely, sending the recorded video which is stored completely to a downloading party from the file management system.
And the second queue is used for storing the video attribute information of the recorded video which is completely stored. The storage complete message may indicate that the recorded video has been stored in the file management system.
Specifically, according to the video attribute information in the received downloading request of the recorded video which is stored completely, the corresponding recorded video which is stored completely is sent to the downloading party from the file management system.
As shown in fig. 2B, the video temporary storage module 2 sends the video attribute information to a second queue in the message queue to issue a message that is stored completely; and receiving the information of the storage completion, acquiring the video attribute information flow of the recorded video of the storage completion from the second queue by a sending information operator in the flow calculation module 1, and sending the video attribute information flow to a downloading party. The video downloading module 3 receives the downloading request of the recorded video after the storage is completed, downloads the corresponding recorded video from the file management system according to the video attribute information in the downloading request, and sends the recorded video to the downloading party.
It can be understood that, by adopting the technical scheme, the corresponding recorded video can be sent to the downloading party according to the video attribute information stream of the recorded video stored and completed in the second queue when the recorded video is uploaded to the file management system, so that the real-time downloading of the recorded video is realized, and the efficiency of downloading the recorded video is improved.
Optionally, the transmission concurrency number is controlled while the corresponding recorded video is transmitted.
The control transmission concurrency number is used for controlling the number of transmitted videos, the size of the transmitted videos and the like. The transmission concurrency number may be the number of processes that perform the recorded video transmission in parallel.
In an optional embodiment, if the number of the recorded videos to be transmitted is less than or equal to the transmission concurrency number, calling a process of the number of the recorded videos to be transmitted to perform parallel transmission of the recorded videos; and if the number of the recorded videos to be transmitted is larger than the concurrent number, calling a process for transmitting the concurrent number to sequentially transmit the recorded videos to be transmitted concurrently.
In an optional embodiment, the control of the transmission concurrency is performed for at least one of a receiving process of receiving the recorded video from the recorded video storage system, an uploading process of uploading the recorded video to the file management system, and a downloading process of downloading the recorded video from the file management system. By adopting the technical scheme, the control on the transmission concurrency number in any process of video transmission is realized, the influence of the video transmission on the network bandwidth is further reduced, and the network congestion is reduced.
As shown in fig. 2B, the flow control module 4 controls the transmission and concurrency of the recorded video receiving process between the recorded video storage system and the video temporary storage module 2; controlling the transmission concurrency number of the recorded video uploading process between the video temporary storage module 2 and the file management system; and controlling the transmission concurrency number of the recorded video downloading process between the file management system and the video downloading system 3.
It can be understood that by controlling the transmission concurrency number, the number of the recorded videos transmitted in parallel can be controlled, the consumption of the transmission of the recorded videos on the network bandwidth is reduced, the network congestion is reduced, and the stability of the network is improved.
According to the technical scheme of the embodiment of the invention, the video attribute information stream of the recorded video which is recorded is obtained from the first queue; requesting a recorded video corresponding to the video attribute information from a recorded video storage system; and receiving the recorded video corresponding to the video attribute information, and uploading the recorded video to a file management system. By adopting the technical scheme, the corresponding recorded video can be uploaded to the management system according to the video attribute information stream of the recorded video which is recorded, so that the real-time uploading of the recorded video is realized, and the efficiency of uploading the recorded video is improved.
EXAMPLE III
Fig. 3A is a flowchart of a video transmission method according to a third embodiment of the present invention, and this embodiment optimizes and improves the transmission operation of the recorded video based on the foregoing embodiments.
Further, the step of transmitting the corresponding recorded video according to the video attribute information in the video attribute information stream is refined into the step of acquiring the current video attribute information, and filtering and verifying are carried out; transmitting the current video attribute information under the condition that the filtering verification is passed; and under the condition that the filtering verification is not passed, discarding the current video attribute information, acquiring the next piece of video attribute information as the current video attribute information, returning to execute the step of acquiring the current video attribute information, and performing the filtering verification until no unprocessed video attribute information exists, so as to perfect the transmission operation of the recorded video.
It should be noted that, for parts that are not described in detail in the embodiments of the present invention, reference may be made to related descriptions of other embodiments, and details are not repeated herein.
As shown in fig. 3A, the method includes:
s301, video attribute information flow of the recorded video is obtained from the message queue.
Fig. 3B is a schematic flowchart of video transmission according to a third embodiment of the present invention. Fig. 3B is a diagram added with a preprocessing operator 5, a cache library 6, and a database 7 deployed on an electronic device implementing the video transmission method according to the second embodiment of the present invention on the basis of fig. 2B. Wherein the content of the first and second substances,
the preprocessing operator 5 is used for receiving the recorded information and acquiring the video attribute information flow of the recorded video from the first queue of the information queue; and receiving the information of the storage completion, and acquiring the video attribute information stream of the recorded video of the storage completion from the second queue of the information queue. Filtering and verifying the video attribute information in the acquired video attribute information stream, discarding the video attribute information which is not passed by the filtering and verifying, and sending the video attribute information which is passed by the filtering and verifying to a shunting operator, so that the shunting operator sends the video attribute information of the recorded video which is recorded to a trigger operator, and sends the video attribute information of the recorded video which is stored to an information sending operator;
the cache library 6 is used for storing the user information and the corresponding authority information and improving the reading speed of the authority information;
and the database 7 is used for storing the total amount of user information and the corresponding authority information and synchronizing the stored authority into the cache library 6 at regular time.
The filtering verification process in the video transmission process diagram shown in fig. 3B is that the database 7 synchronizes the rights information to the cache library 6 at regular time. The preprocessing operator 5 extracts the recording user information from the acquired video attribute information, inquires the authority information corresponding to the recording user information from the buffer library 5, and detects whether the corresponding video attribute information passes the filtering verification. If the query result does not exist, filtering and verifying the video, and discarding the corresponding video attribute information; and if the query result exists, the filtering verification is passed, and the corresponding video attribute information is sent to the shunting operator.
As shown in fig. 3B, the pre-processing operator 5 in the stream calculation module obtains the video attribute information stream of the recorded video from the message queue.
S302, obtaining the current video attribute information, and carrying out filtering verification.
In this embodiment, the filtering verification may be used to verify whether the current video attribute information needs to be filtered. The filtering verification is specifically used to filter out invalid video attribute information. The filtering verification may include, but is not limited to, a right information verification, an invalid information verification, a duplicate information verification, and the like. The permission information verification can be used for verifying whether the current video attribute information has the corresponding permission information, and the permission information can be used for representing that the recorded video corresponding to the current video attribute information can be transmitted. The invalid information verification may be used to verify whether the current video attribute information is invalid information. The invalid information may be dirty data other than the video attribute information, for example, the dirty data may be an operation command, an error instruction, and the like. Duplicate information verification may be used to verify whether current video attribute information has processed duplicate video attribute information.
Optionally, extracting recorded user information from the current video attribute information; inquiring authority information corresponding to the recording user information from a buffer library; and checking whether the video attribute information passes the verification according to the authority information, and detecting whether the current video attribute information passes the filtering verification.
The recorded user information may be user information for recording a corresponding recorded video. Specifically, the authority information corresponding to the recording user information is inquired from the buffer library. If the corresponding authority information exists, the authority information passes the verification; and if the corresponding authority information does not exist, the authority information is not verified. The present invention is not limited to the type of the cache library, and the cache library may be a redis cache library, for example.
As shown in fig. 3B, the preprocessing operator 5 extracts the right information from the buffer library 6, and detects whether the current video attribute information filtering verification passes.
Illustratively, the recorded video is a user product recorded video, and the authority information is user subscription information. Extracting user information from the current video attribute information; inquiring user subscription information corresponding to the user information from a cache library; if the corresponding user subscription information exists, the authority information passes verification; and if the corresponding user subscription information does not exist, the authority verification is not passed.
In an optional embodiment, if the authority information fails to be verified, the current video attribute information fails to be filtered and verified; if the authority information passes the verification, invalid information verification and repeated information verification can be carried out on the current video attribute information, and whether the current video attribute information passes the filtering verification or not is detected.
Specifically, whether the current video attribute information is invalid information is verified through the information format of the current video attribute information. If the information is invalid information, the invalid information is not verified; and if the invalid information is not valid, the invalid information passes verification.
Specifically, each pair of recorded videos corresponding to one video attribute information is transmitted, the video attribute information is stored in a data table, and the data table is used as a duplication elimination table. Determining a query result of querying the current video attribute information from the duplication elimination table, and if the query result exists, failing to pass the repeated information verification; and if the query result does not exist, the repeated information verification is passed.
In an optional embodiment, if the authority information verification, the invalid information verification and the repeated information verification of the current video attribute information pass, the video attribute information filtering verification passes; otherwise, the video attribute information filtering verification fails.
It can be understood that, by adopting the above technical scheme, the current video attribute information can be filtered and verified through at least one of the authority information, the repeated information and the invalid information, so that the flexibility of filtering and verifying the video attribute information is improved, and the flexibility of filtering invalid recorded videos is further improved.
Further, the rights information is synchronized from the associated database into the cache library.
Wherein, the related database stores the total user information and the corresponding authority information. Illustratively, a user registers in the current electronic device, the authority is verified according to the registration information, the verification result is recorded as the authority information of the user, the registration information is used as the user information of the user, and the user information and the authority information are stored in an associated database in an associated manner. Specifically, after the preset time, the authority information of the user information in the associated database is synchronized to the cache library, so that after the authority information in the associated database is changed, for example, the authority information is added or deleted, the cache library can synchronize the authority information in time. It should be noted that the preset time can be set by a technician according to actual needs and practical experience, and the present invention is not limited thereto.
As shown in fig. 3B, the database 7 synchronizes the rights information into the cache library 6.
It can be understood that, by adopting the above technical scheme, the authority information is synchronized to the cache library from the associated database, so that the latest authority information is stored in the cache library, and the accuracy of authority information verification is improved; by utilizing the characteristic of quick reading and writing of the cache library, the reading speed of the authority information is improved, the detection passing speed of the filtering verification is further improved, and the video transmission efficiency is improved.
And S303A, transmitting the current video attribute information under the condition that the filtering verification is passed.
And S303B, under the condition that the filtering verification is not passed, discarding the current video attribute information, acquiring the next piece of video attribute information as the current video attribute information, returning to execute the step of acquiring the current video attribute information, and carrying out the filtering verification until unprocessed video attribute information does not exist.
Specifically, under the condition that the filtering verification is not passed, discarding the current video attribute information, submitting the offset of the video attribute information, acquiring the next piece of video attribute information through the offset to serve as the current video attribute information, returning to execute the step of acquiring the current video attribute information, and performing the filtering verification until unprocessed video attribute information does not exist.
According to the technical scheme of the embodiment of the invention, the video attribute information stream of the recorded video is obtained from the message queue; acquiring current video attribute information, and performing filtering verification; and under the condition that the filtering verification is not passed, discarding the current video attribute information, acquiring the next piece of video attribute information as the current video attribute information, returning to execute the step of acquiring the current video attribute information, and performing the filtering verification until no unprocessed video attribute information exists. By adopting the technical scheme, the video attribute information is filtered and verified in the video transmission process, and the invalid video attribute information is discarded, so that only the recorded video corresponding to the video attribute information passing the filtering verification is transmitted, and the transmission efficiency of the recorded video is improved.
Example four
Fig. 4 is a structural diagram of a video processing apparatus according to a fourth embodiment of the present invention. The embodiment is suitable for the case of transmitting video. The apparatus may be implemented in hardware and/or software, and is specifically configured in an electronic device.
As shown in fig. 4, the apparatus includes: an information stream acquisition module 401 and a video transmission module 402, wherein,
an information stream obtaining module 401, configured to obtain a video attribute information stream of the recorded video from the message queue;
and a video transmission module 402, configured to transmit a corresponding recorded video according to each video attribute information in the video attribute information stream.
According to the technical scheme of the embodiment of the invention, the video attribute information flow of the recorded video is obtained from the message queue through the information flow obtaining module; and the video transmission module transmits the corresponding recorded video according to the video attribute information in the video attribute information stream. By adopting the technical scheme, the video attribute information stream is acquired from the message queue, and the corresponding recorded video is transmitted according to the video attribute information in the video attribute information stream, so that the real-time transmission of the video is realized, and the video transmission efficiency is improved.
Optionally, the information flow obtaining module 401 includes:
and the first information flow acquisition unit is used for receiving the recorded information and acquiring the video attribute information flow of the recorded video from the first queue.
A video transmission module 402 comprising:
the video request unit is used for requesting the recorded video corresponding to the video attribute information to the recorded video storage system;
and the video uploading unit is used for receiving the recorded video corresponding to the video attribute information and uploading the recorded video to the file management system.
Optionally, the video transmission module 402 further includes:
the message publishing unit is used for generating a message which is stored completely according to the video attribute information and publishing the message to the second queue;
the second information flow obtaining unit is used for receiving the information of the storage completion and obtaining the video attribute information flow of the recorded video of the storage completion from the second queue;
the information sending unit is used for sending the video attribute information of the recorded video which is stored and finished to the downloading party;
and the video sending unit is used for sending the recorded video which is stored completely to the downloading party from the file management system when receiving the downloading request of the recorded video which is stored completely.
Optionally, the video transmission module 402 includes:
the information acquisition unit is used for acquiring the current video attribute information and carrying out filtering verification;
the information transmission unit is used for transmitting the current video attribute information under the condition that the filtering verification is passed;
and the information discarding unit is used for discarding the current video attribute information under the condition that the filtering verification is not passed, acquiring the next piece of video attribute information as the current video attribute information, returning to execute the step of acquiring the current video attribute information, and performing the filtering verification until no unprocessed video attribute information exists.
Optionally, the information obtaining unit includes:
the information extraction subunit is used for extracting the recording user information from the current video attribute information;
the information inquiry unit is used for inquiring authority information corresponding to the recorded user information from the buffer library;
and the verification passing detection unit is used for verifying whether the video passes the verification according to the authority information and detecting whether the current video attribute information filtering verification passes the verification.
Optionally, the information obtaining unit further includes:
and the information synchronization subunit is used for synchronizing the authority information from the associated database to the cache library.
Optionally, the apparatus further comprises:
and the concurrency number control module is used for controlling the transmission concurrency number.
The video transmission device provided by the embodiment of the invention can execute the video transmission method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects for executing the video transmission method.
EXAMPLE five
FIG. 5 illustrates a schematic diagram of an electronic device 500 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 5, the electronic device 500 includes at least one processor 501, and a memory communicatively connected to the at least one processor 501, such as a Read Only Memory (ROM) 502, a Random Access Memory (RAM) 503, and so on, wherein the memory stores a computer program executable by the at least one processor, and the processor 501 may perform various suitable actions and processes according to the computer program stored in the Read Only Memory (ROM) 502 or the computer program loaded from the storage unit 508 into the Random Access Memory (RAM) 503. In the RAM 503, various programs and data necessary for the operation of the electronic apparatus 500 can be stored. The processor 501, the ROM 502, and the RAM 503 are connected to each other by a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
A number of components in the electronic device 500 are connected to the I/O interface 505, including: an input unit 506 such as a keyboard, a mouse, or the like; an output unit 507 such as various types of displays, speakers, and the like; a storage unit 508, such as a magnetic disk, optical disk, or the like; and a communication unit 509 such as a network card, modem, wireless communication transceiver, etc. The communication unit 509 allows the electronic device 500 to exchange information/data with other devices through a computer network such as the internet and/or various telecommunication networks.
Processor 501 may be a variety of general and/or special purpose processing components with processing and computing capabilities. Some examples of processor 501 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, or the like. The processor 501 performs the various methods and processes described above, such as the video transmission method.
In some embodiments, the video transmission method may be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as storage unit 508. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 500 via the ROM 502 and/or the communication unit 509. When the computer program is loaded into the RAM 503 and executed by the processor 501, one or more steps of the video transmission method described above may be performed. Alternatively, in other embodiments, the processor 501 may be configured to perform the video transmission method by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be performed. A computer program can execute entirely on a machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. A computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on 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 compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the Internet.
The computing system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service are overcome.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present invention may be executed in parallel, sequentially, or in different orders, and are not limited herein as long as the desired results of the technical solution of the present invention can be achieved.
The above-described embodiments should not be construed as limiting the scope of the invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method of video transmission, the method comprising:
acquiring a video attribute information stream of the recorded video from the message queue;
and transmitting the corresponding recorded video according to the video attribute information in the video attribute information stream.
2. The method of claim 1, wherein obtaining the video attribute information stream of the recorded video from the message queue comprises:
receiving a recorded message, and acquiring a video attribute information stream of the recorded video from a first queue;
the transmitting the corresponding recorded video according to the video attribute information in the video attribute information stream includes:
requesting a recorded video corresponding to the video attribute information from a recorded video storage system;
and receiving the recorded video corresponding to the video attribute information, and uploading the recorded video to a file management system.
3. The method of claim 2, after uploading into the file management system, further comprising:
publishing the video attribute information to a second queue to publish a message of storage completion;
receiving a message of completing storage, and acquiring a video attribute information stream of the recorded video after completing storage from the second queue;
sending the video attribute information of the recorded video which is stored to a downloading party;
and when receiving the downloading request of the recorded video which is stored completely, sending the recorded video which is stored completely to the downloading party from the file management system.
4. The method according to claim 1, wherein said transmitting the corresponding recorded video according to each video attribute information in the video attribute information stream comprises:
acquiring current video attribute information, and performing filtering verification;
transmitting the current video attribute information in case of passing the filtering verification;
and under the condition that the filtering verification is not passed, discarding the current video attribute information, acquiring the next piece of video attribute information as the current video attribute information, returning to execute the step of acquiring the current video attribute information, and performing the filtering verification until no unprocessed video attribute information exists.
5. The method of claim 4, wherein the obtaining current video attribute information and performing filter verification comprises:
extracting recording user information from the current video attribute information;
inquiring authority information corresponding to the recording user information from a buffer library;
and checking whether the current video attribute information passes the verification according to the authority information, and detecting whether the current video attribute information passes the filtering verification.
6. The method of claim 5, further comprising:
synchronizing rights information from an associated database into the cache library.
7. The method of claim 1, wherein transmitting the corresponding recorded video further comprises:
controlling the transmission concurrency number.
8. A video transmission apparatus, comprising:
the information flow obtaining module is used for obtaining the video attribute information flow of the recorded video from the information queue;
and the video transmission module is used for transmitting the corresponding recorded video according to the video attribute information in the video attribute information stream.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the video transmission method of any of claims 1-7.
10. A computer-readable storage medium having stored thereon computer instructions for causing a processor, when executed, to implement the video transmission method of any one of claims 1-7.
CN202211301791.2A 2022-10-24 2022-10-24 Video transmission method, device, equipment and storage medium Pending CN115643255A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211301791.2A CN115643255A (en) 2022-10-24 2022-10-24 Video transmission method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211301791.2A CN115643255A (en) 2022-10-24 2022-10-24 Video transmission method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115643255A true CN115643255A (en) 2023-01-24

Family

ID=84945553

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211301791.2A Pending CN115643255A (en) 2022-10-24 2022-10-24 Video transmission method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115643255A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116524417A (en) * 2023-06-30 2023-08-01 深圳市华曦达科技股份有限公司 Method and device for extracting distributed real-time video key frames based on Flink

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116524417A (en) * 2023-06-30 2023-08-01 深圳市华曦达科技股份有限公司 Method and device for extracting distributed real-time video key frames based on Flink
CN116524417B (en) * 2023-06-30 2023-10-20 深圳市华曦达科技股份有限公司 Method and device for extracting distributed real-time video key frames based on Flink

Similar Documents

Publication Publication Date Title
CN105472045A (en) Database migration method and database migration device
CN106815254B (en) Data processing method and device
CN108664625B (en) Cross-system data synchronization method and device
CN113377809A (en) Data processing method and apparatus, computing device, and medium
CN115643255A (en) Video transmission method, device, equipment and storage medium
CN115242731A (en) Message processing method, device, equipment and storage medium
CN115631273A (en) Big data duplicate removal method, device, equipment and medium
CN112433757A (en) Method and device for determining interface calling relationship
CN116383207A (en) Data tag management method and device, electronic equipment and storage medium
CN113360689B (en) Image retrieval system, method, related device and computer program product
CN115964021A (en) Demand issuing method and device, electronic equipment and storage medium
CN115543423A (en) Method, device and equipment for generating benchmarks and storage medium
CN112000323B (en) Data processing method and device
CN111291127B (en) Data synchronization method, device, server and storage medium
CN114493809A (en) Auction message processing method, device, server, equipment, medium and product
CN113760568A (en) Data processing method and device
CN112015551A (en) Coroutine pool management method and coroutine pool management device
CN114553894B (en) Data synchronization method, device, system and storage medium
CN111950232A (en) Method and device for automatically switching number segments
CN113569144B (en) Method, device, equipment, storage medium and program product for searching promotion content
CN111798284B (en) Method and device for controlling execution of Internet of things equipment
CN117668114A (en) Data synchronization method, device, equipment and medium
CN115801763A (en) File transmission method and device, electronic equipment and storage medium
CN115730000A (en) Medical data integration method, device, equipment and medium based on data lake
CN115118787A (en) Service control method, system, 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