CN108962289B - Method and device for appending hidden identification data based on optical disc synchronous frame - Google Patents

Method and device for appending hidden identification data based on optical disc synchronous frame Download PDF

Info

Publication number
CN108962289B
CN108962289B CN201810713224.5A CN201810713224A CN108962289B CN 108962289 B CN108962289 B CN 108962289B CN 201810713224 A CN201810713224 A CN 201810713224A CN 108962289 B CN108962289 B CN 108962289B
Authority
CN
China
Prior art keywords
data sequence
frame
identification data
frame header
long
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810713224.5A
Other languages
Chinese (zh)
Other versions
CN108962289A (en
Inventor
许斌
裴京
徐海峥
游泳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Tongfang Optical Disc Co ltd
Original Assignee
Beijing Tongfang Optical Disc 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 Beijing Tongfang Optical Disc Co ltd filed Critical Beijing Tongfang Optical Disc Co ltd
Priority to CN201810713224.5A priority Critical patent/CN108962289B/en
Publication of CN108962289A publication Critical patent/CN108962289A/en
Application granted granted Critical
Publication of CN108962289B publication Critical patent/CN108962289B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B7/00Recording or reproducing by optical means, e.g. recording using a thermal beam of optical radiation by modifying optical properties or the physical structure, reproducing using an optical beam at lower power by sensing optical properties; Record carriers therefor
    • G11B7/004Recording, reproducing or erasing methods; Read, write or erase circuits therefor
    • G11B7/0045Recording

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

The application relates to a method and a device for appending hidden identification data based on a synchronous frame of an optical disc. The method comprises the following steps: acquiring a frame header position of an original data sequence synchronous frame; acquiring the long-run position of the frame header according to the position of the frame header; and coding the original data sequence and the identification data sequence at the long run position of the frame header to form a recording data sequence. By adopting the method, the identification data sequence can be rapidly coded in the original data sequence according to the position of the synchronous frame, so that the efficiency of coding and reading the identification data is improved.

Description

Method and device for appending hidden identification data based on optical disc synchronous frame
Technical Field
The present application relates to the field of optical disc recording data technology, and in particular, to a method and an apparatus for appending hidden identification data based on an optical disc synchronization frame.
Background
The conventional digital optical disc product converts information into binary data, and then corresponds to two different physical states of a record symbol of a storage medium in a certain modulation mode to realize data storage, so that the data storage becomes binary storage. At present, most of the storage technologies of recordable optical discs employ binary storage, and determine whether the current corresponding position is a "Pit" (Pit) or a "Land" (Land) according to the intensity of the reflected light, and each recording unit can record two state numbers, which respectively correspond to 1-bit information.
The recordable optical disc is an optical disc in which data can be recorded according to requirements, and in the recording process, identification data can be added to encrypt the recorded data and set a reading permission. However, the added mark can only be added to the original data sequence, and the added mark data is easy to be read, which results in insufficient security of the recorded optical disc.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a method, an apparatus, a computer device and a storage medium for appending hidden identification data based on a disc sync frame, which can quickly read hidden data.
A method for appending hidden identification data based on a disc sync frame, the method comprising:
acquiring a frame header position of an original data sequence synchronous frame;
acquiring the long-run position of the frame header according to the position of the frame header;
and coding the original data sequence and the identification data sequence at the long run position of the frame header to form a recording data sequence.
In one embodiment, the obtaining the frame header position of the synchronization frame of the original data sequence includes:
acquiring a frame header position of a current synchronous frame of an original data sequence;
and calculating the frame head position of the next frame according to the frame head position of the current synchronous frame.
In one embodiment, the method further comprises: and modulating the identification data according to a preset modulation rule to obtain an identification data sequence.
In one embodiment, the preset modulation rule includes: DK limited modulation or DK unlimited modulation.
In one embodiment, the encoding the original data sequence and the identification data sequence at the long-run position of the frame header to form a recording data sequence includes: coding the identification data sequence at the long run-length position in a way of sub-pits and sub-lands to form a recording data sequence; and the long run length comprises pits and lands, and the identification data sequence is inserted into the pits and the lands in a sub-pit and sub-land mode according to the coding mode of the sub-pits and the sub-lands.
In one embodiment, encoding the original data sequence and the identification data sequence at the long-run position of the frame header to form a recording data sequence further includes: and recording the recording data sequence on the optical disc.
A method for appending hidden identification data based on a disc sync frame, the method comprising:
acquiring a recording data sequence;
acquiring the frame header position of the synchronous frame of the original data sequence according to the recorded data sequence;
reading an identification data sequence hidden in the frame header position according to the frame header position;
the recording data sequence is a composite data sequence comprising an original data sequence and identification data.
In one embodiment, the reading, according to the frame header position, the identification data sequence hidden in the frame header position includes: acquiring a frame head length run position; and reading the identification data sequence hidden in the long run position.
In one embodiment, the obtaining the frame header position of the synchronization frame of the original data sequence includes: acquiring a frame header position of a current synchronous frame of an original data sequence; and calculating the frame head position of the next frame according to the frame head position of the current synchronous frame.
An apparatus for appending hidden identification data based on a disc sync frame, the apparatus comprising:
the frame head position calculation module is used for acquiring the frame head position of the original data sequence synchronization frame;
the long-run position calculation module is used for acquiring the long-run position of the frame header according to the frame header position;
and the coding module is used for coding the original data sequence and the identification data sequence at the long-run position of the frame header to form a recording data sequence.
In one embodiment, the frame header position calculating module includes: a frame header obtaining unit, configured to obtain a frame header position of a current synchronization frame of an original data sequence; and the frame header calculating unit is used for calculating the frame header position of the next frame according to the frame header position of the current synchronous frame.
In one embodiment, the apparatus further comprises: and the modulation module is used for modulating the identification data according to a preset modulation rule to obtain an identification data sequence.
In one embodiment, the preset modulation rule includes: DK limited modulation or DK unlimited modulation.
In one embodiment, the encoding module comprises:
the data coding unit is used for coding the identification data sequence at the long run-length position in a sub-pit and sub-land mode to form a recording data sequence; and the long run length comprises pits and lands, and the identification data sequence is inserted into the pits and the lands in a sub-pit and sub-land mode according to the coding mode of the sub-pits and the sub-lands.
In one embodiment, the apparatus further comprises: and the recording module is used for recording the recording data sequence on the optical disc.
An apparatus for appending hidden identification data based on a disc sync frame, the apparatus comprising:
the sequence reading module is used for acquiring a recording data sequence;
a frame header position calculating module, configured to obtain a frame header position of a synchronization frame of an original data sequence according to the recording data sequence;
the identification data reading module is used for reading the identification data sequence hidden in the frame header position according to the frame header position;
the recording data sequence is a composite data sequence comprising an original data sequence and identification data.
In one embodiment, the identification data reading module includes: the long run position calculation module is used for acquiring the frame head long run position; and the identification data extraction unit is used for reading the identification data sequence hidden at the long-run position.
In one embodiment, the frame header position calculating module includes: a frame header obtaining unit, configured to obtain a frame header position of a current synchronization frame of an original data sequence; and the frame header calculating unit is used for calculating the frame header position of the next frame according to the frame header position of the current synchronous frame.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
acquiring a frame header position of an original data sequence synchronous frame;
acquiring the long-run position of the frame header according to the position of the frame header;
and coding the original data sequence and the identification data sequence at the long run position of the frame header to form a recording data sequence.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
acquiring a recording data sequence;
acquiring the frame header position of the synchronous frame of the original data sequence according to the recorded data sequence;
reading an identification data sequence hidden in the frame header position according to the frame header position;
the recording data sequence is a composite data sequence comprising an original data sequence and identification data.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
acquiring a frame header position of an original data sequence synchronous frame;
acquiring the long-run position of the frame header according to the position of the frame header;
and coding the original data sequence and the identification data sequence at the long run position of the frame header to form a recording data sequence.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring a recording data sequence;
acquiring the frame header position of the synchronous frame of the original data sequence according to the recorded data sequence;
reading an identification data sequence hidden in the frame header position according to the frame header position;
the recording data sequence is a composite data sequence comprising an original data sequence and identification data.
According to the method, the device, the computer equipment and the storage medium for adding the hidden identification data based on the optical disc synchronous frame, the identification data is added at the frame head position of the synchronous frame, so that when an optical disc is read, the frame head position can be known to quickly read the hidden identification data; by encoding the identification data sequence at the long run position of the original data sequence, the identification data can be hidden, so that the confidentiality of the identification data is greatly improved.
Drawings
FIG. 1 is a flowchart illustrating a method for appending hidden identification data based on a disc synchronization frame according to an embodiment;
FIG. 2 is a flowchart illustrating a method for appending hidden identification data based on a disc synchronization frame according to another embodiment;
FIG. 3 is a diagram illustrating a comparison of an original data sequence and recorded data;
FIG. 4 is a block diagram of an apparatus for appending hidden identification data based on a disc synchronization frame in one embodiment;
FIG. 5 is a block diagram of an apparatus for appending hidden identification data based on a disc synchronization frame in another embodiment;
FIG. 6 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In one embodiment, as shown in fig. 1, there is provided a method for appending hidden identification data based on a disc synchronization frame, comprising the steps of:
step 102, acquiring a frame header position of an original data sequence synchronization frame.
Wherein the original data sequence is audio, video or file data stored in the optical disc. The synchronous frame is frame synchronous data; the frame synchronization means: in order to correctly separate each path of time slot signal in a digital time division multiplex communication system, a process of providing an initial mark of each frame at a sending end and detecting and acquiring the mark at a receiving end is required; wherein the start mark of each frame is called a frame header.
The frame head position of each frame of data is fixed, and the position of the next frame head can be known as long as the position of the previous frame head is obtained, namely the relative position of the previous frame head and the position of the next frame head is fixed.
And 104, acquiring the long run position of the frame header according to the frame header position.
The frame header serves as a start mark of each frame of data and is composed of binary data. The original data sequence may comprise a plurality of frames of data, each frame of data comprising a frame header. Since the frame header of each frame of data is the same, the long run position of the frame header is also fixed.
Wherein, in the synchronization frame, the binary data sequence formed by the frame header can comprise a plurality of long runs. The long run position includes a long run start position, a long run end position, and a position between the long run start position and the long run end position, the long run start position or the long run end position is present when a rising edge or a falling edge occurs in a binary data sequence formed by the frame header, and the time length between the long run start position and the long run end position is greater than (2 × a) + b. The binary data storage corresponds to the pits and lands of the physical run length of the optical storage medium, one or more long run lengths can exist in the frame header, the long run length is a run length capable of inserting sub pits or sub lands, the length of the long run length is generally greater than (2 x a) + b, then the sub pits or sub lands are inserted from the position which is at least a away from the starting position of the long run length, the length of the inserted sub pits or sub lands is b, the distance between the sub pits or sub lands and the ending position of the long run length is also at least a, the sub pits or sub lands are used for representing the identification data sequence, and the length of the space a is convenient for the optical device to carry out physical recognition. By adopting the technical scheme of the embodiment, the readable times of the original data sequence codes can ensure that the extra space of the optical disc is not occupied. Wherein a represents a time units and b represents b time units.
And 106, coding the original data sequence and the identification data sequence at the long run position of the frame header to form a recording data sequence.
The original data sequence and the identification data sequence are both binary data sequences, and the frame head of a synchronous frame of the original data sequence comprises a plurality of long runs. Encoding the original data sequence and the identification data sequence at the long run position of the frame header, wherein the encoding process is as shown in fig. 3, the length run greater than 7T in the frame header of the synchronization frame of the original data sequence is the long run, the identification data sequence '0 x 9E' is inserted in the long run, then binary data '10011110' corresponding to '0 x 9E' is sequentially inserted in the 'pit' or 'land' greater than 7T to form a recorded data sequence, the 'sub-pit' or 'sub-land' is inserted at the long run position to be represented as '1', and no data is inserted to be represented as '0'.
As a specific embodiment, the acquiring a frame header position of a synchronization frame of an original data sequence includes: acquiring a frame header position of a current synchronous frame of an original data sequence; and calculating the frame head position of the next frame according to the frame head position of the current synchronous frame.
As a specific embodiment, the method for appending the hidden identification data based on the disc synchronization frame further includes: and modulating the identification data according to a preset modulation rule to obtain an identification data sequence.
In this embodiment, the identification data sequence is binary data, and the preset modulation rule includes: DK limited modulation or DK unlimited modulation.
Specifically, after the identification data is converted into binary data, formatting and ECC (error correction code) error detection and correction coding are performed, then DK unlimited modulation or DK limited modulation can be performed selectively, the modulated data is of a frame structure, and a frame header is inserted in front of each frame of data to obtain a final identification data sequence. The data after the DK limited modulation can be subjected to zero reduction modulation again, so that the information content of readable times is increased.
For example, when the DK unrestricted modulation is performed on the identification data, the DK unrestricted modulation may be performed according to a preset first code rate, for example, DK (0,9) modulation is performed on the identification data according to a code rate of R8/9.
One bit of data is inserted after each byte, the inserted data being opposite the last bit of the byte. Such as: when the byte data is converted into a bit data stream, the last bit of each byte is the "not" most significant bit (b 7). In this case, if b7 is "1", the insertion bit b8 is "0"; on the contrary, the method can be used for carrying out the following steps,
Figure BDA0001717097440000071
the code table is shown below.
Inputting code words Outputting codewords
b0 ... b7 b0 ... b7b8
xxxx xxx1 xxxx xxx1 0
xxxx xxx0 xxxx xxx0 1
When DK-limited modulation is performed on the identification data, the DK-limited modulation may be performed according to a preset second code rate, for example, DK (1,7) modulation is performed on the identification data according to code rates of R2 and 3.
182 bytes of ECC data per line are modulated into recording frame modulation data of (182 × 8) × 3/2 ═ 2184 bits by DK (1,7) limit coding (code table shown in the following table) at a code rate of R2/3. The modulation basic code table ((1, 7) code table) is:
basic code table Alternative code table
00 101 00/00 101000
01 100 00/01 100000
10 001 10/00 001000
11 010 10/01 010000
In one embodiment, encoding the original data sequence and the identification data sequence at the long-run position of the frame header to form a recording data sequence further includes: and recording the recording data sequence on the optical disc.
In one embodiment, the encoding the original data sequence and the identification data sequence at the long-run position of the frame header to form a recording data sequence includes: coding the identification data sequence at the long run-length position in a way of sub-pits and sub-lands to form a recording data sequence; and the long run length comprises pits and lands, and the identification data sequence is inserted into the pits and the lands in a sub-pit and sub-land mode according to the coding mode of the sub-pits and the sub-lands.
Wherein, in the synchronization frame, the binary data sequence formed by the frame header can comprise a plurality of long runs. The long run position includes a long run start position, a long run end position, and a position between the long run start position and the long run end position, the long run start position or the long run end position is present when a rising edge or a falling edge occurs in a binary data sequence formed by the frame header, and the time length between the long run start position and the long run end position is greater than (2 × a) + b. The encoding of the identification data sequence according to the long run position of the frame header specifically comprises: binary data storage corresponds to pits and lands of a physical run of an optical storage medium, a long run is a run in which a sub-pit or a sub-land can be inserted, and generally, the length of the long run is greater than (2 × a) + b, then the sub-pit or the sub-land is inserted from a position spaced from the start position of the long run by at least a, the inserted sub-pit or sub-land has a length of b, and the sub-pit or sub-land has a spacing from the end position of the long run by at least a, the sub-pit or sub-land is used for representing an identification data sequence, and the length of the spacing a is convenient for an optical apparatus to perform physical identification. For example, as shown in fig. 3, a long run is inserted in the frame header of the sync frame of the original data sequence, where a flag data sequence "0 x 9E" is inserted, binary data "10011110" corresponding to "0 x 9E" is sequentially inserted in "pits" or "lands" larger than 7T to form a recorded data sequence, and "sub-pits" or "sub-lands" are inserted at long run positions to indicate "1" and no data is inserted to indicate "0".
Wherein, the recording data sequence is a data sequence recorded in the optical disc.
In one embodiment, as shown in fig. 2, there is provided a method for appending hidden identification data based on a disc synchronization frame, comprising the steps of:
step 202, obtain recording data sequence.
The recording data sequence is a composite data sequence comprising an original data sequence and identification data. Wherein the recording data sequence is read from the optical disc.
Step 204, obtaining the frame head position of the synchronization frame of the original data sequence according to the recording data sequence.
The frame head position of each frame of data is fixed, and the position of the next frame head can be known as long as the position of the previous frame head is obtained, namely the relative position of the previous frame head and the position of the next frame head is fixed.
And step 206, reading the identification data sequence hidden in the frame header position according to the frame header position.
The identification data sequence is a data sequence hidden in the original data sequence, the identification data can be related to the original data sequence or unrelated to the original data sequence, and the identification data can set reading authority for the optical disc data and perform identity authentication on a user.
In a specific embodiment, the reading, according to the frame header position, the identification data sequence hidden in the frame header position includes: acquiring a frame head length run position; and reading the identification data sequence hidden in the long run position.
The frame header serves as a start mark of each frame of data and is composed of binary data. The original data sequence may comprise a plurality of frames of data, each frame of data comprising a frame header. Because the frame headers of each frame of data are the same and the long-run positions of the frame headers are also fixed, the identification data sequences hidden at the long-run positions are read, and the identification data sequences hidden in the subsequent frame headers can be read only by reading the frame headers once, so that the reading times are simplified and the reading efficiency is improved.
In one embodiment, the obtaining the frame header position of the synchronization frame of the original data sequence includes: acquiring a frame header position of a current synchronous frame of an original data sequence; and calculating the frame head position of the next frame according to the frame head position of the current synchronous frame.
In the method for appending the hidden identification data based on the optical disc synchronization frame, the identification data is added at the frame head position of the synchronization frame, so that when an optical disc is read, the frame head position can be known to quickly read the hidden identification data; by encoding the identification data sequence at the long run position of the original data sequence, the identification data can be hidden, so that the confidentiality of the identification data is greatly improved.
It should be understood that although the various steps in the flow charts of fig. 1-2 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 1-2 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 4, an apparatus for appending hidden identification data based on a disc synchronization frame is provided, including: a frame header position calculating module 110, a long run position calculating module 120 and a coding module 130, wherein:
a frame header position calculating module 110, configured to obtain a frame header position of the original data sequence synchronization frame.
Wherein the original data sequence is audio, video or file data stored in the optical disc. The synchronous frame is frame synchronous data; the frame synchronization means: in order to correctly separate each path of time slot signal in a digital time division multiplex communication system, a process of providing an initial mark of each frame at a sending end and detecting and acquiring the mark at a receiving end is required; wherein the start mark of each frame is called a frame header.
The frame head position of each frame of data is fixed, and the position of the next frame head can be known as long as the position of the previous frame head is obtained, namely the relative position of the previous frame head and the position of the next frame head is fixed.
And a long-run position calculating module 120, configured to obtain the long-run position of the frame header according to the frame header position.
The frame header serves as a start mark of each frame of data and is composed of binary data. The original data sequence may comprise a plurality of frames of data, each frame of data comprising a frame header. Since the frame header of each frame of data is the same, the long run position of the frame header is also fixed.
Wherein, in the synchronization frame, the binary data sequence formed by the frame header can comprise a plurality of long runs. The long run position includes a long run start position, a long run end position, and a position between the long run start position and the long run end position, the long run start position or the long run end position is present when a rising edge or a falling edge occurs in a binary data sequence formed by the frame header, and the time length between the long run start position and the long run end position is greater than (2 × a) + b. The binary data storage corresponds to the pits and lands of the physical run length of the optical storage medium, one or more long run lengths can exist in the frame header, the long run length is a run length capable of inserting sub pits or sub lands, the length of the long run length is generally greater than (2 x a) + b, then the sub pits or sub lands are inserted from the position which is at least a away from the starting position of the long run length, the length of the inserted sub pits or sub lands is b, the distance between the sub pits or sub lands and the ending position of the long run length is also at least a, the sub pits or sub lands are used for representing the identification data sequence, and the length of the space a is convenient for the optical device to carry out physical recognition. By adopting the technical scheme of the embodiment, the readable times of the original data sequence codes can ensure that the extra space of the optical disc is not occupied. Wherein a represents a time units and b represents b time units.
And the encoding module 130 is configured to encode the original data sequence and the identification data sequence at the long-run position of the frame header to form a recording data sequence.
The original data sequence and the identification data sequence are both binary data sequences, and the frame head of a synchronous frame of the original data sequence comprises a plurality of long runs. Encoding the original data sequence and the identification data sequence at the long run position of the frame header, wherein the encoding process is as shown in fig. 3, the length run greater than 7T in the frame header of the synchronization frame of the original data sequence is the long run, the identification data sequence '0 x 9E' is inserted in the long run, then binary data '10011110' corresponding to '0 x 9E' is sequentially inserted in the 'pit' or 'land' greater than 7T to form a recorded data sequence, the 'sub-pit' or 'sub-land' is inserted at the long run position to be represented as '1', and no data is inserted to be represented as '0'.
As a specific implementation manner, the frame header position calculating module 110 includes: a frame header obtaining unit, configured to obtain a frame header position of a current synchronization frame of an original data sequence; and the frame header calculating unit is used for calculating the frame header position of the next frame according to the frame header position of the current synchronous frame.
As a specific embodiment, the apparatus for appending the hidden identification data based on the disc synchronization frame further includes: and the modulation module is used for modulating the identification data according to a preset modulation rule to obtain an identification data sequence. Wherein the preset modulation rule comprises: DK limited modulation or DK unlimited modulation.
Specifically, after the identification data is converted into binary data, formatting and ECC (error correction code) error detection and correction coding are performed, then DK unlimited modulation or DK limited modulation can be performed selectively, the modulated data is of a frame structure, and a frame header is inserted in front of each frame of data to obtain a final identification data sequence. The data after the DK limited modulation can be subjected to zero reduction modulation again, so that the information content of readable times is increased.
For example, when the DK unrestricted modulation is performed on the identification data, the DK unrestricted modulation may be performed according to a preset first code rate, for example, DK (0,9) modulation is performed on the identification data according to a code rate of R8/9.
One bit of data is inserted after each byte, the inserted data being opposite the last bit of the byte. Such as: when the byte data is converted into a bit data stream, the last bit of each byte is the "not" most significant bit (b 7). In this case, if b7 is "1", the insertion bit b8 is "0"; on the contrary, the method can be used for carrying out the following steps,
Figure BDA0001717097440000111
the code table is shown below.
Inputting code words Outputting codewords
b0 ... b7 b0 ... b7b8
xxxx xxx1 xxxx xxx1 0
xxxx xxx0 xxxx xxx0 1
When DK-limited modulation is performed on the identification data, the DK-limited modulation may be performed according to a preset second code rate, for example, DK (1,7) modulation is performed on the identification data according to code rates of R2 and 3.
182 bytes of ECC data per line are modulated into recording frame modulation data of (182 × 8) × 3/2 ═ 2184 bits by DK (1,7) limit coding (code table shown in the following table) at a code rate of R2/3. The modulation basic code table ((1, 7) code table) is:
basic code table Alternative code table
00 101 00/00 101000
01 100 00/01 100000
10 001 10/00 001000
11 010 10/01 010000
As a specific embodiment, the apparatus for appending the hidden identification data based on the disc synchronization frame further includes: and the recording module is used for recording the recording data sequence on the optical disc.
In one embodiment, the encoding module comprises: the data coding unit is used for coding the identification data sequence at the long run-length position in a sub-pit and sub-land mode to form a recording data sequence; and the long run length comprises pits and lands, and the identification data sequence is inserted into the pits and the lands in a sub-pit and sub-land mode according to the coding mode of the sub-pits and the sub-lands.
Wherein, in the synchronization frame, the binary data sequence formed by the frame header can comprise a plurality of long runs. The long run position includes a long run start position, a long run end position, and a position between the long run start position and the long run end position, the long run start position or the long run end position is present when a rising edge or a falling edge occurs in a binary data sequence formed by the frame header, and the time length between the long run start position and the long run end position is greater than (2 × a) + b. The encoding of the identification data sequence according to the long run position of the frame header specifically comprises: binary data storage corresponds to pits and lands of a physical run of an optical storage medium, a long run is a run in which a sub-pit or a sub-land can be inserted, and generally, the length of the long run is greater than (2 × a) + b, then the sub-pit or the sub-land is inserted from a position spaced from the start position of the long run by at least a, the inserted sub-pit or sub-land has a length of b, and the sub-pit or sub-land has a spacing from the end position of the long run by at least a, the sub-pit or sub-land is used for representing an identification data sequence, and the length of the spacing a is convenient for an optical apparatus to perform physical identification. For example, as shown in fig. 3, a long run is inserted in the frame header of the sync frame of the original data sequence, where a flag data sequence "0 x 9E" is inserted, binary data "10011110" corresponding to "0 x 9E" is sequentially inserted in "pits" or "lands" larger than 7T to form a recorded data sequence, and "sub-pits" or "sub-lands" are inserted at long run positions to indicate "1" and no data is inserted to indicate "0".
Wherein, the recording data sequence is a data sequence recorded in the optical disc.
In one embodiment, as shown in fig. 5, an apparatus for appending hidden identification data based on a disc synchronization frame is provided, including: a sequence reading module 210, a frame header position calculating module 220, and an identification data reading module 230, wherein:
the sequence reading module 210 is used for obtaining the recording data sequence.
The recording data sequence is a composite data sequence comprising an original data sequence and identification data. Wherein the recording data sequence is read from the optical disc.
And a frame header position calculating module 220, configured to obtain a frame header position of the synchronization frame of the original data sequence according to the recording data sequence.
The frame head position of each frame of data is fixed, and the position of the next frame head can be known as long as the position of the previous frame head is obtained, namely the relative position of the previous frame head and the position of the next frame head is fixed.
The identification data reading module 230 is configured to read the identification data sequence hidden in the frame header position according to the frame header position.
The identification data sequence is a data sequence hidden in the original data sequence, the identification data can be related to the original data sequence or unrelated to the original data sequence, and the identification data can set reading authority for the optical disc data and perform identity authentication on a user.
In a specific embodiment, the identification data reading module 230 includes: the long run position calculation module is used for acquiring the frame head long run position; and the identification data extraction unit is used for reading the identification data sequence hidden at the long-run position.
The frame header serves as a start mark of each frame of data and is composed of binary data. The original data sequence may comprise a plurality of frames of data, each frame of data comprising a frame header. Because the frame headers of each frame of data are the same and the long-run positions of the frame headers are also fixed, the identification data sequences hidden at the long-run positions are read, and the identification data sequences hidden in the subsequent frame headers can be read only by reading the frame headers once, so that the reading times are simplified and the reading efficiency is improved.
In a specific embodiment, the frame header position calculating module 220 includes:
a frame header obtaining unit, configured to obtain a frame header position of a current synchronization frame of an original data sequence;
and the frame header calculating unit is used for calculating the frame header position of the next frame according to the frame header position of the current synchronous frame.
For specific limitations of the apparatus for appending the hidden identification data based on the disc synchronization frame, reference may be made to the above limitations of the method for appending the hidden identification data based on the disc synchronization frame, and details are not repeated here. The modules in the apparatus for appending the hidden identification data based on the disc synchronization frame may be implemented in whole or in part by software, hardware, or a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 6. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing data implementing a method of appending hidden identification data based on a disc synchronization frame. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of appending hidden identification data based on a disc synchronization frame.
Those skilled in the art will appreciate that the architecture shown in fig. 6 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
acquiring a frame header position of an original data sequence synchronous frame;
acquiring the long-run position of the frame header according to the position of the frame header;
and coding the original data sequence and the identification data sequence at the long run position of the frame header to form a recording data sequence.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
acquiring a recording data sequence;
acquiring the frame header position of the synchronous frame of the original data sequence according to the recorded data sequence;
reading an identification data sequence hidden in the frame header position according to the frame header position;
the recording data sequence is a composite data sequence comprising an original data sequence and identification data.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring a frame header position of an original data sequence synchronous frame;
acquiring the long-run position of the frame header according to the position of the frame header;
and coding the original data sequence and the identification data sequence at the long run position of the frame header to form a recording data sequence.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring a recording data sequence;
acquiring the frame header position of the synchronous frame of the original data sequence according to the recorded data sequence;
reading an identification data sequence hidden in the frame header position according to the frame header position;
the recording data sequence is a composite data sequence comprising an original data sequence and identification data.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (12)

1. A method for appending hidden identification data based on a disc synchronization frame, the method comprising:
acquiring a frame header position of an original data sequence synchronous frame;
acquiring the long-run position of the frame header according to the position of the frame header;
and coding the original data sequence and the identification data sequence at the long run position of the frame header to form a recording data sequence.
2. The method according to claim 1, wherein the obtaining the frame header position of the original data sequence synchronization frame comprises:
acquiring a frame header position of a current synchronous frame of an original data sequence;
and calculating the frame head position of the next frame according to the frame head position of the current synchronous frame.
3. The method of claim 1, further comprising: modulating the identification data according to a preset modulation rule to obtain an identification data sequence; wherein the preset modulation rule comprises DK-limited modulation or DK-unlimited modulation.
4. The method of claim 1, wherein the encoding the original data sequence and the identification data sequence at the long-run position of the frame header to form the recording data sequence comprises:
coding the identification data sequence at the long run-length position in a way of sub-pits and sub-lands to form a recording data sequence; and the long run length comprises pits and lands, and the identification data sequence is inserted into the pits and the lands in a sub-pit and sub-land mode according to the coding mode of the sub-pits and the sub-lands.
5. The method of claim 1, wherein encoding the original data sequence and the identification data sequence at a long-run position of the frame header to form a recording data sequence further comprises: and recording the recording data sequence on the optical disc.
6. A method for appending hidden identification data based on a disc synchronization frame, the method comprising:
acquiring a recording data sequence;
acquiring the frame header position of the synchronous frame of the original data sequence according to the recorded data sequence;
reading an identification data sequence hidden in the frame header position according to the frame header position;
the recording data sequence is a composite data sequence comprising an original data sequence and identification data, and the identification data sequence is located at the long-run position of the frame header position.
7. The method according to claim 6, wherein the reading the identification data sequence hidden in the frame header position according to the frame header position comprises:
acquiring a frame head length run position;
and reading the identification data sequence hidden in the long run position.
8. The method according to any one of claims 6 to 7, wherein the obtaining of the frame header position of the synchronization frame of the original data sequence comprises:
acquiring a frame header position of a current synchronous frame of an original data sequence;
and calculating the frame head position of the next frame according to the frame head position of the current synchronous frame.
9. An apparatus for appending hidden identification data based on a disc sync frame, the apparatus comprising:
the frame head position calculation module is used for acquiring the frame head position of the original data sequence synchronization frame;
the long-run position calculation module is used for acquiring the long-run position of the frame header according to the frame header position;
and the coding module is used for coding the original data sequence and the identification data sequence at the long-run position of the frame header to form a recording data sequence.
10. An apparatus for appending hidden identification data based on a disc sync frame, the apparatus comprising:
the sequence reading module is used for acquiring a recording data sequence;
a frame header position calculating module, configured to obtain a frame header position of a synchronization frame of an original data sequence according to the recording data sequence;
the identification data reading module is used for reading the identification data sequence hidden in the frame header position according to the frame header position;
the recording data sequence is a composite data sequence comprising an original data sequence and identification data, and the identification data sequence is located at the long-run position of the frame header position.
11. A server, characterized by comprising a memory and a processor, wherein a computer program is stored in the memory, and when executed by the processor, causes the processor to perform the steps of the method for appending concealed identification data based on a disc synchronization frame according to any one of claims 1 to 5 or the steps of the method for appending concealed identification data based on a disc synchronization frame according to any one of claims 6 to 8.
12. A computer-readable storage medium, having a computer program stored thereon, which, when being executed by a processor, causes the processor to perform the steps of the method for appending concealed identification data based on a disc synchronization frame according to any one of claims 1 to 5 or the steps of the method for appending concealed identification data based on a disc synchronization frame according to any one of claims 6 to 8.
CN201810713224.5A 2018-06-29 2018-06-29 Method and device for appending hidden identification data based on optical disc synchronous frame Active CN108962289B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810713224.5A CN108962289B (en) 2018-06-29 2018-06-29 Method and device for appending hidden identification data based on optical disc synchronous frame

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810713224.5A CN108962289B (en) 2018-06-29 2018-06-29 Method and device for appending hidden identification data based on optical disc synchronous frame

Publications (2)

Publication Number Publication Date
CN108962289A CN108962289A (en) 2018-12-07
CN108962289B true CN108962289B (en) 2020-05-12

Family

ID=64485053

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810713224.5A Active CN108962289B (en) 2018-06-29 2018-06-29 Method and device for appending hidden identification data based on optical disc synchronous frame

Country Status (1)

Country Link
CN (1) CN108962289B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110149171B (en) * 2019-06-25 2022-04-26 昆腾微电子股份有限公司 Wireless audio data sending method, receiving method and device
CN113672682B (en) * 2021-08-18 2022-04-01 广州有信科技有限公司 Synchronous frame based quantity synchronization method and synchronization device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3903536B2 (en) * 1997-06-30 2007-04-11 ソニー株式会社 Optical disc recording device, optical disc and optical disc reproducing device
CN101169833A (en) * 2006-10-26 2008-04-30 富士通株式会社 Information access system, reader/writer device and contactless information storage device
CN101217365A (en) * 2008-01-16 2008-07-09 中国人民解放军西安通信学院 SDH signal encryption method realized by key bytes
WO2010127386A1 (en) * 2009-05-06 2010-11-11 Swinburne University Of Technology Optical recording, storage and retrieval product, process, system and medium
CN106782624A (en) * 2016-12-02 2017-05-31 北京同方光盘股份有限公司 The additional hidden identification method and device of compact disc recordable

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8325587B2 (en) * 2000-05-17 2012-12-04 JVC Kenwood Corporation Information recording medium, and recording method and reproducing method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3903536B2 (en) * 1997-06-30 2007-04-11 ソニー株式会社 Optical disc recording device, optical disc and optical disc reproducing device
CN101169833A (en) * 2006-10-26 2008-04-30 富士通株式会社 Information access system, reader/writer device and contactless information storage device
CN101217365A (en) * 2008-01-16 2008-07-09 中国人民解放军西安通信学院 SDH signal encryption method realized by key bytes
WO2010127386A1 (en) * 2009-05-06 2010-11-11 Swinburne University Of Technology Optical recording, storage and retrieval product, process, system and medium
CN106782624A (en) * 2016-12-02 2017-05-31 北京同方光盘股份有限公司 The additional hidden identification method and device of compact disc recordable

Also Published As

Publication number Publication date
CN108962289A (en) 2018-12-07

Similar Documents

Publication Publication Date Title
CN106850143B (en) Data packet packaging method and verification method
CN109657769B (en) Two-dimensional code information hiding method based on run length coding
CN110457873B (en) Watermark embedding and detecting method and device
CN110210270B (en) Two-dimensional code information security reinforcement method and system and two-dimensional code image analysis method and system
CN110635807B (en) Data coding method and decoding method
CN108962289B (en) Method and device for appending hidden identification data based on optical disc synchronous frame
CN113065169A (en) File storage method, device and equipment
CN114285562A (en) Data encryption method and device
CN107196973B (en) data encryption and decryption method and device
CN110322385B (en) Watermark embedding and extracting method and device and electronic equipment
CN105718978B (en) QR code generation method and device, and decoding method and device
CN112433986B (en) Data storage method, electronic device, and computer-readable storage medium
CN111382398B (en) Method, device and equipment for information processing, hidden information analysis and embedding
CN108922567B (en) Method and device for limiting reading times of hidden data of optical disc
CN115935299A (en) Authorization control method, device, computer equipment and storage medium
EP3526901B1 (en) Recording and playback devices with avoidance of missynchronisation by scrambling a payload with a modified payload checksum
CN112486885B (en) Data frame generation method, storage medium and computer equipment
CN109446827A (en) Data encryption/decryption method and system
CN114626338A (en) Character encoding method, character decoding method, character encoding system, character decoding system, character encoding device, character decoding device, and storage medium
CN109257341B (en) Block chain address management method and equipment
CN111813965B (en) Encryption method and decryption method for multimedia file, storage medium and electronic device
CN110378829B (en) Method, device and equipment for providing information and extracting watermark
CN113557529A (en) Hybrid two-dimensional bar code reader
CN112699366A (en) Cross-platform login-free secure communication method and device and electronic equipment
CN117708779B (en) Data watermarking processing method, tracing method and storage medium

Legal Events

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