A media data reproduction method is implemented in an embedded system comprising a media reader, a storage device, and a converter. First, a reproduction request is received. media data is automatically copied from storage media read by the media reader to the storage device in response to the reproduction request. The converter converts the copied media data in the storage device to a new format. during conversion of the copied media data, system resources of the, embedded system occupied by modules other than the converter are detected. The workload of converting the copied media data is dynamically adjusted based on the detected system resources to ensure that system resources utilized by the converter do not exceed system resources unused by modules other than the converter.
|
8. An embedded system, comprising:
a media reader;
a music player;
a storage device;
a control module receiving a reproduction request;
a duplication module automatically copying media data from storage media read by the media reader to the storage device in response to the reproduction request;
a converter converting the copied media data in the storage device to a new format;
a resource detector detecting system resources of the embedded system occupied by one or more modules other than the converter during converting the copied media data, wherein the converter dynamically adjusts the workload of conversion based on the detected system resources to ensure that system resources utilized by the converter do not exceed system resources unused by the music player,
wherein the detected system resources correspond to a plurality of levels comprising high, middle, and low levels, when utilization information of the processor or Direct Memory Access (DMA) buffer satisfies parameters of the high level, determining that the detected system resources correspond to the high level, conversion of copied media data is suspended.
1. A media data reproduction method, implemented in an embedded system comprising a media reader, a music player, a storage device, and a converter, comprising:
receiving a reproduction request;
automatically copying media data from storage media read by the media reader to the storage device in response to the reproduction request;
converting, by the converter, the copied media data in the storage device to a new format;
detecting system resources of the embedded system occupied by one or more modules other than the converter during conversion; and
dynamically adjusting the workload of conversion based on the detected system resources to ensure that system resources utilized by the converter do not exceed system resources unused by the music player, wherein the detected system resources correspond to a plurality of levels comprising high, middle, and low levels, further comprising:
when utilization information of the processor or Direct Memory Access (DMA) buffer satisfies parameters of the high level, determining that the detected system resources correspond to the high level, conversion of copied media data is suspended.
3. The method as claimed in
4. The method as claimed in
5. The method as claimed in
6. The method as claimed in
7. The method as claimed in
10. The system as claimed in
11. The system as claimed in
12. The system as claimed in
13. The system as claimed in
15. The method as claimed in
16. The method as claimed in
when the detected system resources do not satisfy the parameters of the high and middle levels, determining that the detected system resources correspond to the low level, the conversion at the highest workload utilizing maximum DMA buffer is performed.
17. The system as claimed in
18. The system as claimed in
|
The invention relates to computer techniques, and in particular, to media data format conversion.
Popular music players presently can play Windows Media Audio (wma), Moving Pictures Experts Group Audio Layer 3 (MPEG3 or mp3) files, wave files (not compressed format) and other types. Compressed audio files or other media data are typically small in size and can be stored in a mass storage device rather than compact discs (CDs). Thus, music players implemented in embedded systems are increasingly provided with mass storage devices, such as hard disks drives.
Conversion of raw data from CD to mp3, wma files, or other compressed files is often referred to as ripping. The ripping process comprises reading, compressing, and storing compressed data, which is a time-consuming operation. Embedded systems generally have less computability and memory capacity than Personal Computers (PCs), so CD ripping on embedded systems is more time consuming and may affect music playback.
Accordingly, methods and systems of data conversion are provided. An exemplary embodiment of such a method is implemented in an embedded system comprising a media reader, a storage device, and a converter. In the method, a reproduction request is received. Media data is automatically copied from storage media, read by the media reader, to the storage device in response. The converter converts the copied media data in the storage device to a new format. During conversion, system resources of the embedded system occupied by modules other than the converter are detected. The conversion workload is dynamically adjusted based, on the detected system resources to ensure that system resources utilized by the converter do not exceed those unused by modules other than the converter. Thus, the performance of a music player of the embedded system is prevented from influencing conversion.
An exemplary embodiment of an embedded system comprises a media reader, a storage device, a control module receiving a reproduction request, a duplication module, a converter, and a resource detector. The duplication module automatically copies media data from storage media read by the media reader to the storage device in response. The converter converts the copied media data in the storage device to a new format. The resource detector detects system resources of the embedded system occupied by modules other than the converter during conversion. The converter dynamically adjusts the workload of conversion based on the detected system resources to ensure that system resources utilized by the converter do not exceed those unused by modules other than the converter. Thus, the performance of a music player of the embedded system is prevented from influencing conversion.
The invention can be more fully understood by reading the subsequent detailed description and examples with references made to the accompanying drawings, wherein:
Media data reproduction methods and embedded systems utilizing the same are provided.
A media data reproduction method is implemented in embedded system 20, which may be a jukebox, other music player, or media data playback devices. Processor 1 may be an ARM9TDMI microprocessor. Media reader 10 may be a CD drive. Storage device 9 may be a hard disk drive. Medium 11 may be a disc storing media data readable by media reader 10. Media data may comprise music data but is not limited thereto. Control module 8 comprises a control interface of embedded system 20. Duplication module 7 copies media data read by media reader 10 to storage device 9. Media player 6 plays media data. For example, media player 6 comprises a music player playing music data. The components of embedded system 20 can be implemented by computer programs or circuits.
With reference to
Control module 8 receives designation of audio files of medium 11 (step S2) and a reproduction request (step S4). Selected files may be some or all files in medium 11.
Duplication module 7 automatically copies media data from medium 11 read by media reader 10 to storage device 9 in response to the reproduction request (step S6). Whether the selected audio files are to be played is determined by the user's choice (step S7). If so, media player 6 may be automatically initiated to play the selected audio files in response to the reproduction request (step S8). If not, step S10 is performed directly.
Converter 5 converts the selected files from storage device 9 to a new format, such as mp3, wma, or other, based on the reproduction request (step S10).
During conversion, resource detector 4 detects system resources of embedded system 20 occupied by one or more running modules (comprising media player 6, duplication module 7, and control module 8) other than converter 5 during conversion (step S12), determines utilization information of the detected system resources (step S14), and transmits the utilization information to converter 5.
For example, system resources can comprise two major resources: utilization of processor 1, and the consumption rate of Direct Memory Access (DMA) buffer 3. Resource detector 4 calculates and categorizes the detected resources into levels. Table 1 illustrates three exemplary levels (the second to fourth fields in the first row) of an exemplary embodiment of an embedded system.
TABLE 1
System resource utilization level
High
Middle
Low
Processor
50%~100%
20%~50%
0%~20%
utilization
DMA buffer
DMA buffer
DMA buffer
utilization
consumption
consumption
rate < sample
rate > sample
rate
rate
When utilization information of the two major resources of embedded system 20 used by media player 6, duplication module 7, and control module 8 satisfies high level parameters, resource detector 4 determines that the system resources used by media player 6, duplication module 7, and control module 8 correspond to the high level. In other words, when processor utilization of embedded system 20 used by these modules is within 50%˜100%, or the consumption rate of DMA buffer data used by media player 6 (DMA buffer consumption rate) is less than the rate of transmission sampled by media player 6 to DMA buffer 3 (sample rate), resource detector 4 determines that the system resources used by media player 6, duplication module 7, and control module 8 correspond to the high level. Otherwise, when utilization information of the two main resources of embedded system 20 used by media player 6, duplication module 7, and control module 8 satisfies parameters of the middle level, resource detector 4 determines that the system resources used by media player 6, duplication module 7, and control module 8 correspond to the middle level.
When system resources of embedded system 20 used by media player 6, duplication module 7, and control module 8 do not satisfy parameters of the high and middle levels, resource detector 4 determines that the system resources used by media player 6, duplication module 7, and control module 8 correspond to the low level.
Converter 5 determines the utilization information of the detected system resources (step S16) and dynamically adjusts workload (such as media data amount or frames to be converted in a certain time) of conversion based on the utilization information of the detected system resources, ensuring that system resources utilized by the converter 5 do not exceed system resources unused by media player 6 duplication module 7, and control module 8. Thus, the performance of music player 6 is prevented from influencing conversion. For example, when processor utilization of media player 6, duplication module 7, and control module 8 is 20%˜50%, converter 5 maintains its processor utilization at less than 50%. Table 2 illustrates the relationships between operations of converter 5 and the detected system resources.
TABLE 2
System resource utilization level
High
Middle
Low
Operations of
Suspending
Performing
Performing
converter 5
conversion
conversion
conversion
and releasing
with proper
with highest
used DMA
workload and
workload and
buffer
utilizing
utilizing
proper size
maximum size
of DMA buffer
of DMA buffer
Converter 5 may dynamically adjust frames of media data to be converted per time unit based on the detected system resources. When the detected system resources correspond to the high level, converter 5 suspends conversion and releases used DMA buffer (step S18). When the detected system resources correspond to the middle level, converter 5 performs conversion with general workload utilizing proper DMA buffer (step S20). When the detected system resources correspond to the low level, converter 5 performs the conversion at the highest workload utilizing maximum DMA buffer (step S22).
Converter 5 determines if conversion is complete (step S24). If so, converter 5 is terminated (step S26). If not, step S12 is repeated.
The modules may be implemented by computer programs. As shown in
Thus, the media data reproduction method enables an embedded system to perform media data conversion in the background and media data duplication and playing in the foreground. Thus, media data playback is not delayed due to media data conversion.
While the invention has been described by way of example and in terms of preferred embodiment, it is to be understood that the invention is not limited thereto. To 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.
Patent | Priority | Assignee | Title |
8683007, | May 27 2010 | SMSC HOLDINGS S A R L | Seamless transfer of media streams |
9288534, | May 12 2010 | SMSC HOLDINGS S A R L | Systems and methods for operating media devices |
Patent | Priority | Assignee | Title |
5911082, | Feb 25 1997 | Audio DigitalImaging Inc. | Parallel processing building block chip |
5951633, | Dec 16 1996 | InterVoice Limited Partnership | System and method for overflow resource allocation |
6044396, | Dec 14 1995 | Time Warner Cable Enterprises LLC | Method and apparatus for utilizing the available bit rate in a constrained variable bit rate channel |
6167054, | Feb 14 1997 | Advanced Micro Devices, INC | Method and apparatus providing programmable thresholds for full-duplex flow control in a network switch |
6792468, | Oct 18 1996 | Open Invention Network, LLC | Frame-accurate transport of media data across a data network |
7110913, | Dec 23 2002 | United Services Automobile Association (USAA) | Apparatus and method for managing the performance of an electronic device |
7143128, | Jun 08 2000 | International Business Machines Corporation | Interactive data processor controlled display interface for tracking of allocated messages in a dynamic workload balancing communication system |
7145872, | Jul 26 1999 | Samsung Electronics Co., Ltd. | Method for managing system resources in network system in which digital interface is used for connection |
7181572, | Dec 02 2002 | Memjet Technology Limited | Cache updating method and apparatus |
7301906, | Dec 17 2001 | AVAGO TECHNOLOGIES GENERAL IP SINGAPORE PTE LTD | Methods and structures for improved buffer management and dynamic adaption of flow control status in high-speed communication networks |
20020116382, | |||
20020152305, | |||
20030140179, | |||
20040047354, | |||
20040153867, | |||
20050005019, | |||
20050147033, | |||
20050192975, | |||
20050234571, | |||
TW535050, |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
Jun 30 2005 | CHIN, BRIAN | Lite-On Technology Corporation | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 016797 | /0193 | |
Jul 18 2005 | Lite-On Technology Corporation | (assignment on the face of the patent) | / |
Date | Maintenance Fee Events |
Mar 03 2013 | M1551: Payment of Maintenance Fee, 4th Year, Large Entity. |
Jul 21 2017 | REM: Maintenance Fee Reminder Mailed. |
Jan 08 2018 | EXP: Patent Expired for Failure to Pay Maintenance Fees. |
Date | Maintenance Schedule |
Dec 08 2012 | 4 years fee payment window open |
Jun 08 2013 | 6 months grace period start (w surcharge) |
Dec 08 2013 | patent expiry (for year 4) |
Dec 08 2015 | 2 years to revive unintentionally abandoned end. (for year 4) |
Dec 08 2016 | 8 years fee payment window open |
Jun 08 2017 | 6 months grace period start (w surcharge) |
Dec 08 2017 | patent expiry (for year 8) |
Dec 08 2019 | 2 years to revive unintentionally abandoned end. (for year 8) |
Dec 08 2020 | 12 years fee payment window open |
Jun 08 2021 | 6 months grace period start (w surcharge) |
Dec 08 2021 | patent expiry (for year 12) |
Dec 08 2023 | 2 years to revive unintentionally abandoned end. (for year 12) |