TWI721089B - Transcoding method and device - Google Patents
Transcoding method and device Download PDFInfo
- Publication number
- TWI721089B TWI721089B TW106102490A TW106102490A TWI721089B TW I721089 B TWI721089 B TW I721089B TW 106102490 A TW106102490 A TW 106102490A TW 106102490 A TW106102490 A TW 106102490A TW I721089 B TWI721089 B TW I721089B
- Authority
- TW
- Taiwan
- Prior art keywords
- resolution
- definition
- transcoding
- quantization parameter
- real
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 70
- 238000013139 quantization Methods 0.000 claims abstract description 76
- 238000001514 detection method Methods 0.000 claims abstract description 27
- 230000008569 process Effects 0.000 claims abstract description 20
- 238000006243 chemical reaction Methods 0.000 claims 1
- 238000005516 engineering process Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 7
- 230000006872 improvement Effects 0.000 description 7
- 238000003860 storage Methods 0.000 description 7
- 230000005540 biological transmission Effects 0.000 description 4
- 230000008859 change Effects 0.000 description 4
- 230000006835 compression Effects 0.000 description 4
- 238000007906 compression Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 239000012634 fragment Substances 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 239000006227 byproduct Substances 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 229920001296 polysiloxane Polymers 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 239000010979 ruby Substances 0.000 description 1
- 229910001750 ruby Inorganic materials 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
本發明實施例公開了一種轉碼方法及裝置,所述方法包括:預先建立多個清晰度與解析度的對應關係;從多個清晰度中選擇第一清晰度及第二清晰度,確定分別與第一、第二清晰度對應的第一解析度及第二解析度;根據第一、第二解析度對媒體文件的第一部分內容按照預設的轉碼規則進行轉碼,記錄轉碼過程中的第一即時量化參數值、第二即時量化參數值;判斷第一即時量化參數值和第二即時量化參數值是否符合預設檢測規則;若判斷結果為否,調整第一解析度和/或調整第二解析度;根據調整後的第一解析度和/或第二解析度對媒體文件中未轉碼的部分進行轉碼。本發明實施例提供的一種轉碼方法及裝置,可以提高媒體文件的轉碼速度。 The embodiment of the present invention discloses a transcoding method and device. The method includes: pre-establishing a plurality of correspondences between definitions and resolutions; selecting the first definition and the second definition from the plurality of definitions, and determining the respective The first resolution and the second resolution corresponding to the first and second resolutions; according to the first and second resolutions, the first part of the media file is transcoded according to the preset transcoding rules, and the transcoding process is recorded The first real-time quantization parameter value and the second real-time quantization parameter value in, determine whether the first real-time quantization parameter value and the second real-time quantization parameter value meet the preset detection rules; if the judgment result is no, adjust the first resolution and/ Or adjust the second resolution; transcode the untranscoded part of the media file according to the adjusted first resolution and/or second resolution. The transcoding method and device provided by the embodiments of the present invention can improve the transcoding speed of media files.
Description
本發明係關於資訊處理技術領域,特別係關於一種轉碼方法及裝置。 The present invention relates to the field of information processing technology, and particularly relates to a transcoding method and device.
隨著行動通信技術的不斷發展,網路接入速度的飛速提升,行動終端的越趨智慧化,以及數位壓縮技術的日益優化,行動終端已從簡單的通信、聯絡工具,發展成為一個多媒體智慧平台。行動串流媒體是行動通信和串流媒體傳輸的結合,通過行動網路在行動終端上採用串流媒體技術進行資料傳輸,為使用者提供包括視訊點播、行動視訊聊天、行動視訊監控等服務。 With the continuous development of mobile communication technology, the rapid increase in network access speed, the increasingly smarter mobile terminals, and the increasing optimization of digital compression technology, mobile terminals have evolved from simple communication and contact tools to multimedia intelligence. platform. Mobile streaming media is a combination of mobile communication and streaming media transmission. Streaming media technology is used for data transmission on mobile terminals through mobile networks, providing users with services including video-on-demand, mobile video chat, and mobile video monitoring.
轉碼是將高清的超大媒體文件(例如視訊文件)壓縮成適合在某些網路場景下(如光纖網路、WIFI網路、3G網路等)、某些終端上(如電視、PC、手機、PAD等)播放的文件/串流的過程。通常媒體文件壓縮得越小,就越適合在帶寬受限的環境下傳輸,但是媒體文件的顯示畫質也可能越差。 Transcoding is to compress high-definition super-large media files (such as video files) into certain network scenarios (such as optical fiber network, WIFI network, 3G network, etc.), and on certain terminals (such as TV, PC, The process of file/streaming played by mobile phone, PAD, etc.). Generally, the smaller the media file is compressed, the more suitable it is for transmission in a bandwidth-constrained environment, but the display quality of the media file may also be worse.
現有的轉碼方法通常包括:可以預先設置好不同清晰 度對應的轉碼參數,例如清晰度可以包括:流程、標清、高清和超清四種,可以分別設置所述四種清晰度對應的解析度和碼率。根據設置好解析度和碼率對所述媒體文件分別按照不同清晰度進行預編碼及轉碼,當所述清晰度的轉碼完成後,可以輸出各清晰度對應的媒體文件。 Existing transcoding methods usually include: different clarity can be set in advance The transcoding parameters corresponding to the resolution, for example, the resolution may include four types: process, SD, HD, and ultra-definition, and the resolution and bit rate corresponding to the four resolutions can be set respectively. The media files are respectively pre-encoded and transcoded according to different definitions according to the set resolution and code rate, and after the transcoding of the definitions is completed, the media files corresponding to each definition can be output.
在實現本發明過程中,發明人發現現有技術中至少存在如下問題:現有的轉碼方法中,在轉碼之前需要對媒體文件的轉碼參數進行分析,以確定合適的解析度和碼率等轉碼參數,再根據分析好的參數進行轉碼並輸出轉碼後的媒體文件,通常該參數分析的過程需要消耗一定的時間,當一個媒體文件需要轉碼為不同清晰度的媒體文件時,對於每一個清晰度都需要進行參數分析,將會花費大量時間,降低了轉碼速度。 In the process of implementing the present invention, the inventor found that there are at least the following problems in the prior art: In the existing transcoding method, the transcoding parameters of the media file need to be analyzed before transcoding to determine the appropriate resolution and bit rate, etc. Transcoding parameters, and then transcoding according to the analyzed parameters and outputting the transcoded media files. Generally, the process of analyzing the parameters takes a certain amount of time. When a media file needs to be transcoded into media files of different definitions, Parameter analysis is required for each definition, which will take a lot of time and reduce the transcoding speed.
本發明實施例的目的是提供一種轉碼方法及裝置,以提高媒體文件的轉碼速度。 The purpose of the embodiments of the present invention is to provide a transcoding method and device to improve the transcoding speed of media files.
為解決上述技術問題,本發明實施例提供一種轉碼方法及裝置是這樣實現的:一種轉碼方法,包括:預先建立多個不同的清晰度與解析度的對應關係;從所述多個清晰度中選擇第一清晰度及第二清晰度,確定分別與第一清晰度及第二清晰度對應的第一解析度及第二解析度; 根據所述第一解析度和第二解析度對媒體文件的第一部分內容按照預設的轉碼規則進行轉碼,記錄所述轉碼過程中分別與第一清晰度、第二清晰度對應的第一即時量化參數值、第二即時量化參數值;判斷所述第一即時量化參數值和第二即時量化參數值是否均符合預設檢測規則;若所述第一即時量化參數不符合所述預設檢測規則,調整所述第一清晰度對應的第一解析度;和/或,若所述第二即時量化參數不符合所述預設檢測規則,調整所述第二清晰度對應的第二解析度;根據所述調整後的第一解析度和/或調整後的第二解析度對所述媒體文件中未轉碼的部分進行轉碼。 In order to solve the above technical problems, the embodiments of the present invention provide a transcoding method and device that are implemented as follows: A transcoding method includes: pre-establishing a plurality of correspondences between different definitions and resolutions; Select the first resolution and the second resolution in the degree, and determine the first resolution and the second resolution corresponding to the first resolution and the second resolution, respectively; According to the first resolution and the second resolution, the first part of the content of the media file is transcoded according to a preset transcoding rule, and the data corresponding to the first resolution and the second resolution during the transcoding process are recorded. The first real-time quantization parameter value and the second real-time quantization parameter value; determine whether the first real-time quantization parameter value and the second real-time quantization parameter value both comply with the preset detection rule; if the first real-time quantization parameter does not comply with the Preset detection rule to adjust the first resolution corresponding to the first definition; and/or, if the second real-time quantization parameter does not meet the preset detection rule, adjust the first resolution corresponding to the second definition Second resolution: transcoding the untranscoded part of the media file according to the adjusted first resolution and/or adjusted second resolution.
一種轉碼裝置,包括:對應關係建立模組、清晰度和解析度確定模組、轉碼模組、第一判斷模組和解析度第一調整模組;其中,所述對應關係建立模組,用於預先建立多個不同的清晰度與解析度的對應關係;所述清晰度和解析度確定模組,用於從所述多個清晰度中選擇第一清晰度及第二清晰度,確定分別與第一清晰度及第二清晰度對應的第一解析度及第二解析度;所述轉碼模組,用於根據所述第一解析度和第二解析度對媒體文件的第一部分內容按照預設的轉碼規則進行轉碼,記錄所述轉碼過程中分別與第一清晰度、第二清晰度對應的第一即時量化參數值、第二即時量化參數值; 所述第一判斷模組,用於判斷所述第一即時量化參數值和第二即時量化參數值是否均符合所述預設檢測規則;所述預設檢測規則包括:根據一解析度轉碼得到的即時量化參數值中大於第一臨限值的量化參數值的數量小於所述根據該解析度轉碼得到的即時量化參數總個數的a%;所述a的取值範圍包括:30-70;所述解析度第一調整模組,用於當所述第一判斷模組的判斷結果為所述第一即時量化參數不符合所述預設檢測規則時,調整所述第一清晰度對應的第一解析度;和/或,用於當所述第一判斷模組的判斷結果為所述第二即時量化參數不符合所述預設檢測規則時,調整所述第二清晰度對應的第二解析度;所述轉碼模組,還用於根據所述解析度第一調整模組調整後的第一解析度和/或調整後的第二解析度對所述媒體文件中未轉碼的部分進行轉碼。 A transcoding device, comprising: a correspondence relationship establishment module, a definition and resolution determination module, a transcoding module, a first judgment module, and a resolution first adjustment module; wherein the correspondence relationship establishment module , For pre-establishing a plurality of correspondences between different definitions and resolutions; the definition and resolution determination module is used for selecting the first definition and the second definition from the plurality of definitions, Determine the first resolution and the second resolution respectively corresponding to the first resolution and the second resolution; the transcoding module is configured to perform the first resolution and the second resolution of the media file according to the first resolution and the second resolution Part of the content is transcoded according to a preset transcoding rule, and the first real-time quantization parameter value and the second real-time quantization parameter value corresponding to the first definition and the second definition respectively in the transcoding process are recorded; The first judgment module is configured to judge whether the first real-time quantization parameter value and the second real-time quantization parameter value both comply with the preset detection rule; the preset detection rule includes: transcoding according to a resolution The number of obtained real-time quantization parameter values that are greater than the first threshold value is less than a% of the total number of real-time quantization parameters obtained by transcoding according to the resolution; the value range of a includes: 30 -70; The first resolution adjustment module is configured to adjust the first clarity when the judgment result of the first judgment module is that the first real-time quantization parameter does not meet the preset detection rule The first resolution corresponding to the degree; and/or, for adjusting the second definition when the judgment result of the first judgment module is that the second real-time quantization parameter does not meet the preset detection rule The corresponding second resolution; the transcoding module is also used to adjust the first resolution and/or the adjusted second resolution of the media file according to the first resolution adjusted by the first adjustment module The untranscoded part is transcoded.
由以上本發明實施例提供的技術方案可見,本發明實施例提供的轉碼方法及裝置,根據預先確定的與清晰度對應的解析度對所述媒體文件的部分內容轉碼,在轉碼之前不需要分別對每個清晰度的轉碼參數進行分析,節省了轉碼時間,提高了轉碼速度。同時,在轉碼的過程中,記錄量化參數值的變化,當量化參數值過大時,可以及時調整解析度,根據調整後的解析度對所述媒體文件的未轉碼部分進行轉碼,可以保證轉碼後的媒體文件能清晰且流暢地進行播放。 As can be seen from the technical solutions provided by the above embodiments of the present invention, the transcoding method and device provided by the embodiments of the present invention transcode part of the content of the media file according to a predetermined resolution corresponding to the resolution, and before transcoding There is no need to analyze the transcoding parameters of each definition separately, which saves transcoding time and improves the transcoding speed. At the same time, during the transcoding process, the change of the quantization parameter value is recorded. When the quantization parameter value is too large, the resolution can be adjusted in time, and the untranscoded part of the media file can be transcoded according to the adjusted resolution. Ensure that the transcoded media files can be played clearly and smoothly.
301:對應關係建立模組 301: Correspondence establishment module
302:清晰度和解析度確定模組 302: Definition and resolution determination module
303:轉碼模組 303: Transcoding Module
304:第一判斷模組 304: The first judgment module
305:解析度第一調整模組 305: The first resolution adjustment module
為了更清楚地說明本發明實施例或現有技術中的技術方案,下面將對實施例或現有技術描述中所需要使用的附圖作簡單地介紹,顯而易見地,下面描述中的附圖僅僅是本發明中記載的一些實施例,對於本領域之通常知識者來講,在不付出創造性勞動性的前提下,還可以根據這些附圖獲得其他的附圖。 In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are merely present For some of the embodiments described in the invention, for those skilled in the art, without creative labor, other drawings can be obtained from these drawings.
圖1是本發明轉碼方法一個實施例的流程圖;圖2是本發明轉碼方法一個實施例中利用線性模型調整解析度的示意圖;圖3是本發明轉碼裝置一個實施例的模組圖。 Fig. 1 is a flowchart of an embodiment of the transcoding method of the present invention; Fig. 2 is a schematic diagram of adjusting the resolution using a linear model in an embodiment of the transcoding method of the present invention; Fig. 3 is a module of an embodiment of the transcoding device of the present invention Figure.
本發明實施例提供一種轉碼方法及裝置。 The embodiment of the present invention provides a transcoding method and device.
為了使本技術領域的人員更好地理解本發明中的技術方案,下面將結合本發明實施例中的附圖,對本發明實施例中的技術方案進行清楚、完整地描述,顯然,所描述的實施例僅僅是本發明一部分實施例,而不是全部的實施例。基於本發明中的實施例,本領域之通常知識者在沒有作出創造性勞動前提下所獲得的所有其他實施例,都應當屬於本發明保護的範圍。 In order to enable those skilled in the art to better understand the technical solutions in the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described The embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work should fall within the protection scope of the present invention.
圖1是本發明一種轉碼方法實施例的流程圖。如圖1所示,所述轉碼方法可以包括: Fig. 1 is a flowchart of an embodiment of a transcoding method of the present invention. As shown in Figure 1, the transcoding method may include:
S101:預先建立多個不同的清晰度與解析度的對應關係。 S101: Establish a plurality of correspondence relationships between different definitions and resolutions in advance.
可以設定多個等級的清晰度與解析度的對應關係。所述多個等級的清晰度可以至少是2個等級的清晰度。例如,所述不同的清晰度與解析度的對應關係可以如表1所示,其中,所述多個清晰度可以為4個等級的清晰度,從最高等級的清晰度到最低等級的清晰度依次可以是:超清、高清、標清、流暢。 You can set the corresponding relationship between multiple levels of clarity and resolution. The multiple levels of clarity may be at least 2 levels of clarity. For example, the corresponding relationship between the different definitions and the resolutions may be as shown in Table 1, where the plurality of definitions may be 4 levels of definition, from the highest level of definition to the lowest level of definition The order can be: ultra-definition, high-definition, standard-definition, smooth.
S102:從所述多個清晰度中選擇第一清晰度及第二清晰度,確定分別與第一清晰度及第二清晰度對應的第一解析度及第二解析度。 S102: Select the first definition and the second definition from the plurality of definitions, and determine the first resolution and the second resolution respectively corresponding to the first definition and the second definition.
可以從所述多個等級的清晰度中選擇第一清晰度及第二清晰度。 The first definition and the second definition can be selected from the plurality of levels of definition.
當所述多個等級的清晰度為2個等級的清晰度時,所述第一清晰度可以為所述2個等級的清晰度中的任意一個,所述第二清晰度可以為另外一個。 When the multiple levels of sharpness are two levels of sharpness, the first sharpness can be any one of the two levels of sharpness, and the second sharpness can be the other one.
當所述多個等級的清晰度為3個或3個以上等級的清 晰度時,所述第一清晰度和第二清晰度可以為所述多個等級的清晰度中除去最高等級的清晰度以外的任意兩個等級的清晰度。例如,所述多個等級清晰度從最高等級的清晰度到最低等級的清晰度依次可以是:超清、高清、標清、流暢。那麼所述第一清晰度和第二清晰度可以是“高清”、“標清”和“流暢”中的任意兩個等級的清晰度。 When the multiple levels of clarity are 3 or more levels of clarity In terms of clarity, the first clarity and the second clarity may be any two levels of clarity excluding the highest level of clarity among the plurality of levels of clarity. For example, the multiple levels of definition, from the highest level of definition to the lowest level of definition, may be: ultra-definition, high-definition, standard-definition, and smooth. Then the first definition and the second definition may be any two levels of definition among "high definition", "standard definition" and "smooth".
進一步地,當所述多個等級的清晰度為4個或4個以上等級的清晰度時,所述第一清晰度和第二清晰度可以選取不相鄰的兩個等級的清晰度。例如,可以分別選取“高清”和“流暢”等級的清晰度。 Further, when the multiple levels of definition are 4 or more levels of definition, the first definition and the second definition may be two non-adjacent levels of definition. For example, you can select the definition of "High Definition" and "Smooth" levels respectively.
根據預先建立的不同的清晰度預解析度的對應關係,可以確定分別與第一清晰度及第二清晰度對應的第一解析度及第二解析度。 According to the pre-established correspondences of different definition pre-resolutions, the first resolution and the second resolution respectively corresponding to the first resolution and the second resolution can be determined.
S103:根據所述第一解析度和第二解析度對媒體文件的第一部分內容按照預設的轉碼規則進行轉碼,記錄所述轉碼過程中分別與第一清晰度、第二清晰度對應的第一即時量化參數值、第二即時量化參數值。 S103: Transcode the first part of the content of the media file according to the first resolution and the second resolution according to a preset transcoding rule, and record the difference between the first resolution and the second resolution during the transcoding process. Corresponding first instant quantization parameter value and second instant quantization parameter value.
可以根據所述第一解析度和第二解析度對媒體文件的第一部分內容按照預設的轉碼規則進行轉碼。 The first part of the content of the media file may be transcoded according to a preset transcoding rule according to the first resolution and the second resolution.
其中,所述媒體文件的第一部分內容可以包括:所述媒體文件的第一時長的內容。所述第一時長可以小於所述媒體文件的播放總時長。例如,對於一個總時長為30分鐘的視訊文件,所述第一時長的內容可以是當前時間開始的2分鐘內的內容。 Wherein, the first part of the content of the media file may include: the content of the first duration of the media file. The first duration may be less than the total playback duration of the media file. For example, for a video file with a total duration of 30 minutes, the content of the first duration may be content within 2 minutes of the current time.
所述預設的轉碼規則可以包括:根據固定碼率係數(CRF)值或者固定量化參數(QP)值進行編碼。通常情況下,CRF的值為18表示媒體文件質量基本為無損,CRF的值為19-21.5表示媒體文件質量為高質量,CRF的值為22-26表示媒體文件質量為中等質量。 The preset transcoding rule may include encoding according to a fixed code rate coefficient (CRF) value or a fixed quantization parameter (QP) value. Normally, a CRF value of 18 indicates that the media file quality is basically lossless, a CRF value of 19-21.5 indicates that the media file quality is high quality, and a CRF value of 22-26 indicates that the media file quality is medium quality.
所述預設的碼率係數可以根據實際實驗情況進行選取,例如,所述CRF的值可以為25。 The preset code rate coefficient may be selected according to actual experimental conditions. For example, the value of the CRF may be 25.
所述量化參數(QP)值可以用於衡量所述轉碼後的媒體文件的失真度/壓縮率,QP值越大,轉碼後的媒體文件的失真度越高,壓縮率越高;QP值越小,轉碼後的媒體文件的失真度越小,壓縮率越低。 The quantization parameter (QP) value can be used to measure the distortion/compression rate of the transcoded media file. The larger the QP value, the higher the distortion of the transcoded media file and the higher the compression rate; QP The smaller the value, the smaller the distortion of the transcoded media file and the lower the compression rate.
通常QP的取值範圍一般為0~51,對於一般網際網路視訊文件,若QP>35,媒體文件的質量就較差了。 Generally, the value range of QP is generally 0~51. For general Internet video files, if QP>35, the quality of media files will be poor.
在所述轉碼過程中,可以記錄分別與第一清晰度、第二清晰度對應的第一即時量化參數值、第二即時量化參數值。 In the transcoding process, the first real-time quantization parameter value and the second real-time quantization parameter value corresponding to the first definition and the second definition, respectively, can be recorded.
S104:判斷所述第一即時量化參數值和第二即時量化參數值是否均符合預設檢測規則。 S104: Determine whether the first real-time quantization parameter value and the second real-time quantization parameter value both comply with a preset detection rule.
可以判斷所述第一即時量化參數值和第二即時量化參數值是否均符合預設檢測規則。 It can be determined whether the first real-time quantization parameter value and the second real-time quantization parameter value both comply with a preset detection rule.
所述預設檢測規則可以包括:根據一解析度轉碼得到的即時量化參數值中大於第一臨限值的量化參數值的數量小於所述根據該解析度轉碼得到的即時量化參數值的總個數的a%;所述a的取值範圍可以包括:30-70。 The preset detection rule may include: the number of real-time quantization parameter values obtained by transcoding according to a resolution that is greater than a first threshold value is less than the number of real-time quantization parameter values obtained by transcoding according to the resolution. A% of the total number; the value range of a can include: 30-70.
其中,通過比較所述即時量化參數值是否大於所述第一臨限值,可以判斷轉碼過程中是否存在瞬時碼率值過高的情況。 Wherein, by comparing whether the instant quantization parameter value is greater than the first threshold value, it can be determined whether the instantaneous bit rate value is too high during the transcoding process.
所述第一臨限值可以為所述固定量化參數值或者與所述固定碼率係數值對應的量化參數值。具體地,當所述預設的轉碼規則為根據固定碼率係數值進行編碼時,所述第一臨限值可以為:所述預設的碼率係數值加5。一般情況下,當所述轉碼得到的量化參數值大於第一臨限值時,可以說明瞬時碼率值大於當前解析度下媒體文件可以流暢播放的最大碼率值,如果超過一定數量的瞬時碼率值大於所述最大碼率值,可能導致所述媒體文件在當前解析度下不能流暢地進行播放。 The first threshold value may be the fixed quantization parameter value or a quantization parameter value corresponding to the fixed code rate coefficient value. Specifically, when the preset transcoding rule is encoding according to a fixed code rate coefficient value, the first threshold value may be: the preset code rate coefficient value plus 5. In general, when the quantization parameter value obtained by the transcoding is greater than the first threshold value, it can be indicated that the instantaneous bit rate value is greater than the maximum bit rate value at which the media file can be played smoothly at the current resolution. The bit rate value is greater than the maximum bit rate value, which may cause the media file to not be played smoothly at the current resolution.
S105:若所述第一即時量化參數值不符合所述預設檢測規則,調整所述第一清晰度對應的第一解析度;和/或,若所述第二即時量化參數值不符合所述預設檢測規則,調整所述第二清晰度對應的第二解析度。 S105: If the first real-time quantization parameter value does not meet the preset detection rule, adjust the first resolution corresponding to the first definition; and/or, if the second real-time quantization parameter value does not meet all The preset detection rule is used to adjust the second resolution corresponding to the second definition.
當大於第一臨限值的量化參數值的數量較多時,說明在當前解析度下,按照預設的轉碼規則進行轉碼時,所述媒體文件的多個片段的瞬時碼率可能會超過該解析度下的最大碼率,可能導致媒體文件不能流暢播放。因此,需要降低當前清晰度對應的解析度。 When the number of quantization parameter values greater than the first threshold is large, it means that when transcoding is performed according to the preset transcoding rule under the current resolution, the instantaneous bit rate of multiple fragments of the media file may change Exceeding the maximum bitrate under this resolution may cause media files to not play smoothly. Therefore, the resolution corresponding to the current sharpness needs to be reduced.
所述調整第一解析度可以包括:將所述第一解析度的值乘以第一係數。所述調整第二解析度可以包括:將所述第二解析度的值乘以第一係數。所述第一係數的取值可以 包括:大於0且小於1。例如,所述第一係數可以是0.8。 The adjusting the first resolution may include: multiplying the value of the first resolution by a first coefficient. The adjusting the second resolution may include: multiplying the value of the second resolution by a first coefficient. The value of the first coefficient can be Including: greater than 0 and less than 1. For example, the first coefficient may be 0.8.
S106:根據所述調整後的第一解析度和/或調整後的第二解析度對所述媒體文件中未轉碼的部分進行轉碼。 S106: Transcode the untranscoded part of the media file according to the adjusted first resolution and/or adjusted second resolution.
根據所述調整後的第一解析度和/或第二解析度,可以對所述媒體文件中未轉碼的部分按照預設的轉碼規則進行轉碼,可以得到分別與所述第一清晰度、第二清晰度對應的新的第一碼率和新的第二碼率。 According to the adjusted first resolution and/or second resolution, the untranscoded part of the media file can be transcoded according to a preset transcoding rule, and it can be obtained separately from the first resolution. The new first bit rate and the new second bit rate corresponding to the degree and second definition.
在另一個實施方式中,所述方法還可以包括:若所述第一即時量化參數值和第二即時量化參數值均符合所述預設檢測規則,根據所述第一解析度和第二解析度對所述媒體文件中未轉碼的部分進行轉碼。當所述第一即時量化參數值和第二即時量化參數值均符合所述預設檢測規則時,可以表示大於第一臨限值的量化參數的數量為0或者數量較少。那麼,說明在當前解析度下,按照預設的轉碼規則進行轉碼時,所述媒體文件沒有或只有很少片段的瞬時碼率值會超過該解析度下的最大碼率值,可以保證媒體文件能流暢播放,因此可以根據所述第一解析度和第二解析度對所述媒體文件中未轉碼的部分進行轉碼。 In another embodiment, the method may further include: if the first real-time quantization parameter value and the second real-time quantization parameter value both conform to the preset detection rule, according to the first resolution and the second resolution Transcoding the untranscoded part of the media file. When the first instant quantization parameter value and the second instant quantization parameter value both conform to the preset detection rule, it may indicate that the number of quantization parameters greater than the first threshold value is 0 or the number is less. Then, it means that under the current resolution, when transcoding according to the preset transcoding rules, the instantaneous bit rate value of the media file with no or only a few fragments will exceed the maximum bit rate value under the resolution, which can guarantee The media file can be played smoothly, so the untranscoded part of the media file can be transcoded according to the first resolution and the second resolution.
在另一個實施方式中,所述方法還可以包括:記錄對媒體文件的第一部分內容轉碼得到的分別與第一清晰度、第二清晰度對應的第一碼率和第二碼率,根據與所述第一清晰度、第二清晰度分別對應的第一碼率、第二碼率和第一解析度、第二解析度建立線性模型。 In another embodiment, the method may further include: recording a first bit rate and a second bit rate corresponding to the first definition and the second definition respectively obtained by transcoding the first part of the content of the media file, according to The first bit rate, the second bit rate and the first resolution and the second resolution respectively corresponding to the first resolution and the second resolution establish a linear model.
進一步地,當所述多個等級的清晰度為至少3個等級的清晰度時,根據所述線性模型和所述多個等級的清晰度中除第一清晰度、第二清晰度以外其他各等級清晰度對應的解析度,確定與所述其他各等級的清晰度對應的碼率值。 Further, when the clarity of the multiple levels is at least 3 levels of clarity, according to the linear model and the multiple levels of clarity, each other than the first clarity and the second clarity The resolution corresponding to the level of clarity determines the bit rate value corresponding to the other levels of clarity.
具體地,根據第一解析度、第二解析度和第一碼率、第二碼率可以計算得到解析度和碼率的線性關係,根據所述線性關係,可以計算得到與所述其他各等級清晰度的解析度對應的碼率值。通過線性模型,可以直接且快速地確定與所述其他等級的清晰度對應的碼率,而不需要通過分別根據不同等級的清晰度對應的解析度對媒體文件進行轉碼來得到對應的碼率值,提高處理效率。 Specifically, the linear relationship between the resolution and the bit rate can be calculated according to the first resolution, the second resolution, the first bit rate, and the second bit rate, and the linear relationship between the resolution and the bit rate can be calculated based on the linear relationship. The bit rate value corresponding to the resolution of the sharpness. Through the linear model, the code rate corresponding to the other levels of resolution can be determined directly and quickly, without the need to transcode the media files according to the resolutions corresponding to the different levels of resolution to obtain the corresponding code rate. Value to improve processing efficiency.
進一步地,可以判斷每一等級的清晰度對應的碼率值是否均小於或等於該等級的清晰度對應的預設的上限碼率臨限值;若判斷結果為否,可以確定所述多個等級的清晰度中碼率值大於所述上限碼率臨限值的目標等級的清晰度;根據所述目標等級的清晰度對應的上限碼率臨限值及所述線性模型,可以確定與所述目標等級的清晰度對應的調整後的解析度;可以根據所述調整後的解析度對所述媒體文件中未轉碼的部分進行轉碼。通過控制轉碼過程中的碼率值不大於上限碼率臨限值,可以保證媒體文件流暢地播放。同時,利用線性模型可以得到與每一等級的清晰度下可以流暢播放媒體文件的碼率值所匹配的解析度,從而可以保證轉碼後的媒體文件可以清晰並且流暢地播放。 Further, it can be judged whether the code rate value corresponding to each level of definition is less than or equal to the preset upper limit code rate threshold value corresponding to that level of definition; if the judgment result is no, it can be determined that the multiple In the definition of the level, the definition of the target level whose bit rate value is greater than the threshold value of the upper limit bit rate; according to the threshold value of the upper limit bit rate corresponding to the definition of the target level and the linear model, it can be determined that The adjusted resolution corresponding to the definition of the target level; the untranscoded part of the media file may be transcoded according to the adjusted resolution. By controlling the code rate value in the transcoding process to not be greater than the upper limit code rate threshold, the smooth playback of media files can be ensured. At the same time, the linear model can be used to obtain a resolution that matches the code rate value of the media file that can be played smoothly at each level of definition, so as to ensure that the transcoded media file can be played clearly and smoothly.
圖2是本發明轉碼方法一個實施例中利用線性模型調整解析度的示意圖。如圖2所示,圖2中,B和E分別表示根據表1得到的分別與“高清”和“流暢”對應的第一解析度和第二解析度,其中A表示根據表1得到的與清晰度“超清”對應的解析度,D表示根據表1得到的與清晰度“標清”對應的解析度。b表示轉碼過程中得到的第一碼率值,e表示轉碼過程中得到的第二碼率值。 FIG. 2 is a schematic diagram of adjusting the resolution using a linear model in an embodiment of the transcoding method of the present invention. As shown in Figure 2, in Figure 2, B and E respectively represent the first resolution and the second resolution corresponding to "HD" and "Smooth" obtained according to Table 1, where A represents the and obtained according to Table 1. The resolution corresponding to the definition "super definition", D represents the resolution corresponding to the definition "standard definition" obtained according to Table 1. b represents the first code rate value obtained during the transcoding process, and e represents the second code rate value obtained during the transcoding process.
那麼根據B、E、b和e可以建立線性模型,得到解析度和碼率的線性關係,如圖3中線m所示。根據所述線性模型,可以得到與所述解析度A對應的碼率值a,以及與所述解析度D對應的碼率值d。假設a’、b’、d’和e’分別為與清晰度“超清”、“高清”、“標清”和“流暢”對應的預設碼率臨限值,那麼可以判斷得知,只有d>d’,表示若對所述媒體文件解析度D進行轉碼實現清晰度為“標清”的播放時,媒體文件將不能流暢播放。此時,根據所述與“標清”對應的上限碼率值d’和所述線性模型,可以得到與所述d’對應的解析度D’,將所述D’作為調整後的與“標清”對應的解析度,根據調整得到的D’對所述媒體文件中未轉碼的部分進行轉碼時,可以保證媒體文件清晰且流暢地播放。 Then, a linear model can be established based on B, E, b, and e, and the linear relationship between the resolution and the bit rate can be obtained, as shown by the line m in Figure 3. According to the linear model, the code rate value a corresponding to the resolution A and the code rate value d corresponding to the resolution D can be obtained. Assuming that a', b', d', and e'are the preset bit rate thresholds corresponding to the definitions "Ultra Definition", "HD", "SD" and "Smooth" respectively, then it can be judged that, Only d>d' means that if the resolution D of the media file is transcoded to realize the playback with the definition of "SD", the media file will not be played smoothly. At this time, according to the upper limit code rate value d'corresponding to "standard definition" and the linear model, the resolution D'corresponding to d'can be obtained, and the D'is taken as the adjusted and " When transcoding the untranscoded part of the media file according to the adjusted D', the resolution corresponding to “standard definition” can ensure the clear and smooth playback of the media file.
上述實施例提供的轉碼方法,根據預先確定的與清晰度對應的解析度對所述媒體文件的部分內容進行轉碼,在轉碼之前不需要分別對每個清晰度的轉碼參數進行分析,節省了轉碼時間,提高了轉碼速度。同時,在轉碼的過程 中,記錄量化參數值的變化,當量化參數值過大時,可以及時調整解析度並根據調整後的解析度對所述媒體文件的未轉碼部分進行轉碼,並且可以保證轉碼後的媒體文件能清晰且流暢地進行播放。 The transcoding method provided in the foregoing embodiment transcodes part of the content of the media file according to the predetermined resolution corresponding to the resolution, and does not need to analyze the transcoding parameters of each resolution separately before transcoding. , Which saves transcoding time and improves transcoding speed. At the same time, during the transcoding process In, the change of the quantization parameter value is recorded. When the quantization parameter value is too large, the resolution can be adjusted in time and the untranscoded part of the media file can be transcoded according to the adjusted resolution, and the transcoded media can be guaranteed Files can be played clearly and smoothly.
圖3是本發明轉碼裝置一個實施例的模組圖。如圖3所示,所述轉碼裝置可以包括:對應關係建立模組301、清晰度和解析度確定模組302、轉碼模組303、第一判斷模組304和解析度第一調整模組305。其中,所述對應關係建立模組301,可以用於預先建立多個不同的清晰度與解析度的對應關係。
Fig. 3 is a module diagram of an embodiment of the transcoding device of the present invention. As shown in FIG. 3, the transcoding device may include: a correspondence
所述清晰度和解析度確定模組302,可以用於從所述多個清晰度中選擇第一清晰度及第二清晰度,確定分別與第一清晰度及第二清晰度對應的第一解析度及第二解析度。
The definition and
所述轉碼模組303,可以用於根據所述第一解析度和第二解析度對媒體文件的第一部分內容按照預設的轉碼規則進行轉碼,記錄所述轉碼過程中分別與第一清晰度、第二清晰度對應的第一即時量化參數值、第二即時量化參數值。
The
所述第一判斷模組304,可以用於判斷所述第一即時量化參數值和第二即時量化參數值是否均符合所述預設檢測規則。其中所述預設檢測規則可以包括:根據一解析度轉碼得到的即時量化參數值中大於第一臨限值的量化參數的數量小於所述根據該解析度轉碼得到的即時量化參數總
個數的a%;所述a的取值範圍可以包括:30-70。
The
所述解析度第一調整模組305,可以用於當所述第一判斷模組304的判斷結果為所述第一即時量化參數不符合所述預設檢測規則時,調整所述第一清晰度對應的第一解析度;和/或,可以用於當所述第一判斷模組304的判斷結果為所述第二即時量化參數不符合所述預設檢測規則時,調整所述第二清晰度對應的第二解析度。
The resolution
所述轉碼模組303,還可以用於根據所述解析度第一調整模組305調整後的第一解析度和/或調整後的第二解析度對所述媒體文件中未轉碼的部分進行轉碼。
The
在另一個實施方式中,所述轉碼裝置還可以包括:碼率記錄模組和線性模型建立模組。所述碼率記錄模組可以用於記錄所述轉碼模組對媒體文件的第一部分內容轉碼得到的分別與第一清晰度、第二清晰度對應的第一碼率和第二碼率。所述線性模型建立模組可以用於根據與所述第一清晰度、第二清晰度分別對應的第一碼率、第二碼率和第一解析度、第二解析度建立線性模型。 In another embodiment, the transcoding device may further include: a code rate recording module and a linear model establishment module. The code rate recording module may be used to record the first code rate and the second code rate corresponding to the first definition and the second definition respectively obtained by transcoding the first part of the content of the media file by the transcoding module . The linear model establishment module may be used to establish a linear model according to the first code rate, the second code rate, the first resolution and the second resolution respectively corresponding to the first resolution and the second resolution.
進一步地,所述轉碼裝置還可以包括其他碼率確定模組,其可以用於根據所述線性模型和所述多個等級的清晰度中除第一清晰度、第二清晰度以外其他各等級清晰度對應的解析度,確定與所述其他各等級的清晰度對應的碼率值 Further, the transcoding device may further include other code rate determination modules, which may be used to determine each other than the first definition and the second definition according to the linear model and the plurality of levels of definition. The resolution corresponding to the level of clarity, to determine the bit rate value corresponding to the other levels of clarity
在另一個實施方式中,所述轉碼裝置還可以包括:第二判斷模組。所述第二判斷模組,可以用於判斷每個等級 的清晰度對應的碼率值是否均小於或等於該等級的清晰度對應的預設的上限碼率臨限值。 In another embodiment, the transcoding device may further include: a second judgment module. The second judgment module can be used to judge each level Whether the code rate values corresponding to the definitions of, are all less than or equal to the preset upper limit code rate threshold value corresponding to the definition of the level.
進一步地,當所述第二判斷模組的判斷結果為否時,所述轉碼裝置還可以包括:目標等級清晰度確定模組和解析度第二調整模組;其中,所述目標清晰度模組,可以用於確定所述多個等級的清晰度中碼率值大於所述對應的預設上限碼率臨限值的目標等級的清晰度。 Further, when the judgment result of the second judgment module is no, the transcoding device may further include: a target level definition determination module and a second resolution adjustment module; wherein, the target definition The module can be used to determine the definition of the target level whose code rate value is greater than the corresponding preset upper limit code rate threshold among the definitions of the multiple levels.
所述解析度第二調整模組,可以用於根據所述目標等級的清晰度對應的上限碼率臨限值及所述線性模型,確定與所述目標等級的清晰度對應的調整後的解析度。 The second resolution adjustment module may be used to determine the adjusted resolution corresponding to the resolution of the target level according to the upper limit bit rate threshold corresponding to the resolution of the target level and the linear model degree.
相應地,所述轉碼模組303還可以用於根據所述解析度第二調整模組調整後的解析度對所述媒體文件中未轉碼的部分進行轉碼。
Correspondingly, the
上述實施例公開的轉碼裝置與本發明轉碼方法實施例相對應,可以實現本發明的方法實施例,取得方法實施例的技術效果。 The transcoding device disclosed in the foregoing embodiment corresponds to the embodiment of the transcoding method of the present invention, and can implement the method embodiment of the present invention and obtain the technical effects of the method embodiment.
在20世紀90年代,對於一個技術的改進可以很明顯地區分是硬體上的改進(例如,對二極體、電晶體、開關等電路結構的改進)還是軟體上的改進(對於方法流程的改進)。然而,隨著技術的發展,當今的很多方法流程的改進已經可以視為硬體電路結構的直接改進。設計人員幾乎都通過將改進的方法流程編程到硬體電路中來得到相應的硬體電路結構。因此,不能說一個方法流程的改進就不 能用硬體實體模組來實現。例如,可編程邏輯器件(Programmable Logic Device,PLD)(例如現場可編程閘陣列(Field Programmable Gate Array,FPGA))就是這樣一種積體電路,其邏輯功能由使用者對器件編程來確定。由設計人員自行編程來把一個數位系統“整合”在一片PLD上,而不需要請晶片製造廠商來設計和製作專用的積體電路晶片2。而且,如今,取代手工地製作積體電路晶片,這種編程也多半改用“邏輯編譯器(logic compiler)”軟體來實現,它與程式開發撰寫時所用的軟體編譯器相類似,而要編譯之前的原始代碼也得用特定的編程語言來撰寫,此稱之為硬體描述語言(Hardware Description Language,HDL),而HDL也並非僅有一種,而是有許多種,如ABEL(Advanced Boolean Expression Language)、AHDL(Altera Hardware Description Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby Hardware Description Language)等,目前最普遍使用的是VHDL(Very-High-Speed Integrated Circuit Hardware Description Language)與Verilog2。本領域技術人員也應該清楚,只需要將方法流程用上述幾種硬體描述語言稍作邏輯編程並編程到積體電路中,就可以很容易得到實現該邏輯方法流程的硬體電路。 In the 1990s, the improvement of a technology can be clearly distinguished from the improvement of the hardware (for example, the improvement of the circuit structure of diodes, transistors, switches, etc.) or the improvement of the software (for the process of the method). Improve). However, with the development of technology, the improvement of many methods and processes of today can be regarded as a direct improvement of the hardware circuit structure. Designers almost always get the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that the improvement of a method flow is not It can be implemented with hardware physical modules. For example, a Programmable Logic Device (PLD) (such as a Field Programmable Gate Array (FPGA)) is such an integrated circuit whose logic function is determined by the user's programming of the device. It is programmed by the designer to "integrate" a digital system on a single PLD, without requiring the chip manufacturer to design and manufacture a dedicated integrated circuit chip 2. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly realized by using "logic compiler" software, which is similar to the software compiler used in program development and writing, but requires compilation. The original code before has to be written in a specific programming language, which is called Hardware Description Language (HDL), and HDL is not only one, but there are many, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc., currently the most Commonly used are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog2. It should also be clear to those skilled in the art that only a little logic programming of the method flow in the above hardware description languages and programming into the integrated circuit can easily obtain the hardware circuit that implements the logic method flow.
控制器可以按任何適當的方式實現,例如,控制器可 以採取例如微處理器或處理器以及儲存可由該(微)處理器執行的電腦可讀程式代碼(例如軟體或韌體)的電腦可讀介質、邏輯閘、開關、專用積體電路(Application Specific Integrated Circuit,ASIC)、可編程邏輯控制器和嵌入微控制器的形式,控制器的例子包括但不限於以下微控制器:ARC 625D、Atmel AT91SAM、Microchip PIC18F26K20以及Silicone Labs C8051F320,記憶體控制器還可以被實現為記憶體的控制邏輯的一部分。 The controller can be implemented in any suitable way, for example, the controller can For example, a microprocessor or a processor and a computer-readable medium storing computer-readable program codes (such as software or firmware) executable by the (micro)processor, logic gates, switches, and dedicated integrated circuits (Application Specific Integrated Circuit, ASIC), programmable logic controllers and embedded microcontrollers. Examples of controllers include but are not limited to the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicone Labs C8051F320, memory controllers also Can be implemented as part of the control logic of the memory.
本領域之通常知識者也知道,除了以純電腦可讀程式代碼方式實現控制器以外,完全可以通過將方法步驟進行邏輯編程來使得控制器以邏輯閘、開關、專用積體電路、可編程邏輯控制器和嵌入微控制器等的形式來實現相同功能。因此這種控制器可以被認為是一種硬體部件,而對其內包括的用於實現各種功能的裝置也可以視為硬體部件內的結構。或者甚至,可以將用於實現各種功能的裝置視為既可以是實現方法的軟體模組又可以是硬體部件內的結構。 Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code, it is entirely possible to program the method steps to make the controller be controlled by logic gates, switches, dedicated integrated circuits, and programmable logic. The same function can be realized in the form of an embedded microcontroller and a microcontroller. Therefore, such a controller can be regarded as a hardware component, and the devices included in it for realizing various functions can also be regarded as a structure within the hardware component. Or even, the device for realizing various functions can be regarded as both a software module for realizing the method and a structure within a hardware component.
上述實施例闡明的系統、裝置、模組或單元,具體可以由電腦晶片或實體實現,或者由具有某種功能的產品來實現。 The systems, devices, modules, or units explained in the above embodiments may be implemented by computer chips or entities, or implemented by products with certain functions.
為了描述的方便,描述以上裝置時以功能分為各種單元分別描述。當然,在實施本發明時可以把各單元的功能在同一個或多個軟體和/或硬體中實現。 For the convenience of description, when describing the above device, the functions are divided into various units and described separately. Of course, when implementing the present invention, the functions of each unit can be implemented in the same or multiple software and/or hardware.
通過以上的實施方式的描述可知,本領域的技術人員 可以清楚地瞭解到本發明可借助軟體加必需的通用硬體平台的方式來實現。基於這樣的理解,本發明的技術方案本質上或者說對現有技術做出貢獻的部分可以以軟體產品的形式體現出來,在一個典型的配置中,計算設備包括一個或多個處理器(CPU)、輸入/輸出介面、網路介面和記憶體。該電腦軟體產品可以包括若干指令用以使得一台電腦設備(可以是個人電腦,伺服器,或者網路設備等)執行本發明各個實施例或者實施例的某些部分所述的方法。該電腦軟體產品可以儲存在記憶體中,記憶體可能包括電腦可讀介質中的非永久性記憶體,隨機存取記憶體(RAM)和/或非易失性記憶體等形式,如唯讀記憶體(ROM)或閃存(flash RAM)。記憶體是電腦可讀介質的示例。電腦可讀介質包括永久性和非永久性、可行動和非可行動媒體可以由任何方法或技術來實現資訊儲存。資訊可以是電腦可讀指令、資料結構、程式的模組或其他資料。電腦的儲存介質的例子包括,但不限於相變記憶體(PRAM)、靜態隨機存取記憶體(SRAM)、動態隨機存取記憶體(DRAM)、其他類型的隨機存取記憶體(RAM)、唯讀記憶體(ROM)、電可擦除可編程唯讀記憶體(EEPROM)、快閃記憶體或其他記憶體技術、唯讀光碟唯讀記憶體(CD-ROM)、數位多功能光碟(DVD)或其他光學儲存、磁盒式磁帶,磁帶磁磁碟儲存或其他磁性儲存設備或任何其他非傳輸介質,可用於儲存可以被計算設備訪問的資訊。按照本文中的界定,電腦可讀介質不包括短暫電腦可讀媒體(transitory media),如 調變的資料信號和載波。 It can be seen from the description of the above embodiments that those skilled in the art It can be clearly understood that the present invention can be implemented by means of software plus the necessary universal hardware platform. Based on this understanding, the technical solution of the present invention essentially or the part that contributes to the prior art can be embodied in the form of a software product. In a typical configuration, the computing device includes one or more processors (CPU) , Input/output interface, network interface and memory. The computer software product may include a number of instructions to enable a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments of the present invention. The computer software product can be stored in memory, which may include non-permanent memory in computer-readable media, random access memory (RAM) and/or non-volatile memory, such as read-only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media. Computer-readable media include permanent and non-permanent, movable and non-movable media, and information storage can be realized by any method or technology. Information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), and other types of random access memory (RAM) , Read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital multi-function optical disc (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by computing devices. According to the definition in this article, computer-readable media does not include transitory media (transitory media), such as Modulated data signal and carrier.
本說明書中的各個實施例均採用遞進的方式描述,各個實施例之間相同相似的部分互相參見即可,每個實施例重點說明的都是與其他實施例的不同之處。尤其,對於系統實施例而言,由於其基本相似於方法實施例,所以描述的比較簡單,相關之處參見方法實施例的部分說明即可。 The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, as for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the part of the description of the method embodiment.
本發明可用於眾多通用或專用的電腦系統環境或配置中。例如:個人電腦、伺服器電腦、手持設備或便攜式設備、平板型設備、多處理器系統、基於微處理器的系統、機上盒、可編程的消費電子設備、網路PC、小型電腦、大型電腦、包括以上任何系統或設備的分散式計算環境等等。 The present invention can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multi-processor systems, microprocessor-based systems, set-top boxes, programmable consumer electronic devices, network PCs, small computers, large Computers, distributed computing environments including any of the above systems or equipment, etc.
本發明可以在由電腦執行的電腦可執行指令的一般上下文中描述,例如程式模組。一般地,程式模組包括執行特定任務或實現特定抽象資料類型的例程、程式、對象、組件、資料結構等等。也可以在分散式計算環境中實踐本發明,在這些分散式計算環境中,由通過通信網路而被連接的遠端處理設備來執行任務。在分散式計算環境中,程式模組可以位於包括儲存設備在內的本地和遠端電腦儲存介質中。 The invention can be described in the general context of computer-executable instructions executed by a computer, such as a program module. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present invention can also be practiced in distributed computing environments. In these distributed computing environments, remote processing devices connected through a communication network perform tasks. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
雖然通過實施例描繪了本發明,本領域之通常知識者知道,本發明有許多變形和變化而不脫離本發明的精神,希望所附的申請專利範圍包括這些變形和變化而不脫離本發明的精神。 Although the present invention has been described through the embodiments, those skilled in the art know that the present invention has many modifications and changes without departing from the spirit of the present invention. It is hoped that the scope of the appended patent application includes these modifications and changes without departing from the present invention. spirit.
Claims (17)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW106102490A TWI721089B (en) | 2017-01-23 | 2017-01-23 | Transcoding method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW106102490A TWI721089B (en) | 2017-01-23 | 2017-01-23 | Transcoding method and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| TW201828700A TW201828700A (en) | 2018-08-01 |
| TWI721089B true TWI721089B (en) | 2021-03-11 |
Family
ID=63960389
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| TW106102490A TWI721089B (en) | 2017-01-23 | 2017-01-23 | Transcoding method and device |
Country Status (1)
| Country | Link |
|---|---|
| TW (1) | TWI721089B (en) |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6671322B2 (en) * | 2001-05-11 | 2003-12-30 | Mitsubishi Electric Research Laboratories, Inc. | Video transcoder with spatial resolution reduction |
| US20050091696A1 (en) * | 2003-09-15 | 2005-04-28 | Digital Networks North America, Inc. | Method and system for adaptive transcoding and transrating in a video network |
| US20070263720A1 (en) * | 2006-05-12 | 2007-11-15 | Freescale Semiconductor Inc. | System and method of adaptive rate control for a video encoder |
| US20140208374A1 (en) * | 2011-09-02 | 2014-07-24 | Thomson Licensing | Method and apparatus for adaptive transcoding of multimedia stream |
| TW201545537A (en) * | 2014-05-30 | 2015-12-01 | Alibaba Group Services Ltd | Content-based adaptive video transcoding method and device |
| EP2751984B1 (en) * | 2011-08-30 | 2017-05-10 | Sonic IP, Inc. | Selection of resolutions for seamless resolution switching of multimedia content |
-
2017
- 2017-01-23 TW TW106102490A patent/TWI721089B/en active
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6671322B2 (en) * | 2001-05-11 | 2003-12-30 | Mitsubishi Electric Research Laboratories, Inc. | Video transcoder with spatial resolution reduction |
| US20050091696A1 (en) * | 2003-09-15 | 2005-04-28 | Digital Networks North America, Inc. | Method and system for adaptive transcoding and transrating in a video network |
| US20070263720A1 (en) * | 2006-05-12 | 2007-11-15 | Freescale Semiconductor Inc. | System and method of adaptive rate control for a video encoder |
| EP2751984B1 (en) * | 2011-08-30 | 2017-05-10 | Sonic IP, Inc. | Selection of resolutions for seamless resolution switching of multimedia content |
| US20140208374A1 (en) * | 2011-09-02 | 2014-07-24 | Thomson Licensing | Method and apparatus for adaptive transcoding of multimedia stream |
| TW201545537A (en) * | 2014-05-30 | 2015-12-01 | Alibaba Group Services Ltd | Content-based adaptive video transcoding method and device |
Also Published As
| Publication number | Publication date |
|---|---|
| TW201828700A (en) | 2018-08-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN106856570B (en) | A kind of code-transferring method and device | |
| US10645449B2 (en) | Method and apparatus of content-based self-adaptive video transcoding | |
| US10645406B2 (en) | Transcoding method and apparatus | |
| US9674100B2 (en) | Dynamic adjustment to multiple bitrate algorithm based on buffer length | |
| US9788111B2 (en) | Audio device with automatic fan control based on a volume level of audio content | |
| US20210011744A1 (en) | Content presentation with enhanced closed caption and/or skip back | |
| CN111031389A (en) | Video processing method, electronic device and storage medium | |
| CN107846595B (en) | Video coding method and video coder | |
| TWI721089B (en) | Transcoding method and device | |
| US9699463B2 (en) | Constant quality video encoding | |
| KR101640452B1 (en) | Apparatus and method for preventing stoppage of streaming media | |
| WO2025123984A1 (en) | Video bitrate calculation method and system | |
| US20250119562A1 (en) | Selective just-in-time transcoding | |
| CN108124155B (en) | Code rate control method and device and electronic equipment | |
| CN104780392A (en) | Transcoding method and device for video files | |
| CN118118736A (en) | Video processing method, device and related products | |
| CN109996120A (en) | Video stream control device and its control method | |
| CN115190359A (en) | A kind of video playback format automatic conversion method and system | |
| TW201828696A (en) | Transcoding method and device capable of guaranteeing that the media document can be played smoothly and clearly | |
| CN119052518B (en) | Data transmission method, device and electronic device based on network live broadcast | |
| HK1256085B (en) | Code rate control method and apparatus, and electronic device | |
| HK1256085A1 (en) | Code rate control method and apparatus, and electronic device | |
| HK1215770B (en) | Content-based self-adaption video transcoding method and apparatus |