This Application claims priority of Taiwan Patent Application No. 102121286, filed on Jun. 17, 2013, the entirety of which is incorporated by reference herein.
1. Field of the Invention
The present invention relates to video processing, and in particular, to a video codec system and video stream transmission method without re-transmitting an I-picture while packet loss occurs during video transmission.
2. Description of the Related Art
In video codec standards, there are three image formats: I-picture, P-picture, and B-picture. An I-picture can be decoded without reference to other images. Meanwhile, a P-picture and a B-picture can only be decoded with reference to other images (e.g. previous I-picture or P-picture). When there is packet loss of a video bitstream corresponding to an image during transmission, other images, which reference the image, cannot be decoded correctly. In a conventional video codec system, an instantaneous decoding refresh (IDR) image is used to overcome the aforementioned issue. However, it may take a great amount of bandwidth to transmit an IDR image over a network. Specifically, the conventional technique cannot solve the aforementioned issue effectively for video codec systems having a bad network condition.
A detailed description is given in the following embodiments with reference to the accompanying drawings.
In an exemplary embodiment, a video codec system is provided. The video codec system comprises a video encoding apparatus and a video decoding apparatus. The video encoding apparatus comprises: a first video processor configured to encode a plurality of first images to generate a video bitstream; a first memory unit configured to store the video bitstream; and a first network unit configured to transmit the video bitstream over a network. The video decoding apparatus comprises: a second network unit configured to receive the video bitstream; a second video processor configured to decode the video bitstream to generate a plurality of second images correspondingly; and a second memory unit configured to store the second images. When the second video processor detects that there is data loss of the video bitstream during transmission, the second video processor references a third image, which is the most recent completely decoded image of the plurality of second images, to perform subsequent video decoding processes, and transmits a request signal to the video encoding apparatus, so that the first video processor references a fourth image, which corresponds to the third image, of the plurality of first images, to perform subsequent video encoding processes.
In another exemplary embodiment, a video stream transmission method for use in a video codec system is provided. The video codec system comprises a video encoding apparatus and a video decoding apparatus. The method comprises: utilizing the video encoding apparatus to encode a plurality of first images to generate a video bitstream and transmit the video bitstream to the video decoding apparatus over a network; utilizing the video decoding apparatus to decode the video bitstream to generate a plurality of second images correspondingly; and when the video decoding apparatus detects that there is data loss of the video bitstream during transmission, utilizing the video decoding apparatus to reference a third image, which is the most recent completely decoded image of the plurality of second images, to perform subsequent video decoding processes and transmit a request signal to the video encoding apparatus, so that the video encoding apparatus references a fourth image, which corresponds to the third image, of the plurality of first images, to perform subsequent video encoding processes.
The present invention can be more fully understood by reading the subsequent detailed description and examples with references made to the accompanying drawings, wherein:
The following description is of the best-contemplated mode of carrying out the invention. This description is made for the purpose of illustrating the general principles of the invention and should not be taken in a limiting sense. The scope of the invention is best determined by reference to the appended claims.
In the embodiment, the video decoding apparatus 200 may comprise a video processor 220, a memory unit 230, and a network unit 250. The video decoding apparatus 200 may receive network packets of the video bitstream from the video encoding apparatus 100 through the network unit 250, and restore the received network packets to the video bitstream. Then, the video processor 220 may perform video decoding on the video bitstream, thereby obtaining the pictures in the original GOP.
In the aforementioned embodiment, the image capturing device 110 may capture images continuously, and store the captured images into the image buffer 140. The image format of the images stored in the image buffer 140 may be Motion JPEG (MJPG), but the invention is not limited thereto. In an embodiment, the image capturing device 110 can be implemented by CMOS or CCD sensors. The video processor 120 may be a central processing unit (CPU) or a digital signal processor (DSP) (i.e. software), or implemented by a specific video encoding circuit (i.e. hardware). In another embodiment, the video processor 120 may be implemented by combining a CPU or DSP with a specific video encoding circuit (i.e. by both hardware and software). Before starting the video encoding process, the video processor 120 may read the required image stored in the image buffer 140, decode the image to a corresponding raw image (e.g. may be in YUV/YCbCr 4:2:2 or 4:2:0 format), and perform a video encoding processing to the raw image. Specifically, intermediate data required in the video encoding process, raw images, and the generated video bitstream after the video encoding process can be stored in the memory unit 130. The memory unit 130 and the image buffer 140 can be implemented by a non-volatile memory (e.g. a hard disk or flash memory) or a volatile memory (e.g. SRAM or DRAM), but the invention is not limited thereto. The network unit 150 may be a transceiver capable of transmitting/receiving network packets to/from other electronic devices.
For example, as illustrated in
As illustrated in
Referring to
In the aforementioned embodiment, the one-way transmission of the video bitstream from the video encoding apparatus 100 to the video decoding apparatus 200 is described. In some embodiments, the video encoding apparatus 100 and the video decoding apparatus 200 may be both capable of performing video encoding and decoding. Specifically, the video codec system 10 may be a video conferencing system, and the video encoding apparatus 100 and the video decoding apparatus 200 may be video conferencing equipment owned by different users. Upon detection of data loss of the video bitstream during transmission, one of the video encoding apparatus 100 or the video decoding apparatus 200 may transmit a request signal to the other apparatus, so that both of the apparatuses may simultaneously reference the same image, which is the most recent completely decoded image, without re-transmitting the video bitstream of an I-picture, thereby saving the use of additional bandwidth.
In view of the above, when there is data loss of the video bitstream during transmission, it is not necessary for the video codec system and the video stream transmission method in the disclosure to re-transmit the video bitstream of an I-picture, thereby saving a great amount of bandwidth for transmitting the video bitstream of an I-picture.
While the invention has been described by way of example and in terms of the preferred embodiments, it is to be understood that the invention is not limited to the disclosed embodiments. On the contrary, it is intended to cover various modifications and similar arrangements (as would be apparent to those skilled in the art). Therefore, the scope of the appended claims should be accorded the broadest interpretation so as to encompass all such modifications and similar arrangements.
Number | Date | Country | Kind |
---|---|---|---|
102121286 | Jun 2013 | TW | national |