CN114339456B - Video publishing method and device - Google Patents

Video publishing method and device Download PDF

Info

Publication number
CN114339456B
CN114339456B CN202210254691.2A CN202210254691A CN114339456B CN 114339456 B CN114339456 B CN 114339456B CN 202210254691 A CN202210254691 A CN 202210254691A CN 114339456 B CN114339456 B CN 114339456B
Authority
CN
China
Prior art keywords
video
message
publishing
state
management system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210254691.2A
Other languages
Chinese (zh)
Other versions
CN114339456A (en
Inventor
仇智慧
何志远
刘庆庆
闵博
孙成新
王金明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Feihu Information Technology Tianjin Co Ltd
Original Assignee
Feihu Information Technology Tianjin 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 Feihu Information Technology Tianjin Co Ltd filed Critical Feihu Information Technology Tianjin Co Ltd
Priority to CN202210254691.2A priority Critical patent/CN114339456B/en
Publication of CN114339456A publication Critical patent/CN114339456A/en
Application granted granted Critical
Publication of CN114339456B publication Critical patent/CN114339456B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a video publishing method and a device, wherein the method comprises the following steps: the video management system generates a video publishing message carrying video information corresponding to the target video in a first production state and publishes the video publishing message to a first message theme. The content management system acquires a video publishing message in the first message topic in a second consumption state and generates a video URL address based on video information in the message; and the content management system generates a release success message carrying the video URL address and releases the release success message to a second message subject in a second production state. The video management system acquires the successful publishing information in the first consumption state, binds the video URL address with the target video, and changes the video state into the publishing state, so that the video website publishes the target video based on the publishing state. The method provided by the invention can avoid the message from being unsuccessfully transmitted between the content management system and the video management system, and ensure the consistency of video distribution.

Description

Video publishing method and device
Technical Field
The invention relates to the technical field of video publishing, in particular to a video publishing method and device.
Background
Before video release, a content management system VCMS compiles a video playing page and generates a corresponding URL address, and a video management system VRS releases the video.
In the prior art, the content management system and the video management system need to transmit video publishing messages with each other to compile a video playing page and successfully publish a video, but in the video publishing method in the prior art, the video management system and the content management system are interacted through remote invocation, so that inaccurate message transmission or unreachable message transmission easily exists in the interaction process, and the consistency of video publishing cannot be ensured.
Disclosure of Invention
In view of this, the present invention provides a video distribution method, by which messages can be prevented from being unsuccessfully transmitted between a content management system and a video management system, and consistency of video distribution is ensured.
The invention also provides a video publishing device used for ensuring the realization and the application of the method in practice.
A video distribution method is applied to a video management system and comprises the following steps:
acquiring a target video to be released of a video website;
setting a system state of the video management system to a first production state;
in the first production state, generating a video publishing message corresponding to the target video, sending the video publishing message to a preset first message topic, triggering a preset content management system to obtain the video publishing message from the first message topic, and generating a publishing success message corresponding to the target video based on the video publishing message;
switching the first production state into a first consumption state, and monitoring a preset second message theme in real time in the first consumption state;
acquiring the successful issuing message issued to the second message subject by the content management system, and extracting a video URL address contained in the successful issuing message;
and binding the video URL address with the target video, and changing the video state of the target video into a release state, so that the video website releases the target video based on the release state.
Optionally, in the above method, the generating a video publishing message corresponding to the target video includes:
acquiring video information of the target video;
encrypting the video information by using a preset encryption algorithm to obtain encrypted information;
and generating a video publishing message corresponding to the target video, and embedding the encrypted information into the video publishing message.
The method optionally further includes, before switching the first production state to the first consumption state:
monitoring the message state of the published video publishing message in the first message topic in real time;
when the message state represents that the published video publishing message fails to be published, updating the video information of the target video;
generating a new video release message corresponding to the target video based on the updated video information;
and re-publishing the new video publishing message to the first message topic, and monitoring the message state of the published video publishing message in the first message topic again.
A video distribution apparatus applied to a video management system, the apparatus comprising:
the first acquisition unit is used for acquiring a target video to be released of a video website;
a first setting unit configured to set a system state of the video management system to a first production state;
the first publishing unit is used for generating a video publishing message corresponding to the target video in the first production state, sending the video publishing message to a preset first message theme, triggering a preset content management system to obtain the video publishing message from the first message theme, and generating a publishing success message corresponding to the target video based on the video publishing message;
the first monitoring unit is used for switching the first production state into a first consumption state and monitoring a preset second message theme in real time in the first consumption state;
a second obtaining unit, configured to obtain the release success message released to the second message topic by the content management system, and extract a video URL address included in the release success message;
and the binding unit is used for binding the video URL address with the target video and changing the video state of the target video into a release state, so that the video website releases the target video based on the release state.
A video distribution method is applied to a content management system and comprises the following steps:
when a preset video management system is monitored to issue a video release message to a preset first message theme, setting the system state of the content management system to be a second consumption state;
in the second consumption state, acquiring the video publishing message in the first message topic;
determining a target video corresponding to the video publishing message, and acquiring video information of the target video contained in the video publishing message;
generating a video URL address of the target video based on the video information;
generating a publishing success message of the target video based on the video URL address;
and switching the second consumption state into a second production state, issuing the issuing success message to a preset second message theme in the second production state, and triggering the video management system to change the video state of the target video into the issuing state based on the issuing success message, so that the target video is issued in the issuing state.
The above method, optionally, further includes:
acquiring video parameters of the target video and a preset compiling template contained in the video information;
compiling the video parameters by applying the compiling template to generate a video playing page of the target video;
and sending the video playing page to a preset content delivery CDN system, so that the CDN system pushes the video playing page to a preset video website.
Optionally, in the method, the acquiring video information of a target video corresponding to the video distribution message included in the video distribution message includes:
acquiring encryption information contained in the video release message;
and decrypting the encrypted information by applying a preset decryption algorithm to obtain the video information of the target video.
Optionally, in the method, the generating a video URL address of the target video based on the video information includes:
acquiring a video id and a template id contained in the video information;
based on the template id, inquiring a URL (uniform resource locator) generation template corresponding to the template id;
acquiring a relative path preset in the URL generation template;
and generating a video URL address of the target video based on the video id and the relative path.
The above method, optionally, further includes:
when the content management system fails to acquire the video publishing message from the first message topic, sending an abnormal message to a retry mechanism of the first message topic, and triggering the retry mechanism to manage the first message topic based on the abnormal message;
and re-acquiring the video publishing message from the first message topic, and sending a consumption success message to the retry mechanism when the video publishing message is successfully acquired.
A video distribution apparatus applied to a content management system, the apparatus comprising:
the second setting unit is used for setting the system state of the content management system to be a second consumption state when the preset video management system is monitored to issue a video release message to a preset first message theme;
a third obtaining unit, configured to obtain, in the second consumption state, the video publishing message in the first message topic;
a fourth obtaining unit, configured to determine a target video corresponding to the video publishing message, and obtain video information of the target video included in the video publishing message;
a first generating unit, configured to generate a video URL address of the target video based on the video information;
the second generating unit is used for generating a publishing success message of the target video based on the video URL address;
and the second issuing unit is used for switching the second consumption state into a second production state, issuing the successful issuing message to a preset second message theme in the second production state, and triggering the video management system to change the video state of the target video into the issuing state based on the successful issuing message, so that the target video is issued in the issuing state.
Compared with the prior art, the invention has the following advantages:
the invention provides a video publishing method, which comprises the following steps: the video management system acquires a target video to be published, generates a video publishing message carrying video information corresponding to the target video in a first production state, and publishes the video publishing message to a first message theme. The content management system acquires the video publishing message in the first message topic in the second consumption state and generates a video URL address based on the video information in the video publishing message; and the content management system generates a release success message carrying the video URL address and releases the release success message to a second message subject in a second production state. The video management system acquires the successful publishing information of the second information subject in the first consumption state, binds the video URL address with the target video, and changes the video state of the target video into the publishing state, so that the video website publishes the target video based on the publishing state. The method provided by the invention can avoid the message from being unsuccessfully transmitted between the content management system and the video management system, and ensure the consistency of video distribution.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a method for publishing a video according to an embodiment of the present invention;
fig. 2 is a device structure diagram of a video distribution device according to an embodiment of the present invention;
fig. 3 is a flowchart of another method of a video distribution method according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a method for publishing a video according to an embodiment of the present invention;
fig. 5 is a diagram illustrating a structure of another apparatus of a video distribution apparatus according to an embodiment of the present invention.
Detailed Description
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.
In this application, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions, and 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 invention is operational with numerous general purpose or special purpose computing device environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type devices, multi-processor apparatus, distributed computing environments that include any of the above devices or equipment, and the like.
The embodiment of the invention provides a video publishing method, which can be applied to a video management system, wherein the video management system is a VRS (virtual router server), and a flow chart of the method is shown in figure 1, and the method specifically comprises the following steps:
s101: and acquiring a target video to be released of the video website.
In the invention, the video website can be a website of a mobile phone video player, and the video on the video website needs to be released through a video management system.
S102: setting a system state of the video management system to a first production state.
It should be noted that in the first production state, the video management system generates a message as a Producer.
S103: and in the first production state, generating a video release message corresponding to the target video, sending the video release message to a preset first message theme, triggering a preset content management system to acquire the video release message from the first message theme, and generating a release success message corresponding to the target video based on the video release message.
It should be noted that the video distribution message includes details of the video and details of the template for compiling. The message in the first message topic is consumed by the content management system as a Consumer.
It should be further noted that the first message Topic is a type of Topic, which is a type of message sent by a producer and a message pulled by a consumer, and serves as a message queue for storing a plurality of video publishing messages sent by the producer. When the video management system is set to the first generation state, the video management system is the producer.
S104: and switching the first production state into a first consumption state, and monitoring a preset second message theme in real time in the first consumption state.
It should be noted that, when the video management system is set to the first consumption state, the video management system is a consumer.
In particular, the second message Topic is also a type of Topic for storing a plurality of successful publishing messages sent by the producer.
S105: and acquiring the successful issuing message issued to the second message subject by the content management system, and extracting a video URL address contained in the successful issuing message.
It should be noted that the content management system, as a producer, sends the publishing success message to the second message topic.
S106: and binding the video URL address with the target video, and changing the video state of the target video into a release state, so that the video website releases the target video based on the release state.
After the video is changed to the release state, the video website can leak the video to the channel page, the recommendation bit and the search result, and the user can watch the video.
It should be further noted that the video URL address is actually a video URL address, and the user can access the video playback page of the target video through the video URL address.
In the method provided by the embodiment of the invention, the video management system acquires the target video to be published of the video website, generates the corresponding video publishing message in the first production state, and publishes the video publishing message to the first message topic. The content management system consumes the video publication message from the first message topic and generates a publication success message based on the video publication message. The video management system acquires the release success message from the second message subject, binds the video URL address in the release success message with the target video, changes the video state into a release state, and releases the video according to the release state through the video website.
It should be noted that the first message Topic is video publishing Topic, and the second message Topic is video publishing success Topic.
By applying the method provided by the embodiment of the invention, the message communication is carried out through the first message theme and the second message theme, the message can be prevented from being unsuccessfully transmitted between the content management system and the video management system, and the consistency of video release is ensured.
In this embodiment of the present invention, the generating a video publishing message corresponding to the target video includes:
acquiring video information of the target video;
encrypting the video information by using a preset encryption algorithm to obtain encrypted information;
and generating a video publishing message corresponding to the target video, and embedding the encrypted information into the video publishing message.
It should be noted that, in order to avoid the message being tampered during the transmission process, the video information is encrypted by applying an encryption algorithm. Before the video information is encrypted, the video management system and the content management system can perform identity authentication of the two parties through a first message theme, a second message theme or a remote calling mode, and determine an encryption algorithm and a decryption algorithm for encrypting the video information.
Optionally, the video management system may also obtain an encryption algorithm and an algorithm number that are updated by the key system last time from a preset key system, and after the video management system encrypts the video information by using the encryption algorithm, the video management system embeds the encryption information and the algorithm number into the video publishing message. When the content management system acquires the video publishing message from the first message topic, the corresponding decryption algorithm can be searched from the key system through the algorithm number to decrypt the encrypted information.
In the implementation of the present invention, before switching the first production state to the first consumption state, it is necessary to determine whether the publishing is successful, so that the video management system monitors the message state of the published video publishing message in the first message topic in real time; when the message state represents that the published video publishing message fails to be published, updating the video information of the target video; generating a new video release message corresponding to the target video based on the updated video information; and re-publishing the new video publishing message to the first message topic, and monitoring the message state of the published video publishing message in the first message topic again.
It can be understood that, when the message publishing fails, the video management system first determines whether a video information error condition exists, updates the video information, and then regenerates the video publishing message to publish to the first message topic.
Optionally, before regenerating a new video publishing message, the video management system generates an abnormal message corresponding to the video publishing message and sends the abnormal message to the retry mechanism of the first message topic, and the retry mechanism may retry to update the first message topic according to the abnormal message, so as to ensure successful publishing of the video publishing message.
The specific implementation procedures and derivatives thereof of the above embodiments are within the scope of the present invention.
Corresponding to the method illustrated in fig. 1, an embodiment of the present invention further provides a video distribution apparatus, which is used for implementing the method illustrated in fig. 1 specifically, and the video distribution apparatus provided in the embodiment of the present invention may be applied to a video management system, and a schematic structural diagram of the video distribution apparatus is illustrated in fig. 2, and specifically includes:
a first obtaining unit 201, configured to obtain a target video to be released by a video website;
a first setting unit 202, configured to set a system state of the video management system to a first production state;
the first publishing unit 203 is configured to generate a video publishing message corresponding to the target video in the first production state, send the video publishing message to a preset first message topic, trigger a preset content management system to obtain the video publishing message from the first message topic, and generate a publishing success message corresponding to the target video based on the video publishing message;
the first monitoring unit 204 is configured to switch the first production state to a first consumption state, and monitor a preset second message topic in the first consumption state in real time;
a second obtaining unit 205, configured to obtain the release success message that is released to the second message topic by the content management system, and extract a video URL address included in the release success message;
a binding unit 206, configured to bind the video URL address with the target video, and change a video status of the target video to a release status, so that the video website releases the target video based on the release status.
In the device provided by the embodiment of the invention, the video management system acquires the target video to be published of the video website, generates the corresponding video publishing message in the first production state and publishes the video publishing message to the first message topic. The content management system consumes the video publication message from the first message topic and generates a publication success message based on the video publication message. The video management system acquires the publishing success message from the second message subject, binds the video URL address in the publishing success message with the target video, changes the video state into a publishing state, and publishes the video according to the publishing state by the video website.
By applying the device provided by the embodiment of the invention, the message communication is carried out through the first message theme and the second message theme, the message can be prevented from being unsuccessfully transmitted between the content management system and the video management system, and the consistency of video distribution is ensured.
In the apparatus provided in the embodiment of the present invention, the first issuing unit includes:
the first acquisition subunit is used for acquiring the video information of the target video;
the encryption subunit is configured to encrypt the video information by applying a preset encryption algorithm to obtain encrypted information;
and the generating subunit is used for generating a video publishing message corresponding to the target video and embedding the encrypted information into the video publishing message.
The device provided by the embodiment of the invention further comprises:
the first retry unit is used for monitoring the message status of the published video publishing message in the first message subject in real time; when the message state represents that the published video publishing message fails to be published, updating the video information of the target video; generating a new video release message corresponding to the target video based on the updated video information; and re-publishing the new video publishing message to the first message topic, and monitoring the message state of the published video publishing message in the first message topic again.
The specific working processes of each unit and sub-unit in the video publishing device disclosed in the above embodiment of the present invention can refer to the corresponding contents in the video publishing method applied to the video management system disclosed in the above embodiment of the present invention, and are not described herein again.
An embodiment of the present invention provides a video publishing method, which may be applied to a content management system, where the content management system is a VCMS, and a flowchart of the method is shown in fig. 3, and specifically includes:
s301: and when the preset video management system is monitored to issue a video publishing message to a preset first message theme, setting the system state of the content management system to be a second consumption state.
It should be noted that the content management system consumes the message in the first message topic as a consumer in the second consumption state.
S302: and in the second consumption state, acquiring the video publishing message in the first message topic.
The video publishing message in the first message topic is a video publishing message of a target video to be published, which is sent to the first message topic by the video management system.
S303: and determining a target video corresponding to the video publishing message, and acquiring video information of the target video contained in the video publishing message.
Wherein the video information comprises a video id and a template id.
S304: and generating a video URL address of the target video based on the video information.
Specifically, the generation process of the video URL address is as follows: acquiring a video id and a template id contained in video information; based on the template id, inquiring a URL (uniform resource locator) corresponding to the template id to generate a template; acquiring a relative path preset in a URL generation template; and generating a video URL address of the target video based on the video id and the relative path.
It can be understood that the video publishing message carries a video id and a template id, for example, the video id is 12345, and the template id is 888, first, querying a database according to the template id888 to obtain a corresponding template, where a path name is stored in the template, for example: /s2021/v/, the pathname is the relative path. The generated video URL address is http:// tv.abc.com/s 2021/v/12345. Shtml.
S305: and generating a publishing success message of the target video based on the video URL address.
It should be noted that the release success message carries the URL address.
S306: and switching the second consumption state into a second production state, issuing the issuing success message to a preset second message theme in the second production state, and triggering the video management system to change the video state of the target video into the issuing state based on the issuing success message, so that the target video is issued in the issuing state.
Specifically, the content management system is used as a consumer to consume the video publishing message in the first message topic, and after the video URL address is successfully generated, the content management system is used as a producer to generate the publishing success message, attaches the video URL address and sends the publishing success message to the second message topic.
It should be noted that the first message Topic is video publishing Topic, and the second message Topic is video publishing success Topic.
Further, after obtaining the video publishing message, the method may specifically further include: generating a video playing page of the target video based on the video information; and sending the video playing page to a preset content delivery CDN system, so that the CDN system pushes the video playing page to a preset video website.
Specifically, video parameters of a target video and a preset compiling template contained in the video information are obtained; and compiling the video parameters by applying a compiling template to generate a video playing page of the target video. The video playing page is a final playing page html generated after the content management system compiles. Is a static page that the user accesses through the video playback url.
In the method provided in the embodiment of the present invention, the acquiring video information of a target video corresponding to the video publishing message included in the video publishing message includes:
acquiring encryption information contained in the video release message;
and decrypting the encrypted information by applying a preset decryption algorithm to obtain the video information of the target video.
It can be understood that, in order to avoid the message being tampered in the transmission process, the video management system applies an encryption algorithm to encrypt the video information and embeds the encrypted information in the video publishing message to be sent to the first message subject. After the content management system acquires the video publishing message from the first message topic, the content management system extracts the encrypted information from the video publishing message and decrypts the encrypted information to obtain the video information.
It should be noted that, before the video management system encrypts the video information, the video management system and the content management system may perform identity authentication of both parties through a first message topic, a second message topic or a remote call mode, and determine an encryption algorithm and a decryption algorithm for encrypting the video information.
Optionally, the video management system may also obtain an encryption algorithm and an algorithm number that are updated by the key system last time from a preset key system, and after the video management system encrypts the video information by using the encryption algorithm, the video management system embeds the encryption information and the algorithm number into the video publishing message. When the content management system acquires the video release message from the first message topic, the corresponding decryption algorithm can be searched from the key system through the algorithm number to decrypt the encrypted information.
By applying the method provided by the embodiment of the invention, the video information is encrypted and decrypted, and the safety of the video information is ensured.
In the method provided by the embodiment of the present invention, after monitoring that the video distribution message is distributed to the first message topic by the video management system, the content management system may fail to extract the video distribution message, and needs to try to acquire the video distribution message again, and the specific process is as follows: when the content management system fails to acquire the video publishing message from the first message topic, sending an abnormal message to a retry mechanism of the first message topic, and triggering the retry mechanism to manage the first message topic based on the abnormal message; and re-acquiring the video publishing message from the first message topic, and sending a consumption success message to the retry mechanism when the video publishing message is successfully acquired.
It can be understood that, the first message topic and the second message topic are both provided with corresponding retry mechanisms, and in order to avoid failure of issuing a message or failure of acquiring a message by any one of the video management system and the content management system in the message transmission process, the retry mechanisms are used to implement re-issuing a message and re-acquiring a message, so as to ensure timeliness and integrity of message transmission between the video management system and the content management system.
In the method provided by the embodiment of the invention, the video management system is a VRS, is a copyright video management system and can be used for uploading, transcoding, publishing and offline management of copyright videos of a video website. The content management system is VCMS, is a video playing page content management system, can manage the layout and each component of a video playing page, compile the whole page to generate a final playing page html, pushes the html page to the CDN system, and finally pushes the playing page content to a browser end of a user based on WEB technology when the user accesses a playing page url. Where the video play page url is pre-generated prior to compilation. The process of realizing video distribution by VRS and VCMS is shown in fig. 4, and the specific process is as follows: VRS point video distribution (or batch distribution) button; the VRS serves as a Producer to produce one (or more) video release messages, and sends the (one or more) video release messages to the video release Topic, wherein the messages contain detailed information of videos and specify compiling templates (which template is used for compiling); the VCMS is used as a Consumer to consume video release information in the video release Topic one by one, compiling is carried out according to a specified template to generate a video play page, the video play page is generated and then pushed to a CDN system, after the pushing is successful, the VCMS is used as a Producer to produce one (or more) video release success information, and a url address of the video play page is attached to the video release success Topic, and the video release success Topic is sent to the video release success Topic; the VRS is used as a video publishing success message in the Consumer consumption video publishing success Topic one by one, binds a video playing page url with a corresponding video, and changes the corresponding video state into a publishing state; after the video is changed into the publishing state, the video website can leak the video to the channel page, the recommendation bit and the search result, and the user can watch the video.
Corresponding to the method described in fig. 3, an embodiment of the present invention further provides a video distribution apparatus, which is used for implementing the method in fig. 3 specifically, the video distribution apparatus provided in the embodiment of the present invention may be applied to a video management system, and a schematic structural diagram of the video distribution apparatus is shown in fig. 5, and specifically includes:
a second setting unit 501, configured to set a system state of the content management system to a second consumption state when it is monitored that a preset video management system issues a video publishing message to a preset first message topic;
a third obtaining unit 502, configured to obtain, in the second consumption state, the video publishing message in the first message topic;
a fourth obtaining unit 503, configured to determine a target video corresponding to the video publishing message, and obtain video information of the target video included in the video publishing message;
a first generating unit 504, configured to generate a video URL address of the target video based on the video information;
a second generating unit 505, configured to generate a publishing success message of the target video based on the video URL address;
a second publishing unit 506, configured to switch the second consumption state to a second production state, and publish the publishing success message to a preset second message topic in the second production state, and trigger the video management system to change the video state of the target video to be a publishing state based on the publishing success message, so that the target video is published in the publishing state.
The device provided by the embodiment of the invention further comprises:
a fifth obtaining unit, configured to obtain video parameters of the target video and a preset compiling template included in the video information;
the compiling unit is used for compiling the video parameters by applying the compiling template to generate a video playing page of the target video;
and the sending unit is used for sending the video playing page to a preset content delivery CDN system, so that the CDN system pushes the video playing page to a preset video website.
In the apparatus provided in the embodiment of the present invention, the third obtaining unit includes:
the second acquisition subunit is used for acquiring the encrypted information contained in the video release message;
and the decryption subunit is used for decrypting the encrypted information by applying a preset decryption algorithm to obtain the video information of the target video.
In the apparatus provided in an embodiment of the present invention, the first generating unit includes:
a third obtaining subunit, configured to obtain a video id and a template id included in the video information;
the query subunit is used for querying the URL corresponding to the template id to generate a template based on the template id;
the fourth acquiring subunit is used for acquiring a relative path preset in the URL generating template;
and the second generation subunit is used for generating the video URL address of the target video based on the video id and the relative path.
The device provided by the embodiment of the invention further comprises:
a second retry unit, configured to, when the content management system fails to obtain the video publishing message from the first message topic, send an exception message to a retry mechanism of the first message topic, and trigger the retry mechanism to manage the first message topic based on the exception message; and re-acquiring the video publishing message from the first message topic, and sending a consumption success message to the retry mechanism when the video publishing message is successfully acquired.
The specific working processes of each unit and sub-unit in the video publishing device disclosed in the above embodiment of the present invention can refer to the corresponding contents in the video publishing method applied to the content management system disclosed in the above embodiment of the present invention, and are not described herein again.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, the system or system embodiments are substantially similar to the method embodiments and therefore are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for related points. The above-described system and system embodiments are only illustrative, wherein the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both.
To clearly illustrate this interchangeability of hardware and software, various illustrative components and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A video distribution method is applied to a video management system, and comprises the following steps:
acquiring a target video to be released of a video website;
setting a system state of the video management system to a first production state;
in the first production state, generating a video publishing message corresponding to the target video, sending the video publishing message to a preset first message topic, triggering a preset content management system to obtain the video publishing message from the first message topic, and generating a publishing success message corresponding to the target video based on the video publishing message;
switching the first production state into a first consumption state, and monitoring a preset second message theme in real time in the first consumption state;
acquiring the successful issuing message issued to the second message topic by the content management system, and extracting a video URL address contained in the successful issuing message;
and binding the video URL address with the target video, and changing the video state of the target video into a release state, so that the video website releases the target video based on the release state.
2. The method according to claim 1, wherein the generating a video publishing message corresponding to the target video comprises:
acquiring video information of the target video;
encrypting the video information by using a preset encryption algorithm to obtain encrypted information;
and generating a video publishing message corresponding to the target video, and embedding the encrypted information into the video publishing message.
3. The method of claim 2, wherein prior to switching the first production state to the first consumption state, further comprising:
monitoring the message state of the published video publishing message in the first message topic in real time;
when the message state represents that the published video publishing message fails to be published, updating the video information of the target video;
generating a new video release message corresponding to the target video based on the updated video information;
and re-publishing the new video publishing message to the first message topic, and monitoring the message state of the published video publishing message in the first message topic again.
4. A video distribution apparatus, applied to a video management system, the apparatus comprising:
the first acquisition unit is used for acquiring a target video to be released of a video website;
a first setting unit configured to set a system state of the video management system to a first production state;
the first publishing unit is used for generating a video publishing message corresponding to the target video in the first production state, sending the video publishing message to a preset first message theme, triggering a preset content management system to obtain the video publishing message from the first message theme, and generating a publishing success message corresponding to the target video based on the video publishing message;
the first monitoring unit is used for switching the first production state into a first consumption state and monitoring a preset second message theme in real time in the first consumption state;
a second obtaining unit, configured to obtain the release success message released to the second message topic by the content management system, and extract a video URL address included in the release success message;
and the binding unit is used for binding the video URL address with the target video and changing the video state of the target video into a release state, so that the video website releases the target video based on the release state.
5. A video distribution method is applied to a content management system, and comprises the following steps:
when the fact that a preset video management system issues a video release message to a preset first message theme is monitored, setting the system state of the content management system to be a second consumption state;
in the second consumption state, acquiring the video publishing message in the first message topic;
determining a target video corresponding to the video publishing message, and acquiring video information of the target video contained in the video publishing message;
generating a video URL address of the target video based on the video information;
generating a publishing success message of the target video based on the video URL address;
and switching the second consumption state into a second production state, issuing the issuing success message to a preset second message theme in the second production state, and triggering the video management system to change the video state of the target video into the issuing state based on the issuing success message, so that the target video is issued in the issuing state.
6. The method of claim 5, further comprising:
acquiring video parameters of the target video and a preset compiling template contained in the video information;
compiling the video parameters by applying the compiling template to generate a video playing page of the target video;
and sending the video playing page to a preset content delivery CDN system, so that the CDN system pushes the video playing page to a preset video website.
7. The method according to claim 5, wherein the obtaining video information of the target video corresponding to the video distribution message included in the video distribution message comprises:
acquiring encryption information contained in the video release message;
and decrypting the encrypted information by applying a preset decryption algorithm to obtain the video information of the target video.
8. The method according to any one of claims 5 to 7, wherein the generating a video URL address of the target video based on the video information comprises:
acquiring a video id and a template id contained in the video information;
based on the template id, inquiring a URL (uniform resource locator) generation template corresponding to the template id;
acquiring a relative path preset in the URL generation template;
and generating a video URL address of the target video based on the video id and the relative path.
9. The method of claim 5, further comprising:
when the content management system fails to acquire the video publishing message from the first message topic, sending an abnormal message to a retry mechanism of the first message topic, and triggering the retry mechanism to manage the first message topic based on the abnormal message;
and re-acquiring the video publishing message from the first message topic, and sending a consumption success message to the retry mechanism when the video publishing message is successfully acquired.
10. A video distribution apparatus applied to a content management system, the apparatus comprising:
the second setting unit is used for setting the system state of the content management system to be a second consumption state when the preset video management system is monitored to issue a video release message to a preset first message theme;
a third obtaining unit, configured to obtain, in the second consumption state, the video publishing message in the first message topic;
a fourth obtaining unit, configured to determine a target video corresponding to the video publishing message, and obtain video information of the target video included in the video publishing message;
a first generating unit, configured to generate a video URL address of the target video based on the video information;
the second generating unit is used for generating a publishing success message of the target video based on the video URL address;
and the second issuing unit is used for switching the second consumption state into a second production state, issuing the successful issuing message to a preset second message theme in the second production state, and triggering the video management system to change the video state of the target video into the issuing state based on the successful issuing message, so that the target video is issued in the issuing state.
CN202210254691.2A 2022-03-16 2022-03-16 Video publishing method and device Active CN114339456B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210254691.2A CN114339456B (en) 2022-03-16 2022-03-16 Video publishing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210254691.2A CN114339456B (en) 2022-03-16 2022-03-16 Video publishing method and device

Publications (2)

Publication Number Publication Date
CN114339456A CN114339456A (en) 2022-04-12
CN114339456B true CN114339456B (en) 2022-05-27

Family

ID=81033026

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210254691.2A Active CN114339456B (en) 2022-03-16 2022-03-16 Video publishing method and device

Country Status (1)

Country Link
CN (1) CN114339456B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114760509B (en) * 2022-06-14 2022-09-20 飞狐信息技术(天津)有限公司 Video distribution method, system, storage medium and electronic equipment
CN114866539A (en) * 2022-07-06 2022-08-05 飞狐信息技术(天津)有限公司 File uploading method and system

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103139619A (en) * 2011-11-30 2013-06-05 人民网股份有限公司 Network video management system and method
CN103503486A (en) * 2011-12-27 2014-01-08 华为技术有限公司 Video distribution method and system and video playing method and system
WO2014117591A1 (en) * 2013-01-29 2014-08-07 Tencent Technology (Shenzhen) Company Limited Method,server and sns system for message interaction
CN104137553A (en) * 2011-09-15 2014-11-05 谷歌公司 Video management system
CN104469416A (en) * 2013-09-12 2015-03-25 无锡中科智能信息处理研发中心有限公司 Video advertisement distributing system and method based on message queue
WO2016003728A1 (en) * 2014-07-01 2016-01-07 Tuul, Inc. System and method for implementing workflow management using messaging
CN105282143A (en) * 2015-09-09 2016-01-27 民航局空管局技术中心 Message access control method, device and system
WO2017090650A1 (en) * 2015-11-25 2017-06-01 Uxent株式会社 Content management system, and content management method
CN107872473A (en) * 2016-09-23 2018-04-03 阿里巴巴集团控股有限公司 Message treatment method, device and system
CN108781311A (en) * 2015-12-13 2018-11-09 优工作室公司 Video player frame for distribution of media and management platform
DE102018130216A1 (en) * 2017-12-01 2019-06-06 GM Global Technology Operations LLC Vehicle communication using a publish-subscribe messaging protocol
CN111078901A (en) * 2019-12-25 2020-04-28 北京字节跳动网络技术有限公司 Video-based interaction implementation method, device, equipment and medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9832424B2 (en) * 2007-07-25 2017-11-28 The Directv Group, Inc. Method and system for managing content lifecycle in a content processing system
US20180063055A1 (en) * 2016-08-26 2018-03-01 Linkedin Corporation Repartitioning a topic in a publish-subscribe message system
JP2019028599A (en) * 2017-07-27 2019-02-21 キヤノン株式会社 Information processing system and control method

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104137553A (en) * 2011-09-15 2014-11-05 谷歌公司 Video management system
CN103139619A (en) * 2011-11-30 2013-06-05 人民网股份有限公司 Network video management system and method
CN103503486A (en) * 2011-12-27 2014-01-08 华为技术有限公司 Video distribution method and system and video playing method and system
WO2014117591A1 (en) * 2013-01-29 2014-08-07 Tencent Technology (Shenzhen) Company Limited Method,server and sns system for message interaction
CN104469416A (en) * 2013-09-12 2015-03-25 无锡中科智能信息处理研发中心有限公司 Video advertisement distributing system and method based on message queue
WO2016003728A1 (en) * 2014-07-01 2016-01-07 Tuul, Inc. System and method for implementing workflow management using messaging
CN105282143A (en) * 2015-09-09 2016-01-27 民航局空管局技术中心 Message access control method, device and system
WO2017090650A1 (en) * 2015-11-25 2017-06-01 Uxent株式会社 Content management system, and content management method
CN108781311A (en) * 2015-12-13 2018-11-09 优工作室公司 Video player frame for distribution of media and management platform
CN107872473A (en) * 2016-09-23 2018-04-03 阿里巴巴集团控股有限公司 Message treatment method, device and system
DE102018130216A1 (en) * 2017-12-01 2019-06-06 GM Global Technology Operations LLC Vehicle communication using a publish-subscribe messaging protocol
CN111078901A (en) * 2019-12-25 2020-04-28 北京字节跳动网络技术有限公司 Video-based interaction implementation method, device, equipment and medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于MQTT的物联网系统消息发布/订阅方法研究;张玉杰等;《电视技术》;20171017;全文 *
基于发布订阅的分布式监控主动消息交互研究;屈志坚等;《计算机测量与控制》;20150225(第02期);全文 *

Also Published As

Publication number Publication date
CN114339456A (en) 2022-04-12

Similar Documents

Publication Publication Date Title
CN114339456B (en) Video publishing method and device
CN100450176C (en) Method of rights management for streaming media
CN102308547B (en) Method for streaming multimedia data over a non-streaming protocol
CN103003821B (en) For the DRM method and apparatus of service is provided
US7215779B2 (en) Information providing apparatus and method, information processing apparatus and method, and program storage medium
CN101699819B (en) Method and system for managing digital rights
KR101944800B1 (en) Method and apparatus for downloading drm module
CN101472140B (en) System for distributing and requiring multimedia program and implementing method thereof
US20080216177A1 (en) Contents Distribution System
US20020138741A1 (en) System and method for storing and accessing digital media content using smart card technology
CN101297281A (en) Grid network for distribution of files
CN104185996A (en) System and method for secure asynchronous event notification for adaptive streaming based on ISO base media file format
JP4769475B2 (en) CONTENT DISTRIBUTION SERVER AND CONTENT DISTRIBUTION SYSTEM HAVING THE SAME
US20070271106A1 (en) System and method for secure internet channeling agent
CN101835148B (en) Method, system and equipment for distributing and acquiring digital content
WO2006038622A1 (en) Content distribution system
CN111698537B (en) Multimedia data processing method, device, equipment and storage medium
CN108989886A (en) A kind of method and system playing encrypted video
KR102447797B1 (en) System for managing document based on IPFS and method thereof
CN106209896B (en) Streaming media encryption method and module based on audio and video formats
KR100784300B1 (en) Unification digital content rights management system and method thereof
CN110266698A (en) Pass through the Knowledge Sharing data cochain method and its equipment of block chain
CN110232287A (en) Pass through the shared economic data cochain method and its equipment of block chain
CN110263100A (en) Using the shared economic data cochain method and its equipment of intelligent contract
CN110263529A (en) Number cochain method and its equipment are shaken using intelligent contract

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant