WO2016206606A1 - 一种变比特率mp3播放时间获取方法及*** - Google Patents

一种变比特率mp3播放时间获取方法及*** Download PDF

Info

Publication number
WO2016206606A1
WO2016206606A1 PCT/CN2016/086944 CN2016086944W WO2016206606A1 WO 2016206606 A1 WO2016206606 A1 WO 2016206606A1 CN 2016086944 W CN2016086944 W CN 2016086944W WO 2016206606 A1 WO2016206606 A1 WO 2016206606A1
Authority
WO
WIPO (PCT)
Prior art keywords
file
bit rate
variable bit
time
frames
Prior art date
Application number
PCT/CN2016/086944
Other languages
English (en)
French (fr)
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 深圳市九洲电器有限公司
Publication of WO2016206606A1 publication Critical patent/WO2016206606A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor

Definitions

  • the present invention relates to the field of communications, and in particular, to a method and system for acquiring a variable bit rate MP3 play time.
  • the present invention provides a method for obtaining a bit-rate MP3 playback time, which includes the following steps:
  • S20 setting N index members corresponding to the N positions of the entire variable bit rate MP3 file, each index member storing the location and the playing time at the location;
  • the step S10 is specifically: parsing the file of the file after the variable bit rate MP3 file is played.
  • the total number of frames of the file and the total playback time are obtained from the file header.
  • the step S20 is specifically: setting N index members corresponding to the N positions of the entire variable bit rate MP3 file, and the interval between the adjacent two index members is the same.
  • the present invention also provides a variable bit rate MP3 playback daytime acquisition system, including
  • the parameter obtaining unit after playing the variable bit rate MP3 file, obtaining the total number of frames of the variable bit rate MP3 file and the total playing time;
  • the index setting unit sets N index members corresponding to the N positions of the entire variable bit rate MP3 file, and each index member stores the location and the playing time at the location;
  • playing the inter-time acquisition unit after playing, actually obtaining the location of the file pointer, determining which index members the file pointer is between; obtaining the play time stored by the previous index member, and obtaining The number of frames between the file pointer and the previous index member is determined by the time interval between the stored play time and the number of frames to determine the actual play time.
  • the parameter obtaining unit parses the file header of the file after the variable bit rate MP3 file is played.
  • the total number of frames of the file and the total playback time are obtained from the file header.
  • the index setting unit sets N index members corresponding to N positions of the entire variable bit rate MP3 file, and the interval between the adjacent two index members is the same.
  • each index member stores the playing time at the location, after playing, the file pointer is obtained before the index member stores the playing time plus the previous index member
  • the number of frames corresponds to the actual playing time, which not only ensures the accuracy of the playing time, but also greatly improves the efficiency, ensures the user's use, and brings great convenience to the user.
  • FIG. 1 is a flowchart of a method for acquiring a variable bit rate MP3 play time in an embodiment
  • FIG. 2 is a structural block diagram of a variable bit rate MP3 playback inter-frame acquisition system in an embodiment. Embodiments of the invention
  • FIG. 1 is a flowchart of a method for acquiring a variable bit rate MP3 playback time in an embodiment. As shown in FIG. 1, the method includes the following steps:
  • the step is specifically: parsing the file header of the file after the variable bit rate MP3 file is played, and obtaining the total number of frames of the file and the total playing time from the file header.
  • S20 N index members are set corresponding to the N positions of the entire variable bit rate MP3 file, and each index member stores the location and the playing time at the location.
  • N index members are set corresponding to N positions of the entire variable bit rate MP3 file, that is, all the number of frames of the entire MP3 file are divided into N parts to generate N positions, and an index member is set at each position.
  • the index members can obtain the play time at the location and store according to the number of frames before the location. N is adjusted according to the number of frames of the MP3 file, and the larger the number of frames, the more N is.
  • the step is specifically: setting N index members corresponding to the N positions of the entire variable bit rate MP3 file, and the interval between the adjacent two index members is the same. That is, the number of frames of the entire MP3 file is divided into N parts, which is advantageous for obtaining the actual playing time.
  • S30 After playing, the position of the file pointer is obtained, and it is determined between the two index members where the file pointer is located; the playing time of the previous index member is obtained, and the file pointer and the front are obtained. The number of frames between an index member is determined by the time interval between the stored play time and the number of frames to determine the actual play time.
  • N index members are set corresponding to N positions of the entire variable bit rate MP3 file, and each index member stores the playing time at the location, and after playing, the file pointer is stored before the index member is stored.
  • the playing time and the number of frames corresponding to the previous index member can determine the actual playing time, thereby ensuring the accuracy of the playing time, greatly improving the efficiency and ensuring the user. Use, to bring great convenience to users.
  • the present invention further provides a variable bit rate MP3 playback inter-time acquisition system, the system comprising:
  • the parameter obtaining unit obtains the total number of frames of the variable bit rate MP3 file and the total playing time after the variable bit rate MP3 file is played.
  • the parameter obtaining unit parses the file header of the file, and obtains the total number of frames of the file and the total playing time from the file header.
  • the index setting unit sets N index members corresponding to the N positions of the entire variable bit rate MP3 file, and each index member stores the location and the playing time at the position.
  • the index setting unit sets N index members corresponding to N positions of the entire variable bit rate MP3 file, that is, divides all the frames of the entire MP3 file into N parts to generate N positions, and sets an index at each position.
  • N is adjusted according to the number of frames of the MP3 file, and the larger the number of frames, the more N is.
  • the index setting unit sets N index members corresponding to N positions of the entire variable bit rate MP3 file, and the interval between the adjacent two index members is the same. That is, the number of frames of the entire MP3 file is divided into N parts, which is advantageous for obtaining the actual playing time.
  • playing the inter-time acquisition unit after playing, actually obtaining the location of the file pointer, determining which index members the file pointer is between; obtaining the play time stored by the previous index member, and obtaining The number of frames between the file pointer and the previous index member is determined by the time interval between the stored play time and the number of frames to determine the actual play time.
  • the playing time acquisition unit After setting N index members for the entire MP3 file, after playing the MP3 file, the playing time acquisition unit actually obtains the location of the file pointer, and then determines which two cable members are between the file members. Then, according to the playing time stored in the previous index member and the number of frames between the previous index member, the actual playing time is determined, so that only a small number of frames between the previous index member and the previous index member can be accurately calculated. Obtaining the actual playing time, which not only ensures the accuracy of the playing time, but also greatly improves the efficiency, ensures the user's use, and brings great convenience to the user.
  • N index members are set corresponding to N positions of the entire variable bit rate MP3 file, and each index member stores the playing time at the location, and after playing, the file pointer is stored before the index member is stored.
  • the playing time and the number of frames corresponding to the previous index member can determine the actual playing time, thereby ensuring the accuracy of the playing time, greatly improving the efficiency and ensuring the user. Use, to bring great convenience to users.
  • the method and system for acquiring the bit rate MP3 playing time of the present invention setting N index members corresponding to N positions of the entire variable bit rate MP3 file, each index member storing the playing time at the position, performing After playing ⁇ , the file index pointer is used to store the playing time of the index member plus the number of frames corresponding to the previous index member to determine the actual playing time, thus ensuring the playing time.
  • the reliability which greatly improves the efficiency, guarantees the user's use and brings great convenience to the user.
  • FIG. 2 is a structural block diagram of a variable bit rate MP3 playback inter-time acquisition system in an embodiment, as shown in FIG. 2
  • the system 100 includes a processor 110, a communication interface (Communications)
  • Interface 120 memory 130 and communication bus 140:
  • the processor 110, the communication interface 120, and the memory 130 complete communication with each other through the communication bus 140.
  • the communication interface 120 is configured to communicate with an external device.
  • the processor 110 is configured to execute the program 131.
  • the program 131 may include program code, and the program code includes computer operation instructions.
  • the processor 110 may be a central processing unit CPU, or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present invention.
  • CPU central processing unit
  • ASIC application specific integrated circuit
  • the memory 130 is configured to store the program 131.
  • the memory 130 may include a high speed RAM memory and may also include a non-volatile memory such as at least one disk memory.
  • the program 131 may specifically include:
  • the parameter obtaining unit 10 after playing the variable bit rate MP3 file, obtaining the total number of frames of the variable bit rate MP3 file and the total playing time;
  • the index setting unit 20 sets N index members corresponding to the N positions of the entire variable bit rate MP3 file, and each index member stores the location and the playing time at the location;
  • the parameter obtaining unit 10 parses the file header of the file after the variable bit rate MP3 file is played, and obtains the total number of frames of the file and the total playing time from the file header.
  • the index setting unit 20 corresponds to the N position settings of the entire variable bit rate MP3 file.
  • the disclosed system, apparatus, and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division, and the actual implementation may have another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed.
  • the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some communication interface, device or unit, and may be in electrical, mechanical or other form.
  • the unit described as a separate component may or may not be physically distributed, and the component displayed as a unit may or may not be a physical unit, that is, may be located in one place, or may be distributed to multiple On the network unit. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the functions, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium.
  • the technical solution of the present application which is essential to the prior art or part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including
  • the instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present application.
  • the foregoing storage medium includes: a USB flash drive, a removable hard disk, a read only memory (ROM, Read-Only)
  • RAM random access memory
  • disk disk or optical disk, and other media that can store program code.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Indexing, Searching, Synchronizing, And The Amount Of Synchronization Travel Of Record Carriers (AREA)

Abstract

一种变比特率MP3播放时间获取方法及***,对应整个变比特率MP3文件的N个位置设置N个索引成员,每个索引成员存储所处位置处的播放时间,在进行播放时,获取文件指针前一个索引成员存储的播放时间加上与前一个索引成员之间的帧数对应的时间即可确定实时的播放时间,从而既保证了播放时间的准确性,又大大提高了效率,保证了用户使用,给用户带来极大便利。

Description

一种变比特率 MP3播放时间获取方法及*** 技术领域
[0001] 本发明涉及通信领域, 尤其涉及一种变比特率 MP3播放吋间获取方法及***。
背景技术
[0002] 目前, MP3文件在播放吋, 需要准确获取 MP3文件实吋的播放吋间。
[0003] 对于恒定比特率 (CBR) MP3文件播放吋间计算比较简单, 通过播放吋的文件 指针位置与总文件大小的比值再乘以总播放吋间即可得到。 但是, 对于变比特 率 (VBR) MP3文件在播放吋, 由于每帧播放吋间相同但每帧大小不同, 所以 会造成文件指针移动忽快忽慢, 如果再用 CBR的方法获取实吋的播放吋间得到 的播放吋间会吋快吋慢, 非常不准确, 尤其对于比特率变化比较大的 MP3文件这 种现象会更明显, 这就严重影响了用户使用, 给用户带来不便。
技术问题
[0004] 有鉴于此, 有必要针对上述变比特率 MP3文件获取实吋播放吋间忽快忽慢不准 确的问题, 提供一种变比特率 MP3播放吋间获取方法及***。
问题的解决方案
技术解决方案
[0005] 本发明提供一种变比特率 MP3播放吋间获取方法, 包括如下步骤:
[0006] S10: 在变比特率 MP3文件播放吋, 获取变比特率 MP3文件的总帧数和总播放 吋间;
[0007] S20: 对应整个变比特率 MP3文件的 N个位置设置 N个索引成员, 每个索引成员 存储所处位置和所处位置处的播放吋间;
[0008] S30: 在进行播放吋, 实吋获取文件指针所处的位置, 确定文件指针处在哪两 个索引成员之间; 获取前一个索引成员存储的播放吋间, 并且获取文件指针与 前一个索引成员之间的帧数, 通过存储的播放吋间加上帧数对应的吋间来确定 实吋的播放吋间。
[0009] 优选的, 所述步骤 S10具体为: 在变比特率 MP3文件播放吋, 解析该文件的文 件头, 由文件头中获取该文件的总帧数和总播放吋间。
[0010] 优选的, 所述步骤 S20具体为: 对应整个变比特率 MP3文件的 N个位置设置 N个 索引成员, 且相邻两个索引成员之间吋间间隔相同。
[0011] 本发明还提供一种变比特率 MP3播放吋间获取***, 包括
[0012] 参数获取单元, 在变比特率 MP3文件播放吋, 获取变比特率 MP3文件的总帧数 和总播放吋间;
[0013] 索引设置单元, 对应整个变比特率 MP3文件的 N个位置设置 N个索引成员, 每 个索引成员存储所处位置和所处位置处的播放吋间;
[0014] 播放吋间获取单元, 在进行播放吋, 实吋获取文件指针所处的位置, 确定文件 指针处在哪两个索引成员之间; 获取前一个索引成员存储的播放吋间, 并且获 取文件指针与前一个索引成员之间的帧数, 通过存储的播放吋间加上帧数对应 的吋间来确定实吋的播放吋间。
[0015] 优选的, 所述参数获取单元在变比特率 MP3文件播放吋, 解析该文件的文件头
, 由文件头中获取该文件的总帧数和总播放吋间。
[0016] 优选的, 所述索引设置单元对应整个变比特率 MP3文件的 N个位置设置 N个索 引成员, 且相邻两个索引成员之间吋间间隔相同。
发明的有益效果
有益效果
[0017] 本发明变比特率 MP3播放吋间获取方法及***, 对应整个变比特率 MP3文件的
N个位置设置 N个索引成员, 每个索引成员存储所处位置处的播放吋间, 在进行 播放吋, 获取文件指针前一个索引成员存储的播放吋间加上与前一个索引成员 之间的帧数对应的吋间即可确定实吋的播放吋间, 从而既保证了播放吋间的准 确性, 又大大提高了效率, 保证了用户使用, 给用户带来极大便利。
对附图的简要说明
附图说明
[0018] 图 1是一个实施例中的变比特率 MP3播放吋间获取方法的流程图;
[0019] 图 2是一个实施例中的变比特率 MP3播放吋间获取***的结构框图。 本发明的实施方式
[0020] 为了使本发明的目的、 技术方案及优点更加清楚明白, 以下结合附图及实施例 , 对本发明进行进一步详细说明。 应当理解, 此处所描述的具体实施例仅用以 解释本发明, 并不用于限定本发明。
[0021] 图 1是一个实施例中的变比特率 MP3播放吋间获取方法的流程图, 如图 1所示, 该方法包括如下步骤:
[0022] S10: 在变比特率 MP3文件播放吋, 获取变比特率 MP3文件的总帧数和总播放 吋间。
[0023] 在变比特率 MP3文件进行播放吋, 由于是变比特率的, 每帧播放吋间相同, 但 是每帧大小不同, 文件指针移动会跟随每帧的大小忽快忽慢, 造成播放吋间不 准确。 故, 首先需要获取该 MP3文件的总帧数和总播放吋间 (总播放吋间 =总帧 数 *每帧的播放吋间, 每帧的播放吋间是固定的) 。
[0024] 在进一步的方式中, 该步骤具体为: 在变比特率 MP3文件播放吋, 解析该文件 的文件头, 由文件头中获取该文件的总帧数和总播放吋间。
[0025] S20: 对应整个变比特率 MP3文件的 N个位置设置 N个索引成员, 每个索引成员 存储所处位置和所处位置处的播放吋间。
[0026] 由于变比特率 MP3文件每一帧的播放吋间相同, 通过获取已经播放过的帧数能 够准确获取实吋的播放吋间。 但是, 通常一个 MP3文件包括大量的帧数, 如果每 次都去读取已经播放的帧数将耗费大量的吋间, 导致实吋的播放吋间无法及吋 获取, 不能进行显示。 故在该实施例中, 对应整个变比特率 MP3文件的 N个位置 设置 N个索引成员, 即将整个 MP3文件所有帧数分成 N份产生 N个位置, 在每个 位置处设置一个索引成员, 每个索引成员根据所处的位置前的帧数能够获取所 处位置处的播放吋间并进行存储。 N根据 MP3文件的帧数进行调整, 帧数越大则 N越多。
[0027] 在进一步的方式中, 该步骤具体为: 对应整个变比特率 MP3文件的 N个位置设 置 N个索引成员, 且相邻两个索引成员之间吋间间隔相同。 即将整个 MP3文件的 帧数均分为 N份, 这样利于获取实吋的播放吋间。 [0028] S30: 在进行播放吋, 实吋获取文件指针所处的位置, 确定文件指针处在哪两 个索引成员之间; 获取前一个索引成员存储的播放吋间, 并且获取文件指针与 前一个索引成员之间的帧数, 通过存储的播放吋间加上帧数对应的吋间来确定 实吋的播放吋间。
[0029] 对整个 MP3文件设置 N个索引成员之后, 在 MP3文件进行播放吋, 实吋获取文 件指针所处的位置, 然后确定文件指标在哪两个索引成员之间, 然后根据前一 个索引成员存储的播放吋间以及与前一个索引成员之间的帧数来确定实吋的播 放吋间, 这样只需要计算与前一个索引成员之间的少量帧数即可准确获取实吋 的播放吋间, 从而既保证了播放吋间的准确性, 又大大提高了效率, 保证了用 户使用, 给用户带来极大便利。
[0030] 该方法, 对应整个变比特率 MP3文件的 N个位置设置 N个索引成员, 每个索引 成员存储所处位置处的播放吋间, 在进行播放吋, 获取文件指针前一个索引成 员存储的播放吋间加上与前一个索引成员之间的帧数对应的吋间即可确定实吋 的播放吋间, 从而既保证了播放吋间的准确性, 又大大提高了效率, 保证了用 户使用, 给用户带来极大便利。
[0031] 同吋, 本发明还提供一种变比特率 MP3播放吋间获取***, 该***包括:
[0032] 参数获取单元, 在变比特率 MP3文件播放吋, 获取变比特率 MP3文件的总帧数 和总播放吋间。
[0033] 在变比特率 MP3文件进行播放吋, 由于是变比特率的, 每帧播放吋间相同, 但 是每帧大小不同, 文件指针移动会跟随每帧的大小忽快忽慢, 造成播放吋间不 准确。 故, 首先需要获取该 MP3文件的总帧数和总播放吋间 (总播放吋间 =总帧 数 *每帧的播放吋间, 每帧的播放吋间是固定的) 。
[0034] 在进一步的方式中, 在变比特率 MP3文件播放吋, 参数获取单元解析该文件的 文件头, 由文件头中获取该文件的总帧数和总播放吋间。
[0035] 索引设置单元, 对应整个变比特率 MP3文件的 N个位置设置 N个索引成员, 每 个索引成员存储所处位置和所处位置处的播放吋间。
[0036] 由于变比特率 MP3文件每一帧的播放吋间相同, 通过获取已经播放过的帧数能 够准确获取实吋的播放吋间。 但是, 通常一个 MP3文件包括大量的帧数, 如果每 次都去读取已经播放的帧数将耗费大量的吋间, 导致实吋的播放吋间无法及吋 获取, 不能进行显示。 故在该实施例中, 索引设置单元对应整个变比特率 MP3文 件的 N个位置设置 N个索引成员, 即将整个 MP3文件所有帧数分成 N份产生 N个位 置, 在每个位置处设置一个索引成员, 每个索引成员根据所处的位置前的帧数 能够获取所处位置处的播放吋间并进行存储。 N根据 MP3文件的帧数进行调整, 帧数越大则 N越多。
[0037] 在进一步的方式中, 索引设置单元对应整个变比特率 MP3文件的 N个位置设置 N个索引成员, 且相邻两个索引成员之间吋间间隔相同。 即将整个 MP3文件的帧 数均分为 N份, 这样利于获取实吋的播放吋间。
[0038] 播放吋间获取单元, 在进行播放吋, 实吋获取文件指针所处的位置, 确定文件 指针处在哪两个索引成员之间; 获取前一个索引成员存储的播放吋间, 并且获 取文件指针与前一个索引成员之间的帧数, 通过存储的播放吋间加上帧数对应 的吋间来确定实吋的播放吋间。
[0039] 对整个 MP3文件设置 N个索引成员之后, 在 MP3文件进行播放吋, 播放吋间获 取单元实吋获取文件指针所处的位置, 然后确定文件指标在哪两个索弓 I成员之 间, 然后根据前一个索引成员存储的播放吋间以及与前一个索引成员之间的帧 数来确定实吋的播放吋间, 这样只需要计算与前一个索引成员之间的少量帧数 即可准确获取实吋的播放吋间, 从而既保证了播放吋间的准确性, 又大大提高 了效率, 保证了用户使用, 给用户带来极大便利。
[0040] 该***, 对应整个变比特率 MP3文件的 N个位置设置 N个索引成员, 每个索引 成员存储所处位置处的播放吋间, 在进行播放吋, 获取文件指针前一个索引成 员存储的播放吋间加上与前一个索引成员之间的帧数对应的吋间即可确定实吋 的播放吋间, 从而既保证了播放吋间的准确性, 又大大提高了效率, 保证了用 户使用, 给用户带来极大便利。
[0041] 本发明变比特率 MP3播放吋间获取方法及***, 对应整个变比特率 MP3文件的 N个位置设置 N个索引成员, 每个索引成员存储所处位置处的播放吋间, 在进行 播放吋, 获取文件指针前一个索引成员存储的播放吋间加上与前一个索引成员 之间的帧数对应的吋间即可确定实吋的播放吋间, 从而既保证了播放吋间的准 确性, 又大大提高了效率, 保证了用户使用, 给用户带来极大便利。
[0042] 图 2是一个实施例中的变比特率 MP3播放吋间获取***的结构框图, 如图 2所示
, 该*** 100包括处理器 (processor) 110, 通信接口(Communications
Interface) 120, 存储器 (memory) 130和通信总线 140:
[0043] 其中, 处理器 110、 通信接口 120、 存储器 130通过通信总线 140完成相互间的通 信。
[0044] 通信接口 120, 用于与外界设备通信。
[0045] 处理器 110, 用于执行程序 131。
[0046] 具体的, 程序 131可以包括程序代码, 所述程序代码包括计算机操作指令。
[0047] 处理器 110可能是一个中央处理器 CPU, 或者是特定集成电路 ASIC (Applicatio n Specific Integrated Circuit) , 或者是被配置成实施本发明实施例的一个或多个 集成电路。
[0048] 存储器 130, 用于存放所述程序 131。 存储器 130可能包含高速 RAM存储器, 也 可能还包括非易失性存储器 (non-volatile memory) , 例如至少一个磁盘存储器
[0049] 程序 131具体可以包括:
[0050] 参数获取单元 10, 在变比特率 MP3文件播放吋, 获取变比特率 MP3文件的总帧 数和总播放吋间;
[0051] 索引设置单元 20, 对应整个变比特率 MP3文件的 N个位置设置 N个索引成员, 每个索引成员存储所处位置和所处位置处的播放吋间;
[0052] 播放吋间获取单元 30, 在进行播放吋, 实吋获取文件指针所处的位置, 确定文 件指针处在哪两个索引成员之间; 获取前一个索引成员存储的播放吋间, 并且 获取文件指针与前一个索引成员之间的帧数, 通过存储的播放吋间加上帧数对 应的吋间来确定实吋的播放吋间。
[0053] 在一个实施例中, 参数获取单元 10在变比特率 MP3文件播放吋, 解析该文件的 文件头, 由文件头中获取该文件的总帧数和总播放吋间。
[0054] 在一个实施例中, 索引设置单元 20对应整个变比特率 MP3文件的 N个位置设置
N个索引成员, 且相邻两个索引成员之间吋间间隔相同。 [0055] 所属领域的技术人员可以清楚地了解到, 为描述的方便和简洁, 上述描述的系 统、 装置和单元的具体工作过程, 可以参考前述方法实施例中的对应过程, 在 此不再赘述。
[0056] 在本申请所提供的几个实施例中, 应该理解到, 所揭露的***、 装置和方法, 可以通过其它的方式实现。 例如, 以上所描述的装置实施例仅仅是示意性的, 例如, 所述单元的划分, 仅仅为一种逻辑功能划分, 实际实现吋可以有另外的 划分方式, 例如多个单元或组件可以结合或者可以集成到另一个***, 或一些 特征可以忽略, 或不执行。 另一点, 所显示或讨论的相互之间的耦合或直接耦 合或通信连接可以是通过一些通信接口, 装置或单元的间接耦合或通信连接, 可以是电性, 机械或其它的形式。
[0057] 所述作为分离部件说明的单元可以是或者也可以不是物理上分幵的, 作为单元 显示的部件可以是或者也可以不是物理单元, 即可以位于一个地方, 或者也可 以分布到多个网络单元上。 可以根据实际的需要选择其中的部分或者全部单元 来实现本实施例方案的目的。
[0058] 另外, 在本申请各个实施例中的各功能单元可以集成在一个处理单元中, 也可 以是各个单元单独物理存在, 也可以两个或两个以上单元集成在一个单元中。
[0059] 所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用吋, 可 以存储在一个计算机可读取存储介质中。 基于这样的理解, 本申请的技术方案 本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产 品的形式体现出来, 该计算机软件产品存储在一个存储介质中, 包括若干指令 用以使得一台计算机设备 (可以是个人计算机, 服务器, 或者网络设备等) 执 行本申请各个实施例所述方法的全部或部分步骤。 而前述的存储介质包括: U盘 、 移动硬盘、 只读存储器 (ROM, Read-Only
Memory) 、 随机存取存储器 (RAM, Random Access Memory) 、 磁碟或者光盘 等各种可以存储程序代码的介质。
[0060] 以上仅为本发明的较佳实施例而已, 并不用以限制本发明, 凡在本发明的精神 和原则之内所作的任何修改、 等同替换和改进等, 均应包含在本发明的保护范 围之内。

Claims

权利要求书
一种变比特率 MP3播放吋间获取方法, 其特征在于, 包括如下步骤: S10: 在变比特率 MP3文件播放吋, 获取变比特率 MP3文件的总帧数 和总播放吋间;
S20: 对应整个变比特率 MP3文件的 N个位置设置 N个索引成员, 每个 索引成员存储所处位置和所处位置处的播放吋间;
S30: 在进行播放吋, 实吋获取文件指针所处的位置, 确定文件指针 处在哪两个索引成员之间; 获取前一个索引成员存储的播放吋间, 并 且获取文件指针与前一个索引成员之间的帧数, 通过存储的播放吋间 加上帧数对应的吋间来确定实吋的播放吋间。
根据权利要求 1所述的变比特率 MP3播放吋间获取方法, 其特征在于
, 所述步骤 S10具体为: 在变比特率 MP3文件播放吋, 解析该文件的 文件头, 由文件头中获取该文件的总帧数和总播放吋间。
根据权利要求 1所述的变比特率 MP3播放吋间获取方法, 其特征在于
, 所述步骤 S20具体为: 对应整个变比特率 MP3文件的 N个位置设置 N 个索引成员, 且相邻两个索引成员之间吋间间隔相同。
一种变比特率 MP3播放吋间获取***, 其特征在于, 包括: 参数获取单元, 在变比特率 MP3文件播放吋, 获取变比特率 MP3文件 的总帧数和总播放吋间;
索弓 I设置单元, 对应整个变比特率 MP3文件的 N个位置设置 N个索弓 I 成员, 每个索引成员存储所处位置和所处位置处的播放吋间; 播放吋间获取单元, 在进行播放吋, 实吋获取文件指针所处的位置, 确定文件指针处在哪两个索引成员之间; 获取前一个索引成员存储的 播放吋间, 并且获取文件指针与前一个索引成员之间的帧数, 通过存 储的播放吋间加上帧数对应的吋间来确定实吋的播放吋间。
根据权利要求 4所述的变比特率 MP3播放吋间获取***, 其特征在于 , 所述参数获取单元在变比特率 MP3文件播放吋, 解析该文件的文件 头, 由文件头中获取该文件的总帧数和总播放吋间。 [权利要求 6] 根据权利要求 4所述的变比特率 MP3播放吋间获取***, 其特征在于
, 所述索弓 I设置单元对应整个变比特率 MP3文件的 N个位置设置 N个 索引成员, 且相邻两个索引成员之间吋间间隔相同。
PCT/CN2016/086944 2015-06-24 2016-06-23 一种变比特率mp3播放时间获取方法及*** WO2016206606A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510352781.5 2015-06-24
CN201510352781.5A CN104934049B (zh) 2015-06-24 2015-06-24 一种变比特率mp3播放时间获取方法及***

Publications (1)

Publication Number Publication Date
WO2016206606A1 true WO2016206606A1 (zh) 2016-12-29

Family

ID=54121187

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/086944 WO2016206606A1 (zh) 2015-06-24 2016-06-23 一种变比特率mp3播放时间获取方法及***

Country Status (2)

Country Link
CN (1) CN104934049B (zh)
WO (1) WO2016206606A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020026640A1 (en) * 2001-05-30 2002-02-28 Nokia Corporation System and method for jumping to a timepoint in a MPEG file
CN101018323A (zh) * 2007-02-08 2007-08-15 华为技术有限公司 一种快进快退播放视频数据的方法和流媒体服务器
EP1980958A2 (en) * 2007-04-13 2008-10-15 Nero AG Apparatus and method for generating a data file or for reading a data file
CN102402509A (zh) * 2010-09-07 2012-04-04 无锡中星微电子有限公司 一种变码率音频文件的寻址方法和装置
CN103581711A (zh) * 2013-10-31 2014-02-12 广州西维尔计算机***有限公司 基于低倍速文件实现快进快退播放视频数据的方法

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100444106C (zh) * 2005-11-25 2008-12-17 北京中星微电子有限公司 在可变比特率格式的mp3文件中实现定位的方法
CN101064152A (zh) * 2006-04-27 2007-10-31 上海乐金广电电子有限公司 Mp3文件播放方法
CN100589195C (zh) * 2006-12-08 2010-02-10 北京中星微电子有限公司 一种针对变化比特率mp3文件的定位播放方法
FR2975555A1 (fr) * 2011-05-18 2012-11-23 Thomson Licensing Methode d'adaptation dynamique du debit de reception et recepteur associe

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020026640A1 (en) * 2001-05-30 2002-02-28 Nokia Corporation System and method for jumping to a timepoint in a MPEG file
CN101018323A (zh) * 2007-02-08 2007-08-15 华为技术有限公司 一种快进快退播放视频数据的方法和流媒体服务器
EP1980958A2 (en) * 2007-04-13 2008-10-15 Nero AG Apparatus and method for generating a data file or for reading a data file
CN102402509A (zh) * 2010-09-07 2012-04-04 无锡中星微电子有限公司 一种变码率音频文件的寻址方法和装置
CN103581711A (zh) * 2013-10-31 2014-02-12 广州西维尔计算机***有限公司 基于低倍速文件实现快进快退播放视频数据的方法

Also Published As

Publication number Publication date
CN104934049B (zh) 2018-03-16
CN104934049A (zh) 2015-09-23

Similar Documents

Publication Publication Date Title
WO2017166630A1 (zh) 一种任务优先级修正方法和装置
EP2955713A1 (en) Synchronous audio playback method, apparatus and system
CN105681874A (zh) 网络视频在线播放的方法和装置
WO2017096948A1 (zh) 视频定位方法和装置
CN109120987A (zh) 一种视频录制方法、装置、终端及计算机可读存储介质
US10075349B2 (en) Systems and methods for modeling quality of service for streaming media
WO2015169172A1 (zh) 网络视频播放的方法和装置
CN109348274A (zh) 一种直播互动方法、装置及存储介质
JP2011181069A5 (zh)
CN104038846A (zh) 缓存状态估计方法及设备
CN106911927B (zh) 评估网络视频用户体验质量的方法、装置和dpi设备
WO2020155958A1 (zh) 测量网速的方法、装置、计算机设备及可读存储介质
AU2021201757A1 (en) Staggered key frame video encoding
CN104978966B (zh) 音频流中的丢帧补偿实现方法和装置
WO2017107531A1 (zh) 一种音量调节方法和终端设备
WO2017107430A1 (zh) 终端设备的控制方法、装置、设备及非易失性计算机存储介质
WO2020155956A1 (zh) 首帧均衡限流方法、装置、计算机设备及可读存储介质
CN109523614B (zh) 一种3d动画导出方法、3d动画播放方法及装置
CN104506631B (zh) 一种音频文件缓存方法和设备
WO2016206606A1 (zh) 一种变比特率mp3播放时间获取方法及***
CN104700830B (zh) 一种语音端点检测方法及装置
EP3365839A1 (en) Incorporating biometric data from multiple sources to augment real-time electronic interaction
WO2014134998A1 (zh) 应用平台化配置方法和装置
CN103152635A (zh) 一种解决播放时间跳变的方法及客户端
CN109427342A (zh) 用于防止语音延迟的语音数据处理装置及方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16813722

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 25/05/2018)

122 Ep: pct application non-entry in european phase

Ref document number: 16813722

Country of ref document: EP

Kind code of ref document: A1