1. Field of the Invention
The invention relates to a file format conversion system and method thereof and, more particularly, to a file format conversion system and method thereof capable of automatically and dynamically converting file formats for an electronic device even though device information of the electronic device is unknown.
2. Description of the Prior Art
As technology advances, various electronic devices including personal digital assistant (PDA), mobile phone, digital photo frame, and so on are capable of browsing multimedia files, such as video, audio, text, or image files stored at a Uniform Resource Locator (URL) through Internet. These multimedia files usually have more than one file format. For example, video files may be formatted as WMV, AVI, MPEG (e.g. MPEG-1, MPEG-2, MPEG-4, MPEG-7, and MJPEG), DivX, Apple QuickTime, etc., and image files may be formatted as GIF, JPEG, BMP, TIFF, FlashPix, etc. Unfortunately, most of the electronic devices have limited computing capability due to light weight and small size, so not all of the file formats can be supported by each electronic device. If a user uses an electronic device to browse a URL associated with a JPEG image file and the electronic device only supports a GIF image file, the JPEG image file will not be shown.
Therefore, some prior arts have been developed to convert file format automatically while the file format is not supported by the electronic device. However, in these prior arts, it is necessary to install a database with device information in advance. If the device information of one specific electronic device does not be stored in the database, the prior arts cannot recognize the electronic device and cannot know which file format can or cannot be supported by the electronic device. Consequently, some multimedia files not supported by the electronic device still will not be shown. It is very inconvenient for the user.
An objective of the invention is to provide a file format conversion system and method thereof capable of automatically and dynamically converting file formats for an electronic device even though device information of the electronic device is unknown.
According to one embodiment, a file format conversion system of the invention comprises a web server, a service providing server and an electronic device. The web server provides a first Uniform Resource Locator (URL) associated with a first file. The electronic device sends a request of the first URL to the service providing server. The service providing server analyzes the first URL from the web server based on the request, generates a first list, which records file formats stored at the first URL, and sends the first list to the electronic device. The electronic device separates the first list into a second list, which records file formats supported by the electronic device, and a third list, which records file formats not supported by the electronic device, and sends the second and third lists to the service providing server. After receiving the second and third lists, the service providing server updates two databases inside. The service providing server converts the first file, which is formatted as one of the file formats recorded in the third list, into a second file, which is formatted as one of the file formats recorded in the second list, generates a second URL associated with the second file, and sends the second URL to the electronic device. Accordingly, the second URL associated with the second file can be browsed on the electronic device.
According to another embodiment, a file format conversion method of the invention comprises steps of: receiving a request of a first URL from an electronic device, wherein the first URL is associated with a first file; analyzing the first URL based on the request; generating a first list, which records file formats stored at the first URL; sending the first list to the electronic device; receiving a second list, which records file formats supported by the electronic device, and a third list, which records file formats not supported by the electronic device, from the electronic device, wherein the second and third lists are generated by the electronic device based on the first list; converting the first file, which is formatted as one of the file formats recorded in the third list, into a second file, which is formatted as one of the file formats recorded in the second list; generating a second URL associated with the second file; and sending the second URL to the electronic device. Accordingly, the second URL associated with the second file can be browsed on the electronic 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.
Referring to
Referring to
If a user wants to utilize the electronic device 14 to browse the first URL 100, he or she has to operate the electronic device 14 to send a request of the first URL 100 to the service providing server 12. It should be noted that when sending the request, the electronic device 14 may further send device information thereof to the service providing server 12. When the parser 120 receives the request of the first URL 100 and the device information from the electronic device 14, the service providing server 12 will look the device information up in the first database 126 to determine whether file formats supported by the electronic device 14 have been stored, and the analyzer 121 will analyze the first URL 100 from the web server 10 based on the request and generate a first list L1, which records file formats stored at the first URL 100.
If the file formats supported by the electronic device 14 have been stored in the first database 126, the transcoder 124 will convert the first file 102 into a second file 106, which is formatted as one of the file formats recorded in the first database 126 and supported by the electronic device 14. For example, if the first file 102 is an MPEG file and the file formats supported by the electronic device 14 and stored in the first database 126 are WMV and AVI, the transcoder 124 may convert the first file 102 into the second file 106, which is formatted as WMV. Afterward, the synthesizer 125 will generate a second URL 104 associated with the second file 106 and send the second URL 104 to the electronic device 14 via the transceiver 122. Consequently, the user can utilize the electronic device 14 to browse the second URL 104 with the second file 106.
On the other hand, if the file formats supported by the electronic device 14 does not be stored in the first database 126 yet, after analyzing the first URL 100 from the web server 10 based on the request and generating the first list L1, which records file formats stored at the first URL 100, the service providing server 12 will sends the first list L1 to the electronic device 14 via the transceiver 122. After receiving the first list L1, the electronic device 14 separates the first list L1 into a second list L2, which records file formats supported by the electronic device 14, and a third list L3, which records file formats not supported by the electronic device 14, and sends the second and third lists L2 and L3 to the service providing server 12. For example, if the first list L1 records file formats as WMV, AVI and MPEG and the file formats supported by the electronic device 14 is WMV and AVI, the second list L2 records the file formats as WMV and AVI and the third list L3 records the file format as MPEG.
After receiving the second and third lists L2 and L3 via the transceiver 122, the transcoder 124 will convert the first file 102, which is formatted as one of the file formats (e.g. MPEG) recorded in the third list L3, into the second file 106, which is formatted as one of the file formats (e.g. WMV) recorded in the second list L2. Afterward, the synthesizer 125 will generate a second URL 104 associated with the second file 106 and send the second URL 104 to the electronic device 14 via the transceiver 122. Consequently, the user can utilize the electronic device 14 to browse the second URL 104 with the second file 106.
Furthermore, the service providing server 12 will update the first database 126 with the second list L2. If a user utilizes another electronic device (not shown) with the same device information as the electronic device 14 to browse the first URL 100, the transcoder 124 can convert the first file 102 into the second file 106 based on the file formats recorded in the first database 126 directly.
Referring to
Referring to
Compared to the prior art, the invention is capable of auto-learning. That is, since the electronic device can actively separate the first list, which is generated by the service providing server based on the file formats stored at the requested URL, into the second and third lists and send the two lists to the service providing server for purpose of file format conversion, the invention is capable of automatically and dynamically converting file formats for the electronic device even though device information of the electronic device is unknown.
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.