CN113473173A - Block chain based audio-visual place order-on-demand counting method and storage medium - Google Patents
Block chain based audio-visual place order-on-demand counting method and storage medium Download PDFInfo
- Publication number
- CN113473173A CN113473173A CN202010243786.5A CN202010243786A CN113473173A CN 113473173 A CN113473173 A CN 113473173A CN 202010243786 A CN202010243786 A CN 202010243786A CN 113473173 A CN113473173 A CN 113473173A
- Authority
- CN
- China
- Prior art keywords
- demand
- audio
- block chain
- counting
- gateway server
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 39
- 238000004806 packaging method and process Methods 0.000 claims description 7
- 238000004590 computer program Methods 0.000 claims description 3
- 238000012545 processing Methods 0.000 abstract description 7
- 238000010586 diagram Methods 0.000 description 3
- 238000012856 packing Methods 0.000 description 3
- 230000002441 reversible effect Effects 0.000 description 3
- 101100129590 Schizosaccharomyces pombe (strain 972 / ATCC 24843) mcp5 gene Proteins 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 230000003203 everyday effect Effects 0.000 description 2
- 238000012795 verification Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/231—Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion
- H04N21/23109—Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion by placing content in organized collections, e.g. EPG data repository
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
- H04N21/258—Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
- H04N21/25866—Management of end-user data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/442—Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
- H04N21/44204—Monitoring of content usage, e.g. the number of times a movie has been viewed, copied or the amount which has been watched
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/45—Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
- H04N21/4508—Management of client data or end-user data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/472—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
- H04N21/47202—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for requesting content on demand, e.g. video on demand
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computer Graphics (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The invention relates to the technical field of digital entertainment, and discloses a block chain-based video-on-demand counting method and a storage medium for an audio-visual place, which comprises the following steps: establishing a video-on-demand counting block chain, wherein the video-on-demand counting block chain takes a gateway server of an audio-visual place as a node, and the gateway server is connected with more than two video-on-demand devices; the on-demand equipment generates on-demand counting information of the audio and video files and sends the on-demand counting information to the gateway server, wherein the on-demand counting information of the audio and video files comprises names; and the gateway server receives the on-demand counting information of the audio and video files and uploads the on-demand counting information to the on-demand counting block chain. According to the technical scheme, the order counting block chain is established to record the order counting times of the audio and video files, so that the transparency and the reliability of order counting of the audio and video files are greatly improved. And the gateway server of the audio-visual place is used as a node of the block chain, the on-demand function of the audio-visual file is completed by on-demand equipment, and the block chain node does not participate in the playing control of the audio-visual file, so that the data processing amount of the block chain node is greatly reduced.
Description
Technical Field
The invention relates to the technical field of digital entertainment, in particular to a block chain-based video-on-demand counting method for an audio-visual place and a storage medium.
Background
In the song ordering system of digital audio-visual places such as KTV and pubs, a large amount of multimedia resources such as songs and movies for users to order are stored. In order to protect the legitimate rights and interests of the copyright owner of the multimedia resources, when the digital audiovisual field uses the multimedia resources, the on-demand times of the multimedia resources need to be counted so as to provide economic rewards corresponding to the copyright owner of the multimedia resources. In the prior art, the open transparency of the multimedia resource on-demand counting process is low, and the counting data is easy to be tampered in the statistical process or the transmission process, so that the reliability of the counting data is low, and the rights and obligations of both sides cannot be guaranteed.
In a patent with patent number CN201910771952.6 entitled "a method and apparatus for processing data of playing KTV music on a block chain", a method for counting songs on demand by a block chain technique is disclosed. In the order counting method, the 'block chain link points count the playing amount of each music on each playing terminal, and count the playing amount of each music in each KTV place according to the KTV place information of each playing terminal', that is, each ordering device receives an order request and sends the order request to the block chain link points at the cloud end, and then the block chain link points control the set top box to play the corresponding music. However, hundreds of thousands of point broadcasting devices exist in the whole country, and during the KTV business hours, the blockchain nodes in the same time may receive hundreds of thousands of point broadcasting requests, so that the data processing pressure is very high, and the practical feasibility of the scheme is very small.
Disclosure of Invention
Therefore, a block chain-based video-on-demand counting method for audio-visual places is needed to be provided for solving the technical problems of low transparency and reliability and large data processing amount of the existing video-on-demand counting method.
In order to achieve the above object, the inventor provides a block chain-based order counting method for audiovisual places, comprising the following steps:
establishing a video-on-demand counting block chain network, wherein the video-on-demand counting block chain takes a gateway server of an audio-visual place as a block chain node, and the gateway server is connected with more than two video-on-demand devices;
the on-demand equipment generates on-demand counting information of audio and video files and sends the on-demand counting information to the gateway server;
the gateway server receives the on-demand counting information of the audio and video files and uploads the on-demand counting information to an on-demand counting block chain network;
and recommending data accounting nodes by each block chain link point, packaging the information to be packaged into a new block by the recommended data accounting nodes, chaining the new block, broadcasting the new block to the block chain network, and receiving and updating other block chain link points.
Further, after receiving the on-demand counting information of the audio and video files, the gateway server signs the on-demand counting information of the multimedia resources and uploads the on-demand counting information to the on-demand counting block chain network.
Further, the node for recommending data accounting of each block link point comprises:
selecting a node for recording complete block chain data as a candidate accounting node;
and selecting the candidate node with the maximum accumulated ordering counting number as a data accounting node.
Further, the node for recommending data accounting of each block link point further comprises:
if the number of the candidate nodes with the maximum accumulated on-demand counting number is more than two, selecting the earliest node accessed to the block chain network as a data accounting node; and after the data accounting node accounts, clearing the accumulated on-demand counting number.
Further, the method for generating the order counting information of the audio and video files on demand and sending the order counting information to the gateway server by the on-demand equipment comprises the following steps:
the on-demand equipment plays the audio and video file according to the on-demand request;
and after each audio and video file is played for a preset time, the on-demand equipment generates on-demand counting information of the audio and video files and sends the on-demand counting information to the gateway server.
Further, the on-demand equipment carries out reversible encryption on the on-demand counting information of the audio and video files and then sends the on-demand counting information to the gateway server.
Further, the gateway server receiving the audio and video file on-demand times counting information and uploading to an on-demand times counting block chain comprises the following steps:
the gateway server receives the multimedia resource on-demand counting information in real time;
the gateway server collects the received multimedia resource on-demand counting information;
and the gateway server signs the gathered multimedia resource on-demand counting information according to a preset period and uploads the information to the on-demand counting block chain network.
Further, the establishing of the on-demand counting block chain network comprises the following steps:
coding the audio and video files to enable each audio and video file to have a unique identification ID;
a gateway server of the audiovisual venue is assigned a unique upload key and a corresponding identity ID generated from the key.
Further, the block chain-based audio-visual place order-on-demand counting method further comprises the following steps:
and browsing the on-demand counting block chain by using a block chain browser and inquiring the on-demand times of the audio and video files.
In order to solve the above technical problem, the present invention further provides another technical solution:
a computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of any of the above claims.
Different from the prior art, the technical scheme establishes the order-on-demand block chain, records the order-on-demand times of the audio and video files through the block chain technology, has high transparency in the order-on-demand process and is not easy to tamper, greatly improves the reliability of order-on-demand counting of the audio and video files, and effectively guarantees the rights of copyright owners of the audio and video files. In the technical scheme, the gateway server of the audio-visual place is used as a node of the block chain, the on-demand function of the audio-video file is completed by on-demand equipment, and the block chain link points do not participate in the play control of the audio-video file and are only responsible for on-demand times and chaining, so that the data processing quantity of the block chain link points is greatly reduced. In addition, because the gateway server is the existing equipment in the audio-visual place, the existing equipment in the audio-visual place can be directly utilized when a block chain network is constructed, and the equipment does not need to be additionally arranged, so that the cost can be greatly reduced.
Drawings
FIG. 1 is a flow chart of an embodiment of a block chain based method for counting requests from an audiovisual location;
FIG. 2 is a block diagram of an apparatus within an audiovisual venue in accordance with an exemplary embodiment;
FIG. 3 is a schematic diagram of an order counting block chain according to an embodiment;
FIG. 4 is a flowchart of a KTV song order counting process according to an embodiment;
FIG. 5 is a block diagram of a computer-readable storage medium in accordance with an embodiment;
Detailed Description
To explain technical contents, structural features, and objects and effects of the technical solutions in detail, the following detailed description is given with reference to the accompanying drawings in conjunction with the embodiments.
Referring to fig. 1 to 5, the present embodiment provides a block chain based method for counting requests in an audio-visual place. The block chain-based on-demand counting method for the audio-visual places can be applied to on-demand counting of audio-video files such as songs and movies in digital audio-visual places such as KTVs and bars. As shown in fig. 1, the block chain-based audio-visual site on-demand counting method includes the following steps:
s101, establishing a video-on-demand counting block chain network, wherein the video-on-demand counting block chain takes a gateway server of an audio-visual place as a node, and the gateway server is connected with more than two video-on-demand devices. As shown in fig. 2, in a normal situation, a plurality of boxes are provided in each audiovisual place such as KTV, bar, etc., each box is provided with an on-demand device, which may be a set-top box, and each box is further provided with a display screen, a sound device, etc., and the set-top box controls the display screen and the sound device to realize on-demand of audio/video files. The audio-visual place has at least one gateway server, and the on-demand devices are connected with the Internet through the gateway server. When the audio and video files such as songs are played, if the audio and video files are not stored locally, the on-demand equipment can be downloaded from the Internet through the gateway server and then played.
As shown in fig. 3, in the present embodiment, an on-demand counting blockchain network is established with the gateway servers of the viewing location as nodes of one blockchain, wherein each gateway server is connected to other adjacent gateway servers, so that all blockchain nodes can be connected together. The order-on-demand block chain network is used for recording the playing times of audio and video files in different audio and video places, and when the order-on-demand block chain network is applied specifically, a copyright owner of the audio and video files can obtain a considerable copyright permission cost from the audio and video places according to the playing times recorded by the order-on-demand block chain.
In order to identify different gateway servers in the order counting block chain network, identity authentication needs to be carried out on the gateway server of each audio-visual place, and a unique uploading key and a corresponding identity ID generated by the key are distributed to the gateway server of the audio-visual place. Each upload key and the corresponding identity ID generated by the key are unique, the identity ID is visible to all other nodes of the blockchain, real information (such as name and address) which can be disclosed and can distinguish other audiovisual places can be included in the identity ID, and other information of the audiovisual places corresponding to the identity ID can be hidden. The block chain key is used for encrypting and decrypting data, so that the data can be safely transmitted between different block chain nodes.
Besides performing identity authentication on a gateway server needing to be added with a block chain, the audio and video files are convenient to identify by different block chain nodes, and the audio and video files are required to be uniformly coded. After the audio and video files are uniformly coded, each audio and video file has a unique identification ID, and the identification ID comprises the creation information, copyright attribution information and the like of the file. After the on-demand counting block chain is established, the process proceeds to step S102.
And S102, the on-demand equipment generates audio and video file on-demand counting information and sends the information to the gateway server. The on-demand equipment is used for on-demand control of the audio and video files, and specifically, the on-demand equipment can receive an on-demand request of a user and play corresponding audio and video files such as songs and movies according to the on-demand request, so that the user can sing the songs or watch the movies. The on-demand equipment is also used for generating on-demand counting information of the audio and video files according to the playing condition of the audio and video files and sending the information to the gateway server. When the on-demand equipment finishes playing an audio and video file (including being completely played or being cut off after playing for a certain time), the on-demand equipment generates on-demand counting information of the audio and video file and sends the information to the gateway server.
In some embodiments, the on-demand equipment can generate on-demand counting information of the audio/video files and send the on-demand counting information to the gateway server after each audio/video file is played; in other embodiments, the on-demand device may generate and send the corresponding on-demand time count information to the gateway server for a certain period of time (e.g., every half hour or every 10 audio/video files played). For convenience of statistics, the order counting information of the audio/video file can adopt a uniform data format, and the data format can include order time, play duration (or play times plus one), identification ID, box identification and the like.
Further, in order to ensure that data is not tampered when the data is transmitted between the on-demand equipment and the gateway server, the on-demand equipment also encrypts the on-demand time counting information of the audio and video files by using reversible encryption algorithms such as RSA and AES, and transmits the encrypted information to the gateway server of the audio and video place. Step S103 may be entered after the jukebox device encrypts and transmits the jukebox count information to the gateway server.
And S103, the gateway server receives the on-demand counting information of the audio and video files and uploads the on-demand counting information to an on-demand counting block chain network. The gateway server has the function of connecting with the Internet and realizes the internet surfing function of computer equipment such as on-demand equipment, a place management system and the like in an audio-visual place. Meanwhile, the gateway server also receives the on-demand counting information of the audio and video files sent by each on-demand device and sends the on-demand counting information of the audio and video files to the block chain network. In a preferred embodiment, after receiving the on-demand counting information of the audio/video file, the gateway server signs the on-demand counting information of the multimedia resource, and then uploads the on-demand counting information to the on-demand counting block chain network.
And S104, recommending data accounting nodes by each block chain link point, packaging the information to be packaged into a new block by the recommended data accounting nodes, chaining the new block, broadcasting the new block to the block chain network, and receiving and updating other block chain link points.
The step 104 is more specifically as follows: and recommending a data accounting node by each block link point, wherein the recommended data accounting node packs all the order counting information uploaded in the order counting block chain network within a preset time into a new block. In some preferred schemes, the recommended data accounting node also performs information validity verification on all the on-demand counting information uploaded in the on-demand counting block chain network within preset time, packs the verified information into a new block, connects the new block to the existing block chain, updates the accounting timestamp, and broadcasts the packing completion information to other nodes of the on-demand counting block chain network; other block links will receive and verify that the new block is valid and then update the new block into their respective blockchain data.
In some preferred embodiments, the block link point recommendation data accounting node includes: selecting a node for recording complete block chain data as a candidate accounting node; and selecting the candidate node with the maximum accumulated on-demand count as a data accounting node. Through the scheme, the gateway server with the largest accumulated on-demand count number is selected as the accounting node, and as the accumulated on-demand count number of one audiovisual place is the largest, the audiovisual place service where the corresponding gateway server is located is relatively good, and the corresponding gateway server has relatively high normal configuration of hardware performance in order to meet the requirements of a large amount of services. In this way, the gateway server with higher hardware performance can be selected for accounting.
In some more preferred aspects, the block link point recommendation data accounting node further includes: if the number of the candidate nodes with the largest accumulated on-demand count is more than two, selecting the earliest node accessed to the block chain network as a data accounting node; and after the data accounting node accounts, clearing the accumulated on-demand counting number. In some embodiments, if more than two gateway servers with the largest and same accumulated VOD count are encountered, the earliest node in the access block chain network is selected as the data accounting node.
In a more preferable scheme, after the accounting node performs accounting, the accumulated on-demand count of the song point of the node is cleared, and after the other blockchain nodes update the new block, the accumulated on-demand count of each other blockchain node can also be cleared. And each block chain node reports num song on-demand counting information to the block chain network (num is the sum of the reported on-demand times of each song), and the accumulated song on-demand counting data is increased by num.
In step S104, all the on-demand count information uploaded within the preset time needs to be packaged and sorted to form standard block data that can be identified and stored by other block link points.
The order counting blockchain network is provided with a plurality of blockchain nodes, when the order counting information is packed, a data accounting node needs to be selected from the blockchain nodes for packing, and the order counting blockchain network can pack newly uploaded order counting information (namely, the order counting information which is uploaded to the blockchain network after the last packing and is not packed into blocks) by the data accounting node every other time period (for example, 5 minutes) and generates a new block. The time period can be adjusted according to specific situations, for example, if the time period is applied to an audio-visual place such as KTV, the time period is adjusted from 20 pm: the amount of data generated on demand counts is greatest between 00 and 24:00, so the time period can be set to 2 minutes at this time, while in the remaining time, the time period can be set to 10 minutes due to the small amount of data generated on demand counts.
After the data is packed for one time, the block chain network starts to recommend the accounting node after each node finishes updating the new block, and when the preset time is reached, the recommended accounting node packs the unpacked data uploaded to the block chain network to form the new block.
After packaging the data into a new block, the data accounting node is connected to the existing block chain and then broadcasts packaging completion information to other nodes of the on-demand counting block chain network; other block links will receive and verify that the new block is valid and then update the new block into their respective blockchain data. New blocks may be transferred between different blockchain nodes of the spot-ordered blockchain network, thereby enabling each blockchain node to receive and store the new block. And when the block chain node receives the new block, verifying the new block, and storing the new block after the verification is passed. Each time a new block is stored by a blockchain node, the block length of the stored block is increased by one.
As can be seen from the steps S101-S104, the technical scheme records the multimedia resource on-demand counting information by establishing the on-demand counting block chain, so that the transparency and the reliability of the multimedia resource on-demand counting information are greatly improved, and the rights and interests of the copyright owners of the multimedia resources are effectively guaranteed.
When a copyright owner of the multimedia resource needs to inquire the on-demand condition of the multimedia resource, the block chain browser is used for browsing the KTV on-demand counting block chain, so that which songs are on-demand in each period by the KTV corresponding to each allocated identity ID and the on-demand times of each song can be checked. The time period of each song requested by a certain KTV can be inquired through the request counting block chain.
Meanwhile, in the embodiment, the gateway server in the existing audio-visual place is used as a blockchain node, and a blockchain function is added on the basis of the internet access function of the gateway server to realize the uplink of the on-demand counting information of the audio-video files, so that the software and hardware resources of the gateway server can be fully used without adding new equipment.
The block chain is a distributed shared database, and data or information stored in the block chain has the characteristics of being incapable of being forged, capable of being traced in the whole process, transparent in the public, capable of being maintained in a collective mode and the like. Through the steps S101-S104, the technical scheme records the on-demand times of the audio and video files by establishing the on-demand counting block chain, greatly improves the transparency and the reliability of the on-demand counting of the audio and video files, and effectively guarantees the rights and interests of copyright owners of the audio and video files. In the technical scheme, the gateway server of the audio-visual place is used as a node of the block chain, the on-demand function of the audio-video file is completed by on-demand equipment, and the block chain link points do not participate in the play control of the audio-video file and are only responsible for on-demand times and chaining, so that the data processing quantity of the block chain link points is greatly reduced.
In order to reduce the data processing amount of the on-demand counting block chain, when the gateway server of the audio-visual place receives and uploads the on-demand counting information of the audio-video files, the gateway server can process and summarize the on-demand counting information of the audio-video files, and then the on-demand counting information of the audio-video files is periodically uploaded to the block chain. Specifically, the gateway server in the audio-visual place can receive the on-demand counting information of the audio-video files sent by each on-demand device in real time, and the received information can be written into the files firstly. And then, decrypting the received data file by using a corresponding decryption algorithm in each period (such as every day or every hour and the like), and then assembling data which can be decrypted successfully into a data format of how many times each audio/video file (which can be represented by an identification ID) is requested.
In a preferred scheme, the method for generating the order counting information of the audio and video files by the on-demand equipment and sending the order counting information to the gateway server comprises the following steps: the on-demand equipment plays the audio and video file according to the on-demand request; and after each audio and video file is played for a preset time, the on-demand equipment generates on-demand counting information of the audio and video files and sends the on-demand counting information to the gateway server. When the data format of the on-demand counting information sent by the on-demand equipment adopts the playing time length (instead of adding one to the playing time length), the gateway server further judges whether the playing time length of the audio/video file is preset time length (for example, exceeds half of the time length of the whole song) or not when receiving the on-demand counting information, if so, the on-demand time length of the file is added with one, otherwise, the on-demand time length of the file is not counted. That is, in some embodiments, the user does not generate the audio/video file on-demand count information if only the song is requested in advance. For example, in a KTV venue, a user typically clicks on a number of songs in advance and then plays them in sequence. During the playing process, the selected songs may be cut or inserted, so that the songs will not be played. If the order information of the selected song is generated after the song is selected, the order information is inaccurate. Therefore, in the embodiment, the order counting information of the audio and video files is generated only after the audio and video files are played for the preset time, so that the order counting information is more accurate.
In one embodiment, in order to prevent the gateway server from tampering with the reported on-demand time information of the audio/video file, the on-demand device generates the on-demand time information of the audio/video file and sends the on-demand time information of the audio/video file to the gateway server, and then sends the on-demand time information of the audio/video file to the cloud server for backup. Specifically, after the set top box of the on-demand equipment finishes playing the audio and video files, the on-demand equipment simultaneously sends on-demand counting information of the audio and video files to the gateway server and the cloud server. The data sent by the on-demand equipment to the cloud server can adopt the same data format as the information sent by the gateway server. After receiving the audio and video file on-demand counting information, the cloud server can count the audio and video file on-demand counting times according to a preset period (the counting rule can be the same as that of the gateway server). Therefore, the check is performed by and with the data of the number of on-demand times distributed by the gateway server. For some gateway servers with high reliability, the on-demand equipment is not required to send the on-demand counting information to the cloud server for backup.
Fig. 4 is a specific flowchart of the application of the above block chain-based audiovisual place order counting method in order to count KTV songs on demand. The KTV song on-demand counting method comprises the following steps:
s401, establishing an audio-visual place order-on-demand counting block chain network: the order-ordering counting blockchain network runs in a gateway server of KTV, and uses a gateway server device to serve as a blockchain node (namely, an accounting node), and the blockchain structure is shown in FIG. 2.
S402, gateway server identity authentication: and performing identity authentication on a gateway server of each KTV, and distributing a unique uploading key and a corresponding identity ID generated by the key after the authentication is passed, wherein each identity ID comprises real information and some publicable information of the KTV. The identity ID is visible to all other region link points, but KTV information beyond the identity ID may be hidden.
S403, constructing the identity of the candidate song: the song information that KTV may order is encoded in unison, make every song have a unique identification ID, every identification ID can include the creation information and copyright attribution information, etc. of this song.
S404, the on-demand equipment requests songs: the on-demand equipment in each compartment of the KTV sends on-demand information to the gateway server equipment of the KTV when a song on-demand action occurs and the on-demand song is played for a preset time (including that the song is completely played or the song is cut midway after being played for the preset time, and the preset time can be set by self), and the on-demand information can adopt a data format of 'on-demand time + playing time + on-demand song ID + on-demand compartment identification'. The on-demand information can be encrypted by using reversible encryption algorithms such as RSA, AES and the like and then sent to the gateway server equipment of the KTV, so that the data transmission process is prevented from being stolen and tampered by others.
S405, when the on-demand information is sent to the gateway server after the song is played, the on-demand equipment of the KTV box also sends the on-demand information to the cloud server, and the data format of the on-demand information sent to the cloud server can be the same as that of the gateway server equipment. The cloud server counts the on-demand times according to a preset period (the statistical rule is the same as that of the gateway server device), and the gateway server device is prevented from tampering with the reported data. In some embodiments, if the data check with the cloud server is not required, the on-demand counting information does not need to be synchronously sent to the cloud server.
S406, the gateway server counts song on demand times: when receiving song on-demand information sent by on-demand equipment of a box, KTV gateway server equipment receives the on-demand information and writes the on-demand information into a file. And then, decrypting the received data file by using a corresponding decryption algorithm according to a preset period (such as every day or every hour) and summarizing the successfully decrypted on-demand information, wherein the summarized form can be a data format of how many times each song (represented by a song ID) is on-demand.
S407, packaging the order counting information: after summarizing song on-demand counting information according to a period, the gateway server uses the identity ID and the uploading key of the gateway server to sign, and uploads the signed on-demand counting information to the on-demand counting block chain network. Each block chain node can also generate a data accounting node through election, the data accounting node packs a plurality of newly uploaded on-demand counting information at regular intervals to generate a new block and carries out uplink, and then the new block is uploaded to a block chain network.
The data accounting node recommended by each block link point may be: and selecting the node for recording the data of the complete block chain as a candidate accounting node, and selecting the candidate node with the largest accumulated order count as the data accounting node. If the number of the candidate nodes with the largest accumulated on-demand count is more than two, selecting the earliest node accessed to the block chain network as a data accounting node; and after the data accounting node accounts, clearing the order counting data. In some embodiments, if more than two gateway servers with the largest and same accumulated VOD count are encountered, the earliest node in the access block chain network is selected as the data accounting node.
In a more preferable scheme, after the accounting node performs accounting, the song accumulated on-demand count of the node is cleared, and after other blockchain nodes update the new block, the on-demand count accumulated data of other blockchain nodes can also be cleared. And each block chain node reports num song on-demand counting information to the block chain network (num is the sum of the reported on-demand times of each song), and the accumulated song on-demand counting data is increased by num.
And S408, linking the new block, and realizing the purpose of counting the number of requested programs in a voting mode on the block chain. The new block which is booked and packaged in the order counting block chain network is the voting information of each gateway server to each multimedia resource in the invention, and is used for voting the corresponding order song order times, and the obtained votes are the order times.
When a node in the order counting block chain network receives a new block each time, firstly, the identity ID of the accounting node for packaging the new block is checked, whether the block is a reasonable block (namely whether the block is a block packaged by a gateway server of a real audiovisual place) is verified, and after the check is successful, the voting information is packaged and linked up. Other block chain nodes synchronously update the voting information in the new block after the new block chains. Voting is the process of updating and accounting the song on-demand data in the block chain. For example, the song-on-demand information in the new block includes: and the jukebox U1 has ordered num1 times for song ID1, the jukebox U2 has ordered num2 times for song ID2, the regional chain node record jukebox U1 which receives the new block throws num1 tickets for song ID1, and the jukebox U2 throws num2 times for song ID 2.
S409, inquiring song on demand conditions: and browsing the KTV order counting block chain by using the block chain browser, so that which songs are ordered by the KTV corresponding to each allocated identity ID in each period and the order ordering times of each song can be checked. The time period of each song requested by a certain KTV can be inquired through the request counting block chain.
When the song on-demand condition is inquired, the backup data of the cloud server can be checked with the on-demand times issued by the gateway server, and the reported data can be prevented from being tampered by the gateway server equipment.
In another embodiment, as shown in fig. 5, a computer readable storage medium 500 is provided, which may be a gateway server device readable storage medium of an audiovisual venue, on which gateway server a computer program is stored, which when executed by a processor implements the steps of any of the above embodiments.
It should be noted that, although the above embodiments have been described herein, the invention is not limited thereto. Therefore, based on the innovative concepts of the present invention, the technical solutions of the present invention can be directly or indirectly applied to other related technical fields by making changes and modifications to the embodiments described herein, or by using equivalent structures or equivalent processes performed in the content of the present specification and the attached drawings, which are included in the scope of the present invention.
Claims (10)
1. A block chain-based audio-visual place order-on-demand counting method is characterized by comprising the following steps:
establishing a video-on-demand counting block chain network, wherein the video-on-demand counting block chain takes a gateway server of an audio-visual place as a block chain node, and the gateway server is connected with more than two video-on-demand devices;
the on-demand equipment generates on-demand counting information of audio and video files and sends the on-demand counting information to the gateway server;
the gateway server receives the on-demand counting information of the audio and video files and uploads the on-demand counting information to an on-demand counting block chain network;
and recommending data accounting nodes by each block chain link point, packaging the information to be packaged into a new block by the recommended data accounting nodes, chaining the new block, broadcasting the new block to the block chain network, and receiving and updating other block chain link points.
2. The block chain based audio-visual place on-demand counting method according to claim 1, wherein the gateway server signs the multimedia resource on-demand counting information after receiving the audio-visual file on-demand counting information, and then uploads the multimedia resource on-demand counting information to the on-demand counting block chain network.
3. The block chain based audio-visual venue on-demand counting method according to claim 1, wherein each block chain node recommendation data accounting node comprises:
selecting a node for recording complete block chain data as a candidate accounting node;
and selecting the candidate node with the maximum accumulated ordering counting number as a data accounting node.
4. The block chain based audio-visual venue on-demand counting method according to claim 3, wherein each block chain node recommendation data accounting node further comprises:
if the number of the candidate nodes with the maximum accumulated on-demand counting number is more than two, selecting the earliest node accessed to the block chain network as a data accounting node; and after the accounting node accounts, clearing the accumulated on-demand counting total.
5. The block chain-based audio-visual place on-demand counting method according to claim 1, wherein the on-demand equipment generates audio-video file on-demand counting information and sends the audio-video file on-demand counting information to the gateway server comprises the steps of:
the on-demand equipment plays the audio and video file according to the on-demand request;
and after each audio and video file is played for a preset time, the on-demand equipment generates on-demand counting information of the audio and video files and sends the on-demand counting information to the gateway server.
6. An audio-visual site on-demand counting method based on a blockchain according to one of claims 1 to 5, characterized in that the on-demand equipment reversibly encrypts the audio-visual file on-demand counting information and then sends it to the gateway server.
7. The block chain based audio-visual site on-demand counting method according to claims 1-5, wherein the gateway server receiving the audio-visual file on-demand counting information and uploading to an on-demand counting block chain comprises the steps of:
the gateway server receives the multimedia resource on-demand counting information in real time;
the gateway server collects the received multimedia resource on-demand counting information;
and the gateway server signs the gathered multimedia resource on-demand counting information according to a preset period and uploads the information to the on-demand counting block chain network.
8. A block chain based audio-visual site on demand counting method according to claims 1-5, characterized in that said establishing a block chain on demand counting network comprises the following steps:
coding the audio and video files to enable each audio and video file to have a unique identification ID;
a gateway server of the audiovisual venue is assigned a unique upload key and a corresponding identity ID generated from the key.
9. An audio-visual site on-demand counting method based on block chains according to claims 1 to 5, characterized in that it comprises the further steps of:
and browsing the on-demand counting block chain by using a block chain browser and inquiring the on-demand times of the audio and video files.
10. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out the steps of any of claims 1 to 9.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010243786.5A CN113473173A (en) | 2020-03-31 | 2020-03-31 | Block chain based audio-visual place order-on-demand counting method and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010243786.5A CN113473173A (en) | 2020-03-31 | 2020-03-31 | Block chain based audio-visual place order-on-demand counting method and storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN113473173A true CN113473173A (en) | 2021-10-01 |
Family
ID=77866099
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010243786.5A Pending CN113473173A (en) | 2020-03-31 | 2020-03-31 | Block chain based audio-visual place order-on-demand counting method and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN113473173A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114900305A (en) * | 2022-02-23 | 2022-08-12 | 杭州脸脸会网络技术有限公司 | Block chain-based data processing method and device, electronic device and storage medium |
| CN115204749A (en) * | 2022-08-25 | 2022-10-18 | 新奥新智科技有限公司 | Risk prediction model training method and device based on regional chain technology |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107172135A (en) * | 2017-05-03 | 2017-09-15 | 施瑞琦 | Method for statisticsing audience rating and system based on block chain |
| CN108521582A (en) * | 2018-05-02 | 2018-09-11 | 中广热点云科技有限公司 | A kind of copyright video the whole network rating recording system based on block chain technology |
| CN108769752A (en) * | 2018-05-02 | 2018-11-06 | 中广热点云科技有限公司 | A kind of network video based on block chain technology listens Management Support System |
| CN109525865A (en) * | 2018-12-03 | 2019-03-26 | 杭州遥指科技有限公司 | Audience ratings monitoring method and computer readable storage medium based on block chain |
| US10469605B1 (en) * | 2019-06-28 | 2019-11-05 | Beatdapp Software Inc. | System and method for scalably tracking media playback using blockchain |
-
2020
- 2020-03-31 CN CN202010243786.5A patent/CN113473173A/en active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107172135A (en) * | 2017-05-03 | 2017-09-15 | 施瑞琦 | Method for statisticsing audience rating and system based on block chain |
| CN108521582A (en) * | 2018-05-02 | 2018-09-11 | 中广热点云科技有限公司 | A kind of copyright video the whole network rating recording system based on block chain technology |
| CN108769752A (en) * | 2018-05-02 | 2018-11-06 | 中广热点云科技有限公司 | A kind of network video based on block chain technology listens Management Support System |
| CN109525865A (en) * | 2018-12-03 | 2019-03-26 | 杭州遥指科技有限公司 | Audience ratings monitoring method and computer readable storage medium based on block chain |
| US10469605B1 (en) * | 2019-06-28 | 2019-11-05 | Beatdapp Software Inc. | System and method for scalably tracking media playback using blockchain |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114900305A (en) * | 2022-02-23 | 2022-08-12 | 杭州脸脸会网络技术有限公司 | Block chain-based data processing method and device, electronic device and storage medium |
| CN114900305B (en) * | 2022-02-23 | 2024-03-19 | 杭州脸脸会网络技术有限公司 | Block chain-based data processing method and device, electronic device and storage medium |
| CN115204749A (en) * | 2022-08-25 | 2022-10-18 | 新奥新智科技有限公司 | Risk prediction model training method and device based on regional chain technology |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US9648027B2 (en) | Segment authentication for dynamic adaptive streaming | |
| CN101547205B (en) | Method, apparatus and system for remote real-time access of multimedia content | |
| US7016496B2 (en) | System and method for storing and accessing digital media content using smart card technology | |
| CN108681943A (en) | A kind of data processing method, device, equipment and the storage medium of block chain network | |
| CN110544134B (en) | Resource processing method and device and computer storage medium | |
| CN101442655B (en) | Digital copyright management system of digital program broadcast system | |
| CN102547405B (en) | Electronic content distribution and exchange system | |
| CN108769171A (en) | The copy of distributed storage keeps verification method, device, equipment and storage medium | |
| CN112448946A (en) | Log auditing method and device based on block chain | |
| KR102672545B1 (en) | Method And Apparatus System for Selling Personal Contents by Using Inserting Advertisement | |
| CN110381334A (en) | Anti-stealing-link method, device and system | |
| TWI559755B (en) | System and method for privacy-preserving advertisement selection | |
| CN104009838A (en) | Multimedia content piecewise encryption method | |
| CN119402686B (en) | A multimedia education course resource playing method and device | |
| CN113473173A (en) | Block chain based audio-visual place order-on-demand counting method and storage medium | |
| CN113468608A (en) | Multimedia resource on-demand counting method based on block chain and storage medium | |
| JP2002216040A (en) | Content distribution system and method | |
| CN106031183A (en) | Communication method, user device, content server and controller | |
| CN106507149A (en) | Video preference information processing method, apparatus and system | |
| JP2005176312A (en) | METADATA ACCESS CONTROL SYSTEM AND METHOD, RECEPTION DEVICE, AND TRANSMISSION DEVICE | |
| US20240340478A1 (en) | System and method for detecting and reporting concurrent viewership of online audio-video content | |
| CN101442669B (en) | Background system of digital copyright management system | |
| US20250190606A1 (en) | Method and system for managing content data access | |
| CN101867561B (en) | For the webserver of managing genuine multimedia file | |
| CN112990960B (en) | Unlocking method, device and equipment for display content and readable storage medium |
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 |