CN105516795A - 安卓系统下电视屏幕分享方法 - Google Patents
安卓系统下电视屏幕分享方法 Download PDFInfo
- Publication number
- CN105516795A CN105516795A CN201510926003.2A CN201510926003A CN105516795A CN 105516795 A CN105516795 A CN 105516795A CN 201510926003 A CN201510926003 A CN 201510926003A CN 105516795 A CN105516795 A CN 105516795A
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- data
- android system
- intelligent mobile
- sharing method
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/436—Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
- H04N21/43615—Interfacing a Home Network, e.g. for connecting the client to a plurality of peripherals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/4302—Content synchronisation processes, e.g. decoder synchronisation
- H04N21/4307—Synchronising 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
- H04N21/4402—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
- H04N21/440218—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
- H04N21/4402—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
- H04N21/440263—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by altering the spatial resolution, e.g. for displaying on a connected PDA
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/85—Assembly of content; Generation of multimedia applications
- H04N21/854—Content authoring
- H04N21/8547—Content authoring involving timestamps for synchronizing content
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
- Telephone Function (AREA)
Abstract
本发明涉及智能设备技术。本发明是要解决现有智能电视机与智能移动终端之间缺乏互动的问题,提供了一种安卓系统下电视屏幕分享方法,其技术方案可概括为:首先智能电视端与智能移动终端建立通信连接,当智能移动终端向智能电视端发出分享指令后,智能电视端实时抓取屏幕数据,将其编码出的数据线暂存,智能电视端然后再与智能移动终端之间进行协议同步后,智能电视端再对每个数据线进行打包封头传输给智能移动终端,智能移动终端接收到打包后的数据,对其进行缓存,解析其中的时间戳,对其进行解码,最后调用安卓系统的图形显示将视频画面显示在其屏幕上。本发明的有益效果是,方便用户,适用于智能设备。
Description
技术领域
本发明涉及智能设备技术,特别涉及智能设备信息共享的技术。
背景技术
现在的智能电视机及智能移动终端已经进入家家户户,但目前大部分的智能电视机与智能移动终端之间缺乏互动,智能电视机上播放的视频节目仅在智能电视机上播放,智能移动终端仅提供类似于遥控器的控制作用。
发明内容
本发明的目的是要解决目前智能电视机与智能移动终端之间缺乏互动的问题,提供了一种安卓系统下电视屏幕分享方法。
本发明解决其技术问题,采用的技术方案是,安卓系统下电视屏幕分享方法,其特征在于,包括以下步骤:
步骤1、智能电视端与智能移动终端建立通信连接;
步骤2、智能移动终端向智能电视端发出分享指令;
步骤3、智能电视端实时抓取屏幕数据,将其编码为H264视频格式数据,将编码出的NALU数据线暂存;
步骤4、智能电视端与智能移动终端之间进行协议同步;
步骤5、智能电视端对每个NALU数据线进行打包封头传输给智能移动终端;
步骤6、智能移动终端接收到打包后的NALU数据,对其进行缓存,解析其中的时间戳,对其进行解码,若有音频数据,则将音频数据与视频数据进行同步;
步骤7、智能移动终端调用安卓系统的图形显示将视频画面显示在其屏幕上。
进一步的,步骤1中,所述通信连接为TCP通信连接。
具体的,步骤3中,所述将屏幕数据编码为H264视频格式数据是指:通过软编码器将屏幕数据编码为H.264视频格式数据,同时修改分辨率为智能移动终端适用的分辨率。
再进一步的,所述软编码器为ffmpeg编/解码器。
具体的,步骤6中,所述解码是指采用ffmpeg编/解码器进行解码。
再进一步的,步骤5中,所述对每个NALU数据线进行打包封头的方法为:从cachebuffer里提取一个单独的.H264NALUpacket,在该.H264NALUpacket前插入自定义的头描述信息。
具体的,所述自定义的头描述信息包括包头起始描述、载荷类型描述、载荷大小描述及载荷的时间戳描述。
再进一步的,所述载荷类型描述中的载荷类型包括视频及音频。
具体的,所述载荷的时间戳描述中的时间戳取毫秒级时间。
再进一步的,所述智能移动终端为安卓系统的智能手机或平板电脑。
本发明的有益效果是,在本发明方案中,通过上述安卓系统下电视屏幕分享方法,可以令智能移动终端实时播放当前智能电视系统正在播放的视频节目,方便用户,且简化实时播放的传输协议。
具体实施方式
下面结合实施例,详细描述本发明的技术方案。
本发明的安卓系统下电视屏幕分享方法,具体为:首先智能电视端与智能移动终端建立通信连接,当智能移动终端向智能电视端发出分享指令后,智能电视端实时抓取屏幕数据,将其编码为H264视频格式数据,将编码出的NALU数据线暂存,智能电视端然后再与智能移动终端之间进行协议同步后,智能电视端再对每个NALU数据线进行打包封头传输给智能移动终端,智能移动终端接收到打包后的NALU数据,对其进行缓存,解析其中的时间戳,对其进行解码,若有音频数据,则将音频数据与视频数据进行同步,最后调用安卓系统的图形显示将视频画面显示在其屏幕上。
实施例
本发明实施例的安卓系统下电视屏幕分享方法,其包括以下步骤:
步骤1、智能电视端与智能移动终端建立通信连接。
本步骤中,通信连接为TCP通信连接。
步骤2、智能移动终端向智能电视端发出分享指令。
步骤3、智能电视端实时抓取屏幕数据,将其编码为H264视频格式数据,将编码出的NALU数据线暂存。
本步骤中,将屏幕数据编码为H264视频格式数据可以为:通过软编码器将屏幕数据编码为H.264视频格式数据,同时修改分辨率为智能移动终端适用的分辨率。软编码器如ffmpeg编/解码器等。
步骤4、智能电视端与智能移动终端之间进行协议同步。
步骤5、智能电视端对每个NALU数据线进行打包封头传输给智能移动终端。
本步骤中,对每个NALU数据线进行打包封头的方法可以为:从cachebuffer里提取一个单独的.H264NALUpacket,在该.H264NALUpacket前插入自定义的头描述信息。而本例中,自定义的头描述信息包括包头起始描述、载荷类型描述、载荷大小描述及载荷的时间戳描述,其中,载荷类型描述中的载荷类型一般包括视频及音频,载荷的时间戳描述中的时间戳优选为取毫秒级时间。
步骤6、智能移动终端接收到打包后的NALU数据,对其进行缓存,解析其中的时间戳,对其进行解码,若有音频数据,则将音频数据与视频数据进行同步。
本步骤中,解码是指采用与步骤3中所采用编码器对应的解码器进行解码,如采用ffmpeg编/解码器进行解码。
步骤7、智能移动终端调用安卓系统的图形显示将视频画面显示在其屏幕上。
本例中,智能移动终端可以为安卓系统的智能手机或平板电脑等。
Claims (10)
1.安卓系统下电视屏幕分享方法,其特征在于,包括以下步骤:
步骤1、智能电视端与智能移动终端建立通信连接;
步骤2、智能移动终端向智能电视端发出分享指令;
步骤3、智能电视端实时抓取屏幕数据,将其编码为H264视频格式数据,将编码出的NALU数据线暂存;
步骤4、智能电视端与智能移动终端之间进行协议同步;
步骤5、智能电视端对每个NALU数据线进行打包封头传输给智能移动终端;
步骤6、智能移动终端接收到打包后的NALU数据,对其进行缓存,解析其中的时间戳,对其进行解码,若有音频数据,则将音频数据与视频数据进行同步;
步骤7、智能移动终端调用安卓系统的图形显示将视频画面显示在其屏幕上。
2.如权利要求1所述的安卓系统下电视屏幕分享方法,其特征在于,步骤1中,所述通信连接为TCP通信连接。
3.如权利要求1所述的安卓系统下电视屏幕分享方法,其特征在于,步骤3中,所述将屏幕数据编码为H264视频格式数据是指:通过软编码器将屏幕数据编码为H.264视频格式数据,同时修改分辨率为智能移动终端适用的分辨率。
4.如权利要求3所述的安卓系统下电视屏幕分享方法,其特征在于,所述软编码器为ffmpeg编/解码器。
5.如权利要求4所述的安卓系统下电视屏幕分享方法,其特征在于,步骤6中,所述解码是指采用ffmpeg编/解码器进行解码。
6.如权利要求1所述的安卓系统下电视屏幕分享方法,其特征在于,步骤5中,所述对每个NALU数据线进行打包封头的方法为:从cachebuffer里提取一个单独的.H264NALUpacket,在该.H264NALUpacket前插入自定义的头描述信息。
7.如权利要求6所述的安卓系统下电视屏幕分享方法,其特征在于,所述自定义的头描述信息包括包头起始描述、载荷类型描述、载荷大小描述及载荷的时间戳描述。
8.如权利要求7所述的安卓系统下电视屏幕分享方法,其特征在于,所述载荷类型描述中的载荷类型包括视频及音频。
9.如权利要求7所述的安卓系统下电视屏幕分享方法,其特征在于,所述载荷的时间戳描述中的时间戳取毫秒级时间。
10.如权利要求1或2或3或4或5或6或7或8或9所述的安卓系统下电视屏幕分享方法,其特征在于,所述智能移动终端为安卓系统的智能手机或平板电脑。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510926003.2A CN105516795A (zh) | 2015-12-14 | 2015-12-14 | 安卓系统下电视屏幕分享方法 |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510926003.2A CN105516795A (zh) | 2015-12-14 | 2015-12-14 | 安卓系统下电视屏幕分享方法 |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105516795A true CN105516795A (zh) | 2016-04-20 |
Family
ID=55724380
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510926003.2A Pending CN105516795A (zh) | 2015-12-14 | 2015-12-14 | 安卓系统下电视屏幕分享方法 |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105516795A (zh) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106303650A (zh) * | 2016-08-31 | 2017-01-04 | 成都炫境科技有限公司 | 视频同步显示方法 |
CN106341408A (zh) * | 2016-09-20 | 2017-01-18 | 武汉斗鱼网络科技有限公司 | 一种tv设备局域网内直播分享方法及系统 |
CN111405233A (zh) * | 2020-03-25 | 2020-07-10 | 苏州科达科技股份有限公司 | 视频会议中的加密图形传输方法、装置、存储介质及系统 |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101977324A (zh) * | 2010-11-09 | 2011-02-16 | 青岛海信宽带多媒体技术有限公司 | 一种实现屏幕共享的方法 |
CN102665135A (zh) * | 2012-04-18 | 2012-09-12 | 山东大学 | 一种嵌入式屏幕传输系统及其操作方法 |
CN103024523A (zh) * | 2012-12-07 | 2013-04-03 | 康佳集团股份有限公司 | 一种基于机顶盒的电视节目共享方法和系统 |
CN103442071A (zh) * | 2013-08-30 | 2013-12-11 | 华南理工大学 | 一种手机屏幕内容的实时分享方法 |
CN103856810A (zh) * | 2012-12-04 | 2014-06-11 | 深圳市同洲电子股份有限公司 | 一种具有传屏功能的多媒体信息终端 |
CN104158804A (zh) * | 2014-08-07 | 2014-11-19 | 中国海洋大学 | 一种多屏互动方法 |
CN104581364A (zh) * | 2014-12-29 | 2015-04-29 | 四达时代通讯网络技术有限公司 | 安卓机顶盒的数据分享和控制的方法、设备及系统 |
-
2015
- 2015-12-14 CN CN201510926003.2A patent/CN105516795A/zh active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101977324A (zh) * | 2010-11-09 | 2011-02-16 | 青岛海信宽带多媒体技术有限公司 | 一种实现屏幕共享的方法 |
CN102665135A (zh) * | 2012-04-18 | 2012-09-12 | 山东大学 | 一种嵌入式屏幕传输系统及其操作方法 |
CN103856810A (zh) * | 2012-12-04 | 2014-06-11 | 深圳市同洲电子股份有限公司 | 一种具有传屏功能的多媒体信息终端 |
CN103024523A (zh) * | 2012-12-07 | 2013-04-03 | 康佳集团股份有限公司 | 一种基于机顶盒的电视节目共享方法和系统 |
CN103442071A (zh) * | 2013-08-30 | 2013-12-11 | 华南理工大学 | 一种手机屏幕内容的实时分享方法 |
CN104158804A (zh) * | 2014-08-07 | 2014-11-19 | 中国海洋大学 | 一种多屏互动方法 |
CN104581364A (zh) * | 2014-12-29 | 2015-04-29 | 四达时代通讯网络技术有限公司 | 安卓机顶盒的数据分享和控制的方法、设备及系统 |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106303650A (zh) * | 2016-08-31 | 2017-01-04 | 成都炫境科技有限公司 | 视频同步显示方法 |
CN106341408A (zh) * | 2016-09-20 | 2017-01-18 | 武汉斗鱼网络科技有限公司 | 一种tv设备局域网内直播分享方法及系统 |
CN106341408B (zh) * | 2016-09-20 | 2019-12-03 | 武汉斗鱼网络科技有限公司 | 一种tv设备局域网内直播分享方法及系统 |
CN111405233A (zh) * | 2020-03-25 | 2020-07-10 | 苏州科达科技股份有限公司 | 视频会议中的加密图形传输方法、装置、存储介质及系统 |
CN111405233B (zh) * | 2020-03-25 | 2021-08-20 | 苏州科达科技股份有限公司 | 视频会议中的加密图形传输方法、装置、存储介质及系统 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109327728B (zh) | 一种一对多同屏方法、装置和系统、同屏设备及存储介质 | |
US10728594B2 (en) | Method and apparatus for transmitting data of mobile terminal | |
CN110430441B (zh) | 一种云手机视频采集方法、系统、装置及存储介质 | |
US10454986B2 (en) | Video synchronous playback method, apparatus, and system | |
CN106792055A (zh) | 实时投屏方法、设备及系统 | |
CN101998132A (zh) | 传输设备、接收设备、程序和通信系统 | |
CN104618786A (zh) | 音视频同步方法和装置 | |
CN111355976B (zh) | 一种基于hevc标准的视频直播方法及系统 | |
CN103024523A (zh) | 一种基于机顶盒的电视节目共享方法和系统 | |
WO2006093740A3 (en) | System and method for generating trick mode streams | |
CN101686391A (zh) | 视频编码/解码方法、装置与视频播放方法、装置及系统 | |
CN103929657A (zh) | 视频复用设备和方法、复用视频解码设备和方法 | |
CN105516795A (zh) | 安卓系统下电视屏幕分享方法 | |
CN101778285A (zh) | 一种音视频信号无线传输系统及其方法 | |
CN105245914A (zh) | 云桌面高清视频传输协议及架构 | |
CN102541555A (zh) | 一种使用api拦截方式实现远程桌面视频流畅播放的方法 | |
WO2017015300A1 (en) | Devices and methods for facilitating video and graphics streams in remote display applications | |
CN106330926A (zh) | 屏幕界面共享方法和系统 | |
KR20170114219A (ko) | 웹브라우저 상에서 미디어 스트림을 재생하는 방법 및 장치 | |
WO2015185426A1 (en) | Minimizing input lag in a remote gui tv application | |
CN102413350B (zh) | 蓝光3d视频处理方法 | |
CN103974062B (zh) | 图像显示装置、图像显示系统和图像显示方法 | |
CN105376595A (zh) | 一种视频混合编码系统和方法 | |
CN103414939A (zh) | 一种频道切换方法和装置 | |
CN109104635A (zh) | 即时传送屏幕图像的方法及系统 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160420 |
|
RJ01 | Rejection of invention patent application after publication |