Apparatus and method for converting a compressed video stream with preview of converted stream
An apparatus by which a user can easily set a parameter for conversion when a compression encoding system of video stream is converted is provided. A particular period in a first video stream is repeatedly reproduced to convert the reproduced portion into a second video stream in real time. At that time, the user checks the image quality after conversion on a preview screen and sets a desired conversion parameter. A local decode image is output to the preview screen. Thus, the circuit configuration is simplified.
This is a continuation application of U.S. patent application Ser. No. 10/441,012, filed on May 20, 2003, now allowed, the contents of which are incorporated herein by reference.
BACKGROUND OF THE INVENTION1. Field of the Invention
The present invention relates to an apparatus for converting an encoding system of video stream or video transcoder, a method therefor, and a video recording/reproducing device using the above apparatus.
2. Description of the Related Art
Technologies for digitizing image information and compression encoding by an MPEG video compression technology to store on a storage medium or to transmit through a communication medium have been used for various types of equipment. Such examples are a DVD recording/reproducing device using an MPEG-2 Video (ISO/IEC13818-2) system, communications between portable terminals using an MPEG-4 Video (ISO/IEC14496-2) system, and the like. Because the compression systems are different depending on uses, each device needs to convert data between different compression encoding systems.
To meet the above necessity, there is a device for transcoding the video stream compression coded by the MPEG-2 method into another compression encoding system. At that time, a user desires to check the image quality of the transcoded stream to select a compression parameter for transcoding. And, a technology therefor has been proposed (e.g., refer to JP-A-2001-36844).
SUMMARY OF THE INVENTIONJP-A-2001-36844 discloses to output the stream before transcoding and the stream after transcoding simultaneously, decodes them and outputs the decoded images at the same time. The user checks the images for a difference in image quality between them to select desired image quality. Such a system reproduces the entire stream before the conversion and also operates to check the image quality of the converted stream. Therefore, it is hard to set the image quality of a short stream portion in detail. For example, when the image quality of a relatively short stream such as moving image mail is to be determined, reproduction of the relevant portion ends so soon that it is difficult to conduct the setting work.
There is also a demand for falling of a transmission time of the converted video stream within a designated value when the converted data is sent through a network. There is also a demand for adjustment of a frame rate and an amount of codes allotted to the frame as the image quality of each frame. When a bit rate is fixed, the frame rate and the allotted code amount of each frame are in a contrary relationship, so that they must be set while being kept in balance. Users have demanded to make such detail setting interactively. But, the JP-A-2001-36844 has not fully considered such ease of use.
In view of the situations described above, the present invention provides a video transcoder by which a user can easily set a parameter at the time of conversion, a method for video transcoder, and a video recording/reproducing device using it.
To achieve the object, the apparatus according to an aspect of the present invention comprises a reproducer means reproducing a first video stream recorded on a storage medium; a stream converter converting the reproduced first video stream into a second video stream; a conversion period designation means designating a conversion period in the first video stream; a stream output unit outputting the converted second video stream; and a preview output unit outputting an image corresponding to a decoded image of the converted second video stream to a display device. The above stream output unit outputs the second video stream for a period designated by the conversion period designator.
Especially, the reproducer repeatedly reproduces the first video stream for the period designated by the conversion period designator, and the preview output unit repeatedly outputs an image corresponding to the decoded image of the period designated by the conversion period designator.
The apparatus according to another aspect of the present invention comprises a stream converter converting the first video stream into the second video stream; a stream output unit outputting the converted second video stream; and a preview output unit outputting an image corresponding to a decoded image of the converted second video stream to a display device. The stream converter generates a local decode image of the second video stream for frame-to-frame motion compensation; and the preview output unit outputs a local decode image generated by the stream converter as an image corresponding to the decoded image of the second video stream.
The apparatus according to the other aspect of the present invention further comprises a parameter setting unit setting a parameter related to the conversion by the stream converter, wherein the stream output unit starts outputting the second video stream after setting of a parameter of the stream converter by the parameter setting unit.
Accordingly, the user can readily set a parameter at the time of conversion by checking the preview screen.
These and other objects, features and advantages of the present invention will become more readily apparent from the following detailed description when taken in conjunction with the accompanying drawings.
When the reproduction is instructed by the user IF 109, the MPEG2 video stream recorded in the medium 100 has a prescribed stream portion reproduced from the medium 100. The reproduced video stream is sent to an MPEG2 decoder 102 through the medium IF 101. The video stream decoded here has generally an NTSC size image, and its effective pixel area has a resolution of approximately 704 (horizontal)×480 (vertical) per frame. At the time of normal reproduction, the image is output with the above size to an outside display or the like.
Conversion of the reproduced MPEG2 stream into the MPEG4 stream will be described. A scaler 103 for resolution conversion scales down the decode image of MPEG2 having the NTSC size to a resolution (e.g., approximately QCIF (176×144)) to be handled in MPEG4 and sends to an MPEG4 encoder 104. The MPEG4 encoder 104 MPEG4-encodes the sent image and outputs to the outside from an output terminal 105.
At that time, the MPEG4 encoder 104 stores the same image data as that when each frame was decoded in a local decode frame memory 106 in order to calculate motion compensation between the frames in the encoding process. Specifically, the image data stored in this local decode frame memory 106 corresponds to an image which is actually obtained when the video stream MPEG4-encoded and output to the outside from the output terminal 105 is decoded later. In this embodiment, the image data stored in the local decode frame memory 106 is used as image data for preview. A display circuit 107 reads the image data in display order from the local decode frame memory 106 and outputs it as a picture signal to the display device from an output terminal 108. The user can observe the preview image shown on the display device to check the image quality of the converted video stream to be output from the output terminal 105 to the outside.
In this embodiment, a local decode image produced in the process of encoding is used to generate the preview screen, so that it is not necessary to include another decode circuit. It has an advantage that the circuit can be made small in size. In comparison with the case where the output stream is redecoded to form the preview screen, it also has an advantage that a response time from the setting by the user to the output of an image reflecting the setting becomes short, and feedback becomes quick.
The display device has been described to be connected to the outside but may be included in the main apparatus.
The generation of the local decode image described above will be described in detail with reference to
By configuring as described above, a decode image with the parameters being set is displayed in real time when the video stream is converted, so that the result can be obtained immediately. The user can check the results of the parameters set by the user to interactively set the parameters to provide a desired image, and ease of use is improved.
When the user IF 109 is operated to decide and select a conversion parameter, the converted MPEG4 video stream is output from the terminal 105 according to the selected conditions. The parameters of such conditions are stored in a storage section provided in the system controller 110. At the subsequent generation of the MPEG4 video scream, the system controller 110 controls the MPEG4 encoder 104 to encode according to the stored parameters.
By configuring as described above, the user can check by repeatedly watching the screen encoded according to the parameters determined by the user. In other words, checking of the same design facilitates detail comparison with attention paid to a given image or a given parameter. And, for example, when the motion as a design or a pattern of the object is very small, the image quality tends to deteriorate at the time of MPEG4 encoding. Even in such a case, adjustment of the parameter by repeatedly reproducing allows to maintain the image quality of a portion, whose image quality is easily disturbed, up to a level designated by the user. Accordingly, the adjustment can be made according to the desire of the user to have the frame rate sacrificed to some extent. Especially, when a stream of a short time such as motion picture mail is generated, the parameter adjustment can be continued without stopping the preview by repeatedly reproducing. Meanwhile, the stream is not output from the terminal 105 to the outside but output after the decision with the preview, so that unnecessary data being adjusted is prevented from being received by the outside device.
For example, when MPEG2 video stream once recorded on a DVD is sent as MPEG4 video stream to another device according to this embodiment, a combination of the frame rate and the image quality most desired by the user in the bit rate at the time of transmission can be previously determined on the preview screen and sent.
When the scaler 103 is controlled according to the designated resolution by the user IF 109 to change the resolution of the MPEG4 stream to be output, the user can interactively set on the preview screen. Besides, when a total size of streams to be output is limited, it can be output from the terminal 105 after a total bit amount at the time of setting is calculated on the preview screen and checked by the user whether the limit is met.
Specifically, it can be implemented by the display circuit 107 of
Such a configuration is effective when importance is attached to not the frame rate but to the image quality of each of the respective images, and a change in image quality against the parameter change can be detected with higher reliability by decoding and outputting a particular image. And, the parameter can be adjusted without seeing the afterimages of other frames. For example, it is particularly effective when detail resolution is important for a surveillance system or the like.
This embodiment is effective when the MPEG2 stream recorded on the first medium 100 is converted into the MPEG4 video stream and backed up on the second medium 210. To generate a decode screen at the time of previewing, a decode image may be read from the local decode frame memory 106 and output to the preview screen via the display circuit 202 in the same way as in the first embodiment.
Based on the parameter sent from the PC 300, the MPEG4 stream is changed and output to the PC 300, so that the stream conversion to the user's desired image quality can be made. In this embodiment, the conversion parameter setting can be changed by a remote control because the video recording/reproducing device is separated from the outside device (PC) which sets a parameter for conversion. And, the device configuration can be simplified because the main body does not have an MPEG4 decode display circuit therein.
In the above-described embodiments, the change of video stream from MPEG2 to MPEG4 was described, but the present invention can also be applied to an image compression encoding in general. It is apparent that the present invention is also effective when used for other image encoding systems, for example, H.263 and JPEG. It is also effective to change a frame rate and a bit rate in the stream conversion between the same encoding systems. For the preview screen configuration, even when another screen configuration is used, the same effects can be obtained by a screen having a configuration based on a combination of the preview image and the adjustment parameter. Besides, the storage medium is not particularly limited, and an optical disk, a magnetic disk, an IC memory, or the like can be used.
According to the present invention, the ease-of-use at the time of conversion of a captured image or the like to the user's desired image quality is improved.
The invention may be embodied in other specific forms without departing from the spirit or essential characteristics thereof. The present embodiment is therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the forgoing description and range of equivalency of the claims are therefore intended to be embraced therein.
Claims
1. An apparatus for converting an encoding system of video stream which converts a first video stream recorded on a storage medium by a first compression encoding system into a second video stream using a second compression encoding system, comprising:
- a reproducer reproducing the first video stream recorded on the storage medium;
- a stream converter converting the reproduced first video stream into the second video stream;
- a conversion period designator designating a conversion period in the first video stream;
- a stream output unit outputting the converted second video stream; and
- a preview output unit outputting an image corresponding to a decoded image of the converted second video stream to a display device;
- said stream output unit outputting the second video stream for a period designated by the conversion period designator.
Type: Application
Filed: Jan 29, 2008
Publication Date: Aug 28, 2008
Inventors: Hironori Komi (Tokyo), Yusuke Yatabe (Yokohama), Masaru Takahashi (Yokohama)
Application Number: 12/010,686
International Classification: H04B 1/66 (20060101);