CONTROL CIRCUIT OF MULTIMEDIA DEVICE AND DATA PROCESSING METHOD THEREOF
20170325001 ยท 2017-11-09
Inventors
Cpc classification
H04N19/15
ELECTRICITY
H04N21/44004
ELECTRICITY
International classification
Abstract
A data processing method of a multimedia device is disclosed. The multimedia device pauses playback of multimedia data in response to a pause signal. The method includes: buffering the multimedia data before the pause signal is received to obtain prerecorded multimedia data; writing the prerecorded multimedia data into a storage unit in response to the pause signal; reading the prerecorded multimedia data from the storage unit in response to a playback signal; and playing the prerecorded multimedia data.
Claims
1. A data processing method of a multimedia device, the multimedia device pausing playback of multimedia data in response to a pause signal, the method comprising: buffering the multimedia data before the pause signal is received to obtain prerecorded multimedia data; writing the prerecorded multimedia into a storage unit in response to the pause signal; reading the prerecorded multimedia data from the storage unit in response to a playback signal; and playing the prerecorded multimedia data.
2. The method according to claim 1, wherein the step of playing the prerecorded multimedia data comprises: searching the prerecorded multimedia data for a target frame according to a decoding order of the multimedia data; and playing the prerecorded multimedia data from the target frame as a starting point.
3. The method according to claim 2, wherein the multimedia frame is a frame that is currently being decoded when the multimedia device receives the pause signal.
4. The method according to claim 2, the multimedia device comprising a video decoder that searches for the target frame, the method further comprising: recording a decoding state of the video decoder in response to the pause signal; wherein, the step of paying the prerecorded multimedia data further comprises: determining whether to reactivate the video decoder according to the decoding state.
5. The method according to claim 4, wherein the step of playing the prerecorded multimedia data further comprises: when it is determined not to reactivate the video decoder in the step of determining whether to reactivate the video decoder according to the decoding state, determining a search time according to a data amount and format of the prerecorded multimedia data; and when the video decoder does not find the target frame after the search time ends, controlling the video decoder to stop searching for the target frame and decoding the prerecorded multimedia data.
6. The method according to claim 4, wherein the multimedia device further comprises an audio decoder, and the step of playing the prerecorded multimedia data further comprises: when it is determined not to reactivate the video decoder in the step of determining whether to reactivate the video decoder according to the decoding state, controlling the audio decoder to suspend a decoding process; and when the video decoder finds the target frame, controlling the audio decoder to decode the prerecorded multimedia data.
7. The method according to claim 1, the multimedia device comprising a video decoder and a frame buffer unit, the method further comprising: controlling the video decoder to write a previous frame of a frame currently being decoded into the frame buffer unit in response to the pause signal; wherein, the frame currently being decoded is a frame that the video decoder is currently decoding when the multimedia device receives the pause signal.
8. A control circuit of a multimedia device, the multimedia device pausing playback of multimedia data in response to a pause signal, the control circuit comprising: a transport stream processing unit, parsing a multimedia signal to generate the multimedia data; and a control unit, performing operations of: buffering the multimedia data before the pause signal is received to obtain prerecorded multimedia data; writing the prerecorded multimedia into a storage unit in response to the pause signal; reading the prerecorded multimedia data from the storage unit in response to a playback signal; and playing the prerecorded multimedia data.
9. The control circuit according to claim 8, further comprising: a video decoder, coupled to the transport stream processing unit; wherein the control unit further performs operations of: searching the prerecorded multimedia data for a target frame according to a decoding order of the multimedia data; and playing the prerecorded multimedia data from the target frame as a starting point.
10. The control circuit according to claim 9, wherein the multimedia frame is a frame that is currently being decoded when the multimedia device receives the pause signal.
11. The control circuit according to claim 9, wherein the control unit further performs operations of: recording a decoding state of the video decoder in response to the pause signal; and determining whether to reactivate the video decoder according to the decoding state when the prerecorded multimedia data is played.
12. The control circuit according to claim 11, wherein the control unit further performs operations of: when it is determined not to reactivate the video decoder, determining a search time according to a data amount and format of the prerecorded multimedia data; and when the video decoder does not find the target frame after the search time ends, controlling the video decoder to stop searching for the target frame and decoding the prerecorded multimedia data.
13. The control circuit according to claim 11, further comprising: an audio decoder, coupled to the video decoder; wherein, the control unit further comprises operations of: when it is determined not to reactivate the video decoder, controlling the audio decoder to suspend a decoding process; and when the video decoder finds the target frame, controlling the audio decoder to decode the prerecorded multimedia data.
14. The control circuit according to claim 8, wherein the multimedia device further comprises a frame buffer unit that stores image data to be played, and the control circuit further comprises: a video decoder; and the control unit further performs operations of: controlling the video decoder to write a previous frame of a frame currently being decoded into the frame buffer unit in response to the pause signal; wherein, the frame currently being decoded is a frame that the video decoder is currently decoding when the multimedia device receives the pause signal.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0011]
[0012]
[0013]
[0014]
DETAILED DESCRIPTION OF THE INVENTION
[0015] This application discloses a control circuit of a multimedia device and a data processing method thereof capable of preventing a black screen to enhance user experiences. In possible implementation, one person skilled in the art can choose equivalent elements or steps to realize the present invention based on the disclosure of the application. That is, the implementation of the present invention is not limited to the non-limiting embodiments below.
[0016]
[0017] Referring to
[0018] In the multimedia device and the data processing method according to embodiments of the present invention, since the multimedia data has already been stored before the pause signal is received, the multimedia data corresponding to the frame (to be referred to as a target frame) that the video decoding unit 225 is currently decoding at the time when the pause signal is received is in fact stored in advance (i.e., included in the abovementioned prerecorded multimedia data). Thus, when the prerecorded multimedia data is played in step S380, the playback may be resumed from the target frame, hence eliminating the issue of lost frames or black screen as in the conventional technology.
[0019] In step S330, if the multimedia buffer unit 230 is fully written, the newly generated multimedia data overwrites the oldest multimedia data. It should be noted that, in different embodiments, given the storage capacity of the multimedia buffer unit 230 is large enough, the storage unit 240 may be omitted from the multimedia device 200, and the prerecorded multimedia data may be entirely stored in the multimedia buffer unit 230. When the playback is later resumed, the control unit 229 reads the prerecorded multimedia data from the multimedia buffer unit 230. In the above scenario, step S360 may be correspondingly omitted.
[0020]
[0021] Next, the control unit 229 controls the video decoding unit 225 to search the prerecorded multimedia for the target frame (step S435). The video decoding unit 225 searches for the target frame according to a decoding order of the frames, and the decoding order may be learned from the PTS or POC of the frames. In steps S440, S445 and S450, the control unit 229 continues monitoring whether the video decoding unit 225 finds the target frame within the predetermined time. More specifically, the video decoding unit 225 decodes the prerecorded multimedia data, and the target frame is found if the PTS and POC or the decoded frame are identical to the PTS and POC recorded in step S350. When the video decoding unit 225 finds the target frame within the predetermined time (when the determination result of step S440 is affirmative), the video decoding unit 225 sends a signal to notify the control unit 229, which then controls the audio decoding unit 227 to reactivate (step S455), and controls the video decoding unit 225 and the audio decoding unit 227 to discard the multimedia data earlier than the target frame and start decoding the multimedia data from the target frame as the starting point (step S460). When the multimedia data that has been decoded achieves video and audio synchronization (step S465), the multimedia data can then be played (step S470).
[0022] On the other hand, if the video decoding unit 225 fails to find the target frame within the predetermined time (the determination result of step S445 is negative), the control unit 229 controls the video decoding unit to stop searching for the target frame (step S450), followed by similarly performing steps S455 to S470. However, playback cannot be resumed in continuation from the target frame. Even though seamless playback cannot be achieved, having already stored in advance the multimedia data before the pause signal is received, the present invention still provides preferred user experiences as opposed to conventional technologies.
[0023] For example, the data signal may be various types of live stream signals, e.g., live digital television signals, live analog television signals and Internet live signals.
[0024] One person skilled in the art can understand implementation details and variations of the method of the present invention in