[go: up one dir, main page]

TWI688268B - Multimedia file management method, terminal device, server device and file management system - Google Patents

Multimedia file management method, terminal device, server device and file management system Download PDF

Info

Publication number
TWI688268B
TWI688268B TW107119058A TW107119058A TWI688268B TW I688268 B TWI688268 B TW I688268B TW 107119058 A TW107119058 A TW 107119058A TW 107119058 A TW107119058 A TW 107119058A TW I688268 B TWI688268 B TW I688268B
Authority
TW
Taiwan
Prior art keywords
time information
multimedia file
file
multimedia
decoding time
Prior art date
Application number
TW107119058A
Other languages
Chinese (zh)
Other versions
TW202005405A (en
Inventor
蔡景昇
Original Assignee
宏碁股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 宏碁股份有限公司 filed Critical 宏碁股份有限公司
Priority to TW107119058A priority Critical patent/TWI688268B/en
Publication of TW202005405A publication Critical patent/TW202005405A/en
Application granted granted Critical
Publication of TWI688268B publication Critical patent/TWI688268B/en

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

A multimedia file management method for a terminal device is provided according to an embodiment of the invention, which includes: receiving a multimedia file; estimating decoding time information of the multimedia file according to a file format of the multimedia file; re-encoding the multimedia file according to the decoding time information and frame refresh time information of the multimedia file; and playing the re-encoded multimedia file. Therefore, a multimedia playing quality of the terminal device can be improved.

Description

多媒體檔案管理方法、終端裝置、伺服裝置及檔案管理系統Multimedia file management method, terminal device, server device and file management system

本發明是有關於一種檔案管理機制,且特別是有關於一種多媒體檔案管理方法、終端裝置、伺服裝置及檔案管理系統。The invention relates to a file management mechanism, and in particular to a multimedia file management method, terminal device, server device and file management system.

隨著雲端技術與物聯網技術的普及,電子數位看板等終端裝置所播放的影片等多媒體檔案可由後台的影片伺服器統一推送。但是,不同地點及/或不同時間點設置的終端裝置可能具有不同的裝置規格。因此,要如何讓具有不同軟/硬體規格的終端裝置對於來自影片伺服器的多媒體檔案的播放效能提高,實為本領域技術人員所致力研究的課題之一。With the popularization of cloud technology and Internet of Things technology, multimedia files such as videos played by terminal devices such as electronic digital signage can be uniformly pushed by the video server in the background. However, terminal devices installed at different locations and/or at different time points may have different device specifications. Therefore, how to improve the playback performance of terminal devices with different software/hardware specifications for multimedia files from a video server is one of the topics that those skilled in the art are devoted to research.

本發明提供一種多媒體檔案管理方法、終端裝置、伺服裝置及檔案管理系統,可動態地調整欲由終端裝置播放的多媒體檔案的檔案格式及/或解析度,以提高終端裝置的多媒體播放品質。The invention provides a multimedia file management method, terminal device, server device and file management system, which can dynamically adjust the file format and/or resolution of the multimedia file to be played by the terminal device, so as to improve the multimedia playback quality of the terminal device.

本發明的一實施例提供一種多媒體檔案管理方法,其用於終端裝置,所述多媒體檔案管理方法包括:接收多媒體檔案;根據所述多媒體檔案的檔案格式評估所述多媒體檔案的解碼時間資訊;根據所述解碼時間資訊與所述多媒體檔案的畫面刷新時間資訊重新編碼所述多媒體檔案;以及播放經重新編碼的所述多媒體檔案。An embodiment of the present invention provides a multimedia file management method for a terminal device. The multimedia file management method includes: receiving a multimedia file; evaluating the decoding time information of the multimedia file according to the file format of the multimedia file; The decoding time information and the screen refresh time information of the multimedia file re-encode the multimedia file; and play the re-encoded multimedia file.

本發明的另一實施例提供一種終端裝置,其包括連接介面、儲存電路、顯示器及處理器。所述處理器耦接所述連接介面、所述儲存電路及所述顯示器。所述處理器用以根據所述多媒體檔案的檔案格式評估所述多媒體檔案的解碼時間資訊。所述處理器更用以根據所述解碼時間資訊與所述多媒體檔案的畫面刷新時間資訊重新編碼所述多媒體檔案。此外,所述處理器更用以經由所述顯示器播放經重新編碼的所述多媒體檔案。Another embodiment of the present invention provides a terminal device, which includes a connection interface, a storage circuit, a display, and a processor. The processor is coupled to the connection interface, the storage circuit and the display. The processor is used for evaluating the decoding time information of the multimedia file according to the file format of the multimedia file. The processor is further used to re-encode the multimedia file according to the decoding time information and the frame refresh time information of the multimedia file. In addition, the processor is further used to play the re-encoded multimedia file via the display.

本發明的另一實施例提供一種伺服裝置,其包括連接介面、儲存電路及處理器。所述儲存電路用以儲存多媒體檔案。所述處理器耦接至所述連接介面與所述儲存電路。所述處理器用以根據終端裝置的裝置資訊與所述多媒體檔案的檔案格式評估所述終端裝置對於所述多媒體檔案的解碼時間資訊。所述處理器更用以根據所述解碼時間資訊與所述多媒體檔案的畫面刷新時間資訊重新編碼所述多媒體檔案。此外,所述處理器更用以經由所述連接介面將經重新編碼的所述多媒體檔案傳送至所述終端裝置。Another embodiment of the present invention provides a servo device, which includes a connection interface, a storage circuit, and a processor. The storage circuit is used to store multimedia files. The processor is coupled to the connection interface and the storage circuit. The processor is used for evaluating the decoding time information of the multimedia file by the terminal device according to the device information of the terminal device and the file format of the multimedia file. The processor is further used to re-encode the multimedia file according to the decoding time information and the frame refresh time information of the multimedia file. In addition, the processor is further used to transmit the re-encoded multimedia file to the terminal device via the connection interface.

本發明的另一實施例提供一種檔案管理系統,其包括至少一終端裝置與伺服裝置。所述伺服裝置用以儲存多媒體檔案。所述伺服裝置更用以根據所述多媒體檔案的檔案格式與所述至少一終端裝置中的第一終端裝置的裝置資訊評估所述第一終端裝置對於所述多媒體檔案的解碼時間資訊。所述伺服裝置更用以根據所述解碼時間資訊與所述多媒體檔案的畫面刷新時間資訊重新編碼所述多媒體檔案。所述伺服裝置更用以將經重新編碼的所述多媒體檔案傳送至所述第一終端裝置。此外,所述第一終端裝置用以播放經重新編碼的所述多媒體檔案。Another embodiment of the present invention provides a file management system, which includes at least one terminal device and a server device. The server device is used to store multimedia files. The server device is further used for evaluating the decoding time information of the multimedia file by the first terminal device according to the file format of the multimedia file and the device information of the first terminal device in the at least one terminal device. The servo device is further used to re-encode the multimedia file according to the decoding time information and the frame refresh time information of the multimedia file. The servo device is further used to send the re-encoded multimedia file to the first terminal device. In addition, the first terminal device is used to play the re-encoded multimedia file.

基於上述,本發明提出根據多媒體檔案的檔案格式評估終端裝置對於此多媒體檔案的解碼時間資訊,並根據所獲得的解碼時間資訊與此多媒體檔案的畫面刷新時間資訊重新對此多媒體檔案進行編碼。藉此,終端裝置可較為流暢地播放經重新編碼的多媒體檔案,減少因終端裝置的軟/硬體規格不一致而導致特定終端裝置的多媒體播放品質下降的問題。Based on the above, the present invention proposes to evaluate the decoding time information of the multimedia file by the terminal device according to the file format of the multimedia file, and re-encode the multimedia file according to the obtained decoding time information and the screen refresh time information of the multimedia file. In this way, the terminal device can play the re-encoded multimedia file more smoothly, reducing the problem that the multimedia playback quality of a specific terminal device is degraded due to the inconsistent software/hardware specifications of the terminal device.

為讓本發明的上述特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖式作詳細說明如下。In order to make the above-mentioned features and advantages of the present invention more obvious and understandable, the embodiments are specifically described below in conjunction with the accompanying drawings for detailed description as follows.

圖1是根據本發明的一實施例所繪示的檔案管理系統的示意圖。請參照圖1,檔案管理系統10包括伺服裝置11與終端裝置12(1)~12(n)。n的數量可以是任意正整數。此外,伺服裝置11的數目也可以是一或多個,本發明不加以限制。FIG. 1 is a schematic diagram of a file management system according to an embodiment of the invention. Referring to FIG. 1, the file management system 10 includes a servo device 11 and terminal devices 12(1)~12(n). The number of n can be any positive integer. In addition, the number of servo devices 11 may also be one or more, which is not limited by the present invention.

伺服裝置11與終端裝置12(1)~12(n)可分別是具有資料傳輸、資料儲存以及資料處理功能的各式電子裝置,例如,桌上型電腦、工業用電腦、筆記型電腦、智慧型手機或平板電腦等。此外,終端裝置12(1)~12(n)可進一步具有多媒體檔案的播放功能。在一實施例中,終端裝置12(1)~12(n)的至少其中之一也可以是電子看板、顯示器或資訊服務站(kiosk)裝置。The servo device 11 and the terminal devices 12(1)~12(n) can be various electronic devices with data transmission, data storage and data processing functions, for example, desktop computers, industrial computers, notebook computers, smart Mobile phones or tablets. In addition, the terminal devices 12(1)~12(n) may further have a multimedia file playing function. In an embodiment, at least one of the terminal devices 12(1) to 12(n) may also be an electronic signage, a display, or an information service station (kiosk) device.

伺服裝置11可經由網路13與終端裝置12(1)~12(n)通訊。在一實施例中,網路13泛指任意類型的有線連接線路,例如乙太網路(Ethernet)等。在一實施例中,網路13泛指任意類型的無線網路,例如,長期演進技術(Long Term Evolution, LTE)網路或Wifi網路等。本發明並不限制網路13的類型。The servo device 11 can communicate with the terminal devices 12(1)~12(n) via the network 13. In an embodiment, the network 13 generally refers to any type of wired connection line, such as Ethernet or the like. In an embodiment, the network 13 generally refers to any type of wireless network, for example, a Long Term Evolution (LTE) network or a Wifi network. The invention does not limit the type of network 13.

伺服裝置11可視為終端裝置12(1)~12(n)的主控裝置、管理裝置或多媒體資料中心。例如,伺服裝置11可儲存有一或多個多媒體檔案。一個多媒體檔案可以是影像檔、聲音檔或影音複合檔。伺服裝置11可統一提供同一個多媒體檔案至終端裝置12(1)~12(n)進行播放,或者分別提供特定的多媒體檔案至終端裝置12(1)~12(n)進行播放。The servo device 11 can be regarded as a main control device, a management device or a multimedia data center of the terminal devices 12(1) to 12(n). For example, the server 11 may store one or more multimedia files. A multimedia file can be an image file, an audio file, or a composite audio-visual file. The server device 11 can uniformly provide the same multimedia file to the terminal devices 12(1)~12(n) for playback, or provide specific multimedia files to the terminal devices 12(1)~12(n) for playback, respectively.

須注意的是,若終端裝置12(1)~12(n)中的某一者對於特定類型的多媒體檔案的播放能力(例如解碼能力)較差,則在此終端裝置播放來自於伺服裝置11的多媒體檔案時,可能會導致多媒體檔案播放過程中的影像及/或聲音延遲,從而影響觀看者體驗。因此,在一實施例中,終端裝置12(1)~12(n)可根據自身的軟/硬體效能而動態地對來自於伺服裝置11的多媒體檔案的檔案格式及/或影像解析度等可能會導致影像及/或聲音延遲的因素作適當地調整(例如對多媒體檔案進行重新編碼),嘗試提高後續播放此多媒體檔案時的播放品質(例如播放流暢度)。或者,在一實施例中,伺服裝置11也可以根據特定終端裝置的軟/硬體效能而動態地調整欲提供給此終端裝置的多媒體檔案的檔案格式及/或解析度等,以提高此終端裝置播放此多媒體檔案時的播放品質。It should be noted that if one of the terminal devices 12(1) to 12(n) has poor playback capability (eg, decoding capability) for a specific type of multimedia file, the terminal device plays the Multimedia files may cause delays in images and/or sounds during the playback of multimedia files, thereby affecting viewer experience. Therefore, in an embodiment, the terminal devices 12(1)~12(n) can dynamically analyze the file format and/or image resolution of the multimedia file from the server device 11 according to their own software/hardware performance Factors that may cause video and/or audio delays are appropriately adjusted (eg, re-encoding multimedia files), and attempts to improve the playback quality (eg, playback smoothness) of subsequent playback of the multimedia file. Alternatively, in an embodiment, the server device 11 may also dynamically adjust the file format and/or resolution of the multimedia file to be provided to the terminal device according to the software/hardware performance of the specific terminal device to improve the terminal The playback quality of the device when playing this multimedia file.

圖2是根據本發明的一實施例所繪示的終端裝置的示意圖。以下以終端裝置12(1)的基本電路組成作為範例進行說明,且終端裝置12(1)的基本電路組成可相同或相似於伺服裝置11及/或其餘任一終端裝置的基本電路組成。2 is a schematic diagram of a terminal device according to an embodiment of the invention. The basic circuit composition of the terminal device 12(1) will be described below as an example, and the basic circuit composition of the terminal device 12(1) may be the same or similar to the basic circuit composition of the servo device 11 and/or any other terminal device.

請參照圖1與圖2,終端裝置12(1)包括連接介面21、儲存電路22、顯示器23及處理器24。連接介面21可包括有線及/或無線連接介面電路。連接介面21可將終端裝置12(1)連接至網路13並經由網路13與伺服裝置11(及/或其他終端裝置12(2)~12(n))通訊。例如,連接介面21可包括網路介面卡(NIC)及/或無線網路介面卡。1 and 2, the terminal device 12 (1) includes a connection interface 21, a storage circuit 22, a display 23 and a processor 24. The connection interface 21 may include wired and/or wireless connection interface circuits. The connection interface 21 can connect the terminal device 12(1) to the network 13 and communicate with the server device 11 (and/or other terminal devices 12(2)~12(n)) via the network 13. For example, the connection interface 21 may include a network interface card (NIC) and/or a wireless network interface card.

儲存電路22可包括揮發性儲存媒體與非揮發性儲存媒體。例如,揮發性儲存媒體可以是隨機存取記憶體(RAM),而非揮發性儲存媒體可以是唯讀記憶體(ROM)、固態硬碟(SSD)或傳統硬碟(HDD)等。顯示器23用以顯示影像。例如,顯示器23可以是液晶顯示器(Liquid Crystal Display, LCD)、發光二極體顯示器(Light-Emitting Diode (LED) Display)、有機電激發光顯示器(Organic Light Emitting Display, OLED)、電泳動顯示器(Electro-Phoretic Display, EPD)或其他種類的顯示器。The storage circuit 22 may include a volatile storage medium and a non-volatile storage medium. For example, the volatile storage medium may be random access memory (RAM), and the non-volatile storage medium may be read only memory (ROM), solid state drive (SSD), or conventional hard drive (HDD). The display 23 is used to display images. For example, the display 23 may be a liquid crystal display (Liquid Crystal Display, LCD), a light-emitting diode display (Light-Emitting Diode (LED) Display), an organic electroluminescence display (Organic Light Emitting Display, OLED), an electrophoretic display ( Electro-Phoretic Display (EPD) or other types of displays.

處理器24耦接至連接介面21、儲存電路22及顯示器23並且用於控制連接介面21、儲存電路22及顯示器23。在一實施例中,處理器24還可以負責終端裝置12(1)的整體運作。例如,處理器24可以是中央處理單元(Central Processing Unit, CPU),或是其他可程式化之一般用途或特殊用途的微處理器、數位訊號處理器(Digital Signal Processor, DSP)、可程式化控制器、特殊應用積體電路(Application Specific Integrated Circuits, ASIC)、可程式化邏輯裝置(Programmable Logic Device, PLD)或其他類似裝置或這些裝置的組合。此外,終端裝置12(1)還可以包括其他類型的輸入/輸出(I/O)介面與電源供應電路等等,本發明不加以限制。The processor 24 is coupled to the connection interface 21, the storage circuit 22 and the display 23 and is used to control the connection interface 21, the storage circuit 22 and the display 23. In an embodiment, the processor 24 may also be responsible for the overall operation of the terminal device 12(1). For example, the processor 24 may be a central processing unit (Central Processing Unit, CPU), or other programmable general-purpose or special-purpose microprocessors, digital signal processors (DSPs), and programmable Controllers, application specific integrated circuits (ASICs), programmable logic devices (Programmable Logic Devices, PLD) or other similar devices or combinations of these devices. In addition, the terminal device 12(1) may also include other types of input/output (I/O) interfaces and power supply circuits, etc., which is not limited by the present invention.

圖3是根據本發明的一實施例所繪示的多媒體檔案管理方法的流程圖。以下將以圖1的檔案管理系統10與圖2的終端裝置12(1)搭配圖3的流程圖對本發明一實施例的多媒體檔案管理方法進行說明。3 is a flowchart of a multimedia file management method according to an embodiment of the invention. The multimedia file management method according to an embodiment of the present invention will be described below using the file management system 10 of FIG. 1 and the terminal device 12(1) of FIG. 2 in conjunction with the flowchart of FIG. 3.

請參照圖1至圖3,在步驟S301中,終端裝置12(1)接收一多媒體檔案(以下亦稱為第一多媒體檔案)。例如,終端裝置12(1)的處理器24可經由連接介面21從網路13接收第一多媒體檔案並將所接收的第一多媒體檔案儲存至儲存電路22。此外,第一多媒體檔案可以是由伺服裝置11提供或者由終端裝置12(2)~12(n)中的任一者提供。1 to 3, in step S301, the terminal device 12(1) receives a multimedia file (hereinafter also referred to as a first multimedia file). For example, the processor 24 of the terminal device 12(1) may receive the first multimedia file from the network 13 via the connection interface 21 and store the received first multimedia file in the storage circuit 22. In addition, the first multimedia file may be provided by the server device 11 or any one of the terminal devices 12(2) to 12(n).

在接收到第一多媒體檔案之後,在步驟S302中,終端裝置12(1)根據第一多媒體檔案的檔案格式評估第一多媒體檔案的解碼時間資訊ds。在一實施例中,終端裝置12(1)的處理器24可預先針對多個預設檔案格式分別計算終端裝置12(1)用於解碼多媒體檔案中一個影像訊框的預設解碼時間資訊,並將所計算的預設解碼時間資訊記錄於一表格。此表格可儲存於儲存電路22。After receiving the first multimedia file, in step S302, the terminal device 12(1) evaluates the decoding time information ds of the first multimedia file according to the file format of the first multimedia file. In an embodiment, the processor 24 of the terminal device 12(1) may pre-calculate the preset decoding time information used by the terminal device 12(1) to decode an image frame in the multimedia file for multiple preset file formats, And record the calculated preset decoding time information in a table. This table can be stored in the storage circuit 22.

以下表1為例,處理器24可針對具有H.264、MPEG及VP8這三種預設檔案格式的多媒體檔案分別進行解碼測試並記錄一個影像訊框的(平均)解碼時間ds1~ds3。 表1

Figure 107119058-A0305-0001
As an example in Table 1 below, the processor 24 can perform decoding tests on multimedia files with three preset file formats of H.264, MPEG and VP8 and record the (average) decoding time ds1~ds3 of an image frame. Table 1
Figure 107119058-A0305-0001

例如,表1所記錄的解碼時間ds1可為處理器24針對具有H.264之檔案格式的多媒體檔案的一個影像訊框進行解碼的(平均)解碼時間;表1所記錄的解碼時間ds2可為處理器24針對具有MPEG之檔案格式的多媒體檔案的一個影像訊框進行解碼的(平均)解碼時間;並且表1所記錄的解碼時間ds3可為處理器24針對具有VP8之檔案格式的多媒體檔案的一個影像訊框進行解碼的(平均)解碼時間。在另一實施例中,表1可記載所有(或至少部分)處理器24支援播放的檔案格式所對應的預設解碼時間資訊,在此便不贅述。For example, the decoding time ds1 recorded in Table 1 may be the (average) decoding time for the processor 24 to decode an image frame of a multimedia file with the H.264 file format; the decoding time ds2 recorded in Table 1 may be The processor 24 decodes the (average) decoding time for an image frame of a multimedia file with an MPEG file format; and the decoding time ds3 recorded in Table 1 can be used by the processor 24 for a multimedia file with a VP8 file format The (average) decoding time for decoding an image frame. In another embodiment, Table 1 may record the preset decoding time information corresponding to all (or at least part of) the file formats supported by the processor 24 for playback, which will not be repeated here.

在步驟S302中,處理器24可根據第一多媒體檔案的檔案格式從表1中讀取所記錄的預設解碼時間資訊ds1~ds3的其中之一作為第一多媒體檔案的解碼時間資訊ds。例如,假設第一多媒體檔案的檔案格式為H.264,則處理器24可將表1中記載的資訊ds1作為第一多媒體檔案的解碼時間資訊ds。In step S302, the processor 24 may read one of the recorded preset decoding time information ds1~ds3 from Table 1 as the decoding time of the first multimedia file according to the file format of the first multimedia file Information ds. For example, assuming that the file format of the first multimedia file is H.264, the processor 24 may use the information ds1 recorded in Table 1 as the decoding time information ds of the first multimedia file.

在步驟S303中,終端裝置12(1)根據第一多媒體檔案的解碼時間資訊ds與第一多媒體檔案的畫面刷新時間資訊F_refresh重新編碼第一多媒體檔案。例如,第一多媒體檔案的畫面刷新時間資訊F_refresh可為第一多媒體檔案的訊框率(frame per second, FPS)(亦稱為幀率)F的倒數(即F_refresh=1/F)。In step S303, the terminal device 12(1) re-encodes the first multimedia file according to the decoding time information ds of the first multimedia file and the frame refresh time information F_refresh of the first multimedia file. For example, the frame refresh time information F_refresh of the first multimedia file can be the reciprocal of the frame rate (frame per second, FPS) (also known as frame rate) F of the first multimedia file (that is, F_refresh=1/F ).

例如,在步驟S303中,終端裝置12(1)的處理器24可判斷第一多媒體檔案的解碼時間資訊ds是否小於第一多媒體檔案的畫面刷新時間資訊F_refresh。若解碼時間資訊ds不小於畫面刷新時間資訊F_refresh(即ds大於或等於F_refresh),表示終端裝置12(1)直接播放具有原始檔案格式的第一多媒體檔案可能會導致影像及/或聲音延遲。因此,若解碼時間資訊ds不小於畫面刷新時間資訊F_refresh,處理器24可對第一多媒體檔案執行一個檔案格式轉換操作,以重新編碼第一多媒體檔案。For example, in step S303, the processor 24 of the terminal device 12(1) may determine whether the decoding time information ds of the first multimedia file is less than the frame refresh time information F_refresh of the first multimedia file. If the decoding time information ds is not less than the screen refresh time information F_refresh (that is, ds is greater than or equal to F_refresh), it means that the terminal device 12(1) directly playing the first multimedia file with the original file format may cause image and/or audio delay . Therefore, if the decoding time information ds is not less than the frame refresh time information F_refresh, the processor 24 may perform a file format conversion operation on the first multimedia file to re-encode the first multimedia file.

在檔案格式轉換操作中,第一多媒體檔案的檔案格式會被從原始的檔案格式(亦稱為第一檔案格式)轉換為新的檔案格式(亦稱為第二檔案格式),且第一檔案格式不同於第二檔案格式。例如,處理器24可從上表1重新選擇一個最小(或小於目前的解碼時間ds)的解碼時間所對應的檔案格式作為第一多媒體檔案的新的檔案格式(即第二檔案格式)。例如,假設第一多媒體檔案原始的檔案格式(即第一檔案格式)為H.264且ds3<ds2<ds1,則處理器24可選擇解碼時間ds3所對應的檔案格式VP8作為第二檔案格式並根據檔案格式VP8重新編碼第一多媒體檔案。反之,若解碼時間資訊ds小於畫面刷新時間資訊F_refresh,處理器24可不執行檔案格式轉換操作。In the file format conversion operation, the file format of the first multimedia file is converted from the original file format (also known as the first file format) to a new file format (also known as the second file format), and the One file format is different from the second file format. For example, the processor 24 can re-select a file format corresponding to the smallest (or less than the current decoding time ds) decoding time from the above table 1 as the new file format of the first multimedia file (ie, the second file format) . For example, assuming that the original file format of the first multimedia file (that is, the first file format) is H.264 and ds3<ds2<ds1, the processor 24 may select the file format VP8 corresponding to the decoding time ds3 as the second file Format and re-encode the first multimedia file according to the file format VP8. On the contrary, if the decoding time information ds is less than the screen refresh time information F_refresh, the processor 24 may not perform the file format conversion operation.

在步驟S304中,終端裝置12(1)播放經重新編碼的第一多媒體檔案。例如,假設在步驟S303中第一多媒體檔案的檔案格式被轉換為新的檔案格式(即第二檔案格式),則處理器24後續經由顯示器23播放具有第二檔案格式的第一多媒體檔案可較為順暢。In step S304, the terminal device 12(1) plays the re-encoded first multimedia file. For example, assuming that the file format of the first multimedia file is converted to a new file format (ie, the second file format) in step S303, the processor 24 subsequently plays the first multimedia file with the second file format via the display 23 Body files can be relatively smooth.

圖4是根據本發明的另一實施例所繪示的多媒體檔案管理方法的流程圖。以下以圖1的檔案管理系統10與圖2的終端裝置12(1)搭配圖4的流程圖對本發明另一實施例的多媒體檔案管理方法進行說明。須注意的是,圖4的步驟S401、S402及S405分別相同或相似於圖3的步驟S301、S302及S304,故在此便不贅述。4 is a flowchart of a multimedia file management method according to another embodiment of the invention. The multimedia file management method according to another embodiment of the present invention will be described below using the file management system 10 of FIG. 1 and the terminal device 12(1) of FIG. 2 in conjunction with the flowchart of FIG. 4. It should be noted that steps S401, S402, and S405 in FIG. 4 are respectively the same or similar to steps S301, S302, and S304 in FIG. 3, so details are not described here.

在步驟S403中,終端裝置12(1)根據第一多媒體檔案的解析度資訊P評估第一多媒體檔案的畫面繪製時間資訊rs。其中,第一多媒體檔案的解析度資訊P是反映第一多媒體檔案的影像解析度(例如以畫素(pixel)數目表示),而第一多媒體檔案的畫面繪製時間資訊rs是反映繪製第一多媒體檔案中的一個(或一次)影像畫面所需的時間。若第一多媒體檔案的影像解析度(P的值較大)較高,則繪製一個(或一次)影像畫面所需的時間也往往較多。反之,若第一多媒體檔案的影像解析度較低(P的值較小),則繪製一個(或一次)影像畫面所需的時間也往往較少。從另一角度來看,可視為第一多媒體檔案的解析度資訊P正相關於第一多媒體檔案的畫面繪製時間資訊rs。終端裝置12(1)的處理器24可將第一多媒體檔案的解析度資訊P帶入特定演算法或查表以獲得第一多媒體檔案的畫面繪製時間資訊rs。In step S403, the terminal device 12(1) evaluates the frame rendering time information rs of the first multimedia file according to the resolution information P of the first multimedia file. Wherein, the resolution information P of the first multimedia file reflects the image resolution of the first multimedia file (for example, expressed by the number of pixels), and the frame rendering time information rs of the first multimedia file It is the time required to draw one (or one) image frame in the first multimedia file. If the image resolution (the larger the value of P) of the first multimedia file is higher, the time required to draw one (or once) image frame is often more. Conversely, if the image resolution of the first multimedia file is low (the value of P is small), the time required to draw one (or once) image frame is often less. From another perspective, it can be considered that the resolution information P of the first multimedia file is positively related to the frame rendering time information rs of the first multimedia file. The processor 24 of the terminal device 12(1) may bring the resolution information P of the first multimedia file into a specific algorithm or look-up table to obtain the screen rendering time information rs of the first multimedia file.

在步驟S404中,終端裝置12(1)根據第一多媒體檔案的解碼時間資訊ds、第一多媒體檔案的畫面繪製時間資訊rs及第一多媒體檔案的畫面刷新時間資訊F_refresh重新編碼第一多媒體檔案。例如,在步驟S404中,終端裝置12(1)的處理器24可執行圖3的步驟S303之操作。In step S404, the terminal device 12(1) restarts according to the decoding time information ds of the first multimedia file, the frame drawing time information rs of the first multimedia file, and the screen refresh time information F_refresh of the first multimedia file Encode the first multimedia file. For example, in step S404, the processor 24 of the terminal device 12(1) may perform the operation of step S303 of FIG.

此外,在步驟S404中,處理器24可進一步判斷第一多媒體檔案的解碼時間資訊ds與第一多媒體檔案的畫面繪製時間資訊rs的總和是否小於第一多媒體檔案的畫面刷新時間資訊F_refresh。若第一多媒體檔案的解碼時間資訊ds與第一多媒體檔案的畫面繪製時間資訊rs的總和不小於第一多媒體檔案的畫面刷新時間資訊F_refresh(即ds+rs大於或等於F_refresh),表示終端裝置12(1)直接播放具有原始影像解析度的第一多媒體檔案可能會導致影像及/或聲音延遲。因此,處理器24可對第一多媒體檔案執行一個解析度調整操作,以重新編碼第一多媒體檔案。In addition, in step S404, the processor 24 may further determine whether the sum of the decoding time information ds of the first multimedia file and the frame drawing time information rs of the first multimedia file is less than the screen refresh of the first multimedia file Time information F_refresh. If the sum of the decoding time information ds of the first multimedia file and the frame drawing time information rs of the first multimedia file is not less than the frame refresh time information F_refresh of the first multimedia file (that is, ds+rs is greater than or equal to F_refresh ), indicating that the terminal device 12(1) directly playing the first multimedia file with the original image resolution may cause the image and/or sound to be delayed. Therefore, the processor 24 can perform a resolution adjustment operation on the first multimedia file to re-encode the first multimedia file.

在解析度調整操作中,處理器24會將第一多媒體檔案的解析度從原始解析度(亦稱為第一解析度)調整為新的解析度(亦稱為第二解析度),且第一解析度不同於第二解析度。例如,第二解析度可小於第一解析度。In the resolution adjustment operation, the processor 24 adjusts the resolution of the first multimedia file from the original resolution (also referred to as the first resolution) to a new resolution (also referred to as the second resolution), And the first resolution is different from the second resolution. For example, the second resolution may be less than the first resolution.

在一實施例中,處理器24只要降低第一多媒體檔案的解析度即可。在一實施例中,處理器24可進一步根據以下方程式(1)來計算第一多媒體檔案的解析度調整參數F_scale:In one embodiment, the processor 24 only needs to lower the resolution of the first multimedia file. In an embodiment, the processor 24 may further calculate the resolution adjustment parameter F_scale of the first multimedia file according to the following equation (1):

Figure 02_image001
…(1)
Figure 02_image001
…(1)

假設第一多媒體檔案的原始解析度資訊是表示為寬度方向的原始解析度資訊(W1)乘上高度方向的解析度資訊(H1),則處理器24可將第一多媒體檔案的寬度方向的新的解析度資訊設定為(W1xF_scale)並將第一多媒體檔案的高度方向的新的解析度資訊設定為(H1xF_scale),從而減少第一多媒體檔案的解析度。藉此,後續可較為順暢地播放具第二解析度的第一多媒體檔案。反之,若第一多媒體檔案的解碼時間資訊ds與第一多媒體檔案的畫面繪製時間資訊rs的總和小於第一多媒體檔案的畫面刷新時間資訊F_refresh (即ds+rs小於F_refresh),處理器24可不執行解析度調整操作。Assuming that the original resolution information of the first multimedia file is expressed as the original resolution information in the width direction (W1) multiplied by the resolution information in the height direction (H1), the processor 24 can The new resolution information in the width direction is set to (W1xF_scale) and the new resolution information in the height direction of the first multimedia file is set to (H1xF_scale), thereby reducing the resolution of the first multimedia file. In this way, the first multimedia file with the second resolution can be played more smoothly later. Conversely, if the sum of the decoding time information ds of the first multimedia file and the screen rendering time information rs of the first multimedia file is less than the screen refresh time information F_refresh of the first multimedia file (that is, ds+rs is less than F_refresh) , The processor 24 may not perform the resolution adjustment operation.

綜上所述,在前述實施例中,終端裝置12(1)的處理器24可動態地決定是否要重新編碼第一多媒體檔案。特別是,在決定要重新編碼第一多媒體檔案的實施例中,處理器24可動態地決定只執行檔案格式轉換操作、只執行解析度調整操作、或者檔案格式轉換操作與解析度調整操作皆需要執行。此外,在檔案格式轉換操作與解析度調整操作皆需要執行的實施例中,檔案格式轉換操作與解析度調整操作可同時或依序執行,本發明不加以限制。In summary, in the foregoing embodiment, the processor 24 of the terminal device 12(1) can dynamically decide whether to re-encode the first multimedia file. In particular, in an embodiment that decides to re-encode the first multimedia file, the processor 24 may dynamically decide to only perform the file format conversion operation, only the resolution adjustment operation, or the file format conversion operation and the resolution adjustment operation All need to be executed. In addition, in an embodiment where both the file format conversion operation and the resolution adjustment operation need to be performed, the file format conversion operation and the resolution adjustment operation may be performed simultaneously or sequentially, and the present invention is not limited.

須注意的是,雖然前述實施例皆是以終端裝置12(1)的運作作為範例,但圖3及/或圖4的操作流程實際上亦可以應用至圖1中其餘的終端裝置12(2)~12(n)。例如,根據終端裝置12(1)~12(n)各自的軟/硬體規格,對應於相同的第一多媒體檔案(例如來自於伺服裝置11),終端裝置12(1)~12(n)中經重新編碼的第一多媒體檔案可能具有不同的檔案格式及/或解析度。此外,更多類型的檔案調整機制亦可以在重新編碼第一多媒體檔案的操作中被採用,本發明不限制只能調整第一多媒體檔案的檔案格式與解析度,只要可以提高終端裝置對於第一多媒體檔案的播放品質(例如播放流暢度)即可。It should be noted that although the foregoing embodiments take the operation of the terminal device 12(1) as an example, the operation flow of FIG. 3 and/or FIG. 4 can actually be applied to the remaining terminal devices 12(2) in FIG. )~12(n). For example, according to the respective software/hardware specifications of the terminal devices 12(1)~12(n), corresponding to the same first multimedia file (for example, from the server device 11), the terminal devices 12(1)~12( n) The re-encoded first multimedia file may have different file formats and/or resolutions. In addition, more types of file adjustment mechanisms can also be used in the operation of re-encoding the first multimedia file. The present invention is not limited to adjusting the file format and resolution of the first multimedia file, as long as the terminal can be improved The playback quality (such as playback smoothness) of the first multimedia file by the device may be sufficient.

在一實施例中,重新編碼多媒體檔案的操作亦可以是在伺服裝置11中執行。藉此,即便終端裝置12(1)~12(n)不執行如圖3或圖4的操作流程,伺服裝置11也可以根據終端裝置12(1)~12(n)各別的裝置資訊來重新編碼欲提供給終端裝置12(1)~12(n)的多媒體檔案,以提高終端裝置12(1)~12(n)對於多媒體檔案的播放品質(例如播放流暢度)。In an embodiment, the operation of re-encoding the multimedia file may also be performed in the server 11. By this, even if the terminal devices 12(1)~12(n) do not execute the operation flow as shown in FIG. 3 or FIG. 4, the servo device 11 can also obtain the device information according to the respective device information of the terminal devices 12(1)~12(n). Re-encode the multimedia files to be provided to the terminal devices 12(1)~12(n) to improve the playback quality (such as smoothness) of the multimedia files played by the terminal devices 12(1)~12(n).

例如,假設下表2是儲存於伺服裝置11的儲存電路中,且表2記載了終端裝置12(1)~12(3)分別針對多個預設檔案格式的預設解碼時間資訊。換言之,下表2記載了終端裝置12(1)~12(3)的裝置資訊。 表2

Figure 107119058-A0305-0002
For example, assume that Table 2 below is stored in the storage circuit of the servo device 11, and Table 2 describes the preset decoding time information of the terminal devices 12(1) to 12(3) for multiple preset file formats, respectively. In other words, the following Table 2 describes the device information of the terminal devices 12(1) to 12(3). Table 2
Figure 107119058-A0305-0002

在表2中,解碼時間ds1、ds4及ds7為終端裝置12(1)~12(3)分別針對具有H.264之檔案格式的多媒體檔案的一個影像訊框進行解碼的(平均)解碼時間;解碼時間ds2、ds5及ds8為終端裝置12(1)~12(3)分別針對具有MPEG之檔案格式的多媒體檔案的一個影像訊框進行解碼的(平均)解碼時間;並且解碼時間ds3、ds6及ds8為終端裝置12(1)~12(3)分別針對具有VP8之檔案格式的多媒體檔案的一個影像訊框進行解碼的(平均)解碼時間。In Table 2, the decoding times ds1, ds4, and ds7 are the (average) decoding times for the terminal devices 12(1) to 12(3) to decode one image frame of the multimedia file with the H.264 file format, respectively; The decoding times ds2, ds5 and ds8 are the (average) decoding times for the terminal devices 12(1) to 12(3) to decode an image frame of a multimedia file with the MPEG file format; and the decoding times ds3, ds6 and ds8 is the (average) decoding time for the terminal devices 12(1)~12(3) to decode one video frame of the multimedia file with the VP8 file format, respectively.

在一實施例中,表2中的解碼時間ds1~ds3可以是由終端裝置12(1)對具有H.264、MPEG及VP8這三種預設檔案格式的多媒體檔案分別進行解碼測試而獲得。解碼時間ds4~ds6可以是由終端裝置12(2)對具有H.264、MPEG及VP8這三種預設檔案格式的多媒體檔案分別進行解碼測試而獲得。解碼時間ds7~ds9可以是由終端裝置12(3)對具有H.264、MPEG及VP8這三種預設檔案格式的多媒體檔案分別進行解碼測試而獲得。或者,在一實施例中,表2中的解碼時間ds1~ds3、ds4~ds6、ds7~ds9可以是由伺服裝置11的處理器分別根據終端裝置12(1)~12(3)的規格資訊(例如軟/硬體規格)進行模擬解碼測試而獲得。In an embodiment, the decoding times ds1 to ds3 in Table 2 may be obtained by the terminal device 12(1) decoding tests on multimedia files with three preset file formats of H.264, MPEG, and VP8. The decoding time ds4~ds6 can be obtained by the terminal device 12(2) decoding the multimedia files with three preset file formats of H.264, MPEG and VP8 respectively. The decoding time ds7~ds9 can be obtained by the terminal device 12(3) decoding the multimedia files with three preset file formats of H.264, MPEG and VP8 respectively. Or, in an embodiment, the decoding times ds1~ds3, ds4~ds6, and ds7~ds9 in Table 2 may be determined by the processor of the servo device 11 according to the specifications of the terminal devices 12(1)~12(3) (For example, software/hardware specifications) obtained by analog decoding test.

在一實施例中,在將特定的多媒體檔案(例如第一多媒體檔案)傳送至終端裝置12(1)~12(3)之前,伺服裝置11的處理器會根據終端裝置12(1)~12(3)的裝置資訊與第一多媒體檔案的檔案格式評估終端裝置12(1)~12(3)分別對於第一多媒體檔案的解碼時間資訊。例如,假設第一多媒體檔案的原始檔案格式為H.264,則經由查詢表2,伺服裝置11的處理器可獲得終端裝置12(1)~12(3)分別對於第一多媒體檔案的解碼時間資訊為ds1、ds4及ds7。In an embodiment, before transmitting a specific multimedia file (eg, the first multimedia file) to the terminal devices 12(1)~12(3), the processor of the server device 11 is based on the terminal device 12(1) The device information of ~12(3) and the file format of the first multimedia file are evaluated by the terminal devices 12(1)~12(3) for decoding time information of the first multimedia file, respectively. For example, assuming that the original file format of the first multimedia file is H.264, then through the lookup table 2, the processor of the server device 11 can obtain the terminal devices 12(1)~12(3) for the first multimedia file, respectively. The decoding time information of the file is ds1, ds4 and ds7.

在獲得終端裝置12(1)對於第一多媒體檔案的解碼時間資訊ds1後,伺服裝置11的處理器可根據解碼時間資訊ds1以及第一多媒體檔案的畫面刷新時間資訊F_refresh判斷是否需要重新編碼欲傳送至終端裝置12(1)的第一多媒體檔案。在獲得終端裝置12(2)對於第一多媒體檔案的解碼時間資訊ds4後,伺服裝置11的處理器可根據解碼時間資訊ds4以及第一多媒體檔案的畫面刷新時間資訊F_refresh判斷是否需要重新編碼欲傳送至終端裝置12(2)的第一多媒體檔案。在獲得終端裝置12(3)對於第一多媒體檔案的解碼時間資訊ds7後,伺服裝置11的處理器可根據解碼時間資訊ds7以及第一多媒體檔案的畫面刷新時間資訊F_refresh判斷是否需要重新編碼欲傳送至終端裝置12(3)的第一多媒體檔案。在此,根據解碼時間資訊以及第一多媒體檔案的畫面刷新時間資訊判斷是否需要重新編碼第一多媒體檔案之操作以及重新編碼第一多媒體檔案之操作(例如執行檔案格式轉換操作)的操作細節可參照圖3的步驟S303,在此便不贅述。After obtaining the decoding time information ds1 of the first multimedia file by the terminal device 12(1), the processor of the server device 11 can determine whether it is necessary according to the decoding time information ds1 and the screen refresh time information F_refresh of the first multimedia file Re-encode the first multimedia file to be transmitted to the terminal device 12(1). After obtaining the decoding time information ds4 of the first multimedia file by the terminal device 12 (2), the processor of the server device 11 can determine whether it is necessary according to the decoding time information ds4 and the screen refresh time information F_refresh of the first multimedia file Re-encode the first multimedia file to be transmitted to the terminal device 12(2). After obtaining the decoding time information ds7 of the first multimedia file by the terminal device 12 (3), the processor of the server device 11 can determine whether it is necessary according to the decoding time information ds7 and the screen refresh time information F_refresh of the first multimedia file Re-encode the first multimedia file to be transmitted to the terminal device 12(3). Here, it is determined whether the operation of re-encoding the first multimedia file and the operation of re-encoding the first multimedia file are required according to the decoding time information and the screen refresh time information of the first multimedia file (for example, performing a file format conversion operation ) Operation details can refer to step S303 in FIG. 3, which will not be repeated here.

在一實施例中,伺服裝置11的處理器可進一步根據第一多媒體檔案的解析度資訊P評估第一多媒體檔案的畫面繪製時間資訊rs。根據解碼時間資訊ds1、第一多媒體檔案的畫面繪製時間資訊rs及第一多媒體檔案的畫面刷新時間資訊F_refresh,伺服裝置11的處理器可判斷是否需要重新編碼欲傳送至終端裝置12(1)的第一多媒體檔案。根據解碼時間資訊ds4、第一多媒體檔案的畫面繪製時間資訊rs及第一多媒體檔案的畫面刷新時間資訊F_refresh,伺服裝置11的處理器可判斷是否需要重新編碼欲傳送至終端裝置12(2)的第一多媒體檔案。根據解碼時間資訊ds7、第一多媒體檔案的畫面繪製時間資訊rs及第一多媒體檔案的畫面刷新時間資訊F_refresh,伺服裝置11的處理器可判斷是否需要重新編碼欲傳送至終端裝置12(3)的第一多媒體檔案。在此,評估第一多媒體檔案的畫面繪製時間資訊之操作、判斷是否需要重新編碼第一多媒體檔案之操作以及重新編碼第一多媒體檔案之操作(例如執行解析度調整操作)的操作細節可參照圖4的步驟S404,在此便不贅述。In one embodiment, the processor of the servo device 11 may further evaluate the frame rendering time information rs of the first multimedia file according to the resolution information P of the first multimedia file. According to the decoding time information ds1, the screen rendering time information rs of the first multimedia file and the screen refresh time information F_refresh of the first multimedia file, the processor of the server 11 can determine whether re-encoding is required to be transmitted to the terminal device 12 (1) The first multimedia file. Based on the decoding time information ds4, the first multimedia file's screen rendering time information rs, and the first multimedia file's screen refresh time information F_refresh, the processor of the server 11 can determine whether re-encoding is required to be transmitted to the terminal device 12 (2) The first multimedia file. Based on the decoding time information ds7, the first multimedia file's screen rendering time information rs, and the first multimedia file's screen refresh time information F_refresh, the processor of the server 11 can determine whether re-encoding is required to be transmitted to the terminal device 12 (3) The first multimedia file. Here, the operation of assessing the frame drawing time information of the first multimedia file, determining whether the operation of re-encoding the first multimedia file and the operation of re-encoding the first multimedia file (for example, performing a resolution adjustment operation) For details of the operation, please refer to step S404 in FIG. 4, which will not be repeated here.

在將欲傳送至終端裝置12(1)~12(3)中至少一者的第一多媒體檔案重新編碼後,伺服裝置11的連接介面可經由網路13將(經重新編碼的或未重新編碼的)第一多媒體檔案分別傳送至終端裝置12(1)~12(3)進行儲存與播放。例如,假設欲傳送至終端裝置12(1)與12(2)的第一多媒體檔案在伺服裝置11中經過重新編碼,而欲傳送至終端裝置12(3)的第一多媒體檔案未在伺服裝置11中被重新編碼,則由終端裝置12(1)與12(2)接收並播放的第一多媒體檔案可能分別具有新的檔案格式及/或新的解析度,而由終端裝置12(3)接收並播放的第一多媒體檔案則具有原始的檔案格式與原始的解析度。藉此,即便終端裝置12(1)與12(2)的軟/硬體效能較差,終端裝置12(1)~12(3)皆可以順暢地播放具有相同內容的第一多媒體檔案。After re-encoding the first multimedia file to be transmitted to at least one of the terminal devices 12(1) to 12(3), the connection interface of the server device 11 can be transferred via the network 13 (recoded or not The re-encoded) first multimedia files are sent to the terminal devices 12(1)~12(3) respectively for storage and playback. For example, suppose that the first multimedia file to be transmitted to the terminal devices 12(1) and 12(2) is re-encoded in the server device 11 and the first multimedia file to be transmitted to the terminal device 12(3) If it is not re-encoded in the servo device 11, the first multimedia files received and played by the terminal devices 12(1) and 12(2) may have new file formats and/or new resolutions, respectively, and The first multimedia file received and played by the terminal device 12(3) has the original file format and the original resolution. In this way, even if the software/hardware performance of the terminal devices 12(1) and 12(2) is poor, the terminal devices 12(1) to 12(3) can smoothly play the first multimedia file with the same content.

綜上所述,本發明提出根據多媒體檔案的檔案格式評估終端裝置對於此多媒體檔案的解碼時間資訊,並根據所獲得的解碼時間資訊與此多媒體檔案的畫面刷新時間資訊重新對此多媒體檔案進行編碼。藉此,終端裝置可較為流暢地播放經重新編碼的多媒體檔案,減少因終端裝置的軟/硬體規格不一致而導致特定終端裝置的多媒體播放品質下降的問題。In summary, the present invention proposes to evaluate the decoding time information of the multimedia file by the terminal device according to the file format of the multimedia file, and re-encode the multimedia file according to the obtained decoding time information and the screen refresh time information of the multimedia file . In this way, the terminal device can play the re-encoded multimedia file more smoothly, reducing the problem that the multimedia playback quality of a specific terminal device is degraded due to the inconsistent software/hardware specifications of the terminal device.

雖然本發明已以實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明的精神和範圍內,當可作些許的更動與潤飾,故本發明的保護範圍當視後附的申請專利範圍所界定者為準。Although the present invention has been disclosed as above with examples, it is not intended to limit the present invention. Any person with ordinary knowledge in the technical field can make some changes and modifications without departing from the spirit and scope of the present invention. The scope of protection of the present invention shall be subject to the scope defined in the appended patent application.

10:檔案管理系統 11:伺服裝置 12(1)~12(n):終端裝置 13:網路 21:連接介面 22:儲存電路 23:顯示器 24:處理器 S301~S304、S401~S405:步驟10: File management system 11: Servo device 12(1)~12(n): Terminal device 13: Network 21: Connection interface 22: Storage circuit 23: Display 24: Processor S301~S304, S401~S405: Steps

圖1是根據本發明的一實施例所繪示的檔案管理系統的示意圖。 圖2是根據本發明的一實施例所繪示的終端裝置的示意圖。 圖3是根據本發明的一實施例所繪示的多媒體檔案管理方法的流程圖。 圖4是根據本發明的另一實施例所繪示的多媒體檔案管理方法的流程圖。FIG. 1 is a schematic diagram of a file management system according to an embodiment of the invention. 2 is a schematic diagram of a terminal device according to an embodiment of the invention. 3 is a flowchart of a multimedia file management method according to an embodiment of the invention. 4 is a flowchart of a multimedia file management method according to another embodiment of the invention.

S301~S304:步驟S301~S304: Steps

Claims (13)

一種多媒體檔案管理方法,用於一終端裝置,該多媒體檔案管理方法包括:針對多個預設檔案格式分別計算該終端裝置用於解碼一影像訊框的一預設解碼時間資訊;將所計算的該預設解碼時間資訊記錄於一表格;接收一多媒體檔案;根據該多媒體檔案的檔案格式從該表格中讀取所記錄的該預設解碼時間資訊的其中之一作為該多媒體檔案的解碼時間資訊;根據該解碼時間資訊與該多媒體檔案的一畫面刷新時間資訊重新編碼該多媒體檔案;以及播放經重新編碼的該多媒體檔案。 A multimedia file management method is used for a terminal device. The multimedia file management method includes: calculating, for a plurality of preset file formats, a preset decoding time information used by the terminal device to decode an image frame; and calculating the calculated The default decoding time information is recorded in a table; receiving a multimedia file; reading one of the recorded default decoding time information from the table according to the file format of the multimedia file as the decoding time information of the multimedia file Re-encoding the multimedia file according to the decoding time information and the picture refresh time information of the multimedia file; and playing the re-encoded multimedia file. 如申請專利範圍第1項所述的多媒體檔案管理方法,其中根據該解碼時間資訊與該多媒體檔案的該畫面刷新時間資訊重新編碼該多媒體檔案的步驟包括:根據該多媒體檔案的一解析度資訊評估該多媒體檔案的一畫面繪製時間資訊;以及根據該解碼時間資訊、該畫面刷新時間資訊及該畫面繪製時間資訊重新編碼該多媒體檔案。 The multimedia file management method as described in item 1 of the patent scope, wherein the step of re-encoding the multimedia file based on the decoding time information and the screen refresh time information of the multimedia file includes: evaluating based on a resolution information of the multimedia file A picture drawing time information of the multimedia file; and re-encoding the multimedia file according to the decoding time information, the picture refresh time information and the picture drawing time information. 如申請專利範圍第1項所述的多媒體檔案管理方法,其中重新編碼該多媒體檔案的步驟包括執行一檔案格式轉換操作與一解析度調整操作的至少其中之一, 其中該檔案格式轉換操作包括將該多媒體檔案的該檔案格式從一第一檔案格式轉換為一第二檔案格式,其中該第一檔案格式不同於該第二檔案格式,其中該解析度調整操作包括將該多媒體檔案的一解析度從一第一解析度調整為一第二解析度,其中該第一解析度不同於該第二解析度。 The multimedia file management method as described in item 1 of the patent application scope, wherein the step of re-encoding the multimedia file includes performing at least one of a file format conversion operation and a resolution adjustment operation, The file format conversion operation includes converting the file format of the multimedia file from a first file format to a second file format, wherein the first file format is different from the second file format, and the resolution adjustment operation includes Adjusting a resolution of the multimedia file from a first resolution to a second resolution, where the first resolution is different from the second resolution. 如申請專利範圍第3項所述的多媒體檔案管理方法,其中該檔案格式轉換操作是在判定該解碼時間資訊不小於該畫面刷新時間資訊之後執行,其中該解析度調整操作是在判定該解碼時間資訊與該多媒體檔案的一畫面繪製時間資訊之總和不小於該畫面刷新時間資訊之後執行。 The multimedia file management method as described in item 3 of the patent application scope, wherein the file format conversion operation is performed after determining that the decoding time information is not less than the screen refresh time information, wherein the resolution adjustment operation is determining the decoding time The sum of the information and the drawing time information of the multimedia file is not less than the refresh time information of the screen. 一種終端裝置,包括:一連接介面,用以接收一多媒體檔案;一儲存電路,用以儲存該多媒體檔案;一顯示器;以及一處理器,耦接該連接介面、該儲存電路及該顯示器,其中該處理器用以針對多個預設檔案格式分別計算該終端裝置用於解碼一影像訊框的一預設解碼時間資訊,其中該處理器更用以將所計算的該預設解碼時間資訊記錄於一表格並將該表格儲存於該儲存電路,其中該處理器更用以根據該多媒體檔案的檔案格式從該表格 中讀取所記錄的該預設解碼時間資訊的其中之一作為該多媒體檔案的解碼時間資訊,其中該處理器更用以根據該解碼時間資訊與該多媒體檔案的一畫面刷新時間資訊重新編碼該多媒體檔案,其中該處理器更用以經由該顯示器播放經重新編碼的該多媒體檔案。 A terminal device includes: a connection interface for receiving a multimedia file; a storage circuit for storing the multimedia file; a display; and a processor coupled to the connection interface, the storage circuit and the display, wherein The processor is used to calculate the preset decoding time information used by the terminal device to decode an image frame for multiple preset file formats, and the processor is further used to record the calculated preset decoding time information in A table and store the table in the storage circuit, wherein the processor is further used to retrieve the table according to the file format of the multimedia file Read one of the preset decoding time information recorded as the decoding time information of the multimedia file, wherein the processor is further used for re-encoding the decoding time information and a frame refresh time information of the multimedia file Multimedia files, wherein the processor is further used to play the re-encoded multimedia files via the display. 如申請專利範圍第5項所述的終端裝置,其中該處理器根據該解碼時間資訊與該多媒體檔案的該畫面刷新時間資訊重新編碼該多媒體檔案的操作包括:根據該多媒體檔案的一解析度資訊評估該多媒體檔案的一畫面繪製時間資訊;以及根據該解碼時間資訊、該畫面刷新時間資訊及該畫面繪製時間資訊重新編碼該多媒體檔案。 The terminal device as described in item 5 of the patent application scope, wherein the processor re-encodes the multimedia file according to the decoding time information and the screen refresh time information of the multimedia file includes: according to a resolution information of the multimedia file Evaluate a picture drawing time information of the multimedia file; and re-encode the multimedia file according to the decoding time information, the picture refresh time information and the picture drawing time information. 如申請專利範圍第5項所述的終端裝置,其中重新編碼該多媒體檔案的操作包括執行一檔案格式轉換操作與一解析度調整操作的至少其中之一,其中該檔案格式轉換操作包括將該多媒體檔案的該檔案格式從一第一檔案格式轉換為一第二檔案格式,其中該第一檔案格式不同於該第二檔案格式,其中該解析度調整操作包括將該多媒體檔案的一解析度從一第一解析度調整為一第二解析度,其中該第一解析度不同於該第二解析度。 The terminal device according to item 5 of the patent application scope, wherein the operation of re-encoding the multimedia file includes performing at least one of a file format conversion operation and a resolution adjustment operation, wherein the file format conversion operation includes the multimedia The file format of the file is converted from a first file format to a second file format, wherein the first file format is different from the second file format, and the resolution adjustment operation includes a resolution of the multimedia file from a The first resolution is adjusted to a second resolution, wherein the first resolution is different from the second resolution. 如申請專利範圍第7項所述的終端裝置,其中該檔案格式轉換操作是在該處理器判定該解碼時間資訊不小於該畫面刷新時間資訊之後執行,其中該解析度調整操作是在該處理器判定該解碼時間資訊與該多媒體檔案的一畫面繪製時間資訊之總和不小於該畫面刷新時間資訊之後執行。 The terminal device as described in item 7 of the patent application scope, wherein the file format conversion operation is performed after the processor determines that the decoding time information is not less than the screen refresh time information, wherein the resolution adjustment operation is performed on the processor It is executed after determining that the sum of the decoding time information and the picture drawing time information of the multimedia file is not less than the picture refresh time information. 一種伺服裝置,包括:一連接介面;一儲存電路,用以儲存一多媒體檔案;以及一處理器,耦接至該連接介面與該儲存電路,其中該處理器用以獲得該終端裝置分別針對多個預設檔案格式而用於解碼一影像訊框的一預設解碼時間資訊,其中該處理器更用以將該預設解碼時間資訊儲存於該儲存電路,其中該處理器更用以根據該多媒體檔案的檔案格式從該儲存電路中讀取所記錄的該預設解碼時間資訊的其中之一作為該多媒體檔案的解碼時間資訊,其中該處理器更用以根據該解碼時間資訊與該多媒體檔案的一畫面刷新時間資訊重新編碼該多媒體檔案,其中該處理器更用以經由該連接介面將經重新編碼的該多媒體檔案傳送至該終端裝置。 A servo device includes: a connection interface; a storage circuit for storing a multimedia file; and a processor coupled to the connection interface and the storage circuit, wherein the processor is used to obtain the terminal device for multiple The default file format is used to decode a preset decoding time information of an image frame, wherein the processor is further used to store the preset decoding time information in the storage circuit, and the processor is further used to according to the multimedia The file format of the file reads one of the preset decoding time information recorded from the storage circuit as the decoding time information of the multimedia file, wherein the processor is further used to determine the decoding time information and the multimedia file A picture refresh time information re-encodes the multimedia file, wherein the processor is further used to transmit the re-encoded multimedia file to the terminal device via the connection interface. 如申請專利範圍第9項所述的伺服裝置,其中該處理器根據該解碼時間資訊與該多媒體檔案的該畫面刷新時間資訊重新編碼該多媒體檔案的操作包括:根據該多媒體檔案的一解析度資訊評估該多媒體檔案的一畫面繪製時間資訊;以及根據該解碼時間資訊、該畫面刷新時間資訊及該畫面繪製時間資訊重新編碼該多媒體檔案。 The servo device according to item 9 of the patent application scope, wherein the processor re-encodes the multimedia file according to the decoding time information and the screen refresh time information of the multimedia file includes: according to a resolution information of the multimedia file Evaluate a picture drawing time information of the multimedia file; and re-encode the multimedia file according to the decoding time information, the picture refresh time information and the picture drawing time information. 如申請專利範圍第9項所述的伺服裝置,其中重新編碼該多媒體檔案的操作包括執行一檔案格式轉換操作與一解析度調整操作的至少其中之一,其中該檔案格式轉換操作包括將該多媒體檔案的該檔案格式從一第一檔案格式轉換為一第二檔案格式,其中該第一檔案格式不同於該第二檔案格式,其中該解析度調整操作包括將該多媒體檔案的一解析度從一第一解析度調整為一第二解析度,其中該第一解析度不同於該第二解析度。 The servo device according to item 9 of the patent application scope, wherein the operation of re-encoding the multimedia file includes performing at least one of a file format conversion operation and a resolution adjustment operation, wherein the file format conversion operation includes the multimedia The file format of the file is converted from a first file format to a second file format, wherein the first file format is different from the second file format, and the resolution adjustment operation includes a resolution of the multimedia file from a The first resolution is adjusted to a second resolution, wherein the first resolution is different from the second resolution. 如申請專利範圍第11項所述的伺服裝置,其中該檔案格式轉換操作是在該處理器判定該解碼時間資訊不小於該畫面刷新時間資訊之後執行,其中該解析度調整操作是在該處理器判定該解碼時間資訊與該多媒體檔案的一畫面繪製時間資訊之總和不小於該畫面刷新時間資訊之後執行。 The servo device as described in item 11 of the patent application scope, wherein the file format conversion operation is performed after the processor determines that the decoding time information is not less than the picture refresh time information, wherein the resolution adjustment operation is performed on the processor It is executed after determining that the sum of the decoding time information and the picture drawing time information of the multimedia file is not less than the picture refresh time information. 一種檔案管理系統,包括:至少一終端裝置;以及一伺服裝置,用以儲存一多媒體檔案,其中該伺服裝置更用以獲得該至少一終端裝置中的一第一終端裝置分別針對多個預設檔案格式而用於解碼一影像訊框的一預設解碼時間資訊,其中該伺服裝置更用以儲存該預設解碼時間資訊,其中該伺服裝置更用以根據該多媒體檔案的檔案格式讀取所記錄的該預設解碼時間資訊的其中之一作為該多媒體檔案的解碼時間資訊,其中該伺服裝置更用以根據該解碼時間資訊與該多媒體檔案的一畫面刷新時間資訊重新編碼該多媒體檔案,其中該伺服裝置更用以將經重新編碼的該多媒體檔案傳送至該第一終端裝置,其中該第一終端裝置用以播放經重新編碼的該多媒體檔案。 A file management system includes: at least one terminal device; and a server device for storing a multimedia file, wherein the server device is further used to obtain a first terminal device in the at least one terminal device for multiple presets respectively The file format is used to decode a preset decoding time information of an image frame, wherein the server device is further used to store the default decoding time information, and the server device is further used to read the location according to the file format of the multimedia file One of the recorded default decoding time information is used as the decoding time information of the multimedia file, wherein the servo device is further used to re-encode the multimedia file according to the decoding time information and a picture refresh time information of the multimedia file, wherein The servo device is further used to transmit the re-encoded multimedia file to the first terminal device, wherein the first terminal device is used to play the re-encoded multimedia file.
TW107119058A 2018-06-01 2018-06-01 Multimedia file management method, terminal device, server device and file management system TWI688268B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW107119058A TWI688268B (en) 2018-06-01 2018-06-01 Multimedia file management method, terminal device, server device and file management system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW107119058A TWI688268B (en) 2018-06-01 2018-06-01 Multimedia file management method, terminal device, server device and file management system

Publications (2)

Publication Number Publication Date
TW202005405A TW202005405A (en) 2020-01-16
TWI688268B true TWI688268B (en) 2020-03-11

Family

ID=69941547

Family Applications (1)

Application Number Title Priority Date Filing Date
TW107119058A TWI688268B (en) 2018-06-01 2018-06-01 Multimedia file management method, terminal device, server device and file management system

Country Status (1)

Country Link
TW (1) TWI688268B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103222264A (en) * 2010-11-17 2013-07-24 通用仪表公司 System and method for selectively transcoding signal from one format to one of plurality of formats
CN103561279A (en) * 2013-10-10 2014-02-05 中兴通讯股份有限公司 Method and system for playing multi-media file and cloud transcoding service device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103222264A (en) * 2010-11-17 2013-07-24 通用仪表公司 System and method for selectively transcoding signal from one format to one of plurality of formats
CN103561279A (en) * 2013-10-10 2014-02-05 中兴通讯股份有限公司 Method and system for playing multi-media file and cloud transcoding service device

Also Published As

Publication number Publication date
TW202005405A (en) 2020-01-16

Similar Documents

Publication Publication Date Title
US9615112B2 (en) Method, system, player and mobile terminal for online video playback
US9369506B2 (en) Insertion of supplementary content into a segmented content stream
US20150156557A1 (en) Display apparatus, method of displaying image thereof, and computer-readable recording medium
US8407565B2 (en) System and method for producing importance rate-based rich media, and server applied to the same
US11356739B2 (en) Video playback method, terminal apparatus, and storage medium
US9373358B2 (en) Collaborative media editing system
CN107209928A (en) For HDR pictures to be mapped as to the method and apparatus of SDR pictures and corresponding SDR to HDR mapping method and equipment
CN110662109B (en) Video playing method, electronic equipment and computer readable storage medium
US9288248B2 (en) Media system with local or remote rendering
TWI694713B (en) Method and apparatus for processing video data
US20140040381A1 (en) Conflict resolution in a media editing system
WO2017080175A1 (en) Multi-camera used video player, playing system and playing method
BR112012012020B1 (en) METHODS OF PROGRAMMED ENCODING AND DECODING PROGRAMMED IN A CONTROLLER IN A DEVICE, ENCODER DEVICE, E, DECODER DEVICE, AND, SYSTEM PROGRAMMED IN A CONTROLLER IN A DEVICE
CN109587555B (en) Video processing method, device, electronic device and storage medium
US9997132B2 (en) Data transmission method, data transmission system and portable display device of transmitting compressed data
CN111918098A (en) Video processing method, device, electronic device, server and storage medium
TWI688268B (en) Multimedia file management method, terminal device, server device and file management system
US10356439B2 (en) Flexible frame referencing for display transport
CN110740383B (en) Multimedia file management method, terminal device, service device and file management system
US8898253B2 (en) Provision of media from a device
JP2018514133A (en) Data processing method and apparatus
CN106815074B (en) Multimedia file downloading method and electronic device
US12184906B2 (en) Method and system for detecting and managing similar content
WO2024139138A1 (en) Screen mirroring method, electronic device, and computer-readable medium
CN115190359A (en) A kind of video playback format automatic conversion method and system

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees