WO2012167646A1 - 一种多媒体流的播放方法及装置 - Google Patents

一种多媒体流的播放方法及装置 Download PDF

Info

Publication number
WO2012167646A1
WO2012167646A1 PCT/CN2012/072793 CN2012072793W WO2012167646A1 WO 2012167646 A1 WO2012167646 A1 WO 2012167646A1 CN 2012072793 W CN2012072793 W CN 2012072793W WO 2012167646 A1 WO2012167646 A1 WO 2012167646A1
Authority
WO
WIPO (PCT)
Prior art keywords
multimedia data
format
multimedia
playing
lost
Prior art date
Application number
PCT/CN2012/072793
Other languages
English (en)
French (fr)
Inventor
梁宪
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2012167646A1 publication Critical patent/WO2012167646A1/zh

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/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/647Control signaling between network components and server or clients; Network processes for video distribution between server and clients, e.g. controlling the quality of the video stream, by dropping packets, protecting content from unauthorised alteration within the network, monitoring of network load, bridging between two different networks, e.g. between IP and wireless
    • 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/439Processing of audio elementary streams
    • H04N21/4396Processing of audio elementary streams by muting the audio signal

Definitions

  • the present invention relates to a playback method in a decoding system, and is characterized by a method and apparatus for playing a multimedia stream.
  • the technical problem to be solved by the present invention is to provide a method and apparatus for playing multimedia streams to avoid the problem of howling when multimedia data is lost.
  • the present invention provides a method for playing a multimedia stream, the method comprising: performing a mute operation immediately if a multimedia data loss is detected during a process of playing a multimedia stream.
  • the method further has the following features: after detecting the loss of the multimedia data, the method further includes: if detecting that no multimedia data loss occurs within the predetermined time, continuing to play the multimedia stream.
  • the foregoing method further has the following features: the step of detecting loss of multimedia data is: detecting whether the multimedia data is lost according to a packing format of the multimedia data.
  • the foregoing method further has the following features: the packet format of the multimedia data includes a transport stream format, and the step of detecting whether the multimedia data is lost according to the packet format of the multimedia data comprises: detecting whether the value of the continuous count field of the transport stream packet is Continuous, if not continuous, it is judged that the multimedia data is lost.
  • the foregoing method further has the following features: The packet format of the multimedia data includes: one or more of a transport stream format, a video file format, and an audio video interlace format.
  • the present invention further provides a multimedia stream playing device, including: a detecting module, configured to: detect whether the multimedia data is lost during the playing of the multimedia stream;
  • a playing module configured to: perform a silent operation immediately when the detecting module detects that the multimedia data is lost.
  • the foregoing playback device further has the following features: the detecting module is further configured to: after detecting that the multimedia data is lost, detecting whether multimedia data loss occurs within a predetermined time; the playing module is further configured to: The module detects that the multimedia stream continues to play if no multimedia data loss occurs within a predetermined time.
  • the above playback device further has the following features: The detecting module is configured to: detect whether the multimedia data is lost according to a packing format of the multimedia data.
  • the playing device further has the following features: the detecting module is configured to: when the packing format of the multimedia data is a transport stream format, detecting whether the value of the continuous counting field of the transport stream packet is continuous, if not, Then judge the multimedia data is lost.
  • the detecting module is configured to: when the packing format of the multimedia data is a transport stream format, detecting whether the value of the continuous counting field of the transport stream packet is continuous, if not, Then judge the multimedia data is lost.
  • the packet format of the multimedia data includes: one or more of a transport stream format, a video file format, and an audio video interlace format.
  • a method and an apparatus for playing a multimedia stream provided by an embodiment of the present invention can solve the problem of howling is generated when multimedia data is incomplete.
  • FIG. 1 is a schematic diagram of a multimedia stream playing device according to an embodiment of the present invention.
  • FIG. 2 is a flowchart of a method for playing a multimedia stream according to an embodiment of the present invention
  • FIG. 3 is a flowchart of a method for playing a multimedia stream according to an embodiment of the present invention.
  • FIG. 1 is a schematic diagram of a multimedia stream playback apparatus according to the present invention. As shown in FIG. 1, the playback apparatus of this embodiment includes:
  • the detecting module is configured to detect whether the multimedia data is lost during the playing of the multimedia stream, and the playing module is configured to perform the silent operation immediately when the detecting module detects that the multimedia data is lost.
  • the playback apparatus of this embodiment does not generate howling when the data is incomplete.
  • the detecting module is further configured to detect whether multimedia data loss occurs within a predetermined time after detecting the loss of the multimedia data
  • the playing module is further configured to continue playing the multimedia stream if the detecting module detects that no multimedia data loss occurs within a predetermined time.
  • the playback apparatus of this embodiment does not appear to be muted for a long period of time, and does not affect the user experience.
  • FIG. 2 is a flowchart of a method for playing a multimedia stream according to the present invention, where the method includes the following steps:
  • Multimedia data has a variety of packaging formats, such as transport stream (TS stream), MKV (Matroska Video File), AVI (Audio Video Interleaved), etc.
  • TS stream transport stream
  • MKV Magnetic Video File
  • AVI Audio Video Interleaved
  • Each package format can determine its data. Is there a loss?
  • the transport stream can use the continuity-count field of the transport stream packet to determine if there is data loss.
  • Continuity The counter field is a 4-bit field. This field of the TS packet of the same PID (Program Identifier) is continuously incremented. It is incremented to 15 and then restored to 0.
  • PID Program Identifier
  • the method of the present invention is described in detail below by taking the transport stream format as an example.
  • the continuity_counter field of the transport stream it is determined that the multimedia data is lost.
  • the data is immediately muted, so that the audio is decoded.
  • the module does not produce howling; then it detects, if no data loss occurs within a certain period of time, immediately turn on the sound to continue playing.
  • this embodiment includes the following steps:
  • Step 101 According to the PID of the audio, take the value of the continuity_counter field of an audio TS packet;
  • Step 102 Take the value of the continuity_counter field of an audio TS packet.
  • Step 103 Determine whether the value of the continuity_counter field of the two TS packets is continuous. If the value is not continuous, the value of the continuity_counter field of the next TS packet is not increased by 1 on the previous one, indicating that there is a packet loss, that is, there is If the data is missing, go to step 104. If it is continuous, that is, the value of the continuity_counter field of the next TS packet is increased by 1 on the previous one, it means that there is no packet loss, go to step 102;
  • Step 104 immediately mute, to avoid whistling, go to step 105;
  • Step 105 After the packet loss occurs, five audio TS packets are continuously detected. If there is no packet loss in the five TS packets, the sound is turned on again, the playback continues, and then the process proceeds to step 102.
  • step 105 it is not limited to detecting five audio TS packets, and may be other numbers.
  • a method and apparatus for playing a multimedia stream according to an embodiment of the present invention can solve the problem of howling when a multimedia data is incomplete.

Abstract

一种多媒体流的播放方法及装置,该方法包括:在播放多媒体流的过程中,若检测到多媒体数据丢失,则立即执行静音操作。根据本发明当多媒体数据有缺失时,采用静音的方法不输出声音,使得解码后的声音输出不会产生啸叫,从而提高用户体验。

Description

一种多媒体流的播放方法及装置
技术领域
本发明涉及解码系统中的播放方法, 特点是涉及一种多媒体流的播放方 法及装置。
背景技术
近年来, 多媒体技术被广泛应用, 各种各样的软硬件多媒体播放器广泛 被人们使用, 人们也越来越多的在网络上使用多媒体文件, 如在网络上看电 影、 听歌等。 目前的 Internet (因特网) 由于网络带宽、 距离等因素的影响, 不可避免的会产生丟包等问题, 在音频数据缺失的情况下, 播放器会产生嘯 叫, 影响用户的体验。 发明内容
本发明要解决的技术问题是提供一种多媒体流的播放方法及装置, 以避 免在多媒体数据丟失时产生嘯叫的问题。
为了解决上述技术问题, 本发明提供了一种多媒体流的播放方法, 该方 法包括: 在播放多媒体流的过程中, 若检测到多媒体数据丟失, 则立即执行 静音操作。
优选地, 上述方法还具有下面特点: 所述检测到多媒体数据丟失之后, 还包括: 若检测在预定时间内未发生多媒体数据丟失, 则继续播放所述多媒 体流。
优选地, 上述方法还具有下面特点: 所述检测多媒体数据丟失的步骤为: 根据多媒体数据的打包格式来检测多媒体数据是否丟失。
优选地, 上述方法还具有下面特点: 所述多媒体数据的打包格式包括传 输流格式, 则根据多媒体数据的打包格式来检测多媒体数据是否丟失的步骤 包括: 检测传输流包的连续计数字段的值是否连续, 若不连续, 则判断多媒 体数据丟失。 优选地, 上述方法还具有下面特点: 所述多媒体数据的打包格式包括: 传输流格式、 视频文件格式和音频视频交错格式中的一种或多种。
为了解决上述问题, 本发明还提供一种多媒体流的播放装置, 包括: 检测模块, 其设置为: 在播放多媒体流的过程中, 检测多媒体数据是否 丟失;
播放模块, 其设置为: 在所述检测模块检测到多媒体数据丟失的情况下, 立即执行静音操作。
优选地, 上述播放装置还具有下面特点: 所述检测模块还设置为: 在检 测到多媒体数据丟失之后, 检测在预定时间内是否发生多媒体数据丟失; 所述播放模块还设置为: 在所述检测模块检测到在预定时间内未发生多 媒体数据丟失的情况下, 继续播放所述多媒体流。 优选地, 上述播放装置还具有下面特点: 所述检测模块是设置为: 根据 多媒体数据的打包格式来检测多媒体数据是否丟失。
优选地, 上述播放装置还具有下面特点: 所述检测模块是设置为: 在所 述多媒体数据的打包格式为传输流格式时, 检测传输流包的连续计数字段的 值是否连续, 若不连续, 则判断多媒体数据丟失。
优选地, 上述播放装置还具有下面特点: 所述多媒体数据的打包格式包 括: 传输流格式、 视频文件格式和音频视频交错格式中的一种或多种。
综上, 本发明实施例提供的一种多媒体流的播放方法及装置, 能够解决 在多媒体数据不全时产生嘯叫的问题。
附图概述
图 1为本发明实施例的多媒体流的播放装置的示意图;
图 2为本发明实施例的多媒体流的播放方法的流程图;
图 3为本发明实施例的多媒体流的播放方法的流程图。
本发明的较佳实施方式 为使本发明的目的、 技术方案和优点更加清楚明白, 下文中将结合附图 对本发明的实施例进行详细说明。 需要说明的是, 在不冲突的情况下, 本申 请中的实施例及实施例中的特征可以相互任意组合。
图 1为本发明的多媒体流的播放装置的示意图, 如图 1所示, 本实施例 的播放装置包括:
检测模块, 用于在播放多媒体流的过程中, 检测多媒体数据是否丟失; 播放模块, 用于在所述检测模块检测到多媒体数据丟失的情况下, 立即 执行静音操作。
这样, 本实施例的播放装置在数据不全时就不会产生嘯叫。
本实施例中, 所述检测模块在检测到多媒体数据丟失之后还用于, 检测 在预定时间内是否发生多媒体数据丟失;
所述播放模块, 还用于在所述检测模块检测到在预定时间内未发生多媒 体数据丟失的情况下, 继续播放所述多媒体流。
这样, 本实施例的播放装置就不会出现长时间段的静音, 不影响用户的 体验。
图 2为本发明的多媒体流的播放方法的流程图, 该方法包括下面步骤:
S10、 在播放多媒体流的过程中, 若检测到多媒体数据丟失, 则立即执行 静音操作。
多媒体数据有很多种打包格式,如传输流( TS流)、 MKV( Matroska Video File, 视频文件格式) 、 AVI ( Audio Video Interleaved, 音频视频交错格式) 等, 每个打包格式都可以判断出其数据是否有丟失。 例如传输流, 可以利用 传输流包的 continuity— counter (连续计数) 字段来判断是否有数据丟失。 continuity— counter字段是一个 4bit的字段, 相同 PID ( Program Identifier, 程 序标识符) 的 TS包的此字段是连续递增的, 递增到 15后又恢复到 0。
下面以传输流格式为例, 对本发明方法进行详细的说明, 本实施例中, 首先根据传输流的 continuity— counter字段判断出多媒体数据有丟失, 当有数 据丟失的时候, 立即静音, 使得音频解码模块不会产生嘯叫; 然后再检测, 如果一段时间内没有发生数据丟失, 则立即打开声音继续播放。 如图 3所示, 本实施例包括如下步骤:
步骤 101 , 根据音频的 PID, 取一个音频 TS包的 continuity— counter字段 的值;
步骤 102, 取下一个音频 TS包的 continuity— counter字段的值;
步骤 103 , 判断两个 TS包的 continuity— counter字段值是否连续, 若不连 续,即后一个 TS包的 continuity— counter字段的值不是在前一个的基础上加 1 , 说明有丟包, 即有数据缺失, 则执行步骤 104, 若连续, 即后一个 TS 包的 continuity— counter字段的值是在前一个的基础上加 1 , 则说明没有丟包, 转步 骤 102;
步骤 104, 立即静音, 避免有嘯叫, 转步骤 105;
步骤 105 , 发生丟包后再连续检测 5个音频 TS包, 若这 5个 TS包里面 都没有丟包, 则再打开声音, 继续播放, 然后转步骤 102。
步骤 105中, 不局限于检测 5个音频 TS包, 也可以是其他个数。
釆用本发明的方法可以避免因数据丟失而导致的嘯叫, 提高用户体验。 本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序 来指令相关硬件完成, 所述程序可以存储于计算机可读存储介质中, 如只读 存储器、 磁盘或光盘等。 可选地, 上述实施例的全部或部分步骤也可以使用 一个或多个集成电路来实现。 相应地, 上述实施例中的各模块 /单元可以釆用 硬件的形式实现, 也可以釆用软件功能模块的形式实现。 本发明不限制于任 何特定形式的硬件和软件的结合。
以上仅为本发明的优选实施例, 当然, 本发明还可有其他多种实施例, 在不背离本发明精神及其实质的情况下, 熟悉本领域的技术人员当可根据本 发明作出各种相应的改变和变形, 但这些相应的改变和变形都应属于本发明 所附的权利要求的保护范围。
工业实用性 本发明实施例提供的一种多媒体流的播放方法及装置, 能够解决在多媒 体数据不全时产生嘯叫的问题。

Claims

权 利 要 求 书
1、 一种多媒体流的播放方法, 包括:
在播放多媒体流的过程中, 若检测到多媒体数据丟失, 则立即执行静音 操作。
2、 如权利要求 1所述的播放方法, 其中, 所述检测到多媒体数据丟失之 后, 还包括:
若检测在预定时间内未发生多媒体数据丟失,则继续播放所述多媒体流。
3、 如权利要求 1所述的播放方法, 其中, 所述检测多媒体数据丟失的步 骤为:
根据多媒体数据的打包格式来检测多媒体数据是否丟失。
4、 如权利要求 3所述的播放方法, 其中, 所述多媒体数据的打包格式包 括传输流格式, 则根据多媒体数据的打包格式来检测多媒体数据是否丟失的 步骤包括:
检测传输流包的连续计数字段的值是否连续, 若不连续, 则判断多媒体 数据丟失。
5、 如权利要求 3所述的播放方法, 其中, 所述多媒体数据的打包格式包 括: 传输流格式、 视频文件格式和音频视频交错格式中的一种或多种。
6、 一种多媒体流的播放装置, 包括:
检测模块, 其设置为: 在播放多媒体流的过程中, 检测多媒体数据是否 丟失;
播放模块, 其设置为: 在所述检测模块检测到多媒体数据丟失的情况下, 立即执行静音操作。
7、 如权利要求 6所述的播放装置, 其中,
所述检测模块还设置为: 在检测到多媒体数据丟失之后, 检测在预定时 间内是否发生多媒体数据丟失;
所述播放模块还设置为: 在所述检测模块检测到在预定时间内未发生多 媒体数据丟失的情况下, 继续播放所述多媒体流。
8、 如权利要求 6所述的播放装置, 其中,
所述检测模块是设置为: 根据多媒体数据的打包格式来检测多媒体数据 是否丟失。
9、 如权利要求 8所述的播放装置, 其中,
所述检测模块是设置为:在所述多媒体数据的打包格式为传输流格式时, 检测传输流包的连续计数字段的值是否连续, 若不连续, 则判断多媒体数据 丟失。
10、 如权利要求 8所述的播放装置, 其中, 所述多媒体数据的打包格式 包括: 传输流格式、 视频文件格式和音频视频交错格式中的一种或多种。
PCT/CN2012/072793 2011-06-10 2012-03-22 一种多媒体流的播放方法及装置 WO2012167646A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2011101556124A CN102244825A (zh) 2011-06-10 2011-06-10 一种多媒体流的播放方法及装置
CN201110155612.4 2011-06-10

Publications (1)

Publication Number Publication Date
WO2012167646A1 true WO2012167646A1 (zh) 2012-12-13

Family

ID=44962604

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/072793 WO2012167646A1 (zh) 2011-06-10 2012-03-22 一种多媒体流的播放方法及装置

Country Status (2)

Country Link
CN (1) CN102244825A (zh)
WO (1) WO2012167646A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102244825A (zh) * 2011-06-10 2011-11-16 中兴通讯股份有限公司 一种多媒体流的播放方法及装置
CN109792558B (zh) * 2016-09-30 2021-11-30 索尼公司 传送装置、传送方法、接收装置、以及接收方法

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1757059A (zh) * 2003-02-28 2006-04-05 松下电器产业株式会社 再生装置及再生方法
CN101056245A (zh) * 2006-04-13 2007-10-17 日本电气株式会社 媒体流中继设备及方法
CN101155140A (zh) * 2006-10-01 2008-04-02 华为技术有限公司 音频流错误隐藏的方法、装置和系统
CN102244825A (zh) * 2011-06-10 2011-11-16 中兴通讯股份有限公司 一种多媒体流的播放方法及装置

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100632509B1 (ko) * 2005-05-16 2006-10-09 엘지전자 주식회사 동영상 재생 단말기의 오디오 비디오 동기화 방법
CN101043759B (zh) * 2006-03-24 2010-12-08 华为技术有限公司 一种通过话带数据vbd方式实现数据业务的方法及其系统
CN101068210B (zh) * 2007-06-20 2012-11-28 中兴通讯股份有限公司 多媒体数据传输方法
CN101771869B (zh) * 2008-12-30 2011-09-28 深圳市万兴软件有限公司 一种音视频编解码装置及方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1757059A (zh) * 2003-02-28 2006-04-05 松下电器产业株式会社 再生装置及再生方法
CN101056245A (zh) * 2006-04-13 2007-10-17 日本电气株式会社 媒体流中继设备及方法
CN101155140A (zh) * 2006-10-01 2008-04-02 华为技术有限公司 音频流错误隐藏的方法、装置和系统
CN102244825A (zh) * 2011-06-10 2011-11-16 中兴通讯股份有限公司 一种多媒体流的播放方法及装置

Also Published As

Publication number Publication date
CN102244825A (zh) 2011-11-16

Similar Documents

Publication Publication Date Title
CN101364941B (zh) 内容重放设备、方法和系统
US9338208B2 (en) Common event-based multidevice media playback
US20140068107A1 (en) Common event-based multidevice media playback
US20170034263A1 (en) Synchronized Playback of Streamed Audio Content by Multiple Internet-Capable Portable Devices
US9843489B2 (en) System and method for synchronous media rendering over wireless networks with wireless performance monitoring
US20150003797A1 (en) Alignment of closed captions
WO2018041043A1 (zh) 基于流媒体丢包二次重传系统及其方法
US20060156375A1 (en) Systems and methods for synchronizing media rendering
CN101715046B (zh) 电子设备和内容再现方法
WO2016011814A1 (zh) 混音播放方法及装置
CN101355500B (zh) 内容再现设备、内容再现方法
TW201019649A (en) Network system, adjusting method of data transmission rate and computer program procut thereof
CN106658226B (zh) 一种播放方法及装置
JP2008020863A (ja) 再生装置、再生方法、プログラム
WO2010072077A1 (zh) 一种处理媒体数据的方法、装置及系统
WO2014137616A1 (en) Mechanism for facilitating synchronization of audio and video between multiple media devices
EP2920953A1 (en) Common event-based multidevice media playback
KR100838900B1 (ko) 재생 시스템과 재생 방법, 데이터 송신 장치와 데이터 송신 방법, 및 원격 제어 장치와 원격 제어 방법
CN109905763B (zh) 优化播放器音频播放卡顿的方法
TW200926806A (en) Content reproduction apparatus, content reproduction method, and content reproduction system
US9197920B2 (en) Shared media experience distribution and playback
WO2012167646A1 (zh) 一种多媒体流的播放方法及装置
JP6118292B2 (ja) マルチメディアコンテンツのデュアルタイプ再生
JP4543586B2 (ja) 音声再生装置及び音声再生方法
US20130132074A1 (en) Method and system for reproducing and distributing sound source of electronic terminal

Legal Events

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

Ref document number: 12797119

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12797119

Country of ref document: EP

Kind code of ref document: A1