CN114884663A - Multimedia object processing method, device, equipment and storage medium - Google Patents

Multimedia object processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN114884663A
CN114884663A CN202110162716.1A CN202110162716A CN114884663A CN 114884663 A CN114884663 A CN 114884663A CN 202110162716 A CN202110162716 A CN 202110162716A CN 114884663 A CN114884663 A CN 114884663A
Authority
CN
China
Prior art keywords
character string
time
hash value
writing
multimedia object
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110162716.1A
Other languages
Chinese (zh)
Inventor
何冠有
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202110162716.1A priority Critical patent/CN114884663A/en
Publication of CN114884663A publication Critical patent/CN114884663A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3236Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/30Public key, i.e. encryption algorithm being computationally infeasible to invert or user's encryption keys not requiring secrecy
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3247Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/66Remote control of cameras or camera parts, e.g. by remote control devices

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Multimedia (AREA)
  • Computing Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Storage Device Security (AREA)

Abstract

The application discloses a multimedia object processing method, a device, equipment and a storage medium, wherein a block chain is used for storing character string write-in information and hash value write-in information, when the shooting time of a multimedia object to be authenticated needs to be determined so as to authenticate the copyright of the multimedia object to be authenticated, a target hash value is calculated according to the multimedia object to be authenticated, and a first request comprising the target hash value is sent to the block chain. And if the first writing time returned by the block chain is received, extracting the target random character string from the multimedia object to be authenticated, and sending a second request comprising the target random character string to the block chain. And if the second writing time returned by the block chain is received, determining the shooting time of the multimedia object to be authenticated according to the first writing time and the second writing time. Since the blockchain is a distributed database which cannot be tampered, the obtained first writing time and second writing time are accurate, and the shooting time of the multimedia object to be authenticated can be accurately proved.

Description

Multimedia object processing method, device, equipment and storage medium
Technical Field
The present application relates to the field of multimedia processing, and in particular, to a method, an apparatus, a device, and a storage medium for processing a multimedia object.
Background
With the rapid development of informatization and the internet, data exchange and transmission become a relatively simple and rapid process, and users can conveniently share and transmit photos or videos shot by themselves through the internet, but the copyright problem is more and more prominent.
The shooting time of the picture or the video has great help for judicial evidence, and further the copyright protection of the picture or the video is realized. In the related art, copyright protection of some pictures or videos is performed based on laws, but the shooting time of the pictures or videos cannot be proved, and in this situation, how to prove the originality of the pictures or videos becomes a problem which is difficult to solve.
Disclosure of Invention
In order to solve the technical problems, the application provides a multimedia object processing method, a device, equipment and a storage medium, which can accurately prove the shooting time of a multimedia object to be authenticated so as to help realize copyright protection and more conveniently prove the originality of the multimedia object to be authenticated.
The embodiment of the application discloses the following technical scheme:
in a first aspect, an embodiment of the present application provides a multimedia object processing method, where a blockchain is used to store string write information and hash value write information, and the method includes:
calculating a target hash value according to the multimedia object to be identified;
sending a first request to the blockchain, wherein the first request comprises the target hash value;
if first writing time in target hash value writing information is received from the block chain, extracting a target random character string from the multimedia object to be authenticated, wherein the target hash value writing information is determined by the block chain according to the target hash value from stored hash value writing information, and the first writing time is the time when the shooting equipment requests to write the target hash value into the block chain;
sending a second request to the block chain, wherein the second request comprises the target random character string;
and if second writing time in target character string writing information is received from the block link, determining the shooting time of the multimedia object to be authenticated according to the first writing time and the second writing time, wherein the target character string writing information is determined by the block chain from stored character string writing information according to the target random character string, and the second writing time is the time for requesting the random character string generation equipment to write the generated target random character string into the block chain.
In a second aspect, an embodiment of the present application provides a multimedia object processing apparatus that stores character string write information and hash value write information using a blockchain, the apparatus including a calculation unit, a transmission unit, a reception unit, an extraction unit, and a determination unit:
the computing unit is used for computing a target hash value according to the multimedia object to be identified;
the sending unit is configured to send a first request to the blockchain, where the first request includes the target hash value;
the extracting unit is configured to extract a target random character string from the multimedia object to be authenticated if the receiving unit receives a first writing time in target hash value writing information from the blockchain, where the target hash value writing information is determined by the blockchain from stored hash value writing information according to the target hash value, and the first writing time is a time when the shooting device requests to write the target hash value into the blockchain;
the sending unit is configured to send a second request to the blockchain, where the second request includes the target random character string;
the determining unit is configured to determine, if the receiving unit receives a second writing time in target character string writing information from the block link, the shooting time of the multimedia object to be authenticated according to the first writing time and the second writing time, where the target character string writing information is determined by the block chain from stored character string writing information according to the target random character string, and the second writing time is a time at which the random character string generating device requests to write the generated target random character string into the block chain.
In a third aspect, an embodiment of the present application provides a multimedia object processing method, where the method includes:
shooting an object to be shot and a random character string displayed on random character string display equipment to obtain a multimedia object, wherein the random character string display equipment displays the random character string according to a second preset period, and the second preset period is smaller than a first preset period for generating the random character string by random character string generation equipment;
calculating a hash value of the multimedia object;
sending a hash value writing request to a blockchain, wherein the hash value writing request comprises the hash value of the multimedia object, the hash value writing request is used for requesting hash value writing information to be written into the blockchain from the blockchain, the hash value writing information comprises the hash value of the multimedia object and first writing time, and the first writing time is the time when the shooting equipment requests to write the hash value of the multimedia object into the blockchain.
In a fourth aspect, an embodiment of the present application provides a multimedia object processing apparatus, where the apparatus includes an obtaining unit, a computing unit, and a sending unit:
the acquiring unit is used for shooting an object to be shot and a random character string displayed on a random character string display device to obtain a multimedia object, wherein the random character string display device displays the random character string according to a second preset period, and the second preset period is smaller than a first preset period for generating the random character string by a random character string generating device;
the computing unit is used for computing the hash value of the multimedia object;
the sending unit is configured to send a hash value write request to a blockchain, where the hash value write request includes a hash value of the multimedia object, the hash value write request is used to request, from the blockchain, to write hash value write information into the blockchain, where the hash value write information includes the hash value of the multimedia object and a first write time, and the first write time is a time when a shooting device requests to write the hash value of the multimedia object into the blockchain.
In a fifth aspect, an embodiment of the present application provides a multimedia object processing method, where the method includes:
generating a random character string according to a first preset period, wherein the random character string generated each time is different from the random character string generated last time;
sending a character string writing request to a block chain, wherein the character string writing request comprises the random character string, the character string writing request is used for requesting to write character string writing information to the block chain, the character string writing information comprises the generated random character string and a second writing time, and the second writing time is the time when the random character string generating device requests to write the generated random character string to the block chain.
In a sixth aspect, an embodiment of the present application provides a multimedia object processing apparatus, where the apparatus includes a generating unit and a sending unit:
the generating unit is used for generating a random character string according to a first preset period, wherein the random character string generated each time is different from the random character string generated last time;
the sending unit is configured to send a character string write request to a blockchain, where the character string write request includes the random character string, the character string write request is used to request, from the blockchain, to write character string write information into the blockchain, the character string write information includes the generated random character string and a second write time, and the second write time is a time at which a random character string generating device requests to write the generated random character string into the blockchain.
In a seventh aspect, an embodiment of the present application provides an electronic device for multimedia object processing, where the electronic device includes a processor and a memory:
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to perform the method of the first aspect or the third aspect or the fifth aspect according to instructions in the program code.
In an eighth aspect, embodiments of the present application provide a computer-readable storage medium for storing program code for executing the method of the first aspect, the third aspect, or the fifth aspect.
According to the technical scheme, the block chain is used for storing the character string writing information and the hash value writing information, the character string writing information comprises the random character string generated by the random character string generating device and the time for writing the random character string into the block chain, and the hash value writing information comprises the hash value corresponding to the multimedia object and the time for writing the hash value into the block chain. When the shooting time of the multimedia object to be authenticated needs to be determined to authenticate the copyright of the multimedia object to be authenticated, the target hash value can be calculated according to the multimedia object to be authenticated, and a first request comprising the target hash value is sent to the blockchain. If target hash value writing information including the target hash value is stored in the block chain, the hash value can uniquely identify the multimedia object, and the target hash value corresponding to the multimedia object to be identified is written into the block chain after the multimedia object to be identified is obtained through shooting, and then the first writing time of the target hash value in the writing information is returned. The first write time is the time when the photographing apparatus requests to write the target hash value into the block chain, and the multimedia object to be authenticated must be photographed before the first write time. After receiving the first write time from the blockchain, extracting the target random character string from the multimedia object to be authenticated, and sending a second request including the target random character string to the blockchain. And if the block chain stores target character string writing information including the target random character string, returning second writing time in the target character string writing information. The second writing time is a time when the random character string generating device requests to write the generated target random character string into the block chain, the target random character string is included in the multimedia object to be authenticated, and the target random character string is unique, so that the multimedia object to be authenticated is shot after the first writing time. And finally, determining the shooting time of the multimedia object to be authenticated according to the first writing time and the second writing time, wherein the block chain is a distributed database which cannot be tampered, any data recorded in the block chain can be disclosed to all people, and any person cannot tamper the information written in the block chain, so that the obtained first writing time and the second writing time are accurate, the shooting time of the multimedia object to be authenticated can be accurately proved, copyright protection is facilitated, and the originality of the multimedia object to be authenticated is more conveniently proved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and for a person of ordinary skill in the art, other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a schematic system architecture diagram of a multimedia object processing method according to an embodiment of the present application;
fig. 2 is a flowchart of a multimedia object processing method according to an embodiment of the present application;
fig. 3 is a flowchart of another multimedia object processing method provided in an embodiment of the present application;
fig. 4 is a flowchart of another multimedia object processing method provided in the embodiment of the present application;
fig. 5 is a signaling interaction diagram of a multimedia object processing method according to an embodiment of the present application;
fig. 6 is a block diagram of a multimedia object processing apparatus according to an embodiment of the present application;
fig. 7 is a block diagram of another multimedia object processing apparatus according to an embodiment of the present application;
FIG. 8 is a block diagram of a multimedia object processing apparatus according to an embodiment of the present application;
fig. 9 is a structural diagram of a terminal device according to an embodiment of the present application;
fig. 10 is a block diagram of a server according to an embodiment of the present application.
Detailed Description
Embodiments of the present application are described below with reference to the accompanying drawings.
In the related art, copyright protection of some pictures or videos is performed based on laws, but the shooting time of the pictures or videos cannot be proved, and in this case, how to prove the originality of the pictures or videos becomes a problem which is difficult to solve.
In order to solve the foregoing technical problem, an embodiment of the present application provides a multimedia object processing method, where character string writing information and hash value writing information are stored by a blockchain, where the character string writing information includes a random character string generated by a random character string generation device and a time for writing the random character string into the blockchain, and the hash value writing information includes a hash value corresponding to a multimedia object and a time for writing the hash value into the blockchain. That is, the multimedia object photographed by the user through the photographing apparatus includes the random character string, and the random character string has been written into the block chain. After the multimedia object is obtained through shooting, the hash value corresponding to the multimedia object is written into the block chain. Since the information stored in the block chain cannot be tampered, when the multimedia object to be authenticated needs to be authenticated, the accurate first writing time and the second writing time can be obtained from the block chain under the condition that the target hash value and the target random character string of the multimedia object to be authenticated are stored in the block chain, and then the shooting time of the multimedia object to be authenticated can be accurately proved, so that the copyright protection can be realized, and the originality of the multimedia object to be authenticated can be proved more conveniently.
It should be noted that the method provided in the embodiment of the present application may be applied to various scenes in which it is necessary to determine the shooting time of the multimedia object to be authenticated accurately for copyright protection, for example, may be applied to a picture platform, a judicial evidence platform, and the like. The multimedia object to be authenticated can be a video or a picture. Since the hash value of the multimedia object (such as the multimedia object to be authenticated) is uploaded to the picture platform or the forensic platform, but not the multimedia object itself, specific contents of the shot picture and video can be guaranteed not to be leaked.
It should be noted that the method provided in the embodiment of the present application may relate to a blockchain, where the blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, and an encryption algorithm. A block chain (Blockchain), which is essentially a decentralized database, is a string of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, which is used for verifying the validity (anti-counterfeiting) of the information and generating a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, and an application service layer.
The block chain underlying platform can comprise processing modules such as user management, basic service, intelligent contract and operation monitoring. The user management module is responsible for identity information management of all blockchain participants, and comprises the steps of maintaining public and private key generation (account management), key management, user real identity and blockchain address corresponding relation maintenance (authority management) and the like, and under the authorized condition, supervising and auditing the transaction condition of some real identities, and providing rule configuration (wind control audit) of risk control; the basic service module is deployed on all block chain node equipment and used for verifying the validity of the service request, recording the service request to storage after consensus on the valid request is completed, for a new service request, the basic service firstly performs interface adaptation analysis and authentication processing (interface adaptation), then encrypts service information (consensus management) through a consensus algorithm, transmits the service information to a shared account (network communication) completely and consistently after encryption, and performs recording and storage; the intelligent contract module is responsible for registering and issuing contracts, triggering the contracts and executing the contracts, developers can define contract logics through a certain programming language, issue the contract logics to a block chain (contract registration), call keys or other event triggering and executing according to the logics of contract clauses, complete the contract logics and simultaneously provide the function of upgrading and canceling the contracts; the operation monitoring module is mainly responsible for deployment, configuration modification, contract setting, cloud adaptation in the product release process and visual output of real-time states in product operation, such as: alarm, monitoring network conditions, monitoring node equipment health status, and the like.
The platform product service layer provides basic capability and an implementation framework of typical application, and developers can complete block chain implementation of business logic based on the basic capability and the characteristics of the superposed business. The application service layer provides the application service based on the block chain scheme for the business participants to use.
In this embodiment, the present invention mainly relates to a shooting device, a random character string generation device, a random character string display device, and a multimedia data processing device, where hash values corresponding to multimedia objects obtained by shooting by the shooting device and random character strings generated by the random character string generation device can be stored in a block chain, that is, character string write information and hash value write information are stored in the block chain; the random character string display equipment can acquire the random character string from the block chain to display so that the shooting equipment can shoot to obtain the multimedia object; the multimedia data processing apparatus may request the second write time of the character string in the information and the first write time of the hash value in the information from the blockchain to be used for determining the photographing time of the multimedia object to be authenticated.
Referring to fig. 1, fig. 1 is a schematic diagram of a system architecture of a multimedia object processing method according to an embodiment of the present disclosure. The system architecture includes a shooting device 101, a random string generation device 102, a random string display device 103, a blockchain 104, and a multimedia data processing device 105. The shooting device 101 may be various terminal devices with cameras, such as a mobile phone, a tablet computer, a camera, a video camera, and the like; the random character string generation device 102 may be a device capable of generating a random character string, such as a terminal device or a server; the random character string display device 103 may be a terminal device with a display, such as a mobile phone, a tablet computer, a computer, etc.; the multimedia data processing device 105 may be a terminal device or a server, the terminal device may be, for example, an intelligent terminal, a computer, a Personal Digital Assistant (PDA), a tablet computer, or the like, and the server may be an independent server or a cluster server. In this embodiment, the random string generation device 102 is a server, and the multimedia data processing device 105 is a server.
The block chain 102 stores character string writing information and hash value writing information, the character string writing information includes a random character string generated by the random character string generation device 102 and time for writing the random character string into the block chain, the hash value writing information includes a hash value corresponding to the multimedia object and time for writing the hash value into the block chain, and the multimedia object is obtained by shooting the object to be shot and the random character string displayed on the random character string display device 103 by the shooting device 101.
When it is required to determine the shooting time of the multimedia object to be authenticated so as to authenticate the copyright of the multimedia object to be authenticated, the multimedia data processing apparatus 105 may calculate a target hash value according to the multimedia object to be authenticated, and send a first request including the target hash value to the blockchain 104. If the block chain 104 stores target hash value write information including a target hash value, the hash value can uniquely identify the multimedia object, which indicates that the corresponding target hash value is written into the block chain after the multimedia object to be identified is obtained by shooting, and then the first write time in the target hash value write information is returned to the multimedia data processing device 105. The first write time is the time when the photographing apparatus requests to write the target hash value into the block chain, and the multimedia object to be authenticated must be photographed before the first write time.
The multimedia data processing apparatus 105 extracts the target random string from the multimedia object to be authenticated after receiving the first write time from the blockchain 104, and sends a second request including the target random string to the blockchain 104. If the block chain 104 stores thereon target character string write information including the target random character string, the second write time in the target character string write information is returned to the multimedia data processing apparatus 105. The second writing time is a time when the random character string generating device requests to write the generated target random character string into the block chain, the target random character string is included in the multimedia object to be authenticated, and the target random character string is unique, so that the multimedia object to be authenticated is shot after the first writing time. And finally, determining the shooting time of the multimedia object to be authenticated according to the first writing time and the second writing time, wherein the block chain is a distributed database which cannot be tampered, any data recorded in the block chain can be disclosed to all people, and any person cannot tamper the information written in the block chain, so that the obtained first writing time and the second writing time are accurate, the shooting time of the multimedia object to be authenticated can be accurately proved, copyright protection is facilitated, and the originality of the multimedia object to be authenticated is more conveniently proved.
Referring to fig. 2, fig. 2 shows a flow chart of a multimedia object processing method, which mainly relates to a generation process of a random character string used in multimedia object processing, and is applied to a random character string generation device, and the method comprises the following steps:
s201, generating a random character string according to a first preset period, wherein the random character string generated each time is different from the random character string generated last time.
The random character string generating device generates a random character string at intervals (first preset period), which is different from the random character string previously generated by the random character string generating device, thereby ensuring the uniqueness of each random character string. The generated random character string may be represented by Sr1, the first preset period may be represented by T1, and T1 may be, for example, 1 second.
It should be noted that in some cases, some users may wish to modify the random string by PS on the multimedia object (picture or video) to steal the multimedia object, so that the owner of the multimedia object cannot prove the copyright. In order to increase the PS difficulty of the multimedia object and prevent the multimedia object from being PS, the random string may have a font, a style (including color, bold, italic, etc.), and a size.
S202, sending a character string writing request to the block chain.
After generating the random character string, the random character string generation device sends a character string write request including the random character string to the blockchain, thereby requesting to write character string write information to the blockchain, the character string write information including the generated random character string and a second write time, the second write time being a time at which the random character string generation device requests to write the generated random character string to the blockchain, the second write time may be a time at which the blockchain acquires when receiving the character string write request, and the second write time may be represented by Tb 2. If a random string is written to the blockchain, one piece of string writing information stored on the blockchain may be represented as Sr1+ Tb 2.
In some cases, the generated random string may not be written into the blockchain immediately due to the network delay, i.e. the generation time of the random string may not coincide with the second writing time, but the network delay is usually not so long as to be substantially less than the time taken to tamper with the random string. Therefore, in order to distinguish whether the random string is tampered, and thus write the legitimate random string that is not tampered into the blockchain, the generation time of the random string generated by the random string generation device may be further included in the string write request, so that the blockchain determines whether to write the string write information into the blockchain according to the second write time and the generation time. The generation time may be represented by Tr 1. And if the difference value between the second writing time and the generating time is less than the first time interval Tmax1, the random character string is considered not to be tampered, and the random character string is written into the block chain. The first time interval Tmax1 may be determined according to a network delay, which may be 1min, for example.
At this time, one piece of character string writing information stored on the block chain may be represented as Sr1+ Tb2+ Tr 1. And if the difference value between the second writing time and the generation time is greater than the first time interval Tmax1, the random character string is considered to be tampered, and the random character string is refused to be written into the block chain.
In order to enable the random character string generating equipment to know the writing condition of the random character string, if the random character string is written into the block chain, the block chain returns a character string writing success response to the random character string generating equipment, and if the random character string is refused to be written into the block chain, the block chain returns a character string writing failure response to the random character string generating equipment.
After the random character string generating device receives the character string writing success response, the random character string Sr1 can be served to the outside, and if the writing of the block chain fails, the steps S201 to S202 are repeated.
The random string providing service to the outside may refer to obtaining a multimedia object by shooting using the random string, referring to fig. 3, fig. 3 shows a flowchart of a multimedia object processing method, the multimedia object processing method mainly relates to a hash value generation process used in multimedia object processing, and is applied to a shooting device, the method includes:
s301, shooting the object to be shot and the random character string displayed on the random character string display device to obtain the multimedia object.
In this embodiment, in order to facilitate subsequent proof that the multimedia object is shot by the photographer and achieve copyright protection, the photographer may carry a unique mark in the multimedia object when shooting the multimedia object. Because the random character string generated in the embodiment corresponding to fig. 2 has uniqueness, a photographer can photograph a multimedia object with the random character string to ensure the uniqueness of the multimedia object, so as to implement copyright protection.
For example, the photographer puts the random string display device into the shooting scene and turns on the random string display device, and it should be noted that the content displayed by the random string display device can be clearly seen when the multimedia object is shot. The multimedia object may be, for example, a picture or a video.
The random character string display device may pull the random character string from the blockchain or random character string generation device and display the random character string at a second preset period (T2), the second preset period T2 being less than the first preset period T1 at which the random character string generation device generates the random character string, thereby ensuring that the random character string display device may update the random character string generated by the random character string generation service in real time.
The photographer opens the photographing apparatus and photographs the multimedia object, so that the photographed multimedia object includes the random character string display apparatus that is displaying the random character string, i.e., includes the random character string.
S302, calculating the hash value of the multimedia object.
After obtaining the multimedia object, the shooting device may calculate a Hash value of the multimedia object, which may be represented by Hash 1. The hash value is the data that maps the data of any length (data corresponding to the multimedia object) to the data of limited length, and the output data of limited length is called the hash value, and the mapping process is called the hash function.
It should be noted that, since the multimedia object may be a picture or a video, if the multimedia object is a picture, a hash value is obtained. If the multimedia object is a video, the shooting device extracts some video frames from the multimedia object and calculates a hash value for each video frame. The extracted video frames may be key frames of the multimedia object or extracted at certain time intervals (for example, one frame per second).
S303, send a hash value write request to the blockchain.
After the shooting device calculates the hash value of the multimedia object, the shooting device may send a hash value writing request including the hash value to the blockchain, so as to request to write hash value writing information into the blockchain, where the hash value writing information includes the hash value of the multimedia object and a first writing time, where the first writing time is a time when the shooting device requests to write the hash value of the multimedia object into the blockchain, and the first writing time may be represented by Tb 1. If the Hash value of the multimedia object is written to the blockchain, one piece of Hash value writing information stored on the blockchain may be represented as Hash1+ Tb 1.
In some cases, the Hash value writing request may further include a digital signature, the digital signature may be obtained by encrypting the Hash value of the multimedia object through an encryption algorithm and a public key, and the digital signature may be represented by Hash 2. At this time, if the Hash value of the multimedia object is written into the blockchain, one piece of Hash value writing information stored on the blockchain may be represented as Hash1+ Hash2+ Tb 1. It can be understood that the digital signature can ensure non-repudiation of the data message and guarantee the integrity of the message, and the embodiment of the present application utilizes the non-repudiation of the data message.
Since the digital signature can only be decrypted by a specific private key, the non-repudiation of the data message can be ensured, and therefore, when a certain multimedia object, such as a multimedia object to be authenticated, needs to be authenticated subsequently, the photographer of the multimedia to be authenticated can be determined by the digital signature.
In some cases, due to the existence of network delay, the shot multimedia object may not be written into the blockchain immediately, that is, the shooting time of the multimedia object may not coincide with the first writing time, but in general, the time of the network delay is not so long, and is substantially less than the time for performing a tampering operation such as PS on the multimedia object. Therefore, in order to distinguish whether a multimedia object is PS written, thereby writing a multimedia object that is not PS to the blockchain, the shooting time of the multimedia object recorded by the shooting device may be further included in the hash value writing request, so that the blockchain determines whether to write the hash value writing information to the blockchain according to the first writing time and the shooting time. Here, the shooting Time may be represented by Time 1. And if the difference value between the first writing time and the shooting time is smaller than the second time interval Tmax2, the multimedia object is not considered to be PS, and the corresponding hash value is written into the block chain. At this Time, one piece of Hash value write information stored on the block chain may be represented as Hash1+ Hash2+ Time1+ Tb 1. If the difference between the first writing time and the shooting time is greater than the second time interval Tmax2, the multimedia object is considered to be PS, and the hash value of the multimedia object is rejected from being written into the block chain.
In order to enable the shooting device to know the writing situation of the hash value, if the hash value is written into the block chain, the block chain returns a hash value writing success response to the shooting device, and if the hash value is refused to be written into the block chain, the block chain returns a hash value writing failure response to the shooting device, and the steps of S301-S303 are repeated.
If the multimedia object is a picture, executing the steps S301-S303 once; if the multimedia object is a video, the steps of S301-S303 may be repeated until the video capturing is finished.
The random string may be written to the blockchain by the embodiment corresponding to fig. 2, and the hash value of the multimedia object may be written to the blockchain by the embodiment corresponding to fig. 3. Therefore, when a certain multimedia object, such as a multimedia object to be authenticated, needs to be authenticated, the shooting time can be determined according to the character string writing information and the hash value writing information stored in the block chain, so that the copyright protection of the multimedia object to be authenticated can be realized through the shooting time.
Referring to fig. 4, fig. 4 shows a flow chart of a multimedia object processing method, which mainly relates to an authentication process of a multimedia object to be authenticated at the time of multimedia object processing, applied to a multimedia data processing apparatus, the method comprising:
s401, calculating a target hash value according to the multimedia object to be identified.
It should be noted that, in order to authenticate a multimedia object to be authenticated, a photographer himself or herself needs to authenticate an original of the multimedia object, and if the original is lost, authentication is impossible or meaningless.
After the multimedia object to be authenticated is obtained, a target hash value corresponding to the multimedia object to be authenticated can be calculated. The target Hash value may be represented by Hash 3.
S402, sending a first request to the block chain.
Since the string writing information and the hash value writing information are stored in the blockchain, after the target hash value is obtained by calculation, the multimedia data processing apparatus may send a first request including the target hash value to the blockchain, where the first request is used to request the blockchain for the target hash value writing information including the target hash value.
S403, if the first writing time of the target hash value writing information is received from the block link, extracting a target random character string from the multimedia object to be authenticated.
After receiving the first request, the blockchain may determine whether Hash value write information including the target Hash value is stored thereon according to the first request, and if so, that is, the Hash1 in the Hash1+ Tb1 stored on the blockchain is the same as the Hash3, determine the Hash value write information as the target Hash value write information, that is, the target Hash value write information is determined by the blockchain from the stored Hash value write information according to the target Hash value. And the block chain returns the first writing time of the target hash value writing information to the multimedia data processing device. And the first writing time is the time when the shooting equipment requests to write the target hash value into the block chain.
Of course, in this embodiment, other information (for example, Hash1) in the target Hash value writing information or the entire target Hash value writing information (for example, Hash1+ Hash2+ Time1+ Tb1) may also be returned to the multimedia data processing apparatus, which is not limited in this embodiment.
And if the block chain determines that the hash value write-in information comprising the target hash value does not exist, determining that the multimedia object to be identified is illegal, and avoiding the waste of computing resources because subsequent steps are not required.
When the multimedia data processing device receives the first writing time, the preliminary authentication of the multimedia object to be authenticated is legal, so that the target random character string can be extracted from the multimedia object to be authenticated so as to further authenticate the multimedia object to be authenticated.
In this embodiment, the authenticator opens the multimedia object to be authenticated, and may extract the target random string of the random string display device in the multimedia object to be authenticated by a tool or manually. The target random string may be represented by Sr 3.
In some cases, in order to avoid the multimedia object to be authenticated being PS, the problem that whether the multimedia object to be authenticated has the PS can be judged, if not, the next step of authentication is carried out, otherwise, the multimedia object is not qualified, the subsequent steps are not required to be executed, and the waste of computing resources is avoided.
S404, sending a second request to the block chain.
After the multimedia data processing apparatus extracts the target random string, a second request including the target random string may be sent to the blockchain, the second request being for requesting the blockchain to write information to the target string including the target random string.
S405, if second writing time in target character string writing information is received from the block link, determining shooting time of the multimedia object to be authenticated according to the first writing time and the second writing time.
After receiving the second request, the block link searches whether the character string writing information including the target random character string is stored according to the target random character string, if so, namely Sr1 in Sr1+ Tb2 stored on the block chain is the same as Sr3, and the character string writing information is determined as the target character string writing information, namely the target character string writing information is determined by the block chain from the stored character string writing information according to the target random character string. And the block chain returns the second writing time of the target character string in the writing information to the multimedia data processing equipment. Wherein the second writing time is a time at which the random character string generating device requests the generated target random character string to be written into the block chain.
Of course, in this embodiment, other information (for example, Sr1) in the target character string writing information or the entire target character string writing information (for example, Sr1+ Tb2+ Tr1) may also be returned to the multimedia data processing apparatus, which is not limited in this embodiment.
And if the block chain determines that the character string writing information comprising the target character string does not exist on the block chain, determining that the multimedia object to be identified is illegal, and avoiding the waste of computing resources because subsequent steps are not required.
When the multimedia data processing device receives the second writing time, the authentication of the multimedia object to be authenticated is legal, the first writing time is the time when the shooting device requests to write the target hash value into the block chain, and the multimedia object to be authenticated is shot before the first writing time. The second writing time is a time when the random character string generating device requests to write the generated target random character string into the block chain, the target random character string is included in the multimedia object to be authenticated, and the target random character string is unique, so that the multimedia object to be authenticated is shot after the first writing time. And finally, determining the shooting time of the multimedia object to be authenticated according to the first writing time and the second writing time.
According to the technical scheme, the block chain is used for storing the character string writing information and the hash value writing information, the character string writing information comprises the random character string generated by the random character string generating device and the time for writing the random character string into the block chain, and the hash value writing information comprises the hash value corresponding to the multimedia object and the time for writing the hash value into the block chain. When the shooting time of the multimedia object to be authenticated needs to be determined to authenticate the copyright of the multimedia object to be authenticated, the target hash value can be calculated according to the multimedia object to be authenticated, and a first request comprising the target hash value is sent to the blockchain. If target hash value writing information including the target hash value is stored in the block chain, the hash value can uniquely identify the multimedia object, and the target hash value corresponding to the multimedia object to be identified is written into the block chain after the multimedia object to be identified is obtained through shooting, and then the first writing time of the target hash value in the writing information is returned. The first write time is the time when the photographing apparatus requests to write the target hash value into the block chain, and the multimedia object to be authenticated must be photographed before the first write time. After receiving the first write time from the blockchain, extracting the target random character string from the multimedia object to be authenticated, and sending a second request including the target random character string to the blockchain. And if the block chain stores target character string writing information including the target random character string, returning second writing time in the target character string writing information. The second writing time is a time when the random character string generating device requests to write the generated target random character string into the block chain, the target random character string is included in the multimedia object to be authenticated, and the target random character string is unique, so that the multimedia object to be authenticated is shot after the first writing time. And finally, determining the shooting time of the multimedia object to be authenticated according to the first writing time and the second writing time, wherein the block chain is a distributed database which cannot be tampered, any data recorded in the block chain can be seen by all people, and any person cannot tamper the information written in the block chain, so that the obtained first writing time and the second writing time are accurate, and the shooting time of the multimedia object to be authenticated can be accurately proved, so that the copyright protection is facilitated, and the originality of the multimedia object to be authenticated is more conveniently proved.
It should be noted that, in the embodiment of the present application, the multimedia object to be authenticated may be a picture or a video, and the video is composed of a plurality of video frames (pictures). Thus, the video authentication process is similar to, but slightly different from, the picture authentication process.
If the multimedia object to be identified is a picture, the steps of S401-S405 are performed on the picture, and when S405 is performed, a relationship between a difference value between the first writing time and the second writing time and a first threshold is determined, and if the difference value is smaller than the first threshold, it is determined that the shooting time is within a time period of the second writing time and the first writing time. Otherwise, it can be considered that the multimedia object to be authenticated is likely to be identified by the PS within the period of time, and the multimedia object to be authenticated is identified as being illegal, so that subsequent steps are not required to be executed, and the waste of computing resources is avoided. Wherein the first threshold may be represented by Tmax 3.
Before the shooting time of the multimedia object to be authenticated is determined according to the first writing time and the second writing time, whether the difference value between the first writing time and the second writing time is smaller than a first threshold value or not is determined, so that authentication is completed only when the difference value is smaller than the first threshold value, and certain users are prevented from performing PS on the multimedia object to be authenticated during the period of time between the second writing time and the first writing time as far as possible, so that authentication accuracy is guaranteed.
If the multimedia object to be authenticated is a video, the target hash value may be a hash value corresponding to a video frame in this embodiment, and thus, according to the multimedia object to be authenticated, the way of calculating the target hash value may be to acquire a video frame sequence including a plurality of target video frames according to the multimedia object to be authenticated, where the target video frame in the video frame sequence may be a key frame of the multimedia object to be authenticated, or may be extracted at certain time intervals (for example, one frame is extracted every second). It should be noted that the extraction method of the target video frame included in the video frame sequence should be the same as the extraction method of the video frame when the photographer writes the hash value into the blockchain after shooting the multimedia object. Then, target hash values corresponding to the plurality of target video frames are calculated.
After obtaining the target hash value, the steps S402-S405 are respectively performed for each target video frame, and when S405 is performed, since the obtained first writing time and the second writing time are the writing time corresponding to each target video frame, a possible implementation manner of S405 may be to determine a relationship between a difference value between the first writing time and the second writing time corresponding to each target video frame and a first threshold, and if the difference values are both smaller than the first threshold, determine that the shooting time is within a time period of the second writing time of the first target video frame and the first writing time of the last target video frame in the video frame sequence.
For example, a series of target video frames with legal video recording and corresponding times [ F1, TF1], [ F2, TF2] … [ Fn, TFn ] of the target video frames are recorded, wherein F1 and F2 … … Fn are each target video frame, and TF1 and TF2 … … TFn are time periods from the second writing time to the first writing time, namely Tb2-Tb 1. If the difference value between the first writing time and the second writing time is smaller than the first threshold value, namely within the allowed time range, the shooting time of the multimedia object to be authenticated is determined to be within the time period of TF1-TFn, namely within the time period of the second writing time corresponding to F1 and the first writing time corresponding to Fn. If the difference value between the first writing time and the second writing time is larger than the first threshold value, the data is judged to be illegal, subsequent steps are not required to be executed, and the waste of computing resources is avoided.
In some cases, before performing S401-S405 on the video, the evaluator may evaluate whether the video was edited by a tool or other means, and if so, the video is judged to be illegal without performing subsequent steps, thereby avoiding wasting computing resources. If not clipped, the steps of S401-S405 are performed on the video.
It should be noted that, in addition to determining the shooting time of the multimedia object to be authenticated in the present embodiment, it is also possible to further authenticate who the photographer of the multimedia object to be authenticated is.
In some cases, after the photographer photographs the multimedia object, in addition to writing the hash value of the multimedia object into the blockchain, the hash value may be encrypted to obtain a digital signature, and the digital signature may be written into the blockchain. The digital signature can only be decrypted with the private key, and only the real photographer has the corresponding private key. Therefore, when authenticating the multimedia object to be authenticated, it is also possible to determine who the photographer of the multimedia object to be authenticated is by using the digital signature.
Therefore, in one possible implementation manner, after the target Hash value is obtained in step S401, a signature calculation may be further performed on the target Hash value to obtain a target digital signature, which may be represented by Hash 4. Based on this, the multimedia data processing apparatus receives a first digital signature (e.g., Hash2) stored in advance at the same time when receiving a first write time in the target Hash value write information from the chunk link. Then, before extracting the target random character string from the multimedia object to be authenticated, it may be determined whether the first digital signature is the target digital signature, if so, it indicates that the multimedia object to be authenticated is legal, and the step of extracting the target random character string from the multimedia object to be authenticated may be further performed. Otherwise, the multimedia object to be identified is determined to be illegal, and subsequent steps do not need to be executed, so that the waste of computing resources is avoided.
Next, the multimedia object processing method provided in the embodiment of the present application will be described with reference to an actual application scenario. When the judicial certification is carried out, the shooting time of the picture or the video has great help to the judicial certification, and further the copyright protection of the picture or the video is realized. Therefore, the embodiment of the application provides a multimedia object processing method, so that the shooting time of the multimedia object to be authenticated can be accurately determined during judicial certification. Taking the multimedia object to be authenticated as a picture, referring to fig. 5, the method includes:
s501, the random character string generating device generates a random character string Sr1 according to a first preset period.
S502, the random character string generation device writes the random character string Sr1, the generation time Tr1, into the block chain.
And S503, the block chain acquires the second writing time Tb2, and writes the character string writing information Sr1+ Tb2+ Tr1 into the block chain when the difference value of Tb2-Tr1 is smaller than the first time interval Tmax 1.
And S504, the random character string display device displays the random character string according to a second preset period.
And the photographer puts the random character string display equipment into a shooting scene and opens the random character string display equipment so that the random character string display equipment can display the random character string according to a second preset period.
And S505, the photographer opens the shooting device and shoots a picture.
S506, the shooting device determines the Hash value Hash1, the digital signature Hash2 and the shooting Time Time1 corresponding to the picture.
And S507, the shooting device writes the Hash value Hash1, the digital signature Hash2 and the shooting Time Time1 into the block chain.
S508, the block chain obtains first writing Time Tb1, and when the difference value of Tb1-Time1 is smaller than a second Time interval Tmax2, the Hash value is written into the information Hash1+ Hash2+ Time1+ Tb1, and the block chain is written into the block chain.
S509, calculating a target Hash value Hash3 of the picture to be authenticated and a digital signature Hash4 of the Hash 3.
S510, sending a first request comprising Hash3 and Hash4 to the blockchain.
S511, if target Hash value write information Hash1+ Hash2+ Time1 and Tb1 returned by the block chain are received, determining whether the Hash2 is the same as the Hash 4.
If the Hash3 received by the block chain is the same as the Hash1 in the Hash value write information stored on the block chain, the Hash1+ Hash2+ Time1 and Tb1 are returned. Otherwise, determining that the picture to be identified is illegal.
And S512, if the Hash2 is the same as the Hash4, extracting a target random character string Sr3 in the picture to be identified.
S513, sending a second request including Sr3 to the blockchain.
And S514, if target character string writing information Sr1+ Tb2+ Tr1 returned by the block chain is received, determining that the shooting time of the picture to be authenticated is within a time period from Tb2 to Tb 1.
If the Sr3 received by the blockchain is the same as Sr1 in certain character string writing information stored on the blockchain, Sr1+ Tb2+ Tr1 is returned. Otherwise, determining that the picture to be identified is illegal.
In some cases, it may be determined whether the difference between Tb1 and Tb2 is less than the first threshold, and if the difference between Tb1 and Tb2 is less than the first threshold, S514 is performed.
Based on the multimedia object processing method provided by the embodiment corresponding to fig. 4, the embodiment of the present application further provides a multimedia object processing apparatus, referring to fig. 6, the apparatus stores character string writing information and hash value writing information using a block chain, and the apparatus 600 includes a calculating unit 601, a sending unit 602, a receiving unit 603, an extracting unit 604, and a determining unit 605:
the calculating unit 601 is configured to calculate a target hash value according to a multimedia object to be authenticated;
the sending unit 602 is configured to send a first request to the blockchain, where the first request includes the target hash value;
the extracting unit 604 is configured to extract a target random character string from the multimedia object to be authenticated if the receiving unit 603 receives a first writing time in target hash value writing information from the blockchain, where the target hash value writing information is determined by the blockchain according to the target hash value from stored hash value writing information, and the first writing time is a time when the shooting device requests to write the target hash value into the blockchain;
the sending unit 602 is configured to send a second request to the blockchain, where the second request includes the target random character string;
the determining unit 605 is configured to determine, if the receiving unit 603 receives a second writing time in target character string writing information from the block link, the shooting time of the multimedia object to be authenticated according to the first writing time and the second writing time, where the target character string writing information is determined by the block chain from stored character string writing information according to the target random character string, and the second writing time is a time when a random character string generating device requests to write the generated target random character string into the block chain.
In a possible implementation manner, if the multimedia object to be authenticated is a picture, the determining unit 605 is specifically configured to:
determining a relationship between a difference between the first writing time and the second writing time and a first threshold;
and if the difference is smaller than the first threshold, determining that the shooting time is within the time period of the second writing time and the first writing time.
In a possible implementation manner, if the multimedia object to be authenticated is a video, the computing unit 601 is configured to obtain a video frame sequence according to the multimedia object to be authenticated, where the video frame sequence includes a plurality of target video frames;
and calculating target hash values respectively corresponding to the plurality of target video frames.
In a possible implementation manner, the first writing time and the second writing time are writing times corresponding to each target video frame, and the determining unit 601 is specifically configured to:
determining the relation between the difference value between the first writing time and the second writing time corresponding to each target video frame and a first threshold value;
and if the difference values are all smaller than the first threshold value, determining that the shooting time is within the time period of the second writing time of the first target video frame and the first writing time of the last target video frame in the video frame sequence.
In a possible implementation manner, the computing unit 601 is further configured to:
and carrying out signature calculation on the target hash value to obtain a target digital signature.
In a possible implementation manner, the receiving unit 603 is configured to receive a first write time and a first digital signature in the target hash value write information from the chunk link;
the determining unit 605 is further configured to determine whether the first digital signature is the target digital signature before the extracting unit 604 extracts the target random character string from the multimedia object to be authenticated; if yes, the extracting unit 604 is triggered to execute the step of extracting the target random string from the multimedia object to be authenticated.
Based on the corresponding embodiment of fig. 3, the embodiment of the present application further provides a multimedia object processing apparatus, referring to fig. 7, where the apparatus 700 includes an obtaining unit 701, a calculating unit 702, and a sending unit 703:
the acquiring unit 701 is configured to acquire a multimedia object by shooting a to-be-shot object and a random character string displayed on a random character string display device, where the random character string display device displays the random character string according to a second preset period, and the second preset period is smaller than a first preset period in which a random character string generating device generates the random character string;
the calculating unit 702 is configured to calculate a hash value of the multimedia object;
the sending unit 703 is configured to send a hash value write request to a blockchain, where the hash value write request includes a hash value of the multimedia object, the hash value write request is configured to request, from the blockchain, to write hash value write information into the blockchain, where the hash value write information includes the hash value of the multimedia object and a first write time, and the first write time is a time when the shooting device requests to write the hash value of the multimedia object into the blockchain.
In a possible implementation manner, the hash value write request further includes a shooting time of the multimedia object recorded by the shooting device, so that the block chain determines whether to write the hash value write information into the block chain according to the first write time and the shooting time.
Based on the corresponding embodiment of fig. 2, the embodiment of the present application further provides a multimedia object processing apparatus, referring to fig. 8, where the apparatus 800 includes a generating unit 801 and a sending unit 802:
the generating unit 801 is configured to generate a random character string according to a first preset period, where the random character string generated each time is different from a random character string generated last time;
the sending unit 802 is configured to send a character string write request to a blockchain, where the character string write request includes the random character string, the character string write request is configured to request, from the blockchain, to write character string write information into the blockchain, where the character string write information includes a generated random character string and a second write time, and the second write time is a time at which a random character string generating device requests to write the generated random character string into the blockchain.
In a possible implementation manner, the character string writing request further includes generation time of the random character string generated by the random character string generation device, so that the block chain determines whether to write the character string writing information into the block chain according to the second writing time and the generation time.
The embodiment of the present application further provides an electronic device for multimedia object processing, where the electronic device may be a terminal device, and the terminal device is taken as a smart phone as an example:
fig. 9 is a block diagram illustrating a partial structure of a smartphone related to a terminal device provided in an embodiment of the present application. Referring to fig. 9, the smart phone includes: radio Frequency (RF) circuit 910, memory 920, input unit 930, display unit 940, sensor 950, audio circuit 960, wireless fidelity (WiFi) module 970, processor 980, and power supply 990. The input unit 930 may include a touch panel 931 and other input devices 932, the display unit 940 may include a display panel 941, and the audio circuit 960 may include a speaker 961 and a microphone 962. Those skilled in the art will appreciate that the smartphone configuration shown in fig. 9 is not limiting and may include more or fewer components than shown, or some components in combination, or a different arrangement of components.
The memory 920 may be used to store software programs and modules, and the processor 980 may execute various functional applications and data processing of the smart phone by operating the software programs and modules stored in the memory 920. The memory 920 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the smartphone, and the like. Further, the memory 920 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 980 is a control center of the smartphone, connects various parts of the entire smartphone by using various interfaces and lines, and performs various functions of the smartphone and processes data by running or executing software programs and/or modules stored in the memory 920 and calling data stored in the memory 920, thereby integrally monitoring the smartphone. Alternatively, processor 980 may include one or more processing units; preferably, the processor 980 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 980.
In this embodiment, the processor 980 in the terminal device may perform the following steps:
calculating a target hash value according to the multimedia object to be identified;
sending a first request to the blockchain, wherein the first request comprises the target hash value;
if first writing time in target hash value writing information is received from the block chain, extracting a target random character string from the multimedia object to be authenticated, wherein the target hash value writing information is determined by the block chain according to the target hash value from stored hash value writing information, and the first writing time is the time when the shooting equipment requests to write the target hash value into the block chain;
sending a second request to the block chain, wherein the second request comprises the target random character string;
and if second writing time in target character string writing information is received from the block link, determining the shooting time of the multimedia object to be authenticated according to the first writing time and the second writing time, wherein the target character string writing information is determined by the block chain from stored character string writing information according to the target random character string, and the second writing time is the time for requesting the random character string generation equipment to write the generated target random character string into the block chain.
Or shooting an object to be shot and a random character string displayed on random character string display equipment to obtain a multimedia object, wherein the random character string display equipment displays the random character string according to a second preset period, and the second preset period is smaller than a first preset period for generating the random character string by random character string generation equipment;
calculating a hash value of the multimedia object;
sending a hash value writing request to a blockchain, wherein the hash value writing request comprises the hash value of the multimedia object, the hash value writing request is used for requesting hash value writing information to be written into the blockchain from the blockchain, the hash value writing information comprises the hash value of the multimedia object and first writing time, and the first writing time is the time when the shooting equipment requests to write the hash value of the multimedia object into the blockchain.
Or generating a random character string according to a first preset period, wherein the random character string generated each time is different from the random character string generated last time;
sending a character string writing request to a block chain, wherein the character string writing request comprises the random character string, the character string writing request is used for requesting to write character string writing information to the block chain, the character string writing information comprises the generated random character string and a second writing time, and the second writing time is the time when the random character string generating device requests to write the generated random character string to the block chain.
The electronic device may further include a server, and the embodiment of the present application further provides a server, please refer to fig. 10, fig. 10 is a structural diagram of the server 1000 provided in the embodiment of the present application, and the server 1000 may generate a relatively large difference due to different configurations or performances, and may include one or more Central Processing Units (CPUs) 1022 (e.g., one or more processors) and a memory 1032, and one or more storage media 1030 (e.g., one or more mass storage devices) storing an application 1042 or data 1044. Memory 1032 and storage medium 1030 may be, among other things, transient or persistent storage. The program stored on the storage medium 1030 may include one or more modules (not shown), each of which may include a series of instruction operations for the server. Still further, a central processor 1022 may be disposed in communication with the storage medium 1030, and configured to execute a series of instruction operations in the storage medium 1030 on the server 1000.
The server 1000 may also include one or more power supplies 1026, one or more wired or wireless network interfaces 1050, one or more input-output interfaces 1058, and/or one or more operating systems 1041, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, and so forth.
In this embodiment, the central processor 1022 in the server 1000 may execute the following steps:
calculating a target hash value according to the multimedia object to be identified;
sending a first request to the blockchain, wherein the first request comprises the target hash value;
if first writing time in target hash value writing information is received from the block link, extracting a target random character string from the multimedia object to be authenticated, wherein the target hash value writing information is determined by the block chain according to the target hash value from stored hash value writing information, and the first writing time is the time when the shooting equipment requests to write the target hash value into the block chain;
sending a second request to the block chain, wherein the second request comprises the target random character string;
and if second writing time in target character string writing information is received from the block link, determining the shooting time of the multimedia object to be authenticated according to the first writing time and the second writing time, wherein the target character string writing information is determined by the block chain from stored character string writing information according to the target random character string, and the second writing time is the time for requesting the random character string generation equipment to write the generated target random character string into the block chain.
Or generating a random character string according to a first preset period, wherein the random character string generated each time is different from the random character string generated last time;
sending a character string writing request to a block chain, wherein the character string writing request comprises the random character string, the character string writing request is used for requesting to write character string writing information to the block chain, the character string writing information comprises the generated random character string and a second writing time, and the second writing time is the time when the random character string generating device requests to write the generated random character string to the block chain.
According to an aspect of the present application, there is provided a computer-readable storage medium for storing program code for executing the multimedia object processing method described in the foregoing embodiments.
According to an aspect of the application, a computer program product or computer program is provided, comprising computer instructions, the computer instructions being stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method provided in the various alternative implementations of the embodiment.
The terms "first," "second," "third," "fourth," and the like in the description of the application and the above-described figures, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and 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 units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (15)

1. A multimedia object processing method, wherein the method stores string write information and hash value write information using a blockchain, the method comprising:
calculating a target hash value according to the multimedia object to be identified;
sending a first request to the blockchain, wherein the first request comprises the target hash value;
if first writing time in target hash value writing information is received from the block chain, extracting a target random character string from the multimedia object to be authenticated, wherein the target hash value writing information is determined by the block chain according to the target hash value from stored hash value writing information, and the first writing time is the time when the shooting equipment requests to write the target hash value into the block chain;
sending a second request to the block chain, wherein the second request comprises the target random character string;
and if second writing time in target character string writing information is received from the block link, determining the shooting time of the multimedia object to be authenticated according to the first writing time and the second writing time, wherein the target character string writing information is determined by the block chain from stored character string writing information according to the target random character string, and the second writing time is the time for requesting the random character string generation equipment to write the generated target random character string into the block chain.
2. The method of claim 1, wherein if the multimedia object to be authenticated is a picture, the determining the shooting time of the multimedia object to be authenticated according to the first writing time and the second writing time comprises:
determining a relationship between a difference between the first writing time and the second writing time and a first threshold;
and if the difference is smaller than the first threshold, determining that the shooting time is within the time period of the second writing time and the first writing time.
3. The method of claim 1, wherein if the multimedia object to be authenticated is a video, the calculating the target hash value according to the multimedia object to be authenticated comprises:
acquiring a video frame sequence according to the multimedia object to be identified, wherein the video frame sequence comprises a plurality of target video frames;
and calculating target hash values respectively corresponding to the plurality of target video frames.
4. The method of claim 3, wherein the first writing time and the second writing time are writing times corresponding to each target video frame, and wherein determining the shooting time of the multimedia object to be authenticated according to the first writing time and the second writing time comprises:
determining the relation between the difference value between the first writing time and the second writing time corresponding to each target video frame and a first threshold value;
and if the difference values are all smaller than the first threshold value, determining that the shooting time is within the time period of the second writing time of the first target video frame and the first writing time of the last target video frame in the video frame sequence.
5. The method according to any one of claims 1-4, further comprising:
and carrying out signature calculation on the target hash value to obtain a target digital signature.
6. The method of claim 5, wherein receiving the first write time in the target hash value write information from the chunk link comprises:
receiving a first write time and a first digital signature in the target hash value write information from the blockchain;
before the extracting the target random character string from the multimedia object to be authenticated, the method further comprises:
determining whether the first digital signature is the target digital signature;
and if so, executing the step of extracting the target random character string from the multimedia object to be authenticated.
7. A multimedia object processing apparatus, characterized in that the apparatus stores character string write information and hash value write information using a block chain, the apparatus comprising a calculation unit, a transmission unit, a reception unit, an extraction unit, and a determination unit:
the computing unit is used for computing a target hash value according to the multimedia object to be identified;
the sending unit is configured to send a first request to the blockchain, where the first request includes the target hash value;
the extracting unit is configured to extract a target random character string from the multimedia object to be authenticated if the receiving unit receives a first write time in target hash value write information from the block link, where the target hash value write information is determined by the block link according to the target hash value from stored hash value write information, and the first write time is a time when the shooting device requests to write the target hash value into the block link;
the sending unit is configured to send a second request to the blockchain, where the second request includes the target random character string;
the determining unit is configured to determine, if the receiving unit receives a second writing time in target character string writing information from the block link, the shooting time of the multimedia object to be authenticated according to the first writing time and the second writing time, where the target character string writing information is determined by the block chain from stored character string writing information according to the target random character string, and the second writing time is a time at which the random character string generating device requests to write the generated target random character string into the block chain.
8. A method for multimedia object processing, the method comprising:
shooting an object to be shot and a random character string displayed on random character string display equipment to obtain a multimedia object, wherein the random character string display equipment displays the random character string according to a second preset period, and the second preset period is smaller than a first preset period for generating the random character string by random character string generation equipment;
calculating a hash value of the multimedia object;
sending a hash value writing request to a blockchain, wherein the hash value writing request comprises the hash value of the multimedia object, the hash value writing request is used for requesting hash value writing information to be written into the blockchain from the blockchain, the hash value writing information comprises the hash value of the multimedia object and first writing time, and the first writing time is the time when the shooting equipment requests to write the hash value of the multimedia object into the blockchain.
9. The method according to claim 8, wherein the hash value write request further includes a shooting time of the multimedia object recorded by the shooting device, so that the block chain determines whether to write the hash value write information to the block chain according to the first write time and the shooting time.
10. A multimedia object processing apparatus, characterized in that the apparatus comprises an acquisition unit, a calculation unit and a transmission unit:
the acquiring unit is used for shooting an object to be shot and a random character string displayed on a random character string display device to obtain a multimedia object, wherein the random character string display device displays the random character string according to a second preset period, and the second preset period is smaller than a first preset period for generating the random character string by a random character string generating device;
the computing unit is used for computing the hash value of the multimedia object;
the sending unit is configured to send a hash value write request to a blockchain, where the hash value write request includes a hash value of the multimedia object, the hash value write request is configured to write hash value write information to the blockchain in response to the blockchain request, where the hash value write information includes the hash value of the multimedia object and first write time, and the first write time is time when a shooting device requests to write the hash value of the multimedia object into the blockchain.
11. A method for multimedia object processing, the method comprising:
generating a random character string according to a first preset period, wherein the random character string generated each time is different from the random character string generated last time;
sending a character string writing request to a block chain, wherein the character string writing request comprises the random character string, the character string writing request is used for requesting to write character string writing information to the block chain, the character string writing information comprises the generated random character string and a second writing time, and the second writing time is the time when the random character string generating device requests to write the generated random character string to the block chain.
12. The method according to claim 11, wherein the character string write request further includes a generation time at which the random character string generation device generates a random character string, so that the block chain determines whether to write the character string write information to the block chain based on the second write time and the generation time.
13. A multimedia object processing apparatus, characterized in that the apparatus comprises a generating unit and a transmitting unit:
the generating unit is used for generating a random character string according to a first preset period, wherein the random character string generated each time is different from the random character string generated last time;
the sending unit is configured to send a character string write request to a blockchain, where the character string write request includes the random character string, the character string write request is used to request, from the blockchain, to write character string write information into the blockchain, the character string write information includes the generated random character string and a second write time, and the second write time is a time at which a random character string generating device requests to write the generated random character string into the blockchain.
14. An electronic device for multimedia object processing, the electronic device comprising a processor and a memory:
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to perform the method of any of claims 1-6 or 8-9 or 11-12 according to instructions in the program code.
15. A computer-readable storage medium, characterized in that the computer-readable storage medium is configured to store a program code for performing the method of any of claims 1-6 or 8-9 or 11-12.
CN202110162716.1A 2021-02-05 2021-02-05 Multimedia object processing method, device, equipment and storage medium Pending CN114884663A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110162716.1A CN114884663A (en) 2021-02-05 2021-02-05 Multimedia object processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110162716.1A CN114884663A (en) 2021-02-05 2021-02-05 Multimedia object processing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114884663A true CN114884663A (en) 2022-08-09

Family

ID=82667044

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110162716.1A Pending CN114884663A (en) 2021-02-05 2021-02-05 Multimedia object processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114884663A (en)

Similar Documents

Publication Publication Date Title
KR101880935B1 (en) Photographing apparatus for generating digital image which can be verified by block-chain, digital image generating method using the same, and method for verifying image generated by the same
KR102327574B1 (en) Blockchain-based transaction processing method and device
WO2021208952A1 (en) Block chain-based image data recording, obtaining and verifying
US10019773B2 (en) Authentication and validation of smartphone imagery
CN107169125B (en) Multimedia resource delivery statistical data acquisition method and device
EP3570549B1 (en) Non-deterministic time systems and methods
JP2007060668A (en) Authenticating data units of mobile communications device
US8312284B1 (en) Verifiable timestamping of data objects, and applications thereof
CN103391196A (en) Asset digital authentication method and device
US9928352B2 (en) System and method for creating, processing, and distributing images that serve as portals enabling communication with persons who have interacted with the images
EP3029598B1 (en) Method implemented by computer for capturing evidentiary audiovisual and/or multimedia information and computer program
US10778426B1 (en) Validation of sensor data using a blockchain
JPWO2017026356A1 (en) Image processing apparatus, image processing method, and program
CN113987073A (en) Method and device for updating state information in delayed mode and electronic equipment
CN105847729B (en) Beidou web camera with preservation of evidence function
JP7236042B2 (en) Face Recognition Application Using Homomorphic Encryption
KR102323650B1 (en) Image/sound acquiring or editing apparatus for creating an original image/sound file or a deepfake modified file having metadata related to file creating history, hashbank server for receiving and storing hash values related to an original image/sound file or a deepfake modified file, and server and mathod for receiving and processing an original image/recorded sound file or a deepfake modified file
CN110992219A (en) Intellectual property protection method and system based on block chain technology
CN106713297A (en) Electronic data fixing platform based on cloud service
CN114884663A (en) Multimedia object processing method, device, equipment and storage medium
CN112771527A (en) Information processing program, information processing apparatus, and information processing method
US20220053123A1 (en) Method and apparatus for independent authentication of video
JP2010231450A (en) Photographing data authentication device, photographing data authentication system, photographing data authentication method and program
CN112019337A (en) Method, device and equipment for processing emergency based on block chain
KR102302779B1 (en) Appartus and method for forgery protection of digital information

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40074011

Country of ref document: HK