Video signal recording/reproducing apparatus

Abstract: Disclosed are a video signal recording apparatus for dividing digital video signal into blocks, transforming orthogonally, quantizing, coding in a variable length, and recording always in identical data quantity in a unit of specific number of blocks, and a video signal reproducing apparatus for decoding the recorded signal in variable length, quantizing inversely, transforming inversely and orthogonally, and reproducing the original digital video signal. The coding dataare divided in two code rows; the individual low frequency components are assigned to separate sync blocks, and high frequency components are assigned to different sync blocks and recorded. If the sync block of high frequency components is wrong during reproduction, it is possible to decode only the low frequency components. At the time of high speed reproduction, the screen is updated according to the reproducing speed. By recording the position information indicating the boundary position between two code rows, the range of error concealment may be narrowed.

Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a digital video signal recording and reproducing apparatus featuring high efficiency coding of digital VTR or the like. 2. Description of the Prior Art To compose a video signal recording and reproducing apparatus (VTR, video disc or the like), a band compression technology (or high-efficiency coding technology) for reducing the data quantity of the original video signals is used for long-time recording. As one of examples of such band compression technology, the orthogonal transformation coding employing Hadamard transformation or discrete cosine transformation (DCT) is known. In the orthogonal transformation coding, first the video signal is divided into blocks of small regions of, for example, continuous 8 x 8 pixels of horizontal 8 pixels and vertical 8 pixels. Then each frequency component obtained by frequency separation in block unit is coded. At this time, as for the high frequency components small in effects of deterioration in visual characteristics, the data quantity of the original video signal is curtailed by a technique of reducing the data allotment quantity or other method, and it is one of the effective band compressing techniques noted for small deterioration of picture quality. Also known is a technique of allotting variable length codes differing in the code length depending on the value of the data obtained by orthogonal transformation. In this method, depending on the frequency of occurrence of value of data, the code word of a shorter code length is allotted to the value of the higher frequency of occurrence, and the data quantity is reduced on the whole. As a conventional example, the video signal recording and reproducing method by VTR is explained below. The data curtailed by the orthogonal transformation coding which is one of the band compression techniques is recorded on a tape by variable length coding, and at this time as the minimum synchronizing unit in reproduction, it is recorded by dividing into sync blocks of a specific data quantity unit. A sync block is composed of a synchronizing pattern (SYNC), identification information such as block number and frame number of sync block (ID), video signal coding data, error correction code parity, and other. The data quantity after such variable length coding varies with the input video signal, but it is desired to keep the tape consumption per unit time constant from the viewpoint of editing and recording time. It is accordingly necessary to control the coding quantity so that the data quantity may be constant in a certain range. Furthermore, corresponding to the error propagation, the certain range should be as short as possible. If, however, the certain range is too short, the data occurrence frequency in the certain range fluctuates, and the compression effect by variable length coding is decreased, and the picture quality may deteriorate. Therefore, in the method of recording and reproducing in sync block units, in the video signal divided into blocks for orthogonal transformation, a specific number of blocks is grouped as a compression unit, and the data quantity is controlled so that this compression unit may have a constant data quantity. The specific data quantity in the compression unit is allotted equally in several sync blocks and recorded. In such conventional video signal recording and reproducing apparatus, if it is impossible to detect and reproduce by the data in 1 sync block owing to an error occurring in the process of reproducing, the error propagation for that error spreads over the entire blocks in the compression unit. In such a case, concealment for replacing with the data at the same position in the preceding and succeeding screens adjacent in time must be done in all blocks within the compression unit. In particular, during high-speed search which is one of the special reproducing techniques, such error is likely to occur, and concealment is required very often, and if the entire compression units are always concealed, the screen is hardly updated and the search function is spoiled. As other problem, the information quantity in the compression unit is tremendous, and it is sometimes impossible to settle within a specific data quantity (this phenomenon is called overflow) only by the quantizer incorporated in the apparatus for curtailing the data quantity. In the conventional video signal recording and reproducing apparatus, in such a case, coding data exceeding the specific data quantity cannot be recorded. If the entire data of a certain block is contained in such unrecordable coding data, such unrecordable block is present even in ordinary recording, and the entire block cannot be reproduced at the time of reproducing. DE-A-3940554 discloses a compression coding device and expansion decoding device for a picture signal in which the coding device sets a normalisation coefficient which matches a block picture data to enable an adequate compression ratio to be selected on a block by block basis. This enables the amount of coded data to be maintained constant. JP-A-2032688 discloses an adapter transforming coder for additional image signal in recording and reproducing apparatus in which the recording weight of a digital signal is kept at a constant level. In this arrangement there is provided an orthogonal transforming means for transforming blocks of digital input signal and a unit for calculating an activity index of the transformed block. The blocks are classified according to a standard bit class according to which the blocks are recorded. The present invention provides a video signal recording apparatus comprising: orthogonal transformation means for dividing a video signal composed of a series of pixel data into a plurality of blocks each composed of a predetermined number of pixel data and for transforming each of the plurality of blocks by orthogonal transformation to obtain a plurality of orthogonally transformed data blocks; coding means for coding the plurality of orthogonal transformed data blocks by variable length coding to obtain a plurality of coded data blocks so that data quantity in a specific number of coded data blocks is constant; formatting means for allocating the plurality of coded data blocks into a plurality of sync blocks each containing a sync signal, identification data and coded data blocks; and recording means for recording the plurality of sync blocks on a recording medium, characterized in that said formatting means includes: block dividing means for dividing the plurality of coded data blocks into first and second groups; and block distributing means for allocating the coded data blocks in said first and second groups to continuous first, second and third sync blocks such that coded data in the coded data blocks in said first group are allocated to the first sync block sequentially in the order from coded data corresponding to the lowest frequency component of the video signal to coded data corresponding to higher frequency components of the video signal, coded data in the coded data blocks in said second group are allocated to the second sync block sequentially in the order from coded data corresponding to the lowest frequency component of the video signal to coded data corresponding to higher frequency components of the video signal, and the remaining coded data in said first and second groups are allocated to the third sync block, whereby coded data corresponding to lower frequency components of the video signal are distributed in the first and second sync blocks. The present invention also provides a video signal reproducing apparatus for reproducing a video signal from video signal coded data recorded on a recording medium in a form of a plurality of sync blocks, comprising: reproducing means for reproducing from the recording medium the plurality of sync blocks; deformatting means for allocating coded data in the plurality of sync blocks into a plurality of variable length coded data blocks; decoding means for decoding the plurality of variable length coded data blocks to obtain a plurality of orthogonal transformed data blocks; inverse orthogonal transformation means for inverse transforming the plurality of orthogonal transformed data blocks to obtain a plurality of blocks of pixel data, characterized in the said deformatting means includes: sync block distributing means for extracting from the plurality of sync blocks outputted from the reproducing means a first sync block in which coded data corresponding to lower frequency components of the video signal in coded data blocks belonging to a first group are allocated, a second sync block in which coded data corresponding to lower frequency components of the video signal in coded data blocks belonging to a second group are allocated, and a third sync block in which the remaining coded data of coded data blocks belonging to the first and second groups are allocated, and distributing the coded data blocks in the first, second and third sync blocks to a first group memory and a second group memory by firstly allocating coded data in each of the coded data blocks in the first sync block to the first group memory sequentially in the order from coded data corresponding to lowest frequency component of the video signal to coded data corresponding to higher frequency components of the video signal and allocating coded data in each of the coded data blocks in the second sync block to the second group memory sequentially in the order from coded data corresponding to lowest frequency component of the video signal to coded data corresponding to higher frequency components of the video signal, and then allocating coded data of the coded data blocks in the third sync block belonging to the first group to the first group memory after the coded data blocks allocated from the first sync block and coded data of the coded data blocks in the third sync block belonging to the second group to the second group memory after the coded data blocks allocated from the second sync block, whereby a first group of variable length coded data blocks and a second group of variable length coded data blocks are obtained in the first and second group memories, respectively; and block combining means for combing the first and second groups of variable length coded data blocks in the first and second group memories to obtain the plurality of variable length coded data blocks. The invention thus presents a video signal recording and reproducing apparatus capable of composing a reproducing screen in a wider area on the screen using the sync block being read out and the data in the sync block even, if there is a sync block that cannot be reproduced in the event of an error occurrence or during high-speed reproduction. The invention also presents a video signal recording and reproducing apparatus capable of recording the information of all blocks in the compression unit so as not to degrade the picture quality significantly if an overflow occurs due to excessive information quantity in the compression unit. In this constitution, if an error occurs in the sync block of high frequency components, reproduction is not disabled over the entire compression unit, but the reproducing screen is composed only with the low frequency components being read out, so that the reproducing region may be extended. This is particularly effective in high speed reproduction. and if the entire sync blocks in which the compression units are assigned cannot be depicted, a wider picture region may be reproduced by the -depicted sync blocks, so that the reproduced picture corresponding to the reproducing speed may be composed. Besides, since the low frequency components and high frequency components are separated. in the event of an overflow, the unrecordable data may be only the high frequency components, while the low frequency components in all blocks should be always recorded, which may be easily recorded, so that the conventional problem of failure of entire blocks can be avoided. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a structural drawing of a video signal recording apparatus in a first embodiment of the invention. Fig. 2 is a structural drawing of a coding circuit which is one of the constituent elements of the first embodiment. Fig. 3 is a structural drawing of a formater which is one of the constituent elements of the coding signal shown in Fig. 2. Fig. 4 and Fig. 5 are diagrams of code row arrangement in one compression unit for explaining the operation of the formater shown in Fig. 3. Fig. 6 is a structural drawing of a video signal reproducing apparatus in a second embodiment of the invention. Fig. 7 is a structural drawing of a decoding circuit which is one of the constituent elements of the second embodiment. Fig. 8 is a structural drawing of a deformater which is one of the constituent elements of the decoding circuit shown in Fig. 7. Fig. 9 and Fig. 10 are diagrams of code row arrangement in one compression unit for explaining the operation of the deformater shown in Fig. 8. Fig. 11 is a structural drawing of a coding circuit which is one of the constituent elements of a video signal recording apparatus in a third embodiment of the invention. Fig. 12 is a structural drawing of video signal recording apparatus and reproducing apparatus in a fourth embodiment of the invention. Fig. 13 is a structural drawing of a detecting circuit which is one of the constituent elements of a video signal reproducing apparatus in a fifth embodiment of the invention. Fig. 14 is a diagram of code row arrangement in one compression unit for explaining the operation of the detecting circuit shown in Fig. 13. Fig. 15 is a diagram of code row arrangement in one compression unit for explaining the operation of a detecting circuit which is one of the constituent elements of a video signal reproducing apparatus in a sixth embodiment of the invention. Fig. 16 is a structural drawing of a detecting circuit which is one of the constituent elements of video signal recording apparatus and reproducing apparatus in a seventh embodiment of the invention. Fig. 17 is a diagram of code row arrangement in compression unit for explaining the operation of the detecting circuit shown in Fig. 16. Fig. 18 is a structural drawing of a detecting circuit which is one of the constituent elements of video signal recording apparatus and reproducing apparatus in an eighth embodiment of the invention. DESCRIPTION OF THE PREFERRED EMBODIMENTS Fig. 1 is a structural drawing of a video signal recording apparatus in a first embodiment of the invention. This embodiment relates to a rotary head type digital VTR which receives digitized video signals, divides the screen of the digital video signals into block units to code at high efficiency, and records on a magnetic tape. In Fig. 1, an orthogonal transformation circuit 2 divides a digital video signal obtained from an input terminal 1 into blocks, and transforms orthogonally in each block. A coding circuit 3 first assembles a specific number of blocks of the orthogonally transformed signals (hereinafter the specific number of blocks is supposed to be 2n blocks) as one compression unit, and quntizes so that each compression unit may be identical in data quantity. This quantized data is coded in variable length. This variable-length coded code is assigned to a specific number of sync blocks (in this embodiment, 3 sync blocks), and sent into a recording circuit 4. The recording circuit 4 performs error correction coding and modulation in the sync blocks in which the codes are assigned by the coding circuit 3, thereby recording magnetically on a magnetic tape 5 by means of a recording head 40. The synchronizing signal (SYNC) of sync block, identification information (ID) and others necessary for reproducing are added in the recording circuit 4. Fig. 2 shows an example of constitution of the coding circuit 3. The signal orthogonally transformed by the orthogonal transformation circuit 2 is obtained from an input terminal 30 of the coding circuit, and is set into a data quantity estimator 31. In the data quantity estimator 31, by quantizing with plural quantizers having different quantizing step widths, the code quantity of variable-length coding of the quantized data is calculated in the unit of the specific number of blocks. A quantizer selector 32 compares the code quantity calculated by the data quantity estimator 31, and the data quantity that can be recorded in three sync blocks on the magnetic tape by 2n blocks (called target data quantity Q). It selects the quantizer in which the code quantity has the maximum data quantity not exceeding the target data quantity Q. A quantizer 33, that is, the quantizer selected by the quantizer selector 32, quantizes the orthogonally transformed signal. The quantized signal is coded in variable length by a variable-length coding device 34, and is sent to a formater 35. The variable-length coding device 34 inserts an end signal showing the end of a block (EOB) of every block in the variable-length code row. The formater 35 divides the input variable-length codes in 2n blocks into two code rows (code rows A and B) of every n blocks. The code row A is allotted to one sync block among the three sync blocks sequentially from the low frequency components of each block. The code row B is allotted in other one sync block sequentially from the low frequency components similarly. The remaining codes of high frequency components that cannot be allotted in two sync blocks for low frequency components of code row A and code row B are allotted to the final one sync block sequentially from code row A. A practical constitution example of formater 35 is shown in Fig. 3, and the arrangement of code rows in each memory circuit which is a constituent element in Fig. 3 is shown in Fig. 4. Here, the number of blocks in one compression unit, the value of 2n, is to determine the optimum value, as mentioned in relation to the prior art, by the error propagation range, compression effect, total number of blocks per frame and the number of sync blocks to be recorded of the input video signal, and others. According to the study by the present inventors, it is known that one compression unit should comprise scores of blocks. In the explanation of this embodiment, however, for the sake of simplicity, the number of blocks in one compression unit is supposed to be 6 (n=3). Accordingly, the number of blocks of code row A and code row B is 3 respectively. The value of 2n is smaller than the optimum value, but it does not matter in the explanation of the function of the formater 35. The data quantity assigned for the video data in each sync block of the three sync blocks is Q/3, supposing that the target data quantity Q is divided in three equal portions. Suppose a code row (a) of six blocks (A1, A2, A3, B1, B2, B3) in Fig. 4 is entered in an input terminal 300 to the formater 35 in Fig. 3. The code row (a) is supposed to have a data quantity smaller than the target data quantity Q (Q is the data quantity of three sync blocks assigned on the video data). A block divider 301 divides the the code row (a) of six blocks into a code row (b) of three front blocks (A1, A2, A3 in Fig. 4(b)), and code row (c) of three rear blocks (B1, B2, B3 in Fig. 4 (c)). A first code distributor 302 fills up a first sync memory 311 from a specified position sequentially from the low frequency components, only with the specified data quantity for the code row of each block of the code row (b). In this explanation, codes of three blocks are equally distributed in one sync block, and individually Q/9 corresponding to one-third of the video allotment Q/3 in one sync block is assigned to the low frequency components in each block. The position for starting to fill up each block with code is the position of dividing one sync block into three equal portions. The code row arrangement as a result of allotting the code row (a) into the first sync memory 311 by the first code distributer 302 is shown in Fig. 4 (d). The first code distributer 302 write the codes of the high frequency components of each block not written in the first sync memory 311 into a first buffer memory 305 sequentially from block A1. The code row arrangement of the first buffer memory 305 is shown in Fig. 4 (e). In Fig. 4 (e), A'1, A'2, A'3 denote high frequency components of A1, A2, A3, respectively. On the other hand, a second code distribute 303 fills up a second sync memory 312 with low frequency components of B1, B2, B3, with respect to the code row (b), in the same operation as in the first code distributer 302, and a second buffer memory 306 with high frequency components of each block not allotted to the second sync block 312. As a result, the code row arrangements in the second sync block and second buffer memory 306 become as shown in Fig. 4 (f) and (e). A third code distributer 304 distributes the codes of high frequency components in each block in the first buffer memory 305 and second buffer memory 306 into first sync memory 311, second sync memory 312 and third sync memory 313, depending on the presence or absence of data quantity in the first buffer memory 305 and second buffer memory 306. The distribution sequence of codes by the third code distributer 304 is explained below. Step 1 When there are codes in the first buffer memory 305 and no codes in the second buffer memory 306, the codes in the first buffer memory 305 are distributed sequentially from , the beginning into vacant places of the code row (b) in the second sync memory 312. Step 2 When there are codes in the second buffer memory 306 and no codes in the first buffer memory 305, the codes in the second buffer memory 306 are distributed sequentially from the beginning into vacant places of the code row (a) n the first sync memory 311. Step 3 After step 1, step 2, the codes in the first buffer memory 305 are distributed sequentially from the beginning in the third sync memory 313, and then the codes in the second buffer memory 306 are distributed sequentially from the beginning. In the example in Fig. 4, both the first sync memory 311 and second sync memory 312 are filled with codes, and the codes of high frequency components are left over in both first buffer memory 305 and second buffer memory 306, and only the code allotment of step 3 is executed. Hence, the code arrangement in the third sync memory 313 is as shown in Fig. 4 (h). Next is explained the case of input of code row (a') of six blocks (supposing A1, A2, A3, B1, B2, B3) in Fig. 5 into the input terminal 300 to the formater 35 in Fig. 3. The code row (a') is divided by the block divider 301 into the code row (b') of the front three blocks (A1, A2, A3 in Fig. 5 (b')), and the code row (c') of rear three blocks (B1, B2, B3 in Fig 5 (c')). The code row (b') has the portion of Q/9 assigned to the first sync memory 311 from the low frequency components of each block by the first code distributer 302 to be as shown in Fig. 5 (d'), while the remaining high frequency components are assigned to the first buffer memory 305 to be as shown in Fig. 5 (e'). On the other hand, the code row (c') has the Q'9 portion from the low frequency components of each block distributed to the second sync memory 312 to be Fig. 5 (f') by the second code distribute 303, and different from Fig. 4, the code quantity of the code row (c') is smaller than the allotment quantity of the video data of one sync block, and there is no high frequency component to be assigned to the second buffer memory 306 (the code row of the second buffer memory 306 is not shown in Fig. 5). To the contrary, a region not allotted with data is left over in the second sync memory 312. At this time, in this embodiment, as mentioned above, since the initial allotting position of the code of each block is constant, the region not allotted with the data is present just after B1, smaller in the code quantity is one block from Q'9, as indicated by shaded area in Fig. 5 (f'). The shaded area in Fig. 5 (f') is assigned with the beginning of the first buffer memory 305, that is, a part from the beginning of A'1 in the code row (e'), by step 1 of the code distribution procedure of the third code distributer 304. As a result, the code arrangement in the second sync memory 312 becomes as shown in Fig. 5 (g'), and the first buffer memory 305 becomes as shown in (h'). Next, the third code distributer 304 finishes the execution by directly allotting the code row (h') in the first buffer memory 305 in the third sync memory 313 to be as shown in Fig. 5 (i'), by step 3 of the code distribution procedure, because there is no code in the second buffer memory 306. In the foregoing description, the code quantity in the compression unit (for the portion of six blocks) is always below a specific data quantity (Q), but in spite of the dispersion of the code quantity in each block, the low frequency components of each block is assigned to the first and second sync blocks, and the high frequency components are always assigned to the third sync block. Accordingly, if the code quantity in the compression unit may not be controlled under a specific data quantity (Q) by the excessive information quantity (overflow), the codes not settled within the third sync memory 313 may be ignored at the distribution step 3 of the code of the third code distributer 304. That is, the following term is added to step 3 of the distribution procedure of the third code distributer 304. Addition to step 3 Although codes are left over in the first buffer memory 305 or second buffer memory 306, if there is no region for assigning the codes to the third sync memory 313, the code allotment is terminated. By this distribution procedure, the damage may be always limited to the high frequency components. What is more, the action of this step 3 may be easily realized only the code allotment is forced to be stopped by counting the data quantity written in the third sync memory 313. According to this embodiment, in the first or second sync block, always the low frequency components which are important components in each block are allotted, and the other high frequency components are allotted to the third sync block, and therefore if the third sync block cannot be detected due to error or high speed reproducing, the screen may be reproduced by the low frequency components of all blocks in the compression unit only by the first and second sync blocks. Accordingly, the reliable reproducing screen may be composed without concealing the screen more than necessary. Besides, if the first or second sync block should be lost be error or high speed reproducing, it is enough to conceal with only the blocks assigned to the first or second sync block, so that screen concealment more than necessary may be prevented. Or in the event of an overflow, the data to be lost may be limited only to the high frequency components, the problem of failure of recording the block itself as in the prior art may be solved easily. As other aspect of the invention, the video signal reproducing apparatus is explained below. Fig. 6 is a structural drawing of a video signal reproducing apparatus in a second embodiment of the invention. This embodiment relates to a rotary head type digital VTR for reproducing the digital video signal from a magnetic tape on which the digital signal is recorded by high-efficiency coding by the video signal recording apparatus-in the first embodiment. In Fig. 6, the magnetic tape 5 is one in which the digital video signal is recorded by high-efficiency coding according to the first embodiment. The recorded magnetic signal is converted into an electric signal by a reproducing head 60, and is demodulated and decoded of error correction by the detecting circuit 6, thereby detecting and , reproducing the data in each sync block. At this time, by SYNC of the sync block, the sync block synchronism is taken, and by ID each sync block is distinguished. As a result of the synchronization, distinguishing and error correction decoding of the sync blocks, concealment is executed together with the detection of the sync block of which error cannot be corrected. The decoding circuit 7 is responsible for inverse processing of the coding circuit 3 in the first embodiment, and the variable length coding row is rearranged from the signals in the sync block unit obtained from the detecting circuit, and is sent to the inverse orthogonal transformation circuit 8 by variable length decoding and inverse quantizing. The inverse orthogonal transformation circuit 8 transforms inversely and orthogonally in every block, and delivers from an output terminal by returning to the digital video signal of the original pixel value state. Fig. 7 is a diagram showing a structural example of the decoing circuit 7. The video signals in the sync block unit obtained from the detecting circuit 6 compose a code row in which variable length codes are continued in each block by the deformater 71. The variable length decoder 72 decodes the code row obtained by the deformater 71 in variable length, and inversely quantizes by the inverse quantizer 73 to return to the original orthogonal transformation coefficient, so that the output of the decoding circuit 7 is obtained. Here, as mentioned above, in the sync block signals of the output of the detecting circuit 6, codes in the first, second and third sync blocks may not be continuous in the event of error, high speed reproduction or overflow, or the EOB may be lost by overflow. For such precaution, there are EOB detector 75 and EOB inserter 76 for detecting the presence or absence of EOB in the code row obtained from the deformater 71. The EOB inserter 76 inserts the EOB at the end of the block of the lost EOB by the result of detection by the EOB detector 75. Accordingly, in the variable length decoder 72 of the later stage, since the end of the code row of each block can be distinguished, the data which is not variable length code or the code of the subsequent block will not be decoded by mistake. A practical example of the deformation 71 is shown in Fig. 8, and the arrangement of the code rows in each memory circuit as constituent elements in Fig. 8 is shown in Figs. 9 and 10. The number of blocks in one compression unit is 6 same as in the first embodiment. Fig. 9 shows the code arrangement when deformation the compression unit in the case shown in Fig. 4 in the first embodiment, and Fig. 10 is a code row arrangement in Fig. 5. First referring to Fig. 9, the operation of this deformater 71 is explained below. In the first sync memory 711, second sync memory 712, and third sync memory 713 in Fig. 8, code rows (d), (f) and (h) in Fig. 5 are stored. The first sync distributer 700 writes the codes up to the EOB sequentially from the specified position in the first code memory 731, as seeing the specified data quantity (Q/3) portion in each block from the specified position in which the codes in each block in the first sync memory 711 are assigned sequentially, and writes the other codes sequentially from the beginning of the first buffer memory 701. In the example in Fig. 9, as indicated by code row (d), since all of the assigned data quantity of Q/3 is allotted in the code row of each block, data is not written in the first buffer memory 701. Next, the second sync distributer 702 operates same as the first sync distributer, and distributes the code data in the second sync memory 712 into the second code memory 732 and second buffer memory 703. In the code row (f), since all assigned data quantity of Q/3 is assigned in the code row in each block, data is not written in the second buffer memory 703. As a result, the code is written in the first code memory 731 as shown in the code row (u) in Fig. 9, and the code is written in the second code memory 732 as indicated by code row (v). The shaded area in the diagram indicates the area in which data is not written. The third sync code distributer 704 writes the data in the first buffer memory 701 and second buffer memory 703 and the data in the third sync memory 713 into the first code memory 731 and second code memory 732. The distribution and writing sequence of the third sync distributer 704 is explained below. Step 1 When there are codes in the first buffer memory 701 and no signal in the second buffer memory 703, the codes in the first buffer memory are written behind the specified block on the second code memory 732 up to the EOB sequentially from the beginning. Step 2 When there are codes in the second buffer memory 703 and no code in the first buffer memory 701, the codes in the second buffer memory 703 are written behind the specified block on the first code memory 731, sequentially up to the EOB from the beginning. Step 3 After step 1 and step 2, the codes in the third sync memory 713 are written behind the specified block on the first code memory from the beginning sequentially up to the EOB, and then written behind the specified block on the code memory 732. In this case, the specified block refers to the block in which the code row of blocks by EOB is not completed get By this writing procedure, the code arrangement in the first code memory 731 and second code memory 732 is returned to the initial sequence of code rows in each block as shown in code rows (w) and (x) in Fig. 9. Consequently, the block coupler 705 couples two code rows in every three blocks in the first code memory 731 and second code memory 732, and obtains an output signal of the deformater circuit 71 by coding into 6 blocks in each compression unit. The operation of input of code rows (d'), (g'), (i') in Fig. 10 into the deformater 71 is explained below. The code row (d') in the first sync memory 711 is same as in the case shown in Fig. 9, and by the first sync distributer 700, the code row in the first code memory 731 becomes as in (u'), and code is not written in the first buffer memory 701. The second sync distributer 702 distributes the code row (g') on the second sync memory 712, and writes into the second code memory 732 and second buffer memory 703. In the block B1 in the code row (g'), since the code row is completed within the data quantity Q'3 assigned to the block B1 (which can distinguished by the detection of EOB), the remaining A'1 portion is written in the second buffer memory 703 (the code row (w') in Fig. 10). The third sync distributer 704 writes the code row (w') on the second buffer memory 703 on the first code memory 731, by step 2 of the writing procedure. At this time, the code row A'1 in the code row (w') becomes as the code row (x') in Fig. 10, as being written immediately after the code row of the block A1 in the code row (u'). Afterwards, at step 3 of the writing procedure, the code row (i') on the third sync memory 713 is written right after the code row of each block on the first code memory 731. As a result, the code row (y') as shown in Fig. 10 is present on the first code memory, and the code row (z') on the second code memory. According to the embodiment, if low frequency components are assigned into the first or second sync blocks, and the remaining high frequency components are assigned in the third sync block, according to the division of the code rows in each block, the original digital video signals may be restored by continuously linking the code rows. What is more, if the third sync block cannot be detected due to error or high speed reproducing, and the code row of each block is lost on the way, the EOB is inserted in each block, so that the detected codes can be reproduced without mistaking the variable length decoding. Or if all codes cannot be recorded due to overflow, at least the variable length decoding may be executed normally. As another example of video signal recording apparatus of the invention, a third embodiment is explained below. This embodiment is intended to compensate for code loss at the time of overflow in the video signal recording apparatus in the first embodiment of the invention, and it is designed to record the EOB of each block without fail even in the event of an overflow. The constitution of this embodiment is same as the composition of the first embodiment in Fig. 1 and the composition of the formater 35 in Fig. 3, but the composition of the coding circuit 3 has two new constituent elements added to the constitution of the first embodiment in Fig. 2. Fig. 11 is a structural drawing of the coding circuit in this embodiment. In Fig. 11, a code quantity comparator 37 compares the code row of the output of the variable length coding device 34 and the target data quantity Q in one compression unit, and sends a control signal to indicate insertion of EOB to the EOB inserter 38. The operation of code comparator 37 is explained below. The code comparator 37 sequentially counts the number of blocks in one compression unit (2n blocks) obtained from the variable length coding device 34, and obtains cb. At the same time, counting the code quantity in the code word unit of the code row, qw is obtained. However, qw does not include the code quantity of EOB (the code quantity of one EOB is supposed to be qe). Hence, the maximum value of qw is as follows, seeing that the number of blocks in one compression unit is 2n. max (qw) = Q - 2n × qe Meanwhile, the maximum value of cb is, of course, 2n. Next, the code quantity comparator 37 does not send insertion instruction of EOB to the EOB inserter 38 while the value of qw is smaller than the max (qw) in equation (1). However, when detecting a code word of which qw is greater than max (qw), an insertion instruction of EOB is sent to the EOB inserter 38, while the number of EOBs to be inserted is sent by (2n - cb). The EOB inserter 38 does not send the code row obtained from the variable length coding device 34 after the code word at the time of instruction for insertion of EOB from the code quantity comparator 37 to the formater 35, but sends instead (2n-cb) pieces of EOBs to the formater 35. By the operation of the code quantity comparator 37 and the EOB inserter 38, the code row sent into the formater 35 does not exceed the target data quantity Q, and the specified number of blocks of EOBs are always contained. According to the video signal recording apparatus of the embodiment disclosed above, the EOB will not disappear in the sync block to be recorded even in the event of overflow. Therefore, in the case of variable length decoding when reproducing, the decoding will not be mistaken. This embodiment is very effective when a part of the sync block cannot be detected due to error. That is, by the error in part, usually it was impossible to decode because it was not known in which block the error code was present. However, by keeping and recording always EOBs for the portion of 2n blocks, and knowing the number of EOBs within the code row before the error in part and the number of EOBs after that, the block of the error portion may be limited, so that the codes in the blocks after the error location may be also reproduced. Hence, the error propagation range may be limited short only in the block containing the error in part, so that it is very effective. Next is described a fourth embodiment of the video signal recording apparatus and reproducing apparatus. Fig. 12 is a structural drawing showing the composition of the video signal recording apparatus ad reproducing apparatus of this embodiment, and the video signal reproducing apparatus is shown in the top and the video signal reproducing apparatus in the bottom. As for the video signal reproducing apparatus of the embodiment, the reproducing function is same as in the second embodiment, except that the signals in the sync block unit detected by a detecting circuit 6 are sent to a coding circuit 7, and also to a dubbing output terminal 90. The dubbing output terminal 90 is a terminal for delivering the video signal to other video directly in the variable-length coded state. On the other hand, the video signal recording apparatus is same in recording function as the video signal recording apparatus in the first and third embodiment, except that it further comprises newly a dubbing input terminal 10 for entering the variable-length coded signal of the video signal obtained from the dubbing output terminal 90 of the video signal reproducing apparatus, and an input selector 11 for selecting a signal obtained by the coding circuit 3 and the signal obtained from the dubbing input terminal 10, and sending to a recording circuit 4. In this constitution, at the time of execution of dubbing, the input selector 11 sends the signal obtained from the dubbing input terminal 10 directly into the recording circuit 4, and records on a magnetic tape 50 different from the magnetic tape 5 reproduced by the video signal reproducing apparatus, through a recording head 40. Of course, in ordinary recording, the signal obtained by orthogonal transformation and variable-length coding of the digital video signal obtained from the input terminal 1 may be recorded. Thus, according to the embodiment, when executing the dubbing function for recording the signal recorded on one magnetic tape on other magnetic tape, dubbing may be executed directly in the compressed state of the video signal. Accordingly, without performing inverse quantizing, quantizing, inverse orthogonal transformation, and orthogonal transformation, picture quality deterioration by compression process occurs only in the first time, and dubbing without any further picture quality deterioration may be executed, which is very practicable. A fifth embodiment of the invention relates to a video signal reproducing apparatus. This embodiment is same as the video signal reproducing apparatus in the second and fourth embodiments, and it is intended to reproduce the signal recorded by the video signal recording apparatus as in the first, second or fourth embodiment, but its features lie in the constitution and function of the detecting circuit 6. Fig. 13 shows the constitution of the detecting circuit 6 in this embodiment. In Fig. 13, the signal recorded in the magnetic tape 5 is reproduced and detected by a reproducing head 60, and this signal is first fed into a sync detector 61 in the detecting circuit 6. The sync detector 61 detects the reproducing clock by the digital pattern of the recording signal, and also detects the SYNC pattern to achieve synchronism of the sync block. The detected signal is demodulated by the demodulator 62, but an error detection signal E1 showing that the sync block could not be detected by error is sent to a concealment controller 64. On the other hand, the signal demodulated by a demodulator 62 is corrected of error by the error correction decoder 63, and is sent to a concealing device 65. At this time, the error correction decoder 63 detects that the data in the sync block was wrong, although the sync was detected by the sync detector 61, and that an incorrectable error was contained, and sends the error detection signal E2 to the concealment controller 64. The concealing device 65 conceals by replacing the signal obtained from the error correction decoder 63 with the previous frame data obtained from the concealment memory 66 for storing the sync blocks for one frame portion, by the concealment control signal E3 obtained from the concealment controller 64. The concealment controller 64 sends the concealment control signal E3 for instructing to conceal the wrong sync block, by the sync error detection signal E1 and error detection signal E2, to the concealing device 65, and delivers an error signal Err. This error signal is sent into the third sync distributer 704 in the decoding circuit 7 in a later stage. The third sync block 704 ignores, by the error signal Err, the data of the third sync block, that is, the data in the third sync memory 713, and prohibits writing into the first code memory 731 and second code memory 732. The composition inside the deformater described above is not shown in the drawing because it is only to send the error signal Err to the third sync distributer 704 in the deformater structural drawing in Fig. 8. What is different is that the following procedure is added to step 3 of the writing procedure of the third sync distributer 704. Addition to step 3 of writing procedure of third sync distributer 704 When the error signal Err shows there is an error i the third sync block, the code in the third sync memory 713 is not written into the first code memory 731 and second code memory 732. The above concealment action is described below while referring to the data in Fig. 14. In Fig. 14, (a) shows three sync blocks containing the data in the compression unit of the m-th frame to be entered in the concealing device 65 from the error correction decoder 63, in which A(m) and B(m) are low frequency components, and A'(m) and B'(m) are high frequency components. Diagram (b) denotes the data of one frame before obtained from the concealment memory 66, that is, the data of the sync block which is the output signal of the concealing device 65 of the m-1-th frame. Fig. 14 (c) shows the error signal Err (3) when the third sync block is wrong in (a), changeover signal Sw (3) showing changeover between the error correction decoder 63 side and the concealment memory 66 side by the concealing device 65, and the data arrangement Data (c) in the sync block after concealment. The changeover signal Sw is at the X side when the signal obtained from the error correction decoder 63 is delivered from the concealing device 65, and is at the Y side when the signal obtained from the concealment memory 66 side is delivered. Hence, if only the third sync block is wrong, the Sw (3) delivers the X side data directly, but the error signal Err (3) is regarded as the error of the third sync block, and the variable-length decoding by the decoder 7 in later stage is prohibited. Hence, this compression unit is reproduced on the screen only with the low frequency components of A(m) and B(m). On the other hand, when an error occurs in the first sync block and second sync block, the entire compression unit is concealed by setting the changeover switch Sw to the Y side for the three sync block periods. According to this embodiment, if only the third sync block is wrong, the entire compression unit is not concealed, so that it is very effective when the screen reproduction corresponding more closely to the reproduction speed than the picture quality of each frame as in high speed reproducing is required. As compared with the video signal reproducing apparatus in the fifth embodiment, an example of the concealment process for reproduction much more corresponding to the reproducing speed is explained below as a sixth embodiment. The constitution of this embodiment is exactly same as in the fifth embodiment. What is different is the writing procedure of the third sync distributer 704 and the concealing action after the concealment controller 64. The writing procedure of the third sync distributer 704 in this embodiment has the following operations added to step 1 and step 2 of the above writing procedure. Addition to step 1 of writing procedure of third sync distributer 704 When the error signal Err indicates there is an error in either first sync block or second sync block, the codes in the first buffer memory 701 are not written into the second code memory 732. Addition to step 2 of writing procedure of third sync distributer 704 When the error signal Err indicates there is an error in either the first sync block or second sync block, the codes in the second buffer memory 703 are not written in the first code memory 731. In other words, if either the first sync memory or second sync memory is wrong, the concealing device 64 conceals only the wrong sync block in order to reproduce the image more reliably, but in the case of Fig. 10, sync there is no continuity between the code row in the first sync block and the code row in the second sync block, it is intended not to decode in variable length continuously. The concealment action by the concealment controller 64 and subsequent devices in the embodiment is explained below while referring to Fig. 15. In this embodiment, if there is an error only in the third sync block, it is equal to the concealment action in the fifth embodiment, and hence this explanation is omitted. In the following explanation, the signals obtained from the error correction coding device 63 and concealment memory 66 are (a) and (b) in Fig. 14. In the first place, when only the first sync block in three sync blocks composing one compression unit is wrong, the error signal Err (1), changeover signal Sw (1), and data arrangement Data (d) of output signal of concealing device 65 are shown in Fig. 15 (c). Err (1) indicates the second and third sync blocks are wrong. Sw (1) delivers Data (d), by setting the first sync block period having an error at Y side, and replacing A(m) of the m-th frame code row (a) by A(m-1) of the m-1-th frame. Hence, Error (1) indicates that the code row of the first sync block and second sync block is discontinuous to the third sync distributer 704, and also instructs not to use the data of the third sync block. In Fig. 15, (e) denotes the mode of each signal when there is an error only in the second sync block. The changeover signal Sw (2) sets only the second sync block period having an error at the concealment memory 66 side, and obtains the Data (e) composing B(m-1) as the output signal of the concealing device 65. The error signal Err (2) is the same signal as the Err (1), and it is intended to indicate the discontinuity of the first sync block and second sync block, and prohibition of use of the data of the third sync block. According to the embodiment, in addition to the fifth embodiment, if only the first sync block or second sync block is wrong, the data in the intact sync blocks are used without concealing all compression units, and hence it is more effective when the picture reproduction corresponding more correctly to the reproducing speed rather than the picture quality of each frame is required as in high speed reproducing. As compared with the video signal reproducing apparatus in the sixth embodiment, an example of video signal recording apparatus and reproducing apparatus for reproducing the screen much more corresponding to the reproducing speed is explained below as a seventh embodiment. The constitution of the video signal recording apparatus of this embodiment is same as the constitution in Fig. 1, Fig. 2, Fig. 3 or Fig. 11. What is different is that the third code distributer 304 which is a constituent element in the formater 34 in Fig. 3 sends the position information to show the boundary of the code row of the front block and the code row of the rear block in the compression unit to the recording circuit 4 to record together with the code data. The position information shows, for example as shown in Fig. 5, the position of the boundary which is in the third sync memory in Fig. 4 (h), that is, between A'3 and B'1 on the third sync block. In the case of Fig. 5, the boundary is in the second sync memory in Fig. 5 (g'), that is, between B1 and A'1 on the second sync block, and in this case it is enough to show that the position information is on the second sync block. The video signal reproducing apparatus of this embodiment is explained below. As compared with the sixth embodiment, the video signal reproducing apparatus of this embodiment differs in the operation of step 3 of the writing procedure of the third sync distributer 704 and the concealing action after the concealment controller 64. The composition of a detecting circuit 6 of this embodiment is shown in Fig. 16. In Fig. 16, what is different from the composition of the sixth embodiment in Fig. 13 is the concealment controller 641. The concealment controller 641, unlike the concealment controller 641, receives data also from the error correction decoder 63 and concealment memory 66, and generates the changeover signal E3 by using the position information (the position information of the m-th frame obtained from the error correction decoder 63 is P1, and the position information obtained from the concealment memory 66 is P2). Using the position information P1 and P2, the operation of the concealment is explained by referring to the data arrangement in Fig. 17. In Fig. 17, (a) shows the data arrangement of three sync blocks in a compression unit to be fed to the m-th frame concealment circuit 65, and (b) denotes the data arrangement after concealment of the m-1-th frame obtained from the concealment memory 77. Besides, (f) denotes the error signal Err (1) if only the first sync block is wrong in the data row (a), changeover signal Sw (1) and data arrangement Data (f) after concealment. Since only the first sync block is wrong, Sw (1) selects the A(m-1) obtained from the Y side concealment memory 66 during the first sync block period, and selects the X side (b) during the second sync block period. During the third sync block period, the Y side A'(m-1) is selected from the beginning to the m-th frame position information P1, and the X side B'(m) is selected from P1 to the final period. As a result, as shown in Data (1), the continuity is kept between the low frequency components and high frequency components in the divided code rows A and B such as A(m-1) and A'(m-1), or B(m) and B'(m). Besides, Err (1) shows that only the first sync block is wrong. In Fig. 17, (g) shows a signal example in which only the second sync block is wrong. Since the second sync block is wrong, Sw (2) selects B(m-1) obtained from the Y side concealment memory 77 during the second sync block period, and the X side A(m) during the first sync block period. During the third sync block period, the X side A'(m) is selected from the beginning till the position information P2 of the m-1-th frame, and the Y side B'(m-1) is selected from P2 to the final period. As a result, in Data (g), the continuity is kept between the low frequency components and high frequency components in the divided code rows A and B, such as A(m) and A'(m), or B(m-1) and B'(m-1). Besides, Err (2) indicates that only the second sync block is wrong. Thus concealed signals are distributed into signal rows A and B by the third sync distributer 704, of which writing action is explained. Of the writing procedure of the third sync distributer 704 in this embodiment, only step 3 is described, while step 1 and step 2 are exactly same as in the sixth embodiment. Step 3 After step 1, step 2, the codes from the beginning till the position information P in the third sync memory 713 are sequentially written after the specified block on the first code memory 731 up to the EOB, and the codes from the position information P in the third sync memory 713 are written sequentially after the specified block on the second code memory 732 up to the EOB. When the error Err shows that there is an error in the third sync block, the codes in the third sync memory 713 are not written into the first code memory 731 and second code memory 732. Thus, after the writing procedure step 3 of the third sync distributer 704, the code rows on the third sync block are coupled with the code rows of the first sync block or second sync block, with the priority given to the position information. Hence, in Data (f) in Fig. 17, the shaded area after A'(m-1) up to position information P1 is not coupled as the code row right after B(m) of the second sync block, and the B'(m) after the position information P1 is normally coupled instead. Besides, in Data (g), A'(m) is an interrupted code row, but it is regarded to be effective as A'(m) only up to the position indicated by position information P2, so that B'(m-1) may not be continuous to A'(m) by mistake, or that the start of B'(m-1) is not mistaken. Thus, according to this embodiment, in addition to the features of the sixth embodiment, if only the first sync block or second sync block is wrong, the screen can be composed by using also the high frequency components on the third sync block, it is not only more effective when requiring picture reproduction more corresponding to the reproducing speed than the picture quality of each frame itself as in high speed reproducing, but also very effective because the screen is reproduced also including high frequency components if there is an error in ordinary reproducing operation. In the embodiment, as the position information, if there is the boundary on the third sync block, that position is regarded as the position information, but when there is the boundary on the first sync block or second sync block, it is enough only to show that it is located on the first or second sync block. This is because the effect is great as explained above in the former case, but is not so great in the latter case because the code rows of the high frequency components after the boundary are not written continuously in one position. More specifically, if n blocks (which is half of 2n blocks in one compression unit) assigned in the first or second sync block are very small in the code quantity individually, the high frequency components assigned in the sync block are written directly right after individual n blocks. As a result, all boundaries must be recorded as the position information, and the recording data quantity becomes very large. The position information used in this embodiment is effective only by executing the concealment action in the signal state before the variable length decoding, and in the latter case, only with the information on the first or second sync block in this embodiment, coupling of subsequent code rows should be done after variable length decoding. As compared with the video signal recording apparatus and reproducing apparatus in the foregoing embodiments, an example of video signal recording apparatus and reproducing apparatus possessing more effective concealment function and particularly effective in dubbing execution is explained as an eighth embodiment. The video signal recording apparatus of the embodiment is intended to record the concealment information in each compression unit on a magnetic tape, different from the video signal recording apparatus in the preceding embodiments. The constitution is similar to that of the fourth embodiment in Fig. 12, provided with a dubbing input terminal in the compressed state. The video signal reproducing apparatus of the embodiment also possesses a dubbing output terminal same as in Fig. 12. What is different is the constituent elements relating to the concealment processing in the detecting circuit 6. An example of constitution is shown in Fig. 18. In the detecting circuit 6 in Fig. 18, as compared with the constitution in Fig. 16, a second concealing device 651 is provided in a later stage of the concealment memory 66, and the output signal of the second concealing device 651 is used as the output signal of the detecting circuit 6. A concealment controller 642 receives a signal newly obtained from the concealing device 65, and sends a second changeover signal E4 for instructing to replace the data in the later frame with the data of the present frame to the second concealing device 651. The second concealing device 65 delivers a signal obtained from the concealment memory 66 side (Z side) in the ordinary state without concealment, but when concealing with the second changeover signal E4, it delivers the signal of the input side (W side) of the concealment memory 66. That is, the concealment memory 66 operates as if delaying by one frame, and hence the Z side signal is replaced with the data one frame behind. In this constitution, the concealment action of this embodiment can select the concealment using the data of the preceding frame by the concealing device 65, and the concealment using the data of the succeeding frame by the second concealing device 651. As the function of the concealment controller 642 for determining such direction of concealment, there are many techniques, such as replacement with the data in the frame of the greater correlation small in scene change or motion, and only the concealment action effective in dubbing using the concealment information is explained below. The concealment information-in this embodiment shows concealment-free state when recording by orthogonally transforming and coding the ordinary digital video signal because it is not necessary to conceal, but the dubbing, the concealment information is updated and recorded by the concealment process in the video signal reproducing apparatus. the content of concealment information is to show whether the entire blocks in the compression unit are concealed or not, or whether the front half block in the compression unit (the block in which low frequency components are assigned to the first sync block) or the rear half block (the block in which low frequency components are assigned to the second sync block) is concealed, and whether the concealment is done by the data replacement with front frame or rear frame. The effect of adding such information for showing the concealment direction to the concealment information is explained below in all blocks of the compression unit. First, in the initial state, the data in the compression unit of the m-1-th frame, m-th frame, and m+1-th frame are supposed to be D(m-1), D(m) and D(m+1), respectively, then the frame in the compression unit may be expressed as follows: D(m-1) → D(m) → D(m+1) If an error occurs in D(m+1) in the compression unit, and it is replaced with the data of the preceding frame by the concealment of the embodiment (or the concealment in the constitution in Fig. 13 or Fig. 16), and its output signal is supposed to be recorded on other magnetic tape by dubbing. As a result, the frame arrangement in the compression unit is as follows on the magnetic tape after dubbing. D(m-1) → D(m) → D(m) However, the compression unit D(m) of the m+1-th frame is combined with the concealment information showing the concealment from the previous frame. When reproducing the magnetic tape after dubbing, it is supposed that an error occurs in the compression unit of the m-th frame. At this time, the concealment controller 642 of the embodiment also inspects the concealment information of the m+1-th frame, and therefore it is known that the compression unit of the m+1-th frame is replaced with the compression unit of the previous frame, that is, the m-th frame. Hence, the compression controller 642 conceals the compression unit of the m-th frame by using the data of the succeeding frame, that is, the data in the compression unit of the m+1-th frame. As a result, the frame arrangement in the compression unit becomes as follows D(m-1) → D(m) → D(m) and it is possible to restore exactly in the same state as the compression unit of the m-th frame is free from error. Of course, the concealment information in this compression unit of the m-th frame may be in concealment-free state. This concealment action brings about the same effects to the code rows of the front half and rear half blocks of the compression unit. According to the embodiment, as explained herein, since the error due to repeated dubbings may be concealed as if there were no error, the quality of dubbing and concealment is enhanced, and picture quality deterioration may be further effectively prevented, which is very practical. Meanwhile, in the third embodiment, in the event of an overflow, by inserting the EOB at the end of the block arrangement in the compression unit, it was intended not to record from the higher frequency components of the final block of the block arrangement in the compression unit all the time, but instead of the EOB inserting device, it is also possible to use a code word deleting device so as to delete data from the code word of the highest frequency components of each block, having a proper memory. By using such code word deleting device, the memory capacity is increased from that of the third embodiment, but it is effective because the delection of code word is not concentrated on a specific block such as the final block of the block arrangement.

Claims: A video signal recording apparatus comprising: orthogonal transformation means (2) for dividing a video signal composed of a series of pixel data into a plurality of blocks each composed of a predetermined number of pixel data and for transforming each of the plurality of blocks by orthogonal transformation to obtain a plurality of orthogonally transformed data blocks; coding means (3) for coding the plurality of orthogonal transformed data blocks by variable length coding to obtain a plurality of coded data blocks so that data quantity in a specific number of coded data blocks is constant; formatting means (35) for allocating the plurality of coded data blocks into a plurality of sync blocks each containing a sync signal, identification data and coded data blocks; and recording means (4,40) for recording the plurality of sync blocks on a recording medium, characterized in that said formatting means (35) includes: block dividing means (301) for dividing the plurality of coded data blocks into first and second groups; and block distributing means (302-306, 311-313) for allocating the coded data blocks in said first and second groups to continuous first, second and third sync blocks such that coded data in the coded data blocks in said first group are allocated to the first sync block sequentially in the order from coded data corresponding to the lowest frequency component of the video signal to coded data corresponding to higher frequency components of the video signal, coded data in the coded data blocks in said second group are allocated to the second sync block sequentially in the order from coded data corresponding to the lowest frequency component of the video signal to coded data corresponding to higher frequency components of the video signal, and the remaining coded data in said first and second groups are allocated to the third sync block, whereby coded data corresponding to lower frequency components of the video signal are distributed in the first and second sync blocks. An apparatus according to claim 1, wherein said formatting means (35) allocates the remaining coded data in said first and second groups to the third sync block sequentially in the order of the remaining coded data in said first group and the remaining coded data in said second group and, in each of said first and second groups, in the order from coded data corresponding to lower frequency components of the video signal to coded data corresponding to higher frequency components of the video signal. An apparatus according to claim 1, wherein when the data quantity of the coded data blocks in said first group is smaller than a data quantity allocatable to the first sync block and thus a vacant part remains in the first sync block, said formatting means allocates the remaining coded data in said second group sequentially first to the vacant part in the first sync block and then to the third sync block. An apparatus according to claim 1, wherein when the data quantity of the coded data blocks in said second group is smaller than a data quantity allocatable to the second sync block and thus a vacant part remains in the second sync block, said formatting means allocates the remaining coded data in said first group sequentially first to the vacant part in the second sync block and then to the third sync block. An apparatus according to claim 1, wherein said formatting means (35) produces position information indicating a position of a border of the coded data blocks in said first group and the coded data blocks in said second group allocated to the sync blocks, and inserts the position information into a part of the sync blocks. An apparatus according to claim 1, wherein said formatting means (35) produces concealment information indicating whether the coded data blocks in said first or second group have been concealed, and inserts the concealment information into a part of the sync blocks. An apparatus according to claim 1, further comprising a means (38) for inserting an end of block signal at an end of each of the coded data blocks allocated to the sync blocks. A video signal reproducing apparatus for reproducing a video signal from video signal coded data recorded on a recording medium in a form of a plurality of sync blocks, comprising: reproducing means (60) for reproducing from the recording medium the plurality of sync blocks; deformatting means (71) for allocating coded data in the plurality of sync blocks into a plurality of variable length coded data blocks; decoding means (72, 73) for decoding the plurality of variable length coded data blocks to obtain a plurality of orthogonal transformed data blocks; inverse orthogonal transformation means (73) for inverse transforming the plurality of orthogonal transformed data blocks to obtain a plurality of blocks of pixel data, characterized in the said deformatting means (71) includes: sync block distributing means (711-712, 700-704, 731, 732) for extracting from the plurality of sync blocks outputted from the reproducing means a first sync block in which coded data corresponding to lower frequency components of the video signal in coded data blocks belonging to a first group are allocated, a second sync block in which coded data corresponding to lower frequency components of the video signal in coded data blocks belonging to a second group are allocated, and a third sync block in which the remaining coded data of coded data blocks belonging to the first and second groups are allocated, and distributing the coded data blocks in the first, second and third sync blocks to a first group memory (731) and a second group memory (732) by firstly allocating coded data in each of the coded data blocks in the first sync block to the first group memory sequentially in the order from coded data corresponding to lowest frequency component of the video signal to coded data corresponding to higher frequency components of the video signal and allocating coded data in each of the coded data blocks in the second sync block to the second group memory sequentially in the order from coded data corresponding to lowest frequency component of the video signal to coded data corresponding to higher frequency components of the video signal, and then allocating coded data of the coded data blocks in the third sync block belonging to the first group to the first group memory after the coded data blocks allocated from the first sync block and coded data of the coded data blocks in the third sync block belonging to the second group to the second group memory after the coded data blocks allocated from the second sync block, whereby a first group of variable length coded data blocks and a second group of variable length coded data blocks are obtained in the first and second group memories, respectively; and block combining means (705) for combing the first and second groups of variable length coded data blocks in the first and second group memories to obtain the plurality of variable length coded data blocks. An apparatus according to claim 8, wherein when the first sync block contains coded data of a coded data block belonging to the second group, said deformatting means allocates to the second group memory the coded data of the coded block belonging to the second group in the first sync block after the coded data blocks allocated from the second sync block before allocating the coded data in the third sync block. An apparatus according to claim 8, wherein when the second sync block contains coded data of a coded data block belonging to the first group, said deformatting means allocates to the first group memory the coded data of the coded data block belonging to the first group in the second sync block after the coded data blocks allocated from the first sync block before allocating the coded data in the third sync block. An apparatus according to any of claims 8 to 10, further comprising concealing means (64-66) for concealing an error block containing an uncorrectable error by replacing the error block with another block containing no errors. An apparatus according to claim 11, wherein, when one of the first and second sync blocks contains the error block, said concealing means (64-66) conceals one entire sync block of the first and second sync blocks which contains the error block. An apparatus according to claim 11, wherein, when one of the first and second sync blocks contains the error block, said concealing means (64-66) conceals only the error sync block. An apparatus according to claim 11, wherein, when the third sync block contains the error block, said concealing means (64-66) does not conceal the error block.

Inventors: JURI TATSURO, NISHINO MASAKAZU, OHTAKA HIDEKI, JURI, TATSURO, NISHINO, MASAKAZU, OHTAKA, HIDEKI
Applicants: MATSUSHITA ELECTRIC IND CO LTD, MATSUSHITA ELECTRIC INDUSTRIAL CO., LTD.
Application year: 1991
Main classification: H04N5
IPC codes: H04N5