1. Field of the Invention
The present invention relates to a digital video apparatus and related method for generating index information, and more particularly, to a digital video apparatus and related method for generating index information indicative of a mapping relationship between recorded time and recorded position of a live media stream.
2. Description of the Prior Art
For live-media applications, such as digital TV broadcasting, saving live content into local storage and allowing users to view it later can bring great benefit compared with traditional TV viewing experiences. This is so-called time-shift or live pause features. However, some media data format, such as MPEG transport stream, lacks index information, which defines a mapping relationship between recorded time and recorded position of the media data within the local storage. As a result, when the users play the delayed content from the local storage, it's very difficult to implement time-accurate navigation operations. For example, if the users like to jump from the current playback position to exactly 30 seconds in the future, the conventional video playback apparatus can't decide where to read next when the index information is absent.
Furthermore, most live media sources provide multiple viewable media streams simultaneously, such as a plurality of DTV channels, so the users might toggle between different media streams from time to time while recording is in progress. However, for some media data format, it is not guaranteed that the concatenation of media data from different media streams can be played from start to end without significant interruptions. In a worst case, the video display quality is degraded greatly when several seconds of interruption is perceivable by the user.
It is one of the objectives of the claimed invention to provide a digital video apparatus for generating index information and related method to solve the abovementioned problems.
According to an exemplary embodiment of the present invention, a digital video apparatus is provided for generating index information. The digital video apparatus includes a media receiver, a first storage device, and an index information generating module. The media receiver is used for receiving a media stream. The first storage device is coupled to the media receiver for storing the media stream received by the media receiver. The index information generating module is coupled to the media receiver for sequentially indexing the media stream to generate index information. The index information comprises a mapping relationship between recorded time and recorded position of the media stream stored in the first storage device. The digital video apparatus is a digital television (DTV), an analog TV with digital encoder, an internet protocol television (IPTV), a personal video recorder (PVR), or a digital set-top box.
According to another exemplary embodiment of the present invention, a method is provided for generating index information. The method includes receiving a media stream, storing the media stream, and sequentially indexing the media stream to generate index information. The index information comprises a mapping relationship between recorded time and recorded position of the media stream stored in the first storage device.
These and other objectives of the present invention will no doubt become obvious to those of ordinary skill in the art after reading the following detailed description of the preferred embodiment that is illustrated in the various figures and drawings.
Please refer to
Please note that, the abovementioned first storage device 120 can be a hard disc, but the scope of the present invention is not limited to this embodiment and the first storage device 120 can be implemented using storage devices of other types.
Please note that again, the above mentioned media stream includes data such as an audio-video stream transmitted from network or TV broadcasting signals, etc., but those skilled in the art should know that this is not a limitation of the present invention. That is, the digital video apparatus 100 of the present invention does not limit the source of the media stream. In addition, the digital video apparatus 100 comprises a digital television (DTV), an analog TV with digital encoder, an internet protocol television (IPTV), a personal video recorder (PVR), or a digital set-top box, but is not limited to this only and can be digital video apparatuses of other types.
In this embodiment, the index information includes a mapping relationship between recorded time and recorded position of the media stream stored in the first storage device 120, but this should not be a limitation of the present invention. As one skilled in the art will readily appreciate, the index information may further record other information.
In the following, further descriptions for the architecture and operations of the index information generating module 130 are detailed as below. Please refer to
This approach above demands more computation power or dedicated hardware support since some manipulations are performed on considerably large amount of data during the processing stages of the de-multiplexing unit 220 and the bit-stream parsing unit 240. Therefore, a simple but effective approach is used to save burdens of de-multiplexing/parsing the media stream. Please refer to
The abovementioned embodiments are presented merely for describing features of the present invention, and in no way should be considered to be limitations of the scope of the present invention. Those skilled in the art should observe that various modifications and alterations of the index information generating module 130 and the digital video apparatus 100 may be made.
In order to provide much more functions to the record and playback of the digital video apparatus, the index information generated above should be stored in somewhere accessible. Please refer to
Please note that, the abovementioned second storage device 420 can be a random access memory (RAM), but is not limited to this only and can be implemented using storage devices of other types.
In this embodiment, the playback function above can include, for example, play, pause, instant replay, rewind, seeking, fast forward, or commercial skip (CS), but this is not a limitation of the present invention. Furthermore, as operations of aforementioned playback functions are well known to those skilled in the art, further description is omitted here for brevity.
As abovementioned, most live media sources provide multiple viewable media streams simultaneously, such as a plurality of DTV channels or a mix of DTV channels and Analog TV channels coupled with digital encoder. Each viewable media stream may have completely different characteristics, for example, de-multiplexing parameters or encoding formats. Thus, when playing across the boundary of media streams of different characteristics, the digital video apparatus may completely stop functioning or take a lot of time to recover. This is to say, several seconds of interruption will occur. In order to prevent this situation from happening, to store state information of the media stream during recording of the media stream is necessary, wherein the state information includes de-multiplexing parameters or encoding formats, etc.
Please refer to
Please note that, the abovementioned state information 500 is merely an embodiment for describing features of the present invention, and in no way should be considered to be limitations of the scope of the present invention. Those skilled in the art should observe that various modifications and alterations of the state information 500 may be made.
Please refer to
In a first example, the index information is compressed through reducing entry storage fields of the index information by the compressing unit 632. Please refer to
In a second example, the index information is compressed through lowering accuracy of the index information by the compressing unit 632. As shown in 7A and 7B, each row of the index information uses byte as a unit to store the media data position. Actually, the media data position doesn't need a resolution like this. It would be accurate enough to the users even if a unit as large as 64K bytes is adopted. If a larger unit is adopted, the number stored in the media data position field will be smaller. As a result, it takes fewer bits to store the media data position field.
In a third example, the index information is compressed through replacing absolute positions with relative positions by the compressing unit 632. Please refer to
Please note that, the abovementioned embodiments are presented merely for describing features of the present invention, and in no way should be considered to be limitations of the scope of the present invention. Those skilled in the art should observe that various modifications of the way the compressing unit 632 compresses the index information may be made.
Please refer to
Step 802: Receive a media stream.
Step 804: Store the media stream.
Step 806: Sequentially index the media stream to generate index information.
Step 808: Store the index information.
Step 810: Perform a playback function according to the media stream and the index information.
In the following description, how each element operates is described by collocating the steps shown in
Of course, the abovementioned method is merely an exemplary embodiment of the present invention. In other embodiments, more functions are designated into the flow to provide the digital video apparatus 400 with more choices. Please refer to
Step 802: Receive a media stream.
Step 804: Store the media stream.
Step 806: Sequentially index the media stream to generate index information.
Step 910: Compress the index information.
Step 808: Store the index information.
Step 810: Perform a playback function according to the media stream and the index information.
Step 920: Store state information of the media stream during recording of the media stream.
The steps shown in
Provided that substantially the same result is achieved, the steps of the method shown in
The abovementioned embodiments are presented merely for describing the present invention, and in no way should be considered to be limitations of the scope of the present invention. The abovementioned first storage device 120 can be a hard disc, but is not limited to this only and can be storage devices of other types. The abovementioned second storage device 420 can be a random access memory (RAM), but is not limited to this only and can be storage devices of other types. Please note that, the digital video apparatus of the present invention does not limit the source of the media stream. In addition, the digital video apparatus can include a digital television (DTV), an analog TV with digital encoder, an internet protocol television (IPTV), a personal video recorder (PVR), or a digital set-top box, but is not limited to this only and can be digital video apparatuses of other types. In the embodiments above, the index information includes a mapping relationship between recorded time and recorded position of the media stream stored in the first storage device 120, but this should not be a limitation of the present invention. As one skilled in the art will readily appreciate, the index information may further record other information. Furthermore, the playback function above can include, for example, play, pause, instant replay, rewind, seeking, fast forward, or commercial skip (CS), but this is not a limitation of the present invention. Of course, the abovementioned embodiments are presented merely for describing features of the present invention, and in no way should be considered to be limitations of the scope of the present invention. In other embodiments, more functions are designated into the digital video apparatus. For example, a compressing function or a solution for multiple media streams of different characteristics can be added into the digital video apparatus and the method of the present invention. Those skilled in the art should observe that various modifications of the compressing unit, the index information generating module, and the digital video apparatus may be made. Furthermore, the steps of the method shown in
In summary, the present invention provides a digital video apparatus and related method for generating index information. Through generating and sharing the index information along with storing the media stream, the digital video apparatus of the present invention can implement time-accurate navigation operations when playing the delayed content from the local storage. Furthermore, through storing the state information of the media stream during recording of the media stream, the digital video apparatus is able to play across the boundary of media streams of different characteristics and different sources smoothly. Therefore, the digital video apparatus can prevent the situation of stopping functioning or interruptions from happening. In addition, through compressing the index information according to a specific compressing manner, the storage size for storing the index information can be reduced effectively and thereby manufacture cost of the digital video apparatus can be further lowered.
Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention.