CN112637663B - 一种车载dvr数据同步播放的方法 - Google Patents

一种车载dvr数据同步播放的方法 Download PDF

Info

Publication number
CN112637663B
CN112637663B CN202110117027.9A CN202110117027A CN112637663B CN 112637663 B CN112637663 B CN 112637663B CN 202110117027 A CN202110117027 A CN 202110117027A CN 112637663 B CN112637663 B CN 112637663B
Authority
CN
China
Prior art keywords
audio
data
time stamp
auxiliary data
cache
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.)
Active
Application number
CN202110117027.9A
Other languages
English (en)
Other versions
CN112637663A (zh
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.)
Sharpvision Co ltd
Original Assignee
Sharpvision 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 Sharpvision Co ltd filed Critical Sharpvision Co ltd
Priority to CN202110117027.9A priority Critical patent/CN112637663B/zh
Publication of CN112637663A publication Critical patent/CN112637663A/zh
Application granted granted Critical
Publication of CN112637663B publication Critical patent/CN112637663B/zh
Active 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/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/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4331Caching operations, e.g. of an advertisement for later insertion during playback
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/854Content authoring
    • H04N21/8547Content authoring involving timestamps for synchronizing content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

本发明公开一种车载DVR数据同步播放的方法,通过将根据前后相邻两音频数据包的时间差,将音频缓存中后一音频数据包对应的音频时间戳存储至附属数据缓存中,当车载DVR数据顺序播放时,将附属数据缓存中的音频时间戳与附属数据对应的最小时间戳进行对比,若小于音频时间戳,则快速解码附属数据,若大于或等于音频时间戳,附属数据则与音频数据同步播放;当车载DVR数据倒序播放时,将附属数据缓存中的音频时间戳与附属数据对应的最大时间戳进行对比,若大于音频时间戳,则快速解码附属数据,若小于或等于音频时间戳,附属数据则与音频数据同步播放的逻辑机制,可以提高多个画面播放的音频及其附属数据的准确性。

Description

一种车载DVR数据同步播放的方法
技术领域
本发明涉及车载DVR播放器技术领域,具体为一种车载DVR数据同步播放的方法。
背景技术
车载DVR一般至少有四路或者更多路的视频,每段时间,车载DVR会生成对应多条路径的视频,然后通过播放器上的多条路径的线程,分别播放对应的视频文件。传统播放器往往是单路播放器,一个播放器只能播放一路视频,若要播放多路,需要开启多个程序,进行多个画面的播放。就算有一个程序开启多个线程去播放多路视频,由于每一条路径的线程均是独立运行的,其在PC设备中运行的周期也不相同,有的线程运行的快,有的线程运行的慢,或者有的线程运行时,搭载的文件数据可能会有丢失,如果各个录像文件里还有各种附属数据,其附属数据就更难有序的播放,从而出现音频数据与其附属数据播放不准确,不同通道的视频也不同步的问题。
发明内容
本发明的目的在于提供一种提高音频数据与其不同通道的附属数据同步播放准确性的车载DVR数据同步播放的方法。
本发明所述的车载DVR数据同步播放的方法,包括:
获取车载DVR音频数据包对应的音频时间戳,并将预设数量的音频数据包,以及音频数据包对应的音频时间戳存储至音频缓存中;
获取车载DVR音频数据对应的每一个附属数据,并将预设数量的每一个附属数据,以及每一个附属数据对应的时间戳存储至附属数据缓存中;
根据前后相邻两音频数据包的时间差,将音频缓存中后一音频数据包对应的音频时间戳存储至附属数据缓存中;
当车载DVR数据顺序播放时,将附属数据缓存中的音频时间戳与附属数据对应的最小时间戳进行对比,若小于音频时间戳,则快速解码附属数据,若大于或等于音频时间戳,附属数据则与音频数据同步播放;
当车载DVR数据倒序播放时,将附属数据缓存中的音频时间戳与附属数据对应的最大时间戳进行对比,若大于音频时间戳,则快速解码附属数据,若小于或等于音频时间戳,附属数据则与音频数据同步播放。
本发明所述的车载DVR数据同步播放的方法,通过将根据前后相邻两音频数据包的时间差,将音频缓存中后一音频数据包对应的音频时间戳存储至附属数据缓存中,当车载DVR数据顺序播放时,将附属数据缓存中的音频时间戳与附属数据对应的最小时间戳进行对比,若小于音频时间戳,则快速解码附属数据,若大于或等于音频时间戳,附属数据则与音频数据同步播放;当车载DVR数据倒序播放时,将附属数据缓存中的音频时间戳与附属数据对应的最大时间戳进行对比,若大于音频时间戳,则快速解码附属数据,若小于或等于音频时间戳,附属数据则与音频数据同步播放的逻辑机制,可以将多个画面播放的音频及其附属的数据,无论是顺序播放或者是倒序播放,均能使其同步,从而提高多个画面播放的音频及其附属数据的准确性。如车载DVR多个画面的音频与视频、GPS地图数据以及Gsensor(加速度)数据准确同步的播放。
具体实施方式
一种车载DVR数据同步播放的方法,包括:
获取车载DVR音频数据包对应的音频时间戳,并将预设数量的音频数据包,以及音频数据包对应的音频时间戳存储至音频缓存中;
获取车载DVR音频数据对应的每一个附属数据,并将预设数量的每一个附属数据,以及每一个附属数据对应的时间戳存储至附属数据缓存中;
根据前后相邻两音频数据包的时间差,将音频缓存中后一音频数据包对应的音频时间戳存储至附属数据缓存中;
当车载DVR数据顺序播放时,将附属数据缓存中的音频时间戳与附属数据对应的最小时间戳进行对比,若小于音频时间戳,则快速解码附属数据,若大于或等于音频时间戳,附属数据则与音频数据同步播放;
当车载DVR数据倒序播放时,将附属数据缓存中的音频时间戳与附属数据对应的最大时间戳进行对比,若大于音频时间戳,则快速解码附属数据,若小于或等于音频时间戳,附属数据则与音频数据同步播放。
附属数据包括视频数据、GPS数据和Gsensor数据。
由于车载DVR硬件编码器的原因,附属数据的时间戳不一定绝对准确,可能会出现略微偏差,通过当车载DVR数据顺序播放时,将附属数据缓存中的音频时间戳与附属数据对应的最小时间戳进行对比,若大于或等于音频时间戳,且附属数据对应的最小时间戳小于或等于两倍两相邻音频的时间差,附属数据则与音频数据同步播放。当车载DVR数据倒序播放时,将附属数据缓存中的音频时间戳与附属数据对应的最大时间戳进行对比,若大于音频时间戳,则快速解码附属数据,若小于或等于音频时间戳,且附属数据对应的最大时间戳小于或等于两倍两相邻音频的时间差,附属数据则与音频数据同步播放,可以取得更好的同步效果。
由于音频数据相对较小,对应的时间戳准确性又高的原因,通过当车载DVR数据顺序快进播放时,将音频缓存中的音频数据包依据时间的大小顺序从小到大进行排序,然后根据前后相邻两音频数据包的时间差,将音频缓存中后一音频数据包对应的音频时间戳存储至附属数据缓存中。当车载DVR数据倒序快退播放时,将音频缓存中的音频数据包依据时间的大小顺序从大到小进行排序,然后根据前后相邻两音频数据包的时间差,将音频缓存中后一音频数据包对应的音频时间戳存储至附属数据缓存中,可以取得车载DVR数据无论是顺序快进播放还是倒序快退播放,都能使多个画面的音频与视频、GPS地图数据以及Gsensor数据进行同步播放,可以取得多个不同通道的视频更好同步的有益效果。
以上内容是结合具体的优选实施方式对本发明所作的进一步详细说明,不能认定本发明的具体实施只局限于这些说明。对于本发明所属技术领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干简单推演或替换,都应当视为属于本发明的保护范围。

Claims (3)

1.一种车载DVR数据同步播放的方法,其特征在于,包括:
获取车载DVR音频数据包对应的音频时间戳,并将预设数量的音频数据包,以及音频数据包对应的音频时间戳存储至音频缓存中;
获取车载DVR音频数据对应的每一个附属数据,并将预设数量的每一个附属数据,以及每一个附属数据对应的时间戳存储至附属数据缓存中;
根据前后相邻两音频数据包的时间差,将音频缓存中后一音频数据包对应的音频时间戳存储至附属数据缓存中;
当车载DVR数据顺序播放时,将附属数据缓存中的音频时间戳与附属数据对应的最小时间戳进行对比,若小于音频时间戳,则快速解码附属数据,若大于或等于音频时间戳,且附属数据对应的最小时间戳小于或等于两倍两相邻音频的时间差,附属数据则与音频数据同步播放;
当车载DVR 数据倒序播放时,将附属数据缓存中的音频时间戳与附属数据对应的最大时间戳进行对比,若大于音频时间戳,则快速解码附属数据,若小于或等于音频时间戳,且附属数据对应的最大时间戳小于或等于两倍两相邻音频的时间差,附属数据则与音频数据同步播放;
所述附属数据包括视频数据、GPS数据和Gsensor数据。
2.根据权利要求1所述的车载DVR数据同步播放的方法,其特征在于,当车载DVR数据顺序快进播放时,将音频缓存中的音频数据包依据时间的大小顺序从小到大进行排序,然后根据前后相邻两音频数据包的时间差,将音频缓存中后一音频数据包对应的音频时间戳存储至附属数据缓存中。
3.根据权利要求1所述的车载DVR数据同步播放的方法,其特征在于,当车载DVR数据倒序快退播放时,将音频缓存中的音频数据包依据时间的大小顺序从大到小进行排序,然后根据前后相邻两音频数据包的时间差,将音频缓存中后一音频数据包对应的音频时间戳存储至附属数据缓存中。
CN202110117027.9A 2021-01-28 2021-01-28 一种车载dvr数据同步播放的方法 Active CN112637663B (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110117027.9A CN112637663B (zh) 2021-01-28 2021-01-28 一种车载dvr数据同步播放的方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110117027.9A CN112637663B (zh) 2021-01-28 2021-01-28 一种车载dvr数据同步播放的方法

Publications (2)

Publication Number Publication Date
CN112637663A CN112637663A (zh) 2021-04-09
CN112637663B true CN112637663B (zh) 2023-02-28

Family

ID=75295048

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110117027.9A Active CN112637663B (zh) 2021-01-28 2021-01-28 一种车载dvr数据同步播放的方法

Country Status (1)

Country Link
CN (1) CN112637663B (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114650452A (zh) * 2022-02-28 2022-06-21 北京中交兴路信息科技有限公司 车载视频的倒播方法、装置、电子设备及介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102595114A (zh) * 2011-01-13 2012-07-18 安凯(广州)微电子技术有限公司 一种在低端嵌入式产品上播放视频的方法及终端
CN104333764A (zh) * 2013-07-22 2015-02-04 安凯(广州)微电子技术有限公司 一种多路视频播放方法及装置
CN108271031A (zh) * 2016-12-30 2018-07-10 北京酷我科技有限公司 一种直播视频的播放方法及装置

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
SE517245C2 (sv) * 2000-09-14 2002-05-14 Ericsson Telefon Ab L M Synkronisering av audio- och videosignaler
US6850284B2 (en) * 2002-08-27 2005-02-01 Motorola, Inc. Method and apparatus for decoding audio and video information
WO2013082965A1 (zh) * 2011-12-05 2013-06-13 优视科技有限公司 流媒体数据处理方法及装置、流媒体数据再现设备
JP6275506B2 (ja) * 2014-02-21 2018-02-07 ルネサスエレクトロニクス株式会社 コンテンツ出力装置
CN112235597B (zh) * 2020-09-17 2022-07-29 深圳市捷视飞通科技股份有限公司 流媒体直播音视频同步保护方法、装置、计算机设备

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102595114A (zh) * 2011-01-13 2012-07-18 安凯(广州)微电子技术有限公司 一种在低端嵌入式产品上播放视频的方法及终端
CN104333764A (zh) * 2013-07-22 2015-02-04 安凯(广州)微电子技术有限公司 一种多路视频播放方法及装置
CN108271031A (zh) * 2016-12-30 2018-07-10 北京酷我科技有限公司 一种直播视频的播放方法及装置

Also Published As

Publication number Publication date
CN112637663A (zh) 2021-04-09

Similar Documents

Publication Publication Date Title
CA2331312C (en) Method for storing compressed digital audio and video
US7424209B2 (en) System and method for real-time data archival
JP2004522370A (ja) マルチチャンネルストリームを記録して再生する装置及び方法
CN107566889B (zh) 音频流流速误差处理方法、装置、计算机装置及计算机可读存储介质
US20060098742A1 (en) Method of automatically testing audio-video synchronization
US20070189315A1 (en) Transmission rate adjustment device and method
US20040267738A1 (en) System and method for time synchronization between multimedia content and segment metadata
US20160099026A1 (en) Storage method, playback method, storage apparatus, and playback apparatus
US8315312B2 (en) IP stream communicating system, IP stream receiving apparatus and reception processing timing sync method for use in IP stream receiving apparatus
CN112637663B (zh) 一种车载dvr数据同步播放的方法
CN101656860A (zh) 记录装置和记录方法
US20090204630A1 (en) Digital video apparatus and related method for generating index information
KR20060099687A (ko) 타임스탬프를 이용한 비디오 동기화 장치 및 방법
KR100390841B1 (ko) 피아이디 검출을 고속화하기 위한 피아이디 저장 및 비교장치 및 방법
JPH11275524A (ja) データ記録方法、データ再生方法、データ記録装置およびデータ再生装置
JP2008193151A (ja) ストリーム記録装置
JP2007124639A (ja) データパケットを記憶するための方法及びシステム
CN107360457A (zh) 多媒体数据处理方法及相关设备
US20090116816A1 (en) Chaptering method and apparatus for movie data
EP2524502A1 (en) Method and apparatus for processing transport streams
JPWO2006075457A1 (ja) 記録装置
WO2008113241A1 (en) Method of storing media data delivered through a network
JP3258911B2 (ja) ディジタルビデオレコーダ
CN116567308A (zh) 多流网络视频同步的方法、装置、设备及存储介质
KR20030060974A (ko) 타임 스탬핑을 위한 디바이스와 방법, 지연 방송을 위한수신기, 시스템 및 대응하는 패킷 열

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
GR01 Patent grant
GR01 Patent grant
CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: 101, Building 6, No.1 Ruihua Road, Tianhe District, Guangzhou, Guangdong 510660

Patentee after: SHARPVISION CO.,LTD.

Address before: 510000 fifth floor, No.3, Huangzhou Industrial Park, chebei Road, Tianhe District, Guangzhou City, Guangdong Province

Patentee before: SHARPVISION CO.,LTD.