[go: up one dir, main page]

CN106817614A - Audio frequency and video frame losing device and method - Google Patents

Audio frequency and video frame losing device and method Download PDF

Info

Publication number
CN106817614A
CN106817614A CN201710045496.8A CN201710045496A CN106817614A CN 106817614 A CN106817614 A CN 106817614A CN 201710045496 A CN201710045496 A CN 201710045496A CN 106817614 A CN106817614 A CN 106817614A
Authority
CN
China
Prior art keywords
frame rate
frame
video
time
preset
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN201710045496.8A
Other languages
Chinese (zh)
Other versions
CN106817614B (en
Inventor
马子平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Ruihua Kangyuan Technology Co ltd
Original Assignee
Nubia Technology Co Ltd
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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201710045496.8A priority Critical patent/CN106817614B/en
Publication of CN106817614A publication Critical patent/CN106817614A/en
Application granted granted Critical
Publication of CN106817614B publication Critical patent/CN106817614B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/434Disassembling of a multiplex stream, e.g. demultiplexing audio and video streams, extraction of additional data from a video stream; Remultiplexing of multiplex streams; Extraction or processing of SI; Disassembling of packetised elementary stream
    • H04N21/4342Demultiplexing isochronously with video sync, e.g. according to bit-parallel or bit-serial interface formats, as SDI
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/4302Content synchronisation processes, e.g. decoder synchronisation
    • H04N21/4305Synchronising client clock from received content stream, e.g. locking decoder clock with encoder clock, extraction of the PCR packets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/4302Content synchronisation processes, e.g. decoder synchronisation
    • H04N21/4307Synchronising the rendering of multiple content streams or additional data on devices, e.g. synchronisation of audio on a mobile phone with the video output on the TV screen
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440281Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by altering the temporal resolution, e.g. by frame skipping

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

本发明公开了一种音视频丢帧装置,所述装置包括:获取模块,用于实时或定时获取当前播放时刻的音频帧时间及视频帧时间之间的时间差;判断模块,用于若所述时差的绝对值大于或等于预设时长,则判断所述视频中是否包含B帧,所述预设时长为单位视频帧的显示时长的预设倍数;确定模块,用于若所述视频中包含B帧,则根据当前播放视频源文件的第一帧率以及当前进行视频播放的第二帧率确定丢弃视频中的B帧的时间间隔;第一丢弃模块,用于按照所述时间间隔丢弃B帧,以使视频源文件的帧率达到当前进行视频播放的帧率。本发明还公开了一种音视频丢帧方法。本发明能够通过丢弃对视频播放无影响的B帧,实现调整音视频的输出同步。

The invention discloses an audio and video frame loss device, which comprises: an acquisition module, used to acquire the time difference between the audio frame time and the video frame time at the current playback moment in real time or regularly; a judging module, used if the If the absolute value of the time difference is greater than or equal to the preset duration, then it is judged whether the video contains a B frame, and the preset duration is a preset multiple of the display duration of the unit video frame; the determination module is used to determine if the video contains B frame, then according to the first frame rate of the currently playing video source file and the second frame rate of the current video playback, determine the time interval of discarding the B frame in the video; the first discarding module is used to discard B according to the time interval frame, so that the frame rate of the video source file reaches the frame rate of the current video playback. The invention also discloses an audio and video frame dropping method. The present invention can adjust the output synchronization of audio and video by discarding B frames that have no influence on video playback.

Description

音视频丢帧装置及方法Audio and video frame dropping device and method

技术领域technical field

本发明涉及视频播放领域,尤其涉及一种音视频丢帧装置及方法。The invention relates to the field of video playback, in particular to an audio and video frame dropping device and method.

背景技术Background technique

在移动互联网时代,随着智能终端的推广和普及,用户不断追求高品质的音视体验,高压缩比、高码率、高分辨率、多声道、无损音源渐渐成为视频标配,用户对多媒体的视频的画面质量要求越来越高。In the era of mobile Internet, with the promotion and popularization of smart terminals, users are constantly pursuing high-quality audio-visual experience. The picture quality requirements of multimedia videos are getting higher and higher.

智能终端的视频播放器开发时通常需要集成测试不同文件类型、编码类型的视频源,以及相同编码类型不同级别、不同配置的视频源,以满足用户音视频源的多样性。由于受到硬件性能的约束,在视频播放时难以达到源文件所要求的FPS(Frames Per Second,视频播放帧率),于是在播放时就会出现跳帧现象,使得音视频不同步。When developing video players for smart terminals, it is usually necessary to integrate and test video sources of different file types and encoding types, as well as video sources of the same encoding type, different levels, and different configurations, so as to meet the diversity of user audio and video sources. Due to the constraints of hardware performance, it is difficult to achieve the FPS (Frames Per Second, video playback frame rate) required by the source file during video playback, so frame skipping will occur during playback, making the audio and video out of sync.

发明内容Contents of the invention

本发明的主要目的在于提出一种音视频丢帧装置及方法,旨在解决现有技术中在播放时就会出现跳帧现象,使得音视频不同步的技术问题。The main purpose of the present invention is to propose an audio and video frame dropping device and method, aiming to solve the technical problem in the prior art that frame skipping occurs during playback, making the audio and video out of sync.

为实现上述目的,本发明提供一种音视频丢帧装置,所述装置包括:In order to achieve the above object, the present invention provides an audio and video frame dropping device, said device comprising:

获取模块,用于实时或定时获取当前播放时刻的音频帧时间及视频帧时间之间的时间差;The obtaining module is used to obtain the time difference between the audio frame time and the video frame time of the current playback moment in real time or regularly;

判断模块,用于若所述时差的绝对值大于或等于预设时长,则判断所述视频中是否包含B帧,所述预设时长为单位视频帧的显示时长的预设倍数;A judging module, configured to judge whether the video contains a B frame if the absolute value of the time difference is greater than or equal to a preset duration, and the preset duration is a preset multiple of the display duration of a unit video frame;

确定模块,用于若所述视频中包含B帧,则根据当前播放视频源文件的第一帧率以及当前进行视频播放的第二帧率确定丢弃视频中的B帧的时间间隔;Determining module, for if comprising B frame in the video, then according to the first frame rate of current playing video source file and the second frame rate of currently performing video playback, determine the time interval of discarding the B frame in the video;

第一丢弃模块,用于按照所述时间间隔丢弃B帧,以使视频源文件的帧率达到当前进行视频播放的帧率。The first discarding module is configured to discard the B frame according to the time interval, so that the frame rate of the video source file reaches the frame rate of the current video playback.

可选地,所述确定模块包括:Optionally, the determination module includes:

确定单元,用于根据终端芯片的性能确定终端支持的第三帧率;a determining unit, configured to determine a third frame rate supported by the terminal according to the performance of the terminal chip;

判断单元,用于判断所述第二帧率是否小于所述第三帧率;a judging unit, configured to judge whether the second frame rate is lower than the third frame rate;

调整单元,用于在所述第二帧率大于或等于所述第三帧率时,对所述第三帧率增加预设增量,以更新所述第三帧率;an adjustment unit, configured to add a preset increment to the third frame rate to update the third frame rate when the second frame rate is greater than or equal to the third frame rate;

所述判断单元,还用于在所述第二帧率小于所述第三帧率时,判断所述第二帧率与预设值的和是否大于所述第三帧率;The judging unit is further configured to judge whether the sum of the second frame rate and a preset value is greater than the third frame rate when the second frame rate is lower than the third frame rate;

第一计算单元,用于在所述第二帧率与预设值的和小于或等于所述第三帧率时,计算所述第二帧率以及所述第三帧率的平均值,并根据所述平均值以及所述第一帧率计算所述时间间隔;A first calculation unit, configured to calculate an average value of the second frame rate and the third frame rate when the sum of the second frame rate and a preset value is less than or equal to the third frame rate, and calculating the time interval according to the average value and the first frame rate;

所述调整单元,还用于在所述第二帧率与预设值的和大于所述第三帧率时,对所述第三帧率减去所述预设增量,以更新所述第三帧率。The adjustment unit is further configured to subtract the preset increment from the third frame rate when the sum of the second frame rate and a preset value is greater than the third frame rate, so as to update the The third frame rate.

可选地,所述装置还包括:Optionally, the device also includes:

播放模块,用于若视频中没有B帧,则播放下一个I帧。The playback module is used to play the next I frame if there is no B frame in the video.

可选地,所述装置还包括:Optionally, the device also includes:

对比模块,用于实时对比当前系统播放时间与实际播放时间;The comparison module is used to compare the current system playback time with the actual playback time in real time;

第二丢弃模块,用于当前系统播放时间与实际播放时间的时间差大于第一预设时间时,则丢弃视频源文件中的B帧;The second discarding module is used for discarding the B frame in the video source file when the time difference between the current system playing time and the actual playing time is greater than the first preset time;

所述播放模块,还用于当前系统播放时间与实际播放时间的时间差大于第二预设时间时,则播放下一个I帧,其中,所述第一预设时间小于所述第二预设时间。The playing module is also used for playing the next I frame when the time difference between the current system playing time and the actual playing time is greater than the second preset time, wherein the first preset time is less than the second preset time .

可选地,所述第二丢弃模块包括:Optionally, the second discarding module includes:

第二计算单元,用于通过当前播放视频的第二帧率与当前播放视频源文件的第一帧率计算需要丢弃的B帧数量;The second calculation unit is used to calculate the number of B frames that need to be discarded by the second frame rate of the currently played video and the first frame rate of the currently played video source file;

丢弃单元,用于根据计算得到的需要丢弃的B帧数量在视频源文件中丢弃对应的B帧。The discarding unit is configured to discard corresponding B frames in the video source file according to the calculated number of B frames to be discarded.

此外,为实现上述目的,本发明还提供一种音视频丢帧方法,所述方法包括以下步骤:In addition, in order to achieve the above object, the present invention also provides an audio and video frame loss method, the method includes the following steps:

实时或定时获取当前播放时刻的音频帧时间及视频帧时间之间的时间差;Obtain the time difference between the audio frame time and the video frame time at the current playback moment in real time or regularly;

若所述时差的绝对值大于或等于预设时长,则判断所述视频中是否包含B帧,所述预设时长为单位视频帧的显示时长的预设倍数;If the absolute value of the time difference is greater than or equal to a preset duration, it is judged whether a B frame is included in the video, and the preset duration is a preset multiple of the display duration of a unit video frame;

若是,则根据当前播放视频源文件的第一帧率以及当前进行视频播放的第二帧率确定丢弃视频中的B帧的时间间隔;If so, then determine the time interval of discarding the B frame in the video according to the first frame rate of the currently played video source file and the second frame rate of the current video playback;

按照所述时间间隔丢弃B帧,以使视频源文件的帧率达到当前进行视频播放的帧率。B frames are discarded according to the time interval, so that the frame rate of the video source file reaches the current frame rate of video playback.

可选地,所述根据当前播放视频源文件的第一帧率以及当前进行视频播放的第二帧率确定丢弃视频中的B帧的时间间隔的步骤包括:Optionally, the step of determining the time interval of discarding B frames in the video according to the first frame rate of the currently playing video source file and the second frame rate of the current video playback includes:

根据终端芯片的性能确定终端支持的第三帧率;determining a third frame rate supported by the terminal according to the performance of the terminal chip;

判断所述第二帧率是否小于所述第三帧率;judging whether the second frame rate is less than the third frame rate;

在所述第二帧率大于或等于所述第三帧率时,对所述第三帧率增加预设增量以更新所述第三帧率,并继续执行所述判断所述第二帧率是否小于所述第三帧率的步骤;When the second frame rate is greater than or equal to the third frame rate, add a preset increment to the third frame rate to update the third frame rate, and continue to perform the judging the second frame rate The step of whether the frame rate is less than the third frame rate;

在所述第二帧率小于所述第三帧率时,判断所述第二帧率与预设值的和是否大于所述第三帧率;When the second frame rate is less than the third frame rate, judging whether the sum of the second frame rate and a preset value is greater than the third frame rate;

在所述第二帧率与预设值的和小于或等于所述第三帧率时,计算所述第二帧率以及所述第三帧率的平均值,并根据所述平均值以及所述第一帧率计算所述时间间隔;When the sum of the second frame rate and the preset value is less than or equal to the third frame rate, calculate the average value of the second frame rate and the third frame rate, and based on the average value and the calculating the time interval at the first frame rate;

在所述第二帧率与预设值的和大于所述第三帧率时,对所述第三帧率减去所述预设增量,以更新所述第三帧率,并继续执行所述判断所述第二帧率是否小于所述第三帧率的步骤。When the sum of the second frame rate and the preset value is greater than the third frame rate, subtract the preset increment from the third frame rate to update the third frame rate, and continue to execute The step of judging whether the second frame rate is lower than the third frame rate.

可选地,所述判断视频中是否有B帧的步骤之后还包括:Optionally, after the step of judging whether there are B frames in the video, it also includes:

若视频中没有B帧,则播放下一个I帧。If there is no B frame in the video, play the next I frame.

可选地,所述方法还包括:Optionally, the method also includes:

实时对比当前系统播放时间与实际播放时间;Compare the current system playback time with the actual playback time in real time;

当前系统播放时间与实际播放时间的时间差大于第一预设时间时,则丢弃视频源文件中的B帧;When the time difference between the current system playback time and the actual playback time is greater than the first preset time, the B frame in the video source file is discarded;

当前系统播放时间与实际播放时间的时间差大于第二预设时间时,则播放下一个I帧,其中,所述第一预设时间小于所述第二预设时间。When the time difference between the current system play time and the actual play time is greater than a second preset time, then play the next I frame, wherein the first preset time is less than the second preset time.

可选地,所述丢弃视频源文件中的B帧的步骤包括:Optionally, the step of discarding the B frame in the video source file includes:

通过当前播放视频的第二帧率与当前播放视频源文件的第一帧率计算需要丢弃的B帧数量;Calculate the number of B frames that need to be discarded by the second frame rate of the currently playing video and the first frame rate of the currently playing video source file;

根据计算得到的需要丢弃的B帧数量在视频源文件中丢弃对应的B帧。The corresponding B frames are discarded in the video source file according to the calculated number of B frames to be discarded.

本发明提出的音视频丢帧装置及方法,通过实时或定时获取当前播放时刻的音频帧时间及视频帧时间之间的时间差;当所述时差的绝对值大于或等于预设时长时,判断所述视频中是否包含B帧,其中,所述预设时长为单位视频帧的显示时长的预设倍数;当所述视频中包含B帧时,根据当前播放视频源文件的第一帧率以及当前进行视频播放的第二帧率确定丢弃视频中的B帧的时间间隔,并按照所述时间间隔丢弃B帧,通过按照时间间隔丢弃B帧的方式,使视频源文件的帧率达到当前进行视频播放的帧率,从而实现音视频的输出同步。The audio and video frame loss device and method proposed by the present invention obtain the time difference between the audio frame time and the video frame time at the current playback moment in real time or regularly; when the absolute value of the time difference is greater than or equal to the preset duration, it is judged Whether the video contains B frames, wherein the preset duration is a preset multiple of the display duration of the unit video frame; when the video contains B frames, according to the first frame rate of the currently played video source file and the current The second frame rate for video playback determines the time interval for discarding B frames in the video, and discards B frames according to the time interval. By discarding B frames according to the time interval, the frame rate of the video source file reaches the current video. The playback frame rate, so as to realize the output synchronization of audio and video.

附图说明Description of drawings

图1为实现本发明各个实施例的移动终端的一种可选的硬件结构示意图;FIG. 1 is a schematic diagram of an optional hardware structure of a mobile terminal implementing various embodiments of the present invention;

图2为如图1所示的移动终端的无线通信装置示意图;FIG. 2 is a schematic diagram of a wireless communication device of a mobile terminal as shown in FIG. 1;

图3为本发明音视频丢帧装置第一实施例的功能模块示意图;3 is a schematic diagram of functional modules of the first embodiment of the audio and video frame dropping device of the present invention;

图4为本发明音视频丢帧装置第三实施例中确定模块的细化功能模块示意图;FIG. 4 is a schematic diagram of a detailed functional module of the determination module in the third embodiment of the audio and video frame loss device of the present invention;

图5为本发明音视频丢帧装置第四实施例的功能模块示意图;5 is a schematic diagram of functional modules of the fourth embodiment of the audio and video frame dropping device of the present invention;

图6为本发明音视频丢帧装置第五实施例中第二丢弃模块的细化功能模块示意图;Fig. 6 is a schematic diagram of the refined functional modules of the second discarding module in the fifth embodiment of the audio and video frame dropping device of the present invention;

图7为本发明音视频丢帧方法第一实施例的流程示意图;Fig. 7 is a schematic flow chart of the first embodiment of the audio and video frame loss method of the present invention;

图8为本发明音视频丢帧方法第三实施例中根据当前播放视频源文件的第一帧率以及当前进行视频播放的第二帧率确定丢弃视频中的B帧的时间间隔的步骤的细化流程示意图;Fig. 8 is the details of the step of determining the time interval for discarding B frames in the video according to the first frame rate of the currently playing video source file and the second frame rate of the current video playing in the third embodiment of the audio and video frame dropping method of the present invention Schematic diagram of chemical process;

图9为本发明音视频丢帧方法第四实施例的流程示意图;Fig. 9 is a schematic flow chart of the fourth embodiment of the audio and video frame loss method of the present invention;

图10为本发明音视频丢帧方法第五实施例中丢弃视频源文件中的B帧的步骤的细化流程示意图。FIG. 10 is a schematic diagram of a detailed flowchart of the step of discarding B frames in the video source file in the fifth embodiment of the method for dropping audio and video frames according to the present invention.

本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization of the purpose of the present invention, functional characteristics and advantages will be further described in conjunction with the embodiments and with reference to the accompanying drawings.

具体实施方式detailed description

应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

现在将参考附图描述实现本发明各个实施例的移动终端。在后续的描述中,使用用于表示元件的诸如“模块”、“部件”或“单元”的后缀仅为了有利于本发明的说明,其本身并没有特定的意义。因此,“模块”与“部件”可以混合地使用。A mobile terminal implementing various embodiments of the present invention will now be described with reference to the accompanying drawings. In the following description, use of suffixes such as 'module', 'part' or 'unit' for denoting elements is only for facilitating description of the present invention and has no specific meaning by itself. Therefore, "module" and "component" may be mixedly used.

移动终端可以以各种形式来实施。例如,本发明中描述的终端可以包括诸如移动电话、智能电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、导航装置等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。下面,假设终端是移动终端。然而,本领域技术人员将理解的是,除了特别用于移动目的的元件之外,根据本发明的实施方式的构造也能够应用于固定类型的终端。Mobile terminals may be implemented in various forms. For example, terminals described in the present invention may include devices such as mobile phones, smart phones, notebook computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Tablet Computers), PMPs (Portable Multimedia Players), navigation devices, etc. mobile terminals and fixed terminals such as digital TVs, desktop computers, etc. In the following, it is assumed that the terminal is a mobile terminal. However, those skilled in the art will understand that the configuration according to the embodiments of the present invention can also be applied to stationary type terminals, in addition to elements specifically used for mobile purposes.

图1为实现本发明各个实施例的移动终端的硬件结构示意。FIG. 1 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention.

移动终端100可以包括无线通信单元110、A/V(音频/视频)输入单元120、用户输入单元130、感测单元140、输出单元150、存储器160、接口单元170、控制器180和电源单元190等等。图1示出了具有各种组件的移动终端,但是应理解的是,并不要求实施所有示出的组件。可以替代地实施更多或更少的组件。将在下面详细描述移动终端的元件。The mobile terminal 100 may include a wireless communication unit 110, an A/V (audio/video) input unit 120, a user input unit 130, a sensing unit 140, an output unit 150, a memory 160, an interface unit 170, a controller 180, and a power supply unit 190. wait. FIG. 1 shows a mobile terminal having various components, but it is understood that implementing all shown components is not a requirement. Greater or fewer components may alternatively be implemented. Elements of the mobile terminal will be described in detail below.

无线通信单元110通常包括一个或多个组件,其允许移动终端100与无线通信装置或网络之间的无线电通信。例如,无线通信单元可以包括移动通信模块112、无线互联网模块113中的至少一个。The wireless communication unit 110 generally includes one or more components that allow radio communication between the mobile terminal 100 and a wireless communication device or network. For example, the wireless communication unit may include at least one of the mobile communication module 112 and the wireless Internet module 113 .

移动通信模块112将无线电信号发送到基站(例如,接入点、节点B等等)、外部终端以及服务器中的至少一个和/或从其接收无线电信号。这样的无线电信号可以包括语音通话信号、视频通话信号、或者根据文本和/或多媒体消息发送和/或接收的各种类型的数据。The mobile communication module 112 transmits and/or receives radio signals to at least one of a base station (eg, access point, Node B, etc.), an external terminal, and a server. Such radio signals may include voice call signals, video call signals, or various types of data transmitted and/or received according to text and/or multimedia messages.

无线互联网模块113支持移动终端的无线互联网接入。该模块可以内部或外部地耦接到终端。该模块所涉及的无线互联网接入技术可以包括WLAN(无线LAN)(Wi-Fi)、Wibro(无线宽带)、Wimax(全球微波互联接入)、HSDPA(高速下行链路分组接入)等等。The wireless Internet module 113 supports wireless Internet access of the mobile terminal. The module can be coupled to the terminal internally or externally. The wireless Internet access technologies involved in this module may include WLAN (Wireless LAN) (Wi-Fi), Wibro (Wireless Broadband), Wimax (Global Microwave Interconnection Access), HSDPA (High Speed Downlink Packet Access), etc. .

用户输入单元130可以根据用户输入的命令生成键输入数据以控制移动终端的各种操作。用户输入单元130允许用户输入各种类型的信息,并且可以包括键盘、锅仔片、触摸板(例如,检测由于被接触而导致的电阻、压力、电容等等的变化的触敏组件)、滚轮、摇杆等等。特别地,当触摸板以层的形式叠加在显示单元151上时,可以形成触摸屏。The user input unit 130 may generate key input data according to commands input by the user to control various operations of the mobile terminal. The user input unit 130 allows a user to input various types of information, and may include a keyboard, domes, touch pad (e.g., a touch-sensitive component that detects changes in resistance, pressure, capacitance, etc. due to being touched), a scroll wheel , joystick, etc. In particular, when a touch pad is superimposed on the display unit 151 in a layer form, a touch screen may be formed.

接口单元170用作至少一个外部装置与移动终端100连接可以通过的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。识别模块可以是存储用于验证用户使用移动终端100的各种信息并且可以包括用户识别模块(UIM)、客户识别模块(SIM)、通用客户识别模块(USIM)等等。另外,具有识别模块的装置(下面称为“识别装置”)可以采取智能卡的形式,因此,识别装置可以经由端口或其它连接装置与移动终端100连接。接口单元170可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到移动终端100内的一个或多个元件或者可以用于在移动终端和外部装置之间传输数据。The interface unit 170 serves as an interface through which at least one external device can be connected with the mobile terminal 100 . For example, an external device may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) ports, video I/O ports, headphone ports, and more. The identification module may store various information for authenticating a user using the mobile terminal 100 and may include a User Identity Module (UIM), a Subscriber Identity Module (SIM), a Universal Subscriber Identity Module (USIM) and the like. In addition, a device having an identification module (hereinafter referred to as "identification device") may take the form of a smart card, and thus, the identification device may be connected to the mobile terminal 100 via a port or other connection means. The interface unit 170 may be used to receive input (eg, data information, power, etc.) transfer data between.

另外,当移动终端100与外部底座连接时,接口单元170可以用作允许通过其将电力从底座提供到移动终端100的路径或者可以用作允许从底座输入的各种命令信号通过其传输到移动终端的路径。从底座输入的各种命令信号或电力可以用作用于识别移动终端是否准确地安装在底座上的信号。输出单元150被构造为以视觉、音频和/或触觉方式提供输出信号(例如,音频信号、视频信号、警报信号、振动信号等等)。输出单元150可以包括显示单元151、音频输出模块152等等。In addition, when the mobile terminal 100 is connected with an external cradle, the interface unit 170 may serve as a path through which power is supplied from the cradle to the mobile terminal 100 or may be used as a path allowing various command signals input from the cradle to be transmitted to the mobile terminal 100 therethrough. The path to the terminal. Various command signals or power input from the base may be used as a signal for identifying whether the mobile terminal is accurately mounted on the base. The output unit 150 is configured to provide output signals (eg, audio signals, video signals, alarm signals, vibration signals, etc.) in a visual, audio and/or tactile manner. The output unit 150 may include a display unit 151, an audio output module 152, and the like.

显示单元151可以显示在移动终端100中处理的信息。例如,当移动终端100处于电话通话模式时,显示单元151可以显示与通话或其它通信(例如,文本消息收发、多媒体文件下载等等)相关的用户界面(UI)或图形用户界面(GUI)。当移动终端100处于视频通话模式或者图像捕获模式时,显示单元151可以显示捕获的图像和/或接收的图像、示出视频或图像以及相关功能的UI或GUI等等。The display unit 151 can display information processed in the mobile terminal 100 . For example, when the mobile terminal 100 is in a phone call mode, the display unit 151 may display a user interface (UI) or a graphical user interface (GUI) related to calls or other communications (eg, text messaging, multimedia file downloading, etc.). When the mobile terminal 100 is in a video call mode or an image capture mode, the display unit 151 may display captured images and/or received images, a UI or GUI showing videos or images and related functions, and the like.

同时,当显示单元151和触摸板以层的形式彼此叠加以形成触摸屏时,显示单元151可以用作输入装置和输出装置。显示单元151可以包括液晶显示器(LCD)、薄膜晶体管LCD(TFT-LCD)、有机发光二极管(OLED)显示器、柔性显示器、三维(3D)显示器等等中的至少一种。这些显示器中的一些可以被构造为透明状以允许用户从外部观看,这可以称为透明显示器,典型的透明显示器可以例如为TOLED(透明有机发光二极管)显示器等等。根据特定想要的实施方式,移动终端100可以包括两个或更多显示单元(或其它显示装置),例如,移动终端可以包括外部显示单元(未示出)和内部显示单元(未示出)。触摸屏可用于检测触摸输入压力以及触摸输入位置和触摸输入面积。Meanwhile, when the display unit 151 and the touch pad are superimposed on each other in a layer to form a touch screen, the display unit 151 may serve as an input device and an output device. The display unit 151 may include at least one of a liquid crystal display (LCD), a thin film transistor LCD (TFT-LCD), an organic light emitting diode (OLED) display, a flexible display, a three-dimensional (3D) display, and the like. Some of these displays can be configured to be transparent to allow a user to view from the outside, which can be called a transparent display, and a typical transparent display can be, for example, a TOLED (Transparent Organic Light Emitting Diode) display or the like. Depending on the particular desired implementation, the mobile terminal 100 may include two or more display units (or other display means), for example, the mobile terminal may include an external display unit (not shown) and an internal display unit (not shown). . The touch screen can be used to detect touch input pressure as well as touch input position and touch input area.

音频输出模块152可以在移动终端处于呼叫信号接收模式、通话模式、记录模式、语音识别模式、广播接收模式等等模式下时,将无线通信单元110接收的或者在存储器160中存储的音频数据转换音频信号并且输出为声音。而且,音频输出模块152可以提供与移动终端100执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出模块152可以包括拾音器、蜂鸣器等等。The audio output module 152 may convert audio data received by the wireless communication unit 110 or stored in the memory 160 when the mobile terminal is in a call signal receiving mode, a call mode, a recording mode, a voice recognition mode, a broadcast receiving mode, etc. audio signal and output as sound. Also, the audio output module 152 may provide audio output related to a specific function performed by the mobile terminal 100 (eg, call signal reception sound, message reception sound, etc.). The audio output module 152 may include a pickup, a buzzer, and the like.

存储器160可以存储由控制器180执行的处理和控制操作的软件程序等等,或者可以暂时地存储己经输出或将要输出的数据(例如,电话簿、消息、静态图像、视频等等)。而且,存储器160可以存储关于当触摸施加到触摸屏时输出的各种方式的振动和音频信号的数据。The memory 160 may store software programs and the like for processing and controlling operations executed by the controller 180, or may temporarily store data that has been output or will be output (eg, phonebook, messages, still images, videos, etc.). Also, the memory 160 may store data on various patterns of vibration and audio signals output when a touch is applied to the touch screen.

存储器160可以包括至少一种类型的存储介质,所述存储介质包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等等)、随机访问存储器(RAM)、静态随机访问存储器(SRAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、可编程只读存储器(PROM)、磁性存储器、磁盘、光盘等等。而且,移动终端100可以与通过网络连接执行存储器160的存储功能的网络存储装置协作。Memory 160 may include at least one type of storage medium including flash memory, hard disk, multimedia card, card-type memory (eg, SD or DX memory, etc.), random access memory (RAM), static random access memory ( SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. Also, the mobile terminal 100 may cooperate with a web storage device performing a storage function of the memory 160 through a network connection.

控制器180通常控制移动终端的总体操作。例如,控制器180执行与语音通话、数据通信、视频通话等等相关的控制和处理。另外,控制器180可以包括用于再现(或回放)多媒体数据的多媒体模块181,多媒体模块181可以构造在控制器180内,或者可以构造为与控制器180分离。控制器180可以执行模式识别处理,以将在触摸屏上执行的手写输入或者图片绘制输入识别为字符或图像。The controller 180 generally controls the overall operations of the mobile terminal. For example, the controller 180 performs control and processing related to voice calls, data communications, video calls, and the like. In addition, the controller 180 may include a multimedia module 181 for reproducing (or playing back) multimedia data, and the multimedia module 181 may be constructed within the controller 180 or may be constructed separately from the controller 180 . The controller 180 may perform a pattern recognition process to recognize a handwriting input or a picture drawing input performed on the touch screen as a character or an image.

电源单元190在控制器180的控制下接收外部电力或内部电力并且提供操作各元件和组件所需的适当的电力。The power supply unit 190 receives external power or internal power and supplies appropriate power required to operate various elements and components under the control of the controller 180 .

这里描述的各种实施方式可以以使用例如计算机软件、硬件或其任何组合的计算机可读介质来实施。对于硬件实施,这里描述的实施方式可以通过使用特定用途集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理装置(DSPD)、可编程逻辑装置(PLD)、现场可编程门阵列(FPGA)、处理器、控制器、微控制器、微处理器、被设计为执行这里描述的功能的电子单元中的至少一种来实施,在一些情况下,这样的实施方式可以在控制器180中实施。对于软件实施,诸如过程或功能的实施方式可以与允许执行至少一种功能或操作的单独的软件模块来实施。软件代码可以由以任何适当的编程语言编写的软件应用程序(或程序)来实施,软件代码可以存储在存储器160中并且由控制器180执行。Various implementations described herein can be implemented on a computer readable medium using, for example, computer software, hardware, or any combination thereof. For hardware implementation, the embodiments described herein can be implemented by using Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays ( FPGA), processors, controllers, microcontrollers, microprocessors, electronic units designed to perform the functions described herein, in some cases, such implementations may be implemented in the controller 180 implemented in. For software implementation, an embodiment such as a procedure or a function may be implemented with a separate software module that allows at least one function or operation to be performed. The software codes may be implemented by a software application (or program) written in any suitable programming language, which may be stored in memory 160 and executed by controller 180 .

至此,己经按照其功能描述了移动终端。下面,为了简要起见,将描述诸如折叠型、直板型、摆动型、滑动型移动终端等等的各种类型的移动终端中的滑动型移动终端作为示例。因此,本发明能够应用于任何类型的移动终端,并且不限于滑动型移动终端。So far, the mobile terminal has been described in terms of its functions. Hereinafter, for the sake of brevity, a slide-type mobile terminal among various types of mobile terminals such as folder-type, bar-type, swing-type, slide-type mobile terminals, etc. will be described as an example. Therefore, the present invention can be applied to any type of mobile terminal and is not limited to a slide type mobile terminal.

如图1中所示的移动终端100可以被构造为利用经由帧或分组发送数据的诸如有线和无线通信装置以及基于卫星的通信装置来操作。The mobile terminal 100 as shown in FIG. 1 may be configured to operate using communication means, such as wired and wireless, and satellite-based communication means, which transmit data via frames or packets.

现在将参考图2描述其中根据本发明的移动终端能够操作的通信装置。A communication device in which a mobile terminal according to the present invention can operate will now be described with reference to FIG. 2 .

这样的通信装置可以使用不同的空中接口和/或物理层。例如,由通信装置使用的空中接口包括例如频分多址(FDMA)、时分多址(TDMA)、码分多址(CDMA)和通用移动通信装置(UMTS)(特别地,长期演进(LTE))、全球移动通信装置(GSM)等等。作为非限制性示例,下面的描述涉及CDMA通信装置,但是这样的教导同样适用于其它类型的装置。Such communication devices may use different air interfaces and/or physical layers. Air interfaces used by communication devices include, for example, Frequency Division Multiple Access (FDMA), Time Division Multiple Access (TDMA), Code Division Multiple Access (CDMA), and Universal Mobile Telecommunications Set (UMTS) (in particular, Long Term Evolution (LTE) ), Global System for Mobile Communications (GSM), etc. As a non-limiting example, the following description refers to a CDMA communication device, but such teachings are equally applicable to other types of devices.

参考图2,CDMA无线通信装置可以包括多个移动终端100、多个基站(BS)270、基站控制器(BSC)275和移动交换中心(MSC)280。MSC280被构造为与公共电话交换网络(PSTN)290形成接口。MSC280还被构造为与可以经由回程线路耦接到BS270的BSC275形成接口。回程线路可以根据若干己知的接口中的任一种来构造,所述接口包括例如E1/T1、ATM,IP、PPP、帧中继、HDSL、ADSL或xDSL。将理解的是,如图2中所示的装置可以包括多个BSC275。Referring to FIG. 2 , a CDMA wireless communication device may include a plurality of mobile terminals 100 , a plurality of base stations (BS) 270 , a base station controller (BSC) 275 , and a mobile switching center (MSC) 280 . MSC 280 is configured to interface with Public Switched Telephone Network (PSTN) 290 . MSC 280 is also configured to interface with BSC 275 which may be coupled to BS 270 via a backhaul line. The backhaul may be constructed according to any of several known interfaces including, for example, E1/T1, ATM, IP, PPP, Frame Relay, HDSL, ADSL or xDSL. It will be appreciated that an arrangement as shown in FIG. 2 may include multiple BSCs 275 .

每个BS270可以服务一个或多个分区(或区域),由多向天线或指向特定方向的天线覆盖的每个分区放射状地远离BS270。或者,每个分区可以由用于分集接收的两个或更多天线覆盖。每个BS270可以被构造为支持多个频率分配,并且每个频率分配具有特定频谱(例如,1.25MHz,5MHz等等)。Each BS 270 may serve one or more sectors (or areas), each sector covered by a multi-directional antenna or an antenna pointing in a particular direction radially away from the BS 270 . Alternatively, each sector may be covered by two or more antennas for diversity reception. Each BS 270 may be configured to support multiple frequency allocations, with each frequency allocation having a specific frequency spectrum (eg, 1.25 MHz, 5 MHz, etc.).

分区与频率分配的交叉可以被称为CDMA信道。BS270也可以被称为基站收发器子装置(BTS)或者其它等效术语。在这样的情况下,术语"基站"可以用于笼统地表示单个BSC275和至少一个BS270。基站也可以被称为"蜂窝站"。或者,特定BS270的各分区可以被称为多个蜂窝站。The intersection of partition and frequency allocation may be referred to as a CDMA channel. BS 270 may also be referred to as a Base Transceiver Subset (BTS) or other equivalent terminology. In such cases, the term "base station" may be used to refer generally to a single BSC 275 and at least one BS 270. A base station may also be referred to as a "cell site." Alternatively, sectors of a particular BS 270 may be referred to as multiple cell sites.

如图2中所示,广播发射器(BT)295将广播信号发送给在装置内操作的移动终端100。如图1中所示的广播接收模块111被设置在移动终端100处以接收由BT295发送的广播信号。在图2中,示出了几个全球定位装置(GPS)卫星300。卫星300帮助定位多个移动终端100中的至少一个。As shown in FIG. 2, a broadcast transmitter (BT) 295 transmits a broadcast signal to the mobile terminal 100 operating within the device. The broadcast receiving module 111 as shown in FIG. 1 is provided at the mobile terminal 100 to receive broadcast signals transmitted by the BT295. In FIG. 2, several Global Positioning Device (GPS) satellites 300 are shown. The satellite 300 helps locate at least one of the plurality of mobile terminals 100 .

在图2中,描绘了多个卫星300,但是可以理解的是,可以利用任何数目的卫星获得有用的定位信息。如图1中所示的位置信息模块115通常被构造为与卫星300配合以获得想要的定位信息。替代GPS跟踪技术或者在GPS跟踪技术之外,可以使用可以跟踪移动终端的位置的其它技术。另外,至少一个GPS卫星300可以选择性地或者额外地处理卫星DMB传输。In FIG. 2, a plurality of satellites 300 are depicted, but it is understood that any number of satellites may be utilized to obtain useful positioning information. The location information module 115 as shown in FIG. 1 is generally configured to cooperate with the satellite 300 to obtain desired positioning information. Instead of or in addition to GPS tracking techniques, other techniques that can track the location of the mobile terminal may be used. Additionally, at least one GPS satellite 300 may optionally or additionally handle satellite DMB transmissions.

作为无线通信装置的一个典型操作,BS270接收来自各种移动终端100的反向链路信号。移动终端100通常参与通话、消息收发和其它类型的通信。特定BS270接收的每个反向链路信号被在特定BS270内进行处理。获得的数据被转发给相关的BSC275。BSC提供通话资源分配和包括BS270之间的软切换过程的协调的移动管理功能。BSC275还将接收到的数据路由到MSC280,其提供用于与PSTN290形成接口的额外的路由服务。类似地,PSTN290与MSC280形成接口,MSC与BSC275形成接口,并且BSC275相应地控制BS270以将正向链路信号发送到移动终端100。As a typical operation of the wireless communication device, the BS 270 receives reverse link signals from various mobile terminals 100 . Mobile terminal 100 typically engages in calls, messaging, and other types of communications. Each reverse link signal received by a particular BS 270 is processed within the particular BS 270. The obtained data is forwarded to the relevant BSC275. The BSC provides call resource allocation and mobility management functions including coordination of soft handover procedures between BS270. BSC 275 also routes received data to MSC 280 , which provides additional routing services for interfacing with PSTN 290 . Similarly, PSTN 290 interfaces with MSC 280 , MSC interfaces with BSC 275 , and BSC 275 controls BS 270 to send forward link signals to mobile terminal 100 accordingly.

基于上述移动终端硬件结构、通信装置的结构,提出本发明装置和方法各个实施例。Based on the above-mentioned hardware structure of the mobile terminal and the structure of the communication device, various embodiments of the device and method of the present invention are proposed.

本发明提供一种音视频丢帧装置。The invention provides an audio and video frame dropping device.

参照图3,图3为本发明音视频丢帧装置第一实施例的功能模块示意图。Referring to FIG. 3 , FIG. 3 is a schematic diagram of functional modules of a first embodiment of an audio and video frame dropping device according to the present invention.

在本实施例中,所述音视频丢帧装置包括:In this embodiment, the audio and video frame loss device includes:

获取模块10,用于实时或定时获取当前播放时刻的音频帧时间及视频帧时间之间的时间差。The acquiring module 10 is configured to acquire the time difference between the audio frame time and the video frame time at the current playback moment in real time or periodically.

在本实施例中,当移动终端播放的视频出现音视频播放不同步的情况,并且视频图像解码时长大于图像的显示时长时,需要调整音视频的输出。首先触发开启音视频丢帧同步机制的指令,移动终端根据所述指令实时或定时获取当前播放时刻的音频帧时间及视频帧时间,并计算所述当前播放时刻的音频帧时间及视频帧时间之间的时间差。在视频编码序列中,主要有三种编码帧:I帧、P帧、B帧。其中:I帧即Intra-codedpicture(帧内编码图像帧),不参考其他图像帧,只利用本帧的信息进行编码。P帧即Predictive-codedPicture(预测编码图像帧),利用之前的I帧或P帧,采用运动预测的方式进行帧间预测编码。B帧即Bidirectionallypredictedpicture(双向预测编码图像帧),提供最高的压缩比,它既需要之前的图像帧(I帧或P帧),也需要后来的图像帧(P帧),采用运动预测的方式进行帧间双向预测编码,一般情况下,B帧仅用于记录本帧与前后帧的差值,因此在视频播放过程中,当出现音视频不同步时,一般将视频中对应的B帧丢弃。In this embodiment, when the audio and video playback of the video played by the mobile terminal is not synchronized, and the decoding time of the video image is longer than the display time of the image, the output of the audio and video needs to be adjusted. First trigger the instruction to start the audio and video frame loss synchronization mechanism, and the mobile terminal obtains the audio frame time and the video frame time at the current playback moment in real time or regularly according to the instruction, and calculates the difference between the audio frame time and the video frame time at the current playback moment. time difference between. In the video coding sequence, there are mainly three coding frames: I frame, P frame, and B frame. Wherein: the I frame is an Intra-coded picture (intra-coded picture frame), which does not refer to other picture frames, and only uses the information of this frame for coding. The P frame is a Predictive-coded Picture (predictive coded image frame), which uses the previous I frame or P frame to perform inter-frame predictive coding in a motion prediction manner. B frame is Bidirectionally predicted picture (bidirectional predictive coding image frame), which provides the highest compression ratio. It requires both the previous image frame (I frame or P frame) and the subsequent image frame (P frame), which is performed by motion prediction. Inter-frame bidirectional predictive coding, under normal circumstances, the B frame is only used to record the difference between the current frame and the preceding and following frames. Therefore, during video playback, when the audio and video are out of sync, the corresponding B frame in the video is generally discarded.

判断模块20,用于若所述时差的绝对值大于或等于预设时长,则判断所述视频中是否包含B帧,所述预设时长为单位视频帧的显示时长的预设倍数。The judging module 20 is configured to judge whether the video contains B frames if the absolute value of the time difference is greater than or equal to a preset duration, the preset duration being a preset multiple of the display duration of a unit video frame.

在本实施例中,首先将所述音频帧时间与视频帧时间之间的时差的绝对值与预设时长进行对比,所述预设时长为单位视频帧的显示时长的预设倍数。若所述时差的绝对值大于或等于预设时长,即当音视频帧相差预设倍数个连续视频帧显示时长时,所述预设倍数可以为2倍或其他数值的倍数,此时人就会感觉到音视频不同步,则判断此时音视频不同步。此时需要调整音视频的输出,因此需要判断视频中是否存在对视频播放无影响的B帧,以便丢弃所述B帧。In this embodiment, firstly, the absolute value of the time difference between the audio frame time and the video frame time is compared with a preset duration, and the preset duration is a preset multiple of the display duration of a unit video frame. If the absolute value of the time difference is greater than or equal to the preset duration, that is, when the audio and video frames differ by a preset multiple of continuous video frame display duration, the preset multiple can be 2 times or a multiple of other values. If you feel that the audio and video are out of sync, it is judged that the audio and video are out of sync. At this time, it is necessary to adjust the output of the audio and video, so it is necessary to determine whether there is a B frame in the video that does not affect the video playback, so as to discard the B frame.

确定模块30,用于若所述视频中包含B帧,则根据当前播放视频源文件的第一帧率以及当前进行视频播放的第二帧率确定丢弃视频中的B帧的时间间隔。The determination module 30 is configured to determine the time interval for discarding B frames in the video according to the first frame rate of the currently played video source file and the second frame rate of the current video playback if the video contains B frames.

具体地,若视频中有B帧,则根据当前播放视频源文件的第一帧率以及当前进行视频播放的第二帧率确定丢弃视频中的B帧的时间间隔。具体地,确定丢弃视频中的B帧的时间间隔的步骤可以包括:Specifically, if there are B frames in the video, the time interval for discarding the B frames in the video is determined according to the first frame rate of the currently played video source file and the second frame rate of the current video playback. Specifically, the step of determining the time interval of discarding the B frames in the video may include:

步骤一,根据终端芯片的性能确定终端支持的第三帧率;Step 1, determining a third frame rate supported by the terminal according to the performance of the terminal chip;

步骤二,判断所述第二帧率是否小于所述第三帧率;Step 2, judging whether the second frame rate is lower than the third frame rate;

步骤三,在所述第二帧率大于或等于所述第三帧率时,对所述第三帧率增加预设增量,以更新所述第三帧率,并继续执行步骤二;Step 3, when the second frame rate is greater than or equal to the third frame rate, increase a preset increment to the third frame rate to update the third frame rate, and continue to perform step 2;

步骤四,在所述第二帧率小于所述第三帧率时,判断所述第二帧率与预设值的和是否大于所述第三帧率;Step 4, when the second frame rate is lower than the third frame rate, judging whether the sum of the second frame rate and a preset value is greater than the third frame rate;

步骤五,在所述第二帧率与预设值的和小于或等于所述第三帧率时,计算所述第二帧率以及所述第三帧率的平均值,并根据所述平均值以及所述第一帧率计算所述时间间隔;Step 5, when the sum of the second frame rate and the preset value is less than or equal to the third frame rate, calculate the average value of the second frame rate and the third frame rate, and calculate the average value based on the average value and the first frame rate to calculate the time interval;

步骤六,在所述第二帧率与预设值的和大于所述第三帧率时,对所述第三帧率减去所述预设增量,以更新所述第三帧率,并继续执行步骤一。Step 6, when the sum of the second frame rate and a preset value is greater than the third frame rate, subtracting the preset increment from the third frame rate to update the third frame rate, And proceed to Step 1.

第一丢弃模块40,用于按照所述时间间隔丢弃B帧,以使视频源文件的帧率达到当前进行视频播放的帧率。The first discarding module 40 is configured to discard B frames according to the time interval, so that the frame rate of the video source file reaches the current frame rate of video playback.

在计算得到所述时间间隔之后,按照所述时间间隔丢弃B帧,以使视频源文件的帧率达到当前进行视频播放的帧率。After the time interval is calculated, B frames are discarded according to the time interval, so that the frame rate of the video source file reaches the current frame rate of video playback.

本发明提出的音视频丢帧装置,通过实时或定时获取当前播放时刻的音频帧时间及视频帧时间之间的时间差;当所述时差的绝对值大于或等于预设时长时,判断所述视频中是否包含B帧,其中,所述预设时长为单位视频帧的显示时长的预设倍数;当所述视频中包含B帧时,根据当前播放视频源文件的第一帧率以及当前进行视频播放的第二帧率确定丢弃视频中的B帧的时间间隔,并按照所述时间间隔丢弃B帧,通过按照时间间隔丢弃B帧的方式,使视频源文件的帧率达到当前进行视频播放的帧率,从而实现音视频的输出同步。The audio and video frame loss device proposed by the present invention obtains the time difference between the audio frame time and the video frame time at the current playback moment in real time or regularly; when the absolute value of the time difference is greater than or equal to the preset duration, the video is judged Whether contains B frame, wherein, the preset duration is a preset multiple of the display duration of the unit video frame; when the video contains B frame, according to the first frame rate of the currently playing video source file and the current video The second frame rate of playback determines the time interval for discarding B frames in the video, and discards B frames according to the time interval. By discarding B frames according to the time interval, the frame rate of the video source file reaches the current video playback time interval. Frame rate, so as to realize the output synchronization of audio and video.

进一步地,参照图4,基于本发明音视频丢帧装置第一实施例提出本发明音视频丢帧装置第二实施例。Further, referring to FIG. 4 , based on the first embodiment of the audio and video frame dropping device of the present invention, a second embodiment of the audio and video frame dropping device of the present invention is proposed.

在本实施例中,所述确定模块30包括:In this embodiment, the determination module 30 includes:

确定单元31,用于根据终端芯片的性能确定终端支持的第三帧率;A determining unit 31, configured to determine a third frame rate supported by the terminal according to the performance of the terminal chip;

判断单元32,用于判断所述第二帧率是否小于所述第三帧率;A judging unit 32, configured to judge whether the second frame rate is lower than the third frame rate;

调整单元33,用于在所述第二帧率大于或等于所述第三帧率时,对所述第三帧率增加预设增量,以更新所述第三帧率;An adjustment unit 33, configured to add a preset increment to the third frame rate to update the third frame rate when the second frame rate is greater than or equal to the third frame rate;

所述判断单元32,还用于在所述第二帧率小于所述第三帧率时,判断所述第二帧率与预设值的和是否大于所述第三帧率;The judging unit 32 is further configured to judge whether the sum of the second frame rate and a preset value is greater than the third frame rate when the second frame rate is lower than the third frame rate;

第一计算单元34,用于在所述第二帧率与预设值的和小于或等于所述第三帧率时,计算所述第二帧率以及所述第三帧率的平均值,并根据所述平均值以及所述第一帧率计算所述时间间隔;The first calculation unit 34 is configured to calculate the average value of the second frame rate and the third frame rate when the sum of the second frame rate and a preset value is less than or equal to the third frame rate, and calculating the time interval according to the average value and the first frame rate;

所述调整单元33,还用于在所述第二帧率与预设值的和大于所述第三帧率时,对所述第三帧率减去所述预设增量,以更新所述第三帧率。The adjusting unit 33 is further configured to subtract the preset increment from the third frame rate when the sum of the second frame rate and a preset value is greater than the third frame rate, so as to update the the third frame rate.

在本实施例中,计算所述丢弃视频中的B帧的时间间隔具体步骤可以为:In this embodiment, the specific steps of calculating the time interval of the B frame in the discarded video may be:

步骤一,根据终端芯片的性能确定终端支持的第三帧率,具体地,所述第三帧率为根据终端芯片的性能直接确定的帧率,不同的终端芯片所述支持的帧率一般情况下不相同,在此不再一一赘述;Step 1. Determine the third frame rate supported by the terminal according to the performance of the terminal chip. Specifically, the third frame rate is a frame rate directly determined according to the performance of the terminal chip. The frame rates supported by different terminal chips are generally The following are not the same, and will not be repeated here;

步骤二,判断所述第二帧率是否小于所述第三帧率;Step 2, judging whether the second frame rate is lower than the third frame rate;

步骤三,在所述第二帧率大于或等于所述第三帧率时,对所述第三帧率增加预设增量,以更新所述第三帧率,并继续执行步骤二;具体地,所述预设增量可以为1,具体实施过程中还可以采用除1以外的数值。Step 3, when the second frame rate is greater than or equal to the third frame rate, increase the preset increment to the third frame rate to update the third frame rate, and continue to perform step 2; specifically Preferably, the preset increment may be 1, and a value other than 1 may also be used in a specific implementation process.

步骤四,在所述第二帧率小于所述第三帧率时,判断所述第二帧率与预设值的和是否大于所述第三帧率;具体地,所述预设值可以为5,具体实施过程中还可以采用除5以外的数值。Step 4, when the second frame rate is lower than the third frame rate, judge whether the sum of the second frame rate and a preset value is greater than the third frame rate; specifically, the preset value can be is 5, and values other than 5 can also be used in the specific implementation process.

步骤五,在所述第二帧率与预设值的和小于或等于所述第三帧率时,计算所述第二帧率以及所述第三帧率的平均值,并根据所述平均值以及所述第一帧率计算所述时间间隔;具体地,根据所述平均值以及所述第一帧率计算所述时间间隔的方法具体为:将所述第一帧率与所述平均值相减,获得差值,然后将1000除以所述差值,即可获得所述时间间隔。Step 5, when the sum of the second frame rate and the preset value is less than or equal to the third frame rate, calculate the average value of the second frame rate and the third frame rate, and calculate the average value based on the average value and the first frame rate to calculate the time interval; specifically, the method for calculating the time interval according to the average value and the first frame rate is: combine the first frame rate with the average values to get the difference, and then divide 1000 by the difference to get the time interval.

步骤六,在所述第二帧率与预设值的和大于所述第三帧率时,对所述第三帧率减去所述预设增量,以更新所述第三帧率,并继续执行步骤一。Step 6, when the sum of the second frame rate and a preset value is greater than the third frame rate, subtracting the preset increment from the third frame rate to update the third frame rate, And proceed to Step 1.

本实施例提出的音视频丢帧装置,通过所述第一帧率、第二帧率及第二帧率计算得到丢弃视频中的B帧的时间间隔,以便后续播放过程中根据所述时间间隔精准、实时地丢弃视频中的B帧,从而实现精准、实时控制丢弃对视频播放无影响的B帧,以调整音视频同步输出。The audio and video frame loss device proposed in this embodiment calculates the time interval for discarding B frames in the video through the first frame rate, the second frame rate, and the second frame rate, so that in the subsequent playback process, according to the time interval Precisely and real-time discarding of B frames in the video, so as to achieve precise and real-time control of discarding B frames that have no effect on video playback, so as to adjust the audio and video synchronization output.

进一步地,基于本发明音视频丢帧装置第一实施例提出本发明音视频丢帧装置第三实施例。Further, based on the first embodiment of the audio and video frame dropping device of the present invention, a third embodiment of the audio and video frame dropping device of the present invention is proposed.

在本实施例中,所述装置还包括:In this embodiment, the device also includes:

播放模块50,用于若视频中没有B帧,则播放下一个I帧。The playback module 50 is used to play the next I frame if there is no B frame in the video.

在本实施例中,若视频中没有B帧,则需要播放下一个I帧,以调整音视频的输出同步。In this embodiment, if there is no B frame in the video, the next I frame needs to be played to adjust the output synchronization of audio and video.

进一步地,参照图5,基于本发明音视频丢帧装置第一实施例提出本发明音视频丢帧装置第四实施例。Further, referring to FIG. 5 , based on the first embodiment of the audio and video frame dropping device of the present invention, a fourth embodiment of the audio and video frame dropping device of the present invention is proposed.

在本实施例中,所述装置还包括:In this embodiment, the device also includes:

对比模块60,用于实时对比当前系统播放时间与实际播放时间;Contrast module 60, is used for comparing current system playing time and actual playing time in real time;

第二丢弃模块70,用于当前系统播放时间与实际播放时间的时间差大于第一预设时间时,则丢弃视频源文件中的B帧;The second discarding module 70 is used for discarding the B frame in the video source file when the time difference between the current system play time and the actual play time is greater than the first preset time;

所述播放模块50,还用于当前系统播放时间与实际播放时间的时间差大于第二预设时间时,则播放下一个I帧,其中,所述第一预设时间小于所述第二预设时间。The playing module 50 is also used for playing the next I frame when the time difference between the current system playing time and the actual playing time is greater than the second preset time, wherein the first preset time is less than the second preset time time.

在本实施例中,当当前播放视频的缓冲时间过长时,也会出现音视频不同步的情况,因此也需要丢弃视频中的B帧,或者播放下一个I帧,以实现音视频同步输出。具体地,首先实时对比当前系统播放时间与实际播放时间;当当前系统播放时间与实际播放时间的时间差大于第一预设时间时,则丢弃视频源文件中的B帧;当当前系统播放时间与实际播放时间的时间差大于第二预设时间时,则播放下一个I帧,其中,所述第一预设时间小于所述第二预设时间。所述第一预设时间可以为100ms,所述第二预设时间可以为500ms,具体实施过程中还可以将所述第一预设时间及所述第二预设时间设置为其他值。In this embodiment, when the buffering time of the currently playing video is too long, the audio and video will also be out of sync, so it is also necessary to discard the B frame in the video, or play the next I frame to achieve synchronous audio and video output . Specifically, first compare the current system playback time and the actual playback time in real time; when the time difference between the current system playback time and the actual playback time is greater than the first preset time, then discard the B frame in the video source file; When the time difference of the actual playing time is greater than the second preset time, the next I frame is played, wherein the first preset time is less than the second preset time. The first preset time may be 100ms, and the second preset time may be 500ms, and the first preset time and the second preset time may also be set to other values during specific implementation.

本实施例提出的音视频丢帧装置,通过实时对比当前系统播放时间与实际播放时间;当前系统播放时间与实际播放时间的时间差大于第一预设时间时,则丢弃视频源文件中的B帧;当前系统播放时间与实际播放时间的时间差大于第二预设时间时,则播放下一个I帧,其中,所述第一预设时间小于所述第二预设时间,从而实现视频中的音视频同步输出。The audio and video frame loss device proposed in this embodiment compares the current system playback time with the actual playback time in real time; when the time difference between the current system playback time and the actual playback time is greater than the first preset time, the B frame in the video source file is discarded ; when the time difference between the current system play time and the actual play time is greater than the second preset time, then play the next I frame, wherein the first preset time is less than the second preset time, thereby realizing the sound in the video Video synchronization output.

进一步地,参照图6,基于本发明音视频丢帧装置第四实施例提出本发明音视频丢帧装置第五实施例。Further, referring to FIG. 6 , based on the fourth embodiment of the audio and video frame dropping device of the present invention, a fifth embodiment of the audio and video frame dropping device of the present invention is proposed.

在本实施例中,所述第二丢弃模块70可以包括:In this embodiment, the second discarding module 70 may include:

第二计算单元71,用于通过当前播放视频的第二帧率与当前播放视频源文件的第一帧率计算需要丢弃的B帧数量;The second calculation unit 71 is used to calculate the number of B frames that need to be discarded by the second frame rate of the currently played video and the first frame rate of the currently played video source file;

丢弃单元72,用于根据计算得到的需要丢弃的B帧数量在视频源文件中丢弃对应的B帧。The discarding unit 72 is configured to discard corresponding B frames in the video source file according to the calculated number of B frames to be discarded.

在本实施例中,可以通过当前播放视频的第二帧率与当前播放视频源文件的第一帧率计算需要丢弃的B帧数量,然后根据计算得到的需要丢弃的B帧数量在视频源文件中丢弃对应的B帧。通过当前播放视频的第二帧率与当前播放视频源文件的第一帧率计算需要丢弃的B帧数量为现有的通用技术,在此不再一一赘述。In this embodiment, the number of B frames that need to be discarded can be calculated through the second frame rate of the currently playing video and the first frame rate of the currently playing video source file, and then the number of B frames that need to be discarded is calculated in the video source file The corresponding B frame is discarded. Calculating the number of B frames to be discarded based on the second frame rate of the currently played video and the first frame rate of the currently played video source file is an existing general technique, and will not be repeated here.

本实施例提出的音视频丢帧装置,首先通过当前播放视频的第二帧率与当前播放视频源文件的第一帧率计算需要丢弃的B帧数量;然后根据计算得到的需要丢弃的B帧数量在视频源文件中丢弃对应的B帧,避免丢弃过多的B帧,造成播放的不连续和停顿的现象。The audio and video frame loss device proposed in this embodiment first calculates the number of B frames that need to be discarded by the second frame rate of the current playing video and the first frame rate of the current playing video source file; then according to the calculated B frames that need to be discarded Quantity The corresponding B frames are discarded in the video source file to avoid discarding too many B frames, resulting in discontinuous and paused playback.

为了更好地理解本发明所提供的音视频丢帧装置,在此简单描述本发明音视频丢帧装置在视频播放系统中所处的位置,在视频播放系统应用层中,包括视频播放器应用程序及媒体播放器在本地框架层中包括了媒体播放器服务。具体的多媒体播放框架为:将视频数据源文件输出至视频文件解析模块进行解析,然后通过多路分配器进行调用,然后输出需要丢弃的B帧,最后通过音视频解码器进行解码后输出。本发明所提供的校验音视频同步的丢帧装置能够对视频文件进行解析,丢弃视频中的B帧,进而实现音视频同步输出。In order to better understand the audio and video frame loss device provided by the present invention, here is a brief description of the position of the audio and video frame loss device of the present invention in the video playback system, in the video playback system application layer, including the video player application Programs and media players include media player services in the native framework layer. The specific multimedia playback framework is as follows: output the video data source file to the video file parsing module for parsing, then call it through the demultiplexer, then output the B frame that needs to be discarded, and finally output it after decoding through the audio and video decoder. The frame dropping device for checking audio and video synchronization provided by the present invention can analyze video files, discard B frames in the video, and then realize synchronous output of audio and video.

本发明进一步提供一种音视频丢帧方法。The present invention further provides an audio and video frame dropping method.

参照图7,图7为本发明音视频丢帧第一实施例的流程示意图。Referring to FIG. 7 , FIG. 7 is a schematic flowchart of a first embodiment of audio and video frame loss in the present invention.

在本实施例中,所述方法包括:In this embodiment, the method includes:

步骤S10,实时或定时获取当前播放时刻的音频帧时间及视频帧时间之间的时间差。Step S10, acquiring the time difference between the audio frame time and the video frame time at the current playback moment in real time or periodically.

在本实施例中,当移动终端播放的视频出现音视频播放不同步的情况,并且视频图像解码时长大于图像的显示时长时,需要调整音视频的输出。首先触发开启音视频丢帧同步机制的指令,移动终端根据所述指令实时或定时获取当前播放时刻的音频帧时间及视频帧时间,并计算所述当前播放时刻的音频帧时间及视频帧时间之间的时间差。在视频编码序列中,主要有三种编码帧:I帧、P帧、B帧。其中:I帧即Intra-codedpicture(帧内编码图像帧),不参考其他图像帧,只利用本帧的信息进行编码。P帧即Predictive-codedPicture(预测编码图像帧),利用之前的I帧或P帧,采用运动预测的方式进行帧间预测编码。B帧即Bidirectionallypredictedpicture(双向预测编码图像帧),提供最高的压缩比,它既需要之前的图像帧(I帧或P帧),也需要后来的图像帧(P帧),采用运动预测的方式进行帧间双向预测编码,一般情况下,B帧仅用于记录本帧与前后帧的差值,因此在视频播放过程中,当出现音视频不同步时,一般将视频中对应的B帧丢弃。In this embodiment, when the audio and video playback of the video played by the mobile terminal is not synchronized, and the decoding time of the video image is longer than the display time of the image, the output of the audio and video needs to be adjusted. First trigger the instruction to start the audio and video frame loss synchronization mechanism, and the mobile terminal obtains the audio frame time and the video frame time at the current playback moment in real time or regularly according to the instruction, and calculates the difference between the audio frame time and the video frame time at the current playback moment. time difference between. In the video coding sequence, there are mainly three coding frames: I frame, P frame, and B frame. Wherein: the I frame is an Intra-coded picture (intra-coded picture frame), which does not refer to other picture frames, and only uses the information of this frame for coding. The P frame is a Predictive-coded Picture (predictive coded image frame), which uses the previous I frame or P frame to perform inter-frame predictive coding in a motion prediction manner. B frame is Bidirectionally predicted picture (bidirectional predictive coding image frame), which provides the highest compression ratio. It requires both the previous image frame (I frame or P frame) and the subsequent image frame (P frame), which is performed by motion prediction. Inter-frame bidirectional predictive coding, under normal circumstances, the B frame is only used to record the difference between the current frame and the preceding and following frames. Therefore, during video playback, when the audio and video are out of sync, the corresponding B frame in the video is generally discarded.

步骤S20,若所述时差的绝对值大于或等于预设时长,则判断所述视频中是否包含B帧,所述预设时长为单位视频帧的显示时长的预设倍数。Step S20, if the absolute value of the time difference is greater than or equal to a preset duration, it is judged whether the video contains a B frame, and the preset duration is a preset multiple of the display duration of a unit video frame.

在本实施例中,首先将所述音频帧时间与视频帧时间之间的时差的绝对值与预设时长进行对比,所述预设时长为单位视频帧的显示时长的预设倍数。若所述时差的绝对值大于或等于预设时长,即当音视频帧相差预设倍数个连续视频帧显示时长时,所述预设倍数可以为2倍或其他数值的倍数,此时人就会感觉到音视频不同步,则判断此时音视频不同步。此时需要调整音视频的输出,因此需要判断视频中是否存在对视频播放无影响的B帧,以便丢弃所述B帧。In this embodiment, firstly, the absolute value of the time difference between the audio frame time and the video frame time is compared with a preset duration, and the preset duration is a preset multiple of the display duration of a unit video frame. If the absolute value of the time difference is greater than or equal to the preset duration, that is, when the audio and video frames differ by a preset multiple of continuous video frame display duration, the preset multiple can be 2 times or a multiple of other values. If you feel that the audio and video are out of sync, it is judged that the audio and video are out of sync. At this time, it is necessary to adjust the output of the audio and video, so it is necessary to determine whether there is a B frame in the video that does not affect the video playback, so as to discard the B frame.

步骤S30,若所述视频中包含B帧,则根据当前播放视频源文件的第一帧率以及当前进行视频播放的第二帧率确定丢弃视频中的B帧的时间间隔。Step S30, if the video contains B frames, then determine the time interval for discarding B frames in the video according to the first frame rate of the currently played video source file and the second frame rate of the currently played video.

具体地,若视频中有B帧,则根据当前播放视频源文件的第一帧率以及当前进行视频播放的第二帧率确定丢弃视频中的B帧的时间间隔。具体地,确定丢弃视频中的B帧的时间间隔的步骤可以包括:Specifically, if there are B frames in the video, the time interval for discarding the B frames in the video is determined according to the first frame rate of the currently played video source file and the second frame rate of the current video playback. Specifically, the step of determining the time interval of discarding the B frames in the video may include:

步骤一,根据终端芯片的性能确定终端支持的第三帧率;Step 1, determining a third frame rate supported by the terminal according to the performance of the terminal chip;

步骤二,判断所述第二帧率是否小于所述第三帧率;Step 2, judging whether the second frame rate is lower than the third frame rate;

步骤三,在所述第二帧率大于或等于所述第三帧率时,对所述第三帧率增加预设增量,以更新所述第三帧率,并继续执行步骤二;Step 3, when the second frame rate is greater than or equal to the third frame rate, increase a preset increment to the third frame rate to update the third frame rate, and continue to perform step 2;

步骤四,在所述第二帧率小于所述第三帧率时,判断所述第二帧率与预设值的和是否大于所述第三帧率;Step 4, when the second frame rate is lower than the third frame rate, judging whether the sum of the second frame rate and a preset value is greater than the third frame rate;

步骤五,在所述第二帧率与预设值的和小于或等于所述第三帧率时,计算所述第二帧率以及所述第三帧率的平均值,并根据所述平均值以及所述第一帧率计算所述时间间隔;Step 5, when the sum of the second frame rate and the preset value is less than or equal to the third frame rate, calculate the average value of the second frame rate and the third frame rate, and calculate the average value based on the average value and the first frame rate to calculate the time interval;

步骤六,在所述第二帧率与预设值的和大于所述第三帧率时,对所述第三帧率减去所述预设增量,以更新所述第三帧率,并继续执行步骤一。Step 6, when the sum of the second frame rate and a preset value is greater than the third frame rate, subtracting the preset increment from the third frame rate to update the third frame rate, And proceed to Step 1.

步骤S40,按照所述时间间隔丢弃B帧,以使视频源文件的帧率达到当前进行视频播放的帧率。Step S40, discarding the B frames according to the time interval, so that the frame rate of the video source file reaches the current frame rate of video playback.

在计算得到所述时间间隔之后,按照所述时间间隔丢弃B帧,以使视频源文件的帧率达到当前进行视频播放的帧率。After the time interval is calculated, B frames are discarded according to the time interval, so that the frame rate of the video source file reaches the current frame rate of video playback.

本发明提出的音视频丢帧方法,通过实时或定时获取当前播放时刻的音频帧时间及视频帧时间之间的时间差;当所述时差的绝对值大于或等于预设时长时,判断所述视频中是否包含B帧,其中,所述预设时长为单位视频帧的显示时长的预设倍数;当所述视频中包含B帧时,根据当前播放视频源文件的第一帧率以及当前进行视频播放的第二帧率确定丢弃视频中的B帧的时间间隔,并按照所述时间间隔丢弃B帧,通过按照时间间隔丢弃B帧的方式,使视频源文件的帧率达到当前进行视频播放的帧率,从而实现音视频的输出同步。The audio and video frame loss method proposed by the present invention obtains the time difference between the audio frame time and the video frame time at the current playback moment in real time or regularly; when the absolute value of the time difference is greater than or equal to the preset duration, the video is judged Whether contains B frame, wherein, the preset duration is a preset multiple of the display duration of the unit video frame; when the video contains B frame, according to the first frame rate of the currently playing video source file and the current video The second frame rate of playback determines the time interval for discarding B frames in the video, and discards B frames according to the time interval. By discarding B frames according to the time interval, the frame rate of the video source file reaches the current video playback time interval. Frame rate, so as to realize the output synchronization of audio and video.

进一步地,参照图8,基于本发明音视频丢帧方法第一实施例提出本发明音视频丢帧方法第二实施例。Further, referring to FIG. 8 , based on the first embodiment of the audio and video frame loss method of the present invention, a second embodiment of the audio and video frame loss method of the present invention is proposed.

在本实施例中,所述步骤S30包括:In this embodiment, the step S30 includes:

步骤S31,根据终端芯片的性能确定终端支持的第三帧率;Step S31, determining a third frame rate supported by the terminal according to the performance of the terminal chip;

步骤S32,判断所述第二帧率是否小于所述第三帧率;Step S32, judging whether the second frame rate is lower than the third frame rate;

步骤S33,在所述第二帧率大于或等于所述第三帧率时,对所述第三帧率增加预设增量,以更新所述第三帧率,并继续执行所述判断所述第二帧率是否小于所述第三帧率的步骤;Step S33, when the second frame rate is greater than or equal to the third frame rate, add a preset increment to the third frame rate to update the third frame rate, and continue to perform the determination. The step of whether the second frame rate is less than the third frame rate;

步骤S34,在所述第二帧率小于所述第三帧率时,判断所述第二帧率与预设值的和是否大于所述第三帧率;Step S34, when the second frame rate is lower than the third frame rate, judging whether the sum of the second frame rate and a preset value is greater than the third frame rate;

步骤S35,在所述第二帧率与预设值的和小于或等于所述第三帧率时,计算所述第二帧率以及所述第三帧率的平均值,并根据所述平均值以及所述第一帧率计算所述时间间隔;Step S35, when the sum of the second frame rate and the preset value is less than or equal to the third frame rate, calculate the average value of the second frame rate and the third frame rate, and calculate the average value based on the average value and the first frame rate to calculate the time interval;

步骤S36,在所述第二帧率与预设值的和大于所述第三帧率时,对所述第三帧率减去所述预设增量,以更新所述第三帧率,并继续执行所述判断所述第二帧率是否小于所述第三帧率的步骤。Step S36, when the sum of the second frame rate and a preset value is greater than the third frame rate, subtracting the preset increment from the third frame rate to update the third frame rate, And continue to execute the step of judging whether the second frame rate is lower than the third frame rate.

在本实施例中,计算所述丢弃视频中的B帧的时间间隔具体步骤可以为:In this embodiment, the specific steps of calculating the time interval of the B frame in the discarded video may be:

步骤一,根据终端芯片的性能确定终端支持的第三帧率,具体地,所述第三帧率为根据终端芯片的性能直接确定的帧率,不同的终端芯片所述支持的帧率一般情况下不相同,在此不再一一赘述;Step 1. Determine the third frame rate supported by the terminal according to the performance of the terminal chip. Specifically, the third frame rate is a frame rate directly determined according to the performance of the terminal chip. The frame rates supported by different terminal chips are generally The following are not the same, and will not be repeated here;

步骤二,判断所述第二帧率是否小于所述第三帧率;Step 2, judging whether the second frame rate is lower than the third frame rate;

步骤三,在所述第二帧率大于或等于所述第三帧率时,对所述第三帧率增加预设增量,以更新所述第三帧率,并继续执行步骤二;具体地,所述预设增量可以为1,具体实施过程中还可以采用除1以外的数值。Step 3, when the second frame rate is greater than or equal to the third frame rate, increase the preset increment to the third frame rate to update the third frame rate, and continue to perform step 2; specifically Preferably, the preset increment may be 1, and a value other than 1 may also be used in a specific implementation process.

步骤四,在所述第二帧率小于所述第三帧率时,判断所述第二帧率与预设值的和是否大于所述第三帧率;具体地,所述预设值可以为5,具体实施过程中还可以采用除5以外的数值。Step 4, when the second frame rate is lower than the third frame rate, judge whether the sum of the second frame rate and a preset value is greater than the third frame rate; specifically, the preset value can be is 5, and values other than 5 can also be used in the specific implementation process.

步骤五,在所述第二帧率与预设值的和小于或等于所述第三帧率时,计算所述第二帧率以及所述第三帧率的平均值,并根据所述平均值以及所述第一帧率计算所述时间间隔;具体地,根据所述平均值以及所述第一帧率计算所述时间间隔的方法具体为:将所述第一帧率与所述平均值相减,获得差值,然后将1000除以所述差值,即可获得所述时间间隔。Step 5, when the sum of the second frame rate and the preset value is less than or equal to the third frame rate, calculate the average value of the second frame rate and the third frame rate, and calculate the average value based on the average value and the first frame rate to calculate the time interval; specifically, the method for calculating the time interval according to the average value and the first frame rate is: combine the first frame rate with the average values to get the difference, and then divide 1000 by the difference to get the time interval.

步骤六,在所述第二帧率与预设值的和大于所述第三帧率时,对所述第三帧率减去所述预设增量,以更新所述第三帧率,并继续执行步骤一。Step 6, when the sum of the second frame rate and a preset value is greater than the third frame rate, subtracting the preset increment from the third frame rate to update the third frame rate, And proceed to Step 1.

本实施例提出的音视频丢帧方法,通过所述第一帧率、第二帧率及第二帧率计算得到丢弃视频中的B帧的时间间隔,以便后续播放过程中根据所述时间间隔精准、实时地丢弃视频中的B帧,从而实现精准、实时控制丢弃对视频播放无影响的B帧,以调整音视频同步输出。The audio and video frame loss method proposed in this embodiment calculates the time interval for discarding B frames in the video through the first frame rate, the second frame rate, and the second frame rate, so that in the subsequent playback process, according to the time interval Precisely and real-time discarding of B frames in the video, so as to achieve precise and real-time control of discarding B frames that have no effect on video playback, so as to adjust the audio and video synchronization output.

进一步地,基于本发明音视频丢帧方法第一实施例提出本发明音视频丢帧方法第三实施例。Further, based on the first embodiment of the audio and video frame loss method of the present invention, a third embodiment of the audio and video frame loss method of the present invention is proposed.

在本实施例中,所述方法还包括:In this embodiment, the method also includes:

若视频中没有B帧,则播放下一个I帧。If there is no B frame in the video, play the next I frame.

在本实施例中,若视频中没有B帧,则需要播放下一个I帧,以调整音视频的输出同步。In this embodiment, if there is no B frame in the video, the next I frame needs to be played to adjust the output synchronization of audio and video.

进一步地,参照图9,基于本发明音视频丢帧方法第三实施例提出本发明音视频丢帧方法第四实施例。Further, referring to FIG. 9 , based on the third embodiment of the audio and video frame loss method of the present invention, a fourth embodiment of the audio and video frame loss method of the present invention is proposed.

在本实施例中,所述方法还包括:In this embodiment, the method also includes:

S50,实时对比当前系统播放时间与实际播放时间;S50, compare the current system playback time with the actual playback time in real time;

S60,当前系统播放时间与实际播放时间的时间差大于第一预设时间时,则丢弃视频源文件中的B帧;S60, when the time difference between the current system playback time and the actual playback time is greater than the first preset time, then discard the B frame in the video source file;

S70,当前系统播放时间与实际播放时间的时间差大于第二预设时间时,则播放下一个I帧,其中,所述第一预设时间小于所述第二预设时间。S70. When the time difference between the current system playback time and the actual playback time is greater than a second preset time, play the next I frame, wherein the first preset time is shorter than the second preset time.

在本实施例中,当当前播放视频的缓冲时间过长时,也会出现音视频不同步的情况,因此也需要丢弃视频中的B帧,或者播放下一个I帧,以实现音视频同步输出。具体地,首先实时对比当前系统播放时间与实际播放时间;当当前系统播放时间与实际播放时间的时间差大于第一预设时间时,则丢弃视频源文件中的B帧;当当前系统播放时间与实际播放时间的时间差大于第二预设时间时,则播放下一个I帧,其中,所述第一预设时间小于所述第二预设时间。所述第一预设时间可以为100ms,所述第二预设时间可以为500ms,具体实施过程中还可以将所述第一预设时间及所述第二预设时间设置为其他值。In this embodiment, when the buffering time of the currently playing video is too long, the audio and video will also be out of sync, so it is also necessary to discard the B frame in the video, or play the next I frame to achieve synchronous audio and video output . Specifically, first compare the current system playback time and the actual playback time in real time; when the time difference between the current system playback time and the actual playback time is greater than the first preset time, then discard the B frame in the video source file; When the time difference of the actual playing time is greater than the second preset time, the next I frame is played, wherein the first preset time is less than the second preset time. The first preset time may be 100ms, and the second preset time may be 500ms, and the first preset time and the second preset time may also be set to other values during specific implementation.

本实施例提出的音视频丢帧方法,通过实时对比当前系统播放时间与实际播放时间;当前系统播放时间与实际播放时间的时间差大于第一预设时间时,则丢弃视频源文件中的B帧;当前系统播放时间与实际播放时间的时间差大于第二预设时间时,则播放下一个I帧,其中,所述第一预设时间小于所述第二预设时间,从而实现视频中的音视频同步输出。The audio and video frame loss method proposed in this embodiment compares the current system playback time with the actual playback time in real time; when the time difference between the current system playback time and the actual playback time is greater than the first preset time, the B frame in the video source file is discarded ; when the time difference between the current system play time and the actual play time is greater than the second preset time, then play the next I frame, wherein the first preset time is less than the second preset time, thereby realizing the sound in the video Video synchronization output.

进一步地,参照图10,基于本发明音视频丢帧方法第一至第四任一实施例提出本发明音视频丢帧方法第五实施例。Further, referring to FIG. 10 , based on any one of the first to fourth embodiments of the audio and video frame loss method of the present invention, a fifth embodiment of the audio and video frame loss method of the present invention is proposed.

在本实施例中,所述步骤S60包括:In this embodiment, the step S60 includes:

步骤S61,通过当前播放视频的第二帧率与当前播放视频源文件的第一帧率计算需要丢弃的B帧数量;Step S61, calculating the number of B frames to be discarded by the second frame rate of the currently played video and the first frame rate of the currently played video source file;

步骤S62,根据计算得到的需要丢弃的B帧数量在视频源文件中丢弃对应的B帧。Step S62, discarding corresponding B frames in the video source file according to the calculated number of B frames to be discarded.

在本实施例中,可以通过当前播放视频的第二帧率与当前播放视频源文件的第一帧率计算需要丢弃的B帧数量,然后根据计算得到的需要丢弃的B帧数量在视频源文件中丢弃对应的B帧。通过当前播放视频的第二帧率与当前播放视频源文件的第一帧率计算需要丢弃的B帧数量为现有的通用技术,在此不再一一赘述。In this embodiment, the number of B frames that need to be discarded can be calculated through the second frame rate of the currently playing video and the first frame rate of the currently playing video source file, and then the number of B frames that need to be discarded is calculated in the video source file The corresponding B frame is discarded. Calculating the number of B frames to be discarded based on the second frame rate of the currently played video and the first frame rate of the currently played video source file is an existing general technique, and will not be repeated here.

本实施例提出的音视频丢帧方法,首先通过当前播放视频的第二帧率与当前播放视频源文件的第一帧率计算需要丢弃的B帧数量;然后根据计算得到的需要丢弃的B帧数量在视频源文件中丢弃对应的B帧,避免丢弃过多的B帧,造成播放的不连续和停顿的现象。The audio and video frame loss method proposed in this embodiment first calculates the number of B frames that need to be discarded by the second frame rate of the current playing video and the first frame rate of the current playing video source file; then according to the calculated B frames that need to be discarded Quantity The corresponding B frames are discarded in the video source file to avoid discarding too many B frames, resulting in discontinuous and paused playback.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.

上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the above embodiments of the present invention are for description only, and do not represent the advantages and disadvantages of the embodiments.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products are stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to enable a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in various embodiments of the present invention.

以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process conversion made by using the description of the present invention and the contents of the accompanying drawings, or directly or indirectly used in other related technical fields , are all included in the scope of patent protection of the present invention in the same way.

Claims (10)

1.一种音视频丢帧装置,其特征在于,所述装置包括:1. An audio and video frame loss device, characterized in that the device comprises: 获取模块,用于实时或定时获取当前播放时刻的音频帧时间及视频帧时间之间的时间差;The obtaining module is used to obtain the time difference between the audio frame time and the video frame time of the current playback moment in real time or regularly; 判断模块,用于若所述时差的绝对值大于或等于预设时长,则判断所述视频中是否包含B帧,所述预设时长为单位视频帧的显示时长的预设倍数;A judging module, configured to judge whether the video contains a B frame if the absolute value of the time difference is greater than or equal to a preset duration, and the preset duration is a preset multiple of the display duration of a unit video frame; 确定模块,用于若所述视频中包含B帧,则根据当前播放视频源文件的第一帧率以及当前进行视频播放的第二帧率确定丢弃视频中的B帧的时间间隔;Determining module, for if comprising B frame in the video, then according to the first frame rate of current playing video source file and the second frame rate of currently performing video playback, determine the time interval of discarding the B frame in the video; 第一丢弃模块,用于按照所述时间间隔丢弃B帧,以使视频源文件的帧率达到当前进行视频播放的帧率。The first discarding module is configured to discard the B frame according to the time interval, so that the frame rate of the video source file reaches the frame rate of the current video playback. 2.如权利要求1所述的音视频丢帧装置,其特征在于,所述确定模块包括:2. audio and video frame loss device as claimed in claim 1, is characterized in that, described determining module comprises: 确定单元,用于根据终端芯片的性能确定终端支持的第三帧率;a determining unit, configured to determine a third frame rate supported by the terminal according to the performance of the terminal chip; 判断单元,用于判断所述第二帧率是否小于所述第三帧率;a judging unit, configured to judge whether the second frame rate is lower than the third frame rate; 调整单元,用于在所述第二帧率大于或等于所述第三帧率时,对所述第三帧率增加预设增量,以更新所述第三帧率;an adjustment unit, configured to add a preset increment to the third frame rate to update the third frame rate when the second frame rate is greater than or equal to the third frame rate; 所述判断单元,还用于在所述第二帧率小于所述第三帧率时,判断所述第二帧率与预设值的和是否大于所述第三帧率;The judging unit is further configured to judge whether the sum of the second frame rate and a preset value is greater than the third frame rate when the second frame rate is lower than the third frame rate; 第一计算单元,用于在所述第二帧率与预设值的和小于或等于所述第三帧率时,计算所述第二帧率以及所述第三帧率的平均值,并根据所述平均值以及所述第一帧率计算所述时间间隔;A first calculation unit, configured to calculate an average value of the second frame rate and the third frame rate when the sum of the second frame rate and a preset value is less than or equal to the third frame rate, and calculating the time interval according to the average value and the first frame rate; 所述调整单元,还用于在所述第二帧率与预设值的和大于所述第三帧率时,对所述第三帧率减去所述预设增量,以更新所述第三帧率。The adjustment unit is further configured to subtract the preset increment from the third frame rate when the sum of the second frame rate and a preset value is greater than the third frame rate, so as to update the The third frame rate. 3.如权利要求1所述的音视频丢帧装置,其特征在于,所述装置还包括:3. audio and video frame dropping device as claimed in claim 1, is characterized in that, described device also comprises: 播放模块,用于若视频中没有B帧,则播放下一个I帧。The playback module is used to play the next I frame if there is no B frame in the video. 4.如权利要求1所述的音视频丢帧装置,其特征在于,所述装置还包括:4. audio and video frame dropping device as claimed in claim 1, is characterized in that, described device also comprises: 对比模块,用于实时对比当前系统播放时间与实际播放时间;The comparison module is used to compare the current system playback time with the actual playback time in real time; 第二丢弃模块,用于当前系统播放时间与实际播放时间的时间差大于第一预设时间时,则丢弃视频源文件中的B帧;The second discarding module is used for discarding the B frame in the video source file when the time difference between the current system playing time and the actual playing time is greater than the first preset time; 所述播放模块,还用于当前系统播放时间与实际播放时间的时间差大于第二预设时间时,则播放下一个I帧,其中,所述第一预设时间小于所述第二预设时间。The playing module is also used for playing the next I frame when the time difference between the current system playing time and the actual playing time is greater than the second preset time, wherein the first preset time is less than the second preset time . 5.如权利要求4所述的音视频丢帧装置,其特征在于,所述第二丢弃模块包括:5. audio and video frame loss device as claimed in claim 4, is characterized in that, described second discarding module comprises: 第二计算单元,用于通过当前播放视频的第二帧率与当前播放视频源文件的第一帧率计算需要丢弃的B帧数量;The second calculation unit is used to calculate the number of B frames that need to be discarded by the second frame rate of the currently played video and the first frame rate of the currently played video source file; 丢弃单元,用于根据计算得到的需要丢弃的B帧数量在视频源文件中丢弃对应的B帧。The discarding unit is configured to discard corresponding B frames in the video source file according to the calculated number of B frames to be discarded. 6.一种音视频丢帧方法,其特征在于,所述方法包括以下步骤:6. A method for audio and video frame loss, characterized in that the method comprises the following steps: 实时或定时获取当前播放时刻的音频帧时间及视频帧时间之间的时间差;Obtain the time difference between the audio frame time and the video frame time at the current playback moment in real time or regularly; 若所述时差的绝对值大于或等于预设时长,则判断所述视频中是否包含B帧,所述预设时长为单位视频帧的显示时长的预设倍数;If the absolute value of the time difference is greater than or equal to a preset duration, it is judged whether a B frame is included in the video, and the preset duration is a preset multiple of the display duration of a unit video frame; 若是,则根据当前播放视频源文件的第一帧率以及当前进行视频播放的第二帧率确定丢弃视频中的B帧的时间间隔;If so, then determine the time interval of discarding the B frame in the video according to the first frame rate of the currently played video source file and the second frame rate of the current video playback; 按照所述时间间隔丢弃B帧,以使视频源文件的帧率达到当前进行视频播放的帧率。B frames are discarded according to the time interval, so that the frame rate of the video source file reaches the current frame rate of video playback. 7.如权利要求6所述的音视频丢帧方法,其特征在于,所述根据当前播放视频源文件的第一帧率以及当前进行视频播放的第二帧率确定丢弃视频中的B帧的时间间隔的步骤包括:7. audio and video frame loss method as claimed in claim 6, is characterized in that, described according to the first frame rate of current play video source file and the second frame rate that carries out video playback at present to determine the B frame in the discarded video The time interval steps include: 根据终端芯片的性能确定终端支持的第三帧率;determining a third frame rate supported by the terminal according to the performance of the terminal chip; 判断所述第二帧率是否小于所述第三帧率;judging whether the second frame rate is less than the third frame rate; 在所述第二帧率大于或等于所述第三帧率时,对所述第三帧率增加预设增量以更新所述第三帧率,并继续执行所述判断所述第二帧率是否小于所述第三帧率的步骤;When the second frame rate is greater than or equal to the third frame rate, add a preset increment to the third frame rate to update the third frame rate, and continue to perform the judging the second frame rate The step of whether the frame rate is less than the third frame rate; 在所述第二帧率小于所述第三帧率时,判断所述第二帧率与预设值的和是否大于所述第三帧率;When the second frame rate is less than the third frame rate, judging whether the sum of the second frame rate and a preset value is greater than the third frame rate; 在所述第二帧率与预设值的和小于或等于所述第三帧率时,计算所述第二帧率以及所述第三帧率的平均值,并根据所述平均值以及所述第一帧率计算所述时间间隔;When the sum of the second frame rate and the preset value is less than or equal to the third frame rate, calculate the average value of the second frame rate and the third frame rate, and based on the average value and the calculating the time interval at the first frame rate; 在所述第二帧率与预设值的和大于所述第三帧率时,对所述第三帧率减去所述预设增量,以更新所述第三帧率,并继续执行所述判断所述第二帧率是否小于所述第三帧率的步骤。When the sum of the second frame rate and the preset value is greater than the third frame rate, subtract the preset increment from the third frame rate to update the third frame rate, and continue to execute The step of judging whether the second frame rate is lower than the third frame rate. 8.如权利要求7所述的音视频丢帧方法,其特征在于,所述判断视频中是否有B帧的步骤之后还包括:8. audio and video frame dropping method as claimed in claim 7, is characterized in that, also comprises after the step of B frame in described judging video: 若视频中没有B帧,则播放下一个I帧。If there is no B frame in the video, play the next I frame. 9.如权利要求6-8任一项所述的音视频丢帧方法,其特征在于,所述方法还包括:9. The audio and video frame loss method according to any one of claims 6-8, wherein the method further comprises: 实时对比当前系统播放时间与实际播放时间;Compare the current system playback time with the actual playback time in real time; 当前系统播放时间与实际播放时间的时间差大于第一预设时间时,则丢弃所述视频源文件中的B帧;When the time difference between the current system play time and the actual play time is greater than the first preset time, then discard the B frame in the video source file; 当前系统播放时间与实际播放时间的时间差大于第二预设时间时,则播放下一个I帧,其中,所述第一预设时间小于所述第二预设时间。When the time difference between the current system play time and the actual play time is greater than a second preset time, then play the next I frame, wherein the first preset time is less than the second preset time. 10.如权利要求9所述的音视频丢帧方法,其特征在于,所述丢弃所述视频源文件中的B帧的步骤包括:10. audio and video frame loss method as claimed in claim 9, is characterized in that, the step of described discarding the B frame in described video source file comprises: 通过当前播放视频的第二帧率与当前播放视频源文件的第一帧率计算需要丢弃的B帧数量;Calculate the number of B frames that need to be discarded by the second frame rate of the currently playing video and the first frame rate of the currently playing video source file; 根据计算得到的需要丢弃的B帧数量在视频源文件中丢弃对应的B帧。The corresponding B frames are discarded in the video source file according to the calculated number of B frames to be discarded.
CN201710045496.8A 2017-01-20 2017-01-20 Audio and video frame dropping device and method Expired - Fee Related CN106817614B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710045496.8A CN106817614B (en) 2017-01-20 2017-01-20 Audio and video frame dropping device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710045496.8A CN106817614B (en) 2017-01-20 2017-01-20 Audio and video frame dropping device and method

Publications (2)

Publication Number Publication Date
CN106817614A true CN106817614A (en) 2017-06-09
CN106817614B CN106817614B (en) 2020-08-04

Family

ID=59111194

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710045496.8A Expired - Fee Related CN106817614B (en) 2017-01-20 2017-01-20 Audio and video frame dropping device and method

Country Status (1)

Country Link
CN (1) CN106817614B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112073823A (en) * 2020-09-02 2020-12-11 深圳创维数字技术有限公司 Frame loss processing method, video playing terminal and computer readable storage medium
CN113473229A (en) * 2021-06-25 2021-10-01 荣耀终端有限公司 Method for dynamically adjusting frame loss threshold and related equipment
CN114257857A (en) * 2022-01-04 2022-03-29 海信视像科技股份有限公司 Display device and video double-speed playing method
CN114979712A (en) * 2022-05-13 2022-08-30 北京字节跳动网络技术有限公司 Video playing starting method, device, equipment and storage medium
CN117812382A (en) * 2023-12-12 2024-04-02 北京百度网讯科技有限公司 Video data processing method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050276282A1 (en) * 2004-06-09 2005-12-15 Lsi Logic Corporation Method of audio-video synchronization
CN103310820A (en) * 2012-03-14 2013-09-18 三星电子(中国)研发中心 Method for optimizing multimedia player
CN103856812A (en) * 2014-03-25 2014-06-11 北京奇艺世纪科技有限公司 Video playing method and device
CN104822008A (en) * 2014-04-25 2015-08-05 腾讯科技(北京)有限公司 Video synchronizing method and device
CN105933800A (en) * 2016-04-29 2016-09-07 联发科技(新加坡)私人有限公司 Video play method and control terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050276282A1 (en) * 2004-06-09 2005-12-15 Lsi Logic Corporation Method of audio-video synchronization
CN103310820A (en) * 2012-03-14 2013-09-18 三星电子(中国)研发中心 Method for optimizing multimedia player
CN103856812A (en) * 2014-03-25 2014-06-11 北京奇艺世纪科技有限公司 Video playing method and device
CN104822008A (en) * 2014-04-25 2015-08-05 腾讯科技(北京)有限公司 Video synchronizing method and device
CN105933800A (en) * 2016-04-29 2016-09-07 联发科技(新加坡)私人有限公司 Video play method and control terminal

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112073823A (en) * 2020-09-02 2020-12-11 深圳创维数字技术有限公司 Frame loss processing method, video playing terminal and computer readable storage medium
CN112073823B (en) * 2020-09-02 2022-07-12 深圳创维数字技术有限公司 Frame loss processing method, video playing terminal and computer readable storage medium
CN113473229A (en) * 2021-06-25 2021-10-01 荣耀终端有限公司 Method for dynamically adjusting frame loss threshold and related equipment
CN114257857A (en) * 2022-01-04 2022-03-29 海信视像科技股份有限公司 Display device and video double-speed playing method
CN114257857B (en) * 2022-01-04 2024-05-24 海信视像科技股份有限公司 Display equipment and video double-speed playing method
CN114979712A (en) * 2022-05-13 2022-08-30 北京字节跳动网络技术有限公司 Video playing starting method, device, equipment and storage medium
CN117812382A (en) * 2023-12-12 2024-04-02 北京百度网讯科技有限公司 Video data processing method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN106817614B (en) 2020-08-04

Similar Documents

Publication Publication Date Title
US8107979B2 (en) Mobile terminal for performing instant messaging service
CN104918064B (en) A kind of method and device that mobile terminal video quickly plays
CN106817614B (en) Audio and video frame dropping device and method
CN105763732B (en) A mobile terminal and method for controlling volume
KR20090068567A (en) Mobile terminal and communication method of mobile terminal
CN104750384B (en) Mobile terminal and its split screen method of operating
CN105141507A (en) Method and device for displaying head portrait for social application
CN106911850A (en) Mobile terminal and its screenshotss method
US8406737B2 (en) Mobile terminal and controlling method thereof
CN104794229B (en) picture sharing method and device
US8611963B2 (en) Mobile terminal processing and transmitting information related to data play and playing data according to information
CN106791567B (en) Switching method and terminal
US10447758B2 (en) System and method for sharing web browser state information between user devices
KR20120010525A (en) Mobile terminal and its screen rotation control method
CN105049916B (en) A kind of video recording method and device
CN106909395B (en) Interface calling method and terminal
CN106375842A (en) Image sharing device and method
CN105959301A (en) Method and system for optimizing multimedia call
KR101708304B1 (en) Mobile terminal and motion recognizing method thereof
CN107992505B (en) Webpage information processing method and terminal
CN106658630B (en) Communication terminal, base station, system and method
CN105100489B (en) Harmonic distortion reducing device and method
KR20120010526A (en) WiFi terminal and its internet access method
CN106559572A (en) Noise location method and device
CN106873979B (en) Information processing method and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20200706

Address after: Yuyao City, Zhejiang province 315400 Ningbo Zhongyi Ningbo ecological park Hing Rd No. 28

Applicant after: ZHEJIANG RUIHUA KANGYUAN TECHNOLOGY Co.,Ltd.

Address before: 518057 Guangdong Province, Shenzhen high tech Zone of Nanshan District City, No. 9018 North Central Avenue's innovation building A, 6-8 layer, 10-11 layer, B layer, C District 6-10 District 6 floor

Applicant before: NUBIA TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200804

CF01 Termination of patent right due to non-payment of annual fee