[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN103945277B - Realize the mthods, systems and devices that mobile terminal video is shared - Google Patents

Realize the mthods, systems and devices that mobile terminal video is shared Download PDF

Info

Publication number
CN103945277B
CN103945277B CN201310638165.7A CN201310638165A CN103945277B CN 103945277 B CN103945277 B CN 103945277B CN 201310638165 A CN201310638165 A CN 201310638165A CN 103945277 B CN103945277 B CN 103945277B
Authority
CN
China
Prior art keywords
mobile terminal
video
packet
data packet
data
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
CN201310638165.7A
Other languages
Chinese (zh)
Other versions
CN103945277A (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.)
Samsung Electronics China R&D Center
Samsung Electronics Co Ltd
Original Assignee
Samsung Electronics China R&D Center
Samsung Electronics 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 Samsung Electronics China R&D Center, Samsung Electronics Co Ltd filed Critical Samsung Electronics China R&D Center
Priority to CN201310638165.7A priority Critical patent/CN103945277B/en
Publication of CN103945277A publication Critical patent/CN103945277A/en
Application granted granted Critical
Publication of CN103945277B publication Critical patent/CN103945277B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

本发明提出一种实现移动终端视频实时分享的方法、系统和装置,其中方法包括:源移动终端将视频属性信息发送至目标移动终端;视频属性信息包括视频分享标识(Call ID)和采集起始数据帧序号(Segment No);源移动终端实时采集视频数据帧,将每次采集的视频数据帧封装成一个数据包,其中,数据包的名称由所述Call ID和Segment No确定;将数据包发送至CCN节点;目标移动终端生成兴趣包,兴趣包的名称由Call ID和Segment No确定,将兴趣包发送至CCN节点;CCN节点收到来自目标移动终端的兴趣包后,根据兴趣包的名称获取匹配该兴趣包的数据包,将获取的数据包发送至该目标移动终端。本发明能够灵活有效地支持大规模移动终端视频数据的实时分享。

The present invention proposes a method, system and device for realizing real-time video sharing of mobile terminals, wherein the method includes: the source mobile terminal sends video attribute information to the target mobile terminal; the video attribute information includes video sharing identification (Call ID) and collection start Data frame sequence number (Segment No); the source mobile terminal collects video data frames in real time, and encapsulates each collected video data frame into a data packet, wherein the name of the data packet is determined by the Call ID and Segment No; the data packet Send to the CCN node; the target mobile terminal generates an interest packet, the name of the interest packet is determined by the Call ID and Segment No, and sends the interest packet to the CCN node; after the CCN node receives the interest packet from the target mobile terminal, according to the name of the interest packet Obtain a data packet matching the Interest packet, and send the obtained data packet to the target mobile terminal. The invention can flexibly and effectively support the real-time sharing of large-scale mobile terminal video data.

Description

实现移动终端视频分享的方法、系统和装置Method, system and device for realizing mobile terminal video sharing

技术领域technical field

本发明涉及移动通信技术领域,尤其涉及实现移动终端视频实时分享的方法、系统和装置。The invention relates to the technical field of mobile communication, in particular to a method, system and device for realizing real-time video sharing of mobile terminals.

背景技术Background technique

随着智能移动终端和平板电脑的普及、3G网络的广泛覆盖、Wi-Fi热点的增加等,人们的社交方式和沟通方式逐渐发生着新的变革。同传统社交网络不同,移动终端比PC有着天然的联系人属性、实名属性和位置属性,可以大大的减少信任成本,同时又具有很强的便利性,满足了人们时时社交、永不离线的需求,加上智能终端设备的快速普及,移动社交在发展规模和发展远景上都比互联网社交更具有想象力。With the popularity of smart mobile terminals and tablet computers, the wide coverage of 3G networks, and the increase of Wi-Fi hotspots, people's social and communication methods are gradually undergoing new changes. Different from traditional social networks, mobile terminals have natural contact attributes, real-name attributes, and location attributes compared to PCs, which can greatly reduce trust costs, and at the same time have strong convenience, meeting people's needs for socializing all the time and never being offline , coupled with the rapid popularization of smart terminal devices, mobile social networking is more imaginative than Internet social networking in terms of development scale and development prospects.

尽管如此,目前基于TCP/IP体系结果的移动终端视频应用逐渐暴露出许多的不适应,在可扩展性,移动性,以及安全可控性等方面存在诸多问题,Nevertheless, the current mobile terminal video applications based on the results of the TCP/IP system have gradually exposed many inadaptations, and there are many problems in scalability, mobility, and security controllability.

目前常见的移动终端视频分享的技术有:Currently common mobile terminal video sharing technologies include:

第一种,中心视频媒体服务器分发方式,采用固定且定制化的视频源,通过中心服务器将视频数据分发传输至目标移动终端,从而实现视频广播甚至直播的目的。The first is the central video media server distribution method, which uses a fixed and customized video source, and distributes and transmits video data to the target mobile terminal through the central server, so as to achieve the purpose of video broadcasting or even live broadcasting.

第二种,点对点实时视频传输方式,视频属性数据通过移动网络在源与目标移动终端之间传输,通过移动摄像头实时采集音视频,上传至视频服务器,由视频服务器进行编解码和格式处理后,发往目标移动终端。The second is the point-to-point real-time video transmission method. The video attribute data is transmitted between the source and the target mobile terminal through the mobile network. The audio and video are collected in real time through the mobile camera and uploaded to the video server. After the video server performs codec and format processing, sent to the target mobile terminal.

上述两种方式存在以下缺点:The above two methods have the following disadvantages:

中心视频媒体服务器分发方式的缺点是:视频源范围较窄,特别是针对实时视频,源数据格式及内容限制较大,移动性差,无法满足移动终端特有的数据源移动及变化的需求;同时,中心媒体服务器服务能力有限,无法有效支持地理位置分散且规模较大的用户群接入,即使使用CDN网络,也无法对实时视频流提供有效支持,且网络运营成本较高。The disadvantages of the central video media server distribution method are: the range of video sources is narrow, especially for real-time video, the source data format and content are limited, and the mobility is poor, which cannot meet the mobile terminal's unique data source movement and changing needs; at the same time, The central media server has limited service capabilities and cannot effectively support the access of geographically dispersed and large-scale user groups. Even if a CDN network is used, it cannot provide effective support for real-time video streaming, and the network operation cost is high.

点对点实时视频传输方式的缺点是:受限于终端设备性能及网络带宽限制,源移动终端作为内容服务器,无法支撑大规模的视频共享,无法对视频进行大范围实时广播,使用范围较小。The disadvantages of the point-to-point real-time video transmission method are: limited by the performance of terminal equipment and network bandwidth, the source mobile terminal is used as a content server, which cannot support large-scale video sharing, cannot perform large-scale real-time broadcast of video, and has a small range of use.

发明内容Contents of the invention

本发明提供了一种实现移动终端视频实时分享的方法,能够灵活有效地支持大规模移动终端视频数据的实时分享。The invention provides a method for realizing real-time sharing of mobile terminal video, which can flexibly and effectively support real-time sharing of large-scale mobile terminal video data.

本发明还提供了一种实现移动终端视频实时分享的系统、移动终端及CCN节点,能够灵活有效地支持大规模移动终端视频数据的实时分享。The invention also provides a system for realizing real-time sharing of mobile terminal video, a mobile terminal and a CCN node, which can flexibly and effectively support real-time sharing of large-scale mobile terminal video data.

本发明的技术方案是这样实现的:Technical scheme of the present invention is realized like this:

一种实现移动终端视频实时分享的方法,应用于包括源移动终端、目标移动终端及多个内容中心网络(CCN)节点的网络,所述方法包括:A method for realizing real-time video sharing of a mobile terminal, applied to a network including a source mobile terminal, a target mobile terminal, and multiple content-centric network (CCN) nodes, the method comprising:

源移动终端将视频属性信息发送至目标移动终端;所述视频属性信息包括视频分享标识(Call ID)和采集起始数据帧序号(Segment No;The source mobile terminal sends the video attribute information to the target mobile terminal; the video attribute information includes a video sharing identifier (Call ID) and a collection start data frame sequence number (Segment No;

源移动终端实时采集视频数据帧,将每次采集的视频数据帧封装成一个数据包,其中,数据包的名称由所述Call ID和Segment No确定;将数据包发送至CCN节点;The source mobile terminal collects video data frames in real time, and encapsulates the video data frames collected each time into a data packet, wherein the name of the data packet is determined by the Call ID and Segment No; the data packet is sent to the CCN node;

目标移动终端生成兴趣包,所述兴趣包的名称由所述Call ID和Segment No确定,将所述兴趣包发送至CCN节点;The target mobile terminal generates an interest packet, the name of the interest packet is determined by the Call ID and Segment No, and the interest packet is sent to the CCN node;

CCN节点收到来自目标移动终端的兴趣包后,根据兴趣包的名称获取匹配该兴趣包的数据包,将获取的数据包发送至该目标移动终端。After receiving the Interest packet from the target mobile terminal, the CCN node obtains the data packet matching the Interest packet according to the name of the Interest packet, and sends the obtained data packet to the target mobile terminal.

一种实现移动终端视频实时分享的系统,包括:A system for realizing real-time sharing of mobile terminal video, comprising:

源移动终端,用于将视频属性信息发送至目标移动终端;所述视频属性信息包括视频分享标识(Call ID)和采集起始数据帧序号(Segment No);还用于实时采集视频数据帧,将每次采集的视频数据帧封装成一个数据包,将数据包发送至内容中心网络(CCN)节点;其中,数据包的名称由所述Call ID和Segment No确定;The source mobile terminal is used to send the video attribute information to the target mobile terminal; the video attribute information includes a video sharing identifier (Call ID) and a collection start data frame sequence number (Segment No); it is also used to collect video data frames in real time, Encapsulate the video data frame collected each time into a data packet, and send the data packet to a content-centric network (CCN) node; wherein, the name of the data packet is determined by the Call ID and Segment No;

目标移动终端,用于生成兴趣包,所述兴趣包的名称由所述Call ID和Segment No确定,将所述兴趣包发送至CCN节点;The target mobile terminal is used to generate an interest packet, the name of the interest packet is determined by the Call ID and Segment No, and the interest packet is sent to the CCN node;

多个CCN节点,用于接收并保存数据包;还用于收到来自目标移动终端的兴趣包后,根据兴趣包的名称获取匹配该兴趣包的数据包,将获取的数据包发送至该目标移动终端。Multiple CCN nodes are used to receive and store data packets; and are also used to obtain data packets matching the interest packet according to the name of the interest packet after receiving the interest packet from the target mobile terminal, and send the obtained data packet to the target mobile terminal.

一种实现移动终端视频实时分享的移动终端,包括:A mobile terminal for realizing real-time sharing of mobile terminal video, comprising:

信令模块,用于向其他移动终端发送视频属性信息;所述视频属性信息包括视频分享标识(Call ID)和采集起始数据帧序号(Segment No);A signaling module, configured to send video attribute information to other mobile terminals; the video attribute information includes a video sharing identifier (Call ID) and a collection start data frame number (Segment No);

采集模块,用于采集原始视频数据;Acquisition module, is used for collecting raw video data;

视频引擎,用于对所述原始视频数据进行处理,得到视频数据帧;A video engine, configured to process the original video data to obtain video data frames;

传输模块,用于将所述视频数据帧封装成数据包,并将所述数据包发送至CCN节点;所述数据包的名称由所述Call ID和Segment No确定。A transmission module, configured to encapsulate the video data frame into a data packet, and send the data packet to the CCN node; the name of the data packet is determined by the Call ID and Segment No.

一种实现移动终端视频实时分享的内容中心网络(CCN)节点,包括:A content-centric network (CCN) node that realizes real-time sharing of mobile terminal video, including:

数据包接收模块,用于接收并保存来自源移动终端的数据包;The data packet receiving module is used to receive and save the data packet from the source mobile terminal;

兴趣包接收模块,用于接收并保存来自目标移动终端的兴趣包;所述数据包或兴趣包的名称由视频属性信息中的视频分享标识(Call ID)和采集起始数据帧序号(SegmentNo)确定;The interest packet receiving module is used to receive and save the interest packet from the target mobile terminal; the name of the data packet or interest packet is determined by the video sharing identification (Call ID) and the collection start data frame sequence number (SegmentNo) in the video attribute information Sure;

匹配模块,用于根据兴趣包与数据包的名称获取匹配该兴趣包的数据包,将获取的数据包反馈至发送该兴趣包的目标移动终端。The matching module is configured to obtain a data packet matching the Interest packet according to the names of the Interest packet and the data packet, and feed back the obtained data packet to the target mobile terminal that sends the Interest packet.

可见,本发明提出的实现移动终端视频实时分享的方法、系统和装置,由源移动终端向内容中心网络(CCN,Content Centric Network)节点发送视频数据包,由目标移动终端向CCN节点发送兴趣包;CCN节点接收到兴趣包后,获取与该兴趣包匹配的视频数据包并反馈至目标移动终端,从而实现大规模移动终端视频数据的实时分享。It can be seen that in the method, system and device for realizing real-time video sharing of mobile terminals proposed by the present invention, the source mobile terminal sends a video data packet to a content-centric network (CCN, Content Centric Network) node, and the target mobile terminal sends an interest packet to a CCN node. ; After receiving the Interest packet, the CCN node obtains the video data packet matching the Interest packet and feeds it back to the target mobile terminal, so as to realize the real-time sharing of large-scale mobile terminal video data.

附图说明Description of drawings

图1为本发明提出的实现移动终端视频实时分享的方法流程图;Fig. 1 is the method flow chart that realizes the real-time sharing of mobile terminal video that the present invention proposes;

图2为实施例一中的移动终端视频实时分享的应用场景示意图;2 is a schematic diagram of an application scenario of real-time sharing of mobile terminal video in Embodiment 1;

图3为实施例二中的移动终端视频实时分享的方法实现流程图;Fig. 3 is the implementation flowchart of the method for real-time sharing of mobile terminal video in embodiment two;

图4为实施例三中的移动终端视频实时分享的系统结构示意图;4 is a schematic structural diagram of a system structure for real-time sharing of mobile terminal video in Embodiment 3;

图5为本发明提出的实现移动终端视频实时分享的移动终端结构示意图;FIG. 5 is a schematic structural diagram of a mobile terminal that realizes real-time sharing of mobile terminal video proposed by the present invention;

图6为本发明提出的实现移动终端视频实时分享的CCN节点结构示意图。FIG. 6 is a schematic structural diagram of a CCN node for realizing real-time video sharing of mobile terminals proposed by the present invention.

具体实施方式Detailed ways

本发明提出一种实现移动终端视频实时分享的方法,应用于包括源移动终端、目标移动终端及多个内容中心网络(CCN)节点的网络,如图1为该实现流程图,包括:The present invention proposes a method for realizing real-time video sharing of a mobile terminal, which is applied to a network including a source mobile terminal, a target mobile terminal, and multiple content-centric network (CCN) nodes, as shown in Figure 1 as a flowchart of the implementation, including:

步骤101:源移动终端将视频属性信息发送至目标移动终端;所述视频属性信息包括视频分享标识(Call ID)和采集起始数据帧序号(Segment No);Step 101: The source mobile terminal sends the video attribute information to the target mobile terminal; the video attribute information includes the video sharing identifier (Call ID) and the collection start data frame number (Segment No);

步骤102:源移动终端实时采集视频数据帧,将每次采集的视频数据帧封装成一个数据包,其中,数据包的名称由所述Call ID和Segment No确定;将数据包发送至CCN节点;Step 102: the source mobile terminal collects video data frames in real time, and encapsulates the video data frames collected each time into a data packet, wherein the name of the data packet is determined by the Call ID and Segment No; the data packet is sent to the CCN node;

步骤103:目标移动终端生成兴趣包,所述兴趣包的名称由所述Call ID和SegmentNo确定,将所述兴趣包发送至CCN节点;Step 103: the target mobile terminal generates an Interest packet, the name of the Interest packet is determined by the Call ID and SegmentNo, and sends the Interest packet to the CCN node;

步骤104:CCN节点收到来自目标移动终端的兴趣包后,根据兴趣包的名称获取匹配该兴趣包的数据包,将获取的数据包发送至该目标移动终端。Step 104: After receiving the Interest packet from the target mobile terminal, the CCN node obtains a data packet matching the Interest packet according to the name of the Interest packet, and sends the obtained data packet to the target mobile terminal.

上述步骤101中,源移动终端将视频属性信息发送至目标移动终端的方式可以为:In the above step 101, the source mobile terminal sends the video attribute information to the target mobile terminal in the following ways:

源移动终端将视频分享邀请消息发送至中心信令服务器,中心信令服务器将所述视频分享邀请消息广播至目标移动终端;The source mobile terminal sends the video sharing invitation message to the central signaling server, and the central signaling server broadcasts the video sharing invitation message to the target mobile terminal;

目标移动终端通过中心信令服务器向源移动终端发送视频属性信息请求消息,源移动终端通过中心信令服务器向目标移动终端反馈视频属性信息;The target mobile terminal sends a video attribute information request message to the source mobile terminal through the central signaling server, and the source mobile terminal feeds back the video attribute information to the target mobile terminal through the central signaling server;

其中,所述中心信令服务器部署于网络中的一个CCN节点上。Wherein, the central signaling server is deployed on a CCN node in the network.

上述方法中,数据包或兴趣包的名称由公共前缀和变化后缀组成;其中,In the above method, the name of the data packet or interest packet is composed of a common prefix and a variable suffix; where,

公共前缀由源移动终端和目标移动终端预先保存;The public prefix is pre-saved by the source mobile terminal and the target mobile terminal;

变化后缀由Call ID和数据帧序号组成,其中数据帧序号由所述Segment No确定。The change suffix is composed of Call ID and data frame sequence number, wherein the data frame sequence number is determined by the Segment No.

上述步骤104中,CCN节点收到来自目标移动终端的兴趣包后,根据兴趣包的名称获取匹配该兴趣包的数据包,将获取的数据包发送至该目标移动终端的方式可以为:In the above step 104, after the CCN node receives the Interest packet from the target mobile terminal, it obtains a data packet matching the Interest packet according to the name of the Interest packet, and the manner of sending the obtained data packet to the target mobile terminal can be as follows:

CCN节点判断本地是否保存有与该兴趣包名称相同的数据包,如果有,则将该数据包反馈至该目标移动终端;如果没有,则将该兴趣包转发至其他CCN节点,由其他CCN节点继续进行判断,直至其他CCN节点判断出本地保存有与该兴趣包名称相同的数据包时,接收并保存该其他CCN节点反馈的数据包,并将该数据包反馈至该目标移动终端。The CCN node judges whether there is a data packet with the same name as the interest packet locally, and if so, feeds the data packet back to the target mobile terminal; if not, forwards the interest packet to other CCN nodes, and the other CCN nodes Continue to judge until other CCN nodes judge that a data packet with the same name as the Interest packet is stored locally, receive and save the data packet fed back by the other CCN node, and feed the data packet back to the target mobile terminal.

以下结合附图,举具体的实施例详细介绍。In the following, specific embodiments will be described in detail in conjunction with the accompanying drawings.

实施例一:Embodiment one:

本实施例提出一种基于CCN网络的移动终端视频实时分享的方法,源移动终端采集视频数据帧,同时将编码后的视频数据帧标记命名,封装成数据包(data包),发送至CCN节点,同时通过中心信令服务器将视频属性信息传送至目标移动终端;目标移动终端根据收到的视频属性信息封装兴趣包(Interest包),并发送兴趣包至CCN节点,获取兴趣包对应数据包,并将数据包进行解码和格式转化后在本地播放。This embodiment proposes a method for real-time sharing of mobile terminal video based on a CCN network. The source mobile terminal collects video data frames, and at the same time marks and names the encoded video data frames, encapsulates them into data packets (data packets), and sends them to the CCN node. At the same time, the video attribute information is transmitted to the target mobile terminal through the central signaling server; the target mobile terminal encapsulates the Interest packet (Interest packet) according to the received video attribute information, and sends the Interest packet to the CCN node to obtain the data packet corresponding to the Interest packet. The data packets are decoded and format converted to play locally.

如图2为本实施例中移动终端视频实时分享的应用场景示意图,具体包括:Figure 2 is a schematic diagram of an application scenario for real-time sharing of mobile terminal video in this embodiment, specifically including:

源移动终端200,作为视频数据提供源,调用移动终端的摄像头进行视频采集,将采集到的原始视频数据按照数据帧进行编码压缩,同时将编码后得到的视频编码数据标记命名(内容名称),然后将标记命名的数据帧封装为CCN数据包(Data包),发送至CCN节点201。The source mobile terminal 200, as the source of video data, calls the camera of the mobile terminal to collect video, encodes and compresses the collected original video data according to data frames, and marks and names the encoded video encoded data (content name), Then the marked data frame is encapsulated into a CCN data packet (Data packet), and sent to the CCN node 201 .

系统中包括多个CCN节点,即CCN节点201-205。The system includes multiple CCN nodes, that is, CCN nodes 201-205.

CCN节点201接收到源移动终端200发送到数据包后,会自动在本节点建立数据包名称和数据包的匹配关系,当其他CCN节点转发与该数据包匹配的兴趣包时,将该数据包反馈至该其他CCN节点。After the CCN node 201 receives the data packet sent by the source mobile terminal 200, it will automatically establish a matching relationship between the data packet name and the data packet at this node, and when other CCN nodes forward the Interest packet matching the data packet, the data packet Feedback to the other CCN nodes.

系统中包括多个目标移动终端,即目标移动终端206-208,作为视频分享的接收端或者请求端。视频分享开始后,目标移动终端会向CCN节点发送视频数据帧兴趣包,请求对应的数据包。目标移动终端可以有多个,接入的CCN节点也可以是分散的。The system includes a plurality of target mobile terminals, ie target mobile terminals 206-208, as the receiving end or requesting end of video sharing. After the video sharing starts, the target mobile terminal will send a video data frame interest packet to the CCN node to request the corresponding data packet. There may be multiple target mobile terminals, and the accessed CCN nodes may also be dispersed.

CCN节点204和CCN节点205收到兴趣包后,先在本地节点查找是否有匹配此兴趣包的数据包,如果没有就将兴趣报转发至路由的其他CCN节点处,直到此兴趣包被响应。在本场景中,数据包会在兴趣包转发至CCN节点201时被响应。After receiving the Interest packet, the CCN node 204 and the CCN node 205 first check whether there is a data packet matching the Interest packet at the local node, and if not, forward the Interest packet to other CCN nodes of the route until the Interest packet is responded. In this scenario, the data packet will be responded to when the Interest packet is forwarded to the CCN node 201 .

在数据包的传输路径中,每个途经的CCN节点都会保存该数据包,以备其他目标移动终端请求。例如,在本场景中,数据包由CCN节点201发送至CCN节点203,再由CCN节点203分别发送至CCN节点204和CCN节点205;则CCN节点203、CCN节点204和CCN节点205都会保存该数据包。In the transmission path of the data packet, each passing CCN node will save the data packet for the request of other target mobile terminals. For example, in this scenario, the data packet is sent from CCN node 201 to CCN node 203, and then sent to CCN node 204 and CCN node 205 respectively by CCN node 203; data pack.

实施例二:Embodiment two:

本实施例介绍移动终端视频实时分享的实现流程,如图3为实现流程图,包括:This embodiment introduces the implementation process of real-time sharing of mobile terminal video, as shown in Figure 3 for the implementation flow chart, including:

步骤S201:信令初始化。Step S201: signaling initialization.

所有移动终端通过客户端信令服务模块与中心信令服务器建立通讯连接。All mobile terminals establish communication connections with the central signaling server through the client signaling service module.

其中,中心信令服务器部署在某一个CCN节点上,与移动终端通过CCN协议的数据交互方式进行交互。本步骤中,中心信令服务器具备消息和设备管理的功能,同时利用周期性心跳监测机制,监测移动终端的网络状态。Wherein, the central signaling server is deployed on a certain CCN node, and interacts with the mobile terminal through the data interaction mode of the CCN protocol. In this step, the central signaling server has the functions of message and device management, and uses the periodic heartbeat monitoring mechanism to monitor the network status of the mobile terminal.

步骤S202:源移动终端发送视频分享邀请消息给中心信令服务器,中心信令服务器将此请求转发给其他目标移动终端;Step S202: the source mobile terminal sends a video sharing invitation message to the central signaling server, and the central signaling server forwards the request to other target mobile terminals;

目标移动终端收到源移动终端发送的视频分享邀请消息后,通过中心信令服务器向源移动终端发送视频属性信息请求消息;源移动终端收到目标移动终端发送的视频属性信息请求消息后,通过中心信令服务器向目标移动终端回复视频属性信息。After receiving the video sharing invitation message sent by the source mobile terminal, the target mobile terminal sends a video attribute information request message to the source mobile terminal through the central signaling server; after the source mobile terminal receives the video attribute information request message sent by the target mobile terminal, The central signaling server replies the video attribute information to the target mobile terminal.

其中,视频属性信息可以包括媒体类型、视频格式、传输帧率、采集起始数据帧序号(Segment No)、视频分享标识(Call Id),以SDP协议消息格式发送。Among them, the video attribute information may include media type, video format, transmission frame rate, collection start data frame number (Segment No), video sharing identifier (Call Id), and is sent in the format of an SDP protocol message.

通过上述步骤S201和S202,源移动终端和目标移动终端共享了视频属性信息。之后,源移动终端可以封装并发送CCN数据包,如以下步骤S203-S206;目标移动终端可以封装并发送CCN请求包,进而获取CCN请求包所匹配的CCN数据包,如以下步骤S207-S208。Through the above steps S201 and S202, the source mobile terminal and the target mobile terminal share video attribute information. After that, the source mobile terminal can encapsulate and send the CCN data packet, as in the following steps S203-S206; the target mobile terminal can encapsulate and send the CCN request packet, and then obtain the CCN data packet matched by the CCN request packet, as in the following steps S207-S208.

步骤S203:源移动终端调用摄像头进行视频采集。Step S203: the source mobile terminal invokes the camera to collect video.

步骤S204:源移动终端将采集到的原始视频数据按照数据帧进行编码压缩,同时将编码后的视频编码数据标记命名,并加密,以备生成CCN数据包。Step S204: The source mobile terminal codes and compresses the collected original video data according to data frames, and at the same time marks and names the coded video coded data, and encrypts them in preparation for generating CCN data packets.

步骤S205:源移动终端将标记命名且加密后的视频编码数据封装成CCN数据包,发送至CCN节点。Step S205: the source mobile terminal encapsulates the tagged and encrypted video encoding data into a CCN data packet, and sends it to the CCN node.

其中,CCN数据包包括名称、数字签名和内容数据。其中,名称为源移动终端采集数据的名称,用于在CCN网络中唯一标识此数据包,目标移动终端可以根据名称请求对应的CCN数据包。该名称由公共前缀和变化后缀组成,其中,公共前缀为标示视频分享的命名空间,为所有移动终端所共知;变化后缀由Call Id和数据帧序号组成,数据帧序号由SegmentNo确定,即第一个CCN数据包的数据帧序号等于Segment No,后续CCN数据包的数据帧序号在Segment No的基础上依次递增。Among them, the CCN data package includes name, digital signature and content data. Wherein, the name is the name of the data collected by the source mobile terminal, which is used to uniquely identify the data packet in the CCN network, and the target mobile terminal can request the corresponding CCN data packet according to the name. The name is composed of a public prefix and a variable suffix, wherein the public prefix is a namespace for marking video sharing and is known to all mobile terminals; the variable suffix is composed of a Call Id and a data frame number, and the data frame number is determined by the SegmentNo, that is, the first The data frame sequence number of a CCN data packet is equal to Segment No, and the data frame sequence numbers of subsequent CCN data packets are incremented sequentially on the basis of Segment No.

步骤S206:CCN节点接收到源移动终端发送到CCN数据包后,对CCN数据包进行解密,获取CCN数据包对应的名称和内容数据,建立名称与内容数据之间的对应关系,同时将CCN数据包缓存在本CCN节点。Step S206: After receiving the CCN data packet sent by the source mobile terminal, the CCN node decrypts the CCN data packet, obtains the name and content data corresponding to the CCN data packet, establishes a correspondence between the name and the content data, and at the same time converts the CCN data Packets are cached on this CCN node.

至此,源移动终端封装并发送CCN数据包,并且CCN节点保存了该CCN数据包。另一方面,目标移动终端向CCN节点发送CCN兴趣包,获取CCN兴趣包所匹配的CCN数据包,即步骤S207-S208。So far, the source mobile terminal encapsulates and sends the CCN data packet, and the CCN node saves the CCN data packet. On the other hand, the target mobile terminal sends a CCN Interest packet to the CCN node, and obtains a CCN data packet matched by the CCN Interest packet, that is, steps S207-S208.

步骤S207:目标移动终端收到源移动终端发送的视频属性信息后,根据视频属性信息的内容命名CCN兴趣包,并将CCN兴趣包发送至CCN节点。Step S207: After receiving the video attribute information sent by the source mobile terminal, the target mobile terminal names the CCN Interest packet according to the content of the video attribute information, and sends the CCN Interest packet to the CCN node.

CCN兴趣包的命名方式与CCN数据包的命名方式相同。CCN Interest packets are named in the same way as CCN Data packets.

步骤S208:CCN节点收到目标移动终端发送的CCN兴趣包后,先在本地查找是否有匹配此CCN兴趣包的CCN数据包,如果有,则将查找到的CCN数据包反馈至该目标移动终端;如果没有,则将CCN兴趣包转发至其他CCN节点,直至该CCN兴趣包被响应,将匹配的CCN数据包反馈至该目标移动终端。Step S208: After receiving the CCN Interest packet sent by the target mobile terminal, the CCN node first searches locally whether there is a CCN data packet matching the CCN Interest packet, and if so, feeds back the found CCN data packet to the target mobile terminal ; If not, forward the CCN Interest packet to other CCN nodes until the CCN Interest packet is responded, and feed back the matching CCN data packet to the target mobile terminal.

实施例三:Embodiment three:

本实施例介绍一种实现移动终端视频实时分享的系统,如图4为该系统的结构示意图,包括源移动终端1,CCN网络服务2和目标移动终端3。其中,源移动与目标移动运行服务相同,即一个移动终端本身既可以作为源移动终端也可以作为目标移动终端,视频分享源和视频接收端是可以自由切换的。This embodiment introduces a system for realizing real-time video sharing by mobile terminals, as shown in FIG. Among them, the source mobile and the target mobile run the same service, that is, a mobile terminal itself can be used as both the source mobile terminal and the target mobile terminal, and the video sharing source and video receiving end can be switched freely.

源移动终端1包括:The source mobile terminal 1 includes:

采集模块11,用于调用设备端摄像头进行原始视频数据的采集;The collection module 11 is used to call the device-side camera to collect the original video data;

信令模块13,用于会话及消息传输,即发送源移动终端的视频分享要求消息和视频属性信息至目标移动终端;The signaling module 13 is used for session and message transmission, that is, sending the video sharing request message and video attribute information of the source mobile terminal to the target mobile terminal;

视频引擎14,主要用于音视频编解码,音视频加密,视频以及音视频数据处理;所述音视频数据处理主要包括视频缓冲,可以降低由于视频抖动和视频信息包丢失带来的不良影响,图像增强,对摄像头采集是的图像进行处理,包括明暗度监测、颜色增强、降噪处理等,声音数据处理包括回声消除,自动增益,降噪,静音监测等,通过此模块来提升视频的质量;Video engine 14 is mainly used for audio and video codec, audio and video encryption, video and audio and video data processing; said audio and video data processing mainly includes video buffering, which can reduce the adverse effects caused by video jitter and video packet loss, Image enhancement, processing the image captured by the camera, including brightness monitoring, color enhancement, noise reduction processing, etc. Sound data processing includes echo cancellation, automatic gain, noise reduction, silent monitoring, etc., through this module to improve the quality of the video ;

传输模块15,主要用于音视频数据段网络传输和流控,处理完毕的音视频编码数据后,给数据标记命名,利用CCN协议库中的封装接口,将音视频数据封装为CCN数据包,传送至CCN网络节点。The transmission module 15 is mainly used for audio and video data segment network transmission and flow control. After the processed audio and video encoded data, the data label is named, and the audio and video data is encapsulated into a CCN packet by using the encapsulation interface in the CCN protocol library. Send to CCN network node.

CCN协议库16,主要提供一些基于CCN协议的封装接口,供其他模块调用。The CCN protocol library 16 mainly provides some encapsulation interfaces based on the CCN protocol for calling by other modules.

所述CCN网络服务2包括中心信令服务器23和CCN网络节点;其中,The CCN network service 2 includes a central signaling server 23 and a CCN network node; wherein,

中心信令服务器23,主要提供会话管理(客户端会话认证,在线状态,设备列表等),数据存储管理(保存终端信息,视频基本信息),数据传输(建立源移动终端与目标移动终端的数据通信);中心信令服务器23部署在网络中的其中一个CCN网络节点上,其本身也具备CCN网络节点的功能。The central signaling server 23 mainly provides session management (client session authentication, online status, device list, etc.), data storage management (storage of terminal information, basic video information), data transmission (establishment of data between the source mobile terminal and the target mobile terminal) communication); the central signaling server 23 is deployed on one of the CCN network nodes in the network, and itself also has the function of a CCN network node.

CCN网络节点,CCN网络节点主要有三个数据结构,转发信息表(FIB,Forwardinginformation Base),内容缓存(CS,Content Store)和等待兴趣表(PIT,Pending InterestTable);FIB用于转发兴趣包,CS用于缓存传输数据,通过有效的缓存管理策略,可以减少网络中相同数据段传输。PIT用来保存兴趣包的请求接口,数据包根据PIT条目转发,PIT条目被用来转发数据包时,该条目将会被立即删除,当一个兴趣包到达CCN网络节点时,CCN网络节点首先根据兴趣包中的内容名称(Content Name)查找内容缓存,如果缓存中有被请求的内容,则相应该请求,并丢弃该兴趣包;如果内容缓存中没有被请求的内容,则查找PIT,如果PIT中有该内容名称条目,则在该内容名称条目中增加接口(Face),并丢弃该兴趣包;如果PIT中没有该内容名称条目,则查找FIB,如果在FIB中找到,则按照FIB查找Face口转发兴趣包,并在PIT中记录。如果FIB中也没有该内容名称条目,则丢弃该兴趣包。CCN网络节点对数据包的处理相对简单,当数据包到达时,根据数据包的内容名称字段,首先在内容缓存中查找,如果有,则丢弃该数据包;如果没有,缓存在内容缓存中。CCN network nodes, CCN network nodes mainly have three data structures, forwarding information table (FIB, Forwardinginformation Base), content cache (CS, Content Store) and waiting interest table (PIT, Pending InterestTable); FIB is used to forward interest packets, CS It is used to cache and transmit data, and through an effective cache management strategy, the transmission of the same data segment in the network can be reduced. The PIT is used to save the request interface of the interest packet. The data packet is forwarded according to the PIT entry. When the PIT entry is used to forward the data packet, the entry will be deleted immediately. When an interest packet arrives at the CCN network node, the CCN network node first according to The content name (Content Name) in the interest packet looks up the content cache. If there is the requested content in the cache, it responds to the request and discards the interest packet; if there is no requested content in the content cache, it searches for the PIT. If the PIT If there is the content name entry in the PIT, add the interface (Face) in the content name entry, and discard the interest packet; if there is no such content name entry in the PIT, then search for the FIB, if found in the FIB, then search for the Face according to the FIB The Interest packet is forwarded through the interface and recorded in the PIT. If there is no such content name entry in the FIB, the Interest packet is discarded. The processing of data packets by CCN network nodes is relatively simple. When a data packet arrives, it is first searched in the content cache according to the content name field of the data packet. If there is, the data packet is discarded; if not, it is cached in the content cache.

接收源移动终端的数据包的CCN网络节点与响应目标移动终端兴趣包的CCN网络节点可以是同一个CCN网络节点,也可以是不同的CCN网络节点;同时,目标移动终端与CCN网络节点可以是多对多,即多个目标移动终端可以将各自的兴趣包发送给不同的CCN网络节点。The CCN network node receiving the data packet of the source mobile terminal and the CCN network node responding to the interest packet of the target mobile terminal may be the same CCN network node or different CCN network nodes; at the same time, the target mobile terminal and the CCN network node may be Many-to-many, that is, multiple target mobile terminals can send their interest packets to different CCN network nodes.

多个CCN网络节点通过配置路由彼此互联,目标移动终端发送的兴趣包可以在CCN网络节点间传播直到被响应,同时,该兴趣包对应的数据包可以在传播的各个CCN网络节点中自动缓存,因此,此系统还可以通过设置源移动终端视频数据包的过期时间来支持录播视频的分享。Multiple CCN network nodes are connected to each other by configuring routes. The interest packet sent by the target mobile terminal can be propagated among the CCN network nodes until it is responded to. At the same time, the data packet corresponding to the interest packet can be automatically cached in each propagated CCN network node. Therefore, this system can also support the sharing of recorded and broadcast videos by setting the expiration time of the video data packets of the source mobile terminal.

目标移动终端3与源移动终端1的运行系统相同。目标移动终端3中包括:The operating system of the target mobile terminal 3 is the same as that of the source mobile terminal 1 . The target mobile terminal 3 includes:

渲染模块32,用于将视频帧数据进行图像渲染,在目标移动终端创建图像画布,将解码后的视频数据转化位图后渲染在画布上面;The rendering module 32 is used to render the video frame data, create an image canvas at the target mobile terminal, convert the decoded video data into a bitmap and render it on the canvas;

信令模块33,用于会话及消息传输,即向源移动终端发送视频属性信息请求消息,并接收源移动终端反馈的视频属性信息;The signaling module 33 is used for session and message transmission, that is, sending a video attribute information request message to the source mobile terminal, and receiving the video attribute information fed back by the source mobile terminal;

视频引擎34,用于对视频数据帧进行处理;Video engine 34, is used for processing video data frame;

传输模块35,用于封装CCN兴趣包,将CCN兴趣包发送至CCN网络节点,并接收CCN网络节点反馈的CCN数据包,对CCN数据包进行解封装,将得到的视频数据帧发送至视频引擎34;The transmission module 35 is used to encapsulate the CCN interest packet, send the CCN interest packet to the CCN network node, and receive the CCN data packet fed back by the CCN network node, decapsulate the CCN data packet, and send the obtained video data frame to the video engine 34;

CCN协议库36,用于提供基于CCN协议的封装接口,供其他模块调用。The CCN protocol library 36 is used to provide an encapsulation interface based on the CCN protocol for calling by other modules.

一个移动终端可以既作为源移动终端、又作为目标移动终端,即同时包含上述源移动终端1和目标移动终端3的组成模块和功能。A mobile terminal can be both a source mobile terminal and a target mobile terminal, that is, it includes the above-mentioned constituent modules and functions of the source mobile terminal 1 and the target mobile terminal 3 at the same time.

本发明还提出一种实现移动终端视频实时分享的系统,包括:The present invention also proposes a system for realizing real-time sharing of mobile terminal video, including:

源移动终端,用于将视频属性信息发送至目标移动终端;所述视频属性信息包括Call ID和Segment No;还用于实时采集视频数据帧,将每次采集的视频数据帧封装成一个数据包,将数据包发送至内容中心网络CCN节点;其中,数据包的名称由所述Call ID和Segment No确定;The source mobile terminal is used to send the video attribute information to the target mobile terminal; the video attribute information includes Call ID and Segment No; it is also used to collect video data frames in real time, and encapsulate each collected video data frame into a data packet , sending the data packet to the content centric network CCN node; wherein, the name of the data packet is determined by the Call ID and Segment No;

目标移动终端,用于生成兴趣包,所述兴趣包的名称由所述Call ID和Segment No确定,将所述兴趣包发送至CCN节点;The target mobile terminal is used to generate an interest packet, the name of the interest packet is determined by the Call ID and Segment No, and the interest packet is sent to the CCN node;

多个CCN节点,用于接收并保存数据包;还用于收到来自目标移动终端的兴趣包后,根据兴趣包的名称获取匹配该兴趣包的数据包,将获取的数据包发送至该目标移动终端。Multiple CCN nodes are used to receive and store data packets; and are also used to obtain data packets matching the interest packet according to the name of the interest packet after receiving the interest packet from the target mobile terminal, and send the obtained data packet to the target mobile terminal.

上述系统还可以包括:The above system may also include:

中心信令服务器,部署于系统中的一个CCN节点上,用于记录并监测移动终端状态,接收来自源移动终端的视频分享邀请消息,将所述视频分享邀请消息广播至目标移动终端;还用于接收目标移动终端发送的视频属性信息请求消息,并将该视频属性信息请求消息转发至源移动终端;接收源移动终端反馈的视频属性信息,并将该视频属性信息转发至目标移动终端。The central signaling server, deployed on a CCN node in the system, is used to record and monitor the status of the mobile terminal, receive the video sharing invitation message from the source mobile terminal, and broadcast the video sharing invitation message to the target mobile terminal; Receive the video attribute information request message sent by the target mobile terminal, and forward the video attribute information request message to the source mobile terminal; receive the video attribute information fed back by the source mobile terminal, and forward the video attribute information to the target mobile terminal.

上述系统中,数据包或兴趣包的名称可以由公共前缀和变化后缀组成;其中,In the above system, the name of the data packet or interest packet can be composed of a common prefix and a variable suffix; where,

公共前缀由所述源移动终端和目标移动终端预先保存;The public prefix is pre-saved by the source mobile terminal and the target mobile terminal;

变化后缀由Call ID和数据帧序号组成,其中数据帧序号由所述Segment No确定。The change suffix is composed of Call ID and data frame sequence number, wherein the data frame sequence number is determined by the Segment No.

上述系统中,CCN节点根据兴趣包的名称获取匹配该兴趣包的数据包,将获取的数据包发送至该目标移动终端的方式为:In the above system, the CCN node obtains the data packet matching the Interest packet according to the name of the Interest packet, and sends the obtained data packet to the target mobile terminal as follows:

CCN节点判断本地是否保存有与该兴趣包名称相同的数据包,如果有,则将该数据包反馈至该目标移动终端;如果没有,则将该兴趣包转发至其他CCN节点,由其他CCN节点继续进行判断,直至其他CCN节点判断出本地保存有与该兴趣包名称相同的数据包时,接收并保存该其他CCN节点反馈的数据包,并将该数据包反馈至该目标移动终端。The CCN node judges whether there is a data packet with the same name as the interest packet locally, and if so, feeds the data packet back to the target mobile terminal; if not, forwards the interest packet to other CCN nodes, and the other CCN nodes Continue to judge until other CCN nodes judge that a data packet with the same name as the Interest packet is stored locally, receive and save the data packet fed back by the other CCN node, and feed the data packet back to the target mobile terminal.

本发明还提出一种实现移动终端视频实时分享的移动终端,如图5为该移动终端的结构示意图,包括:The present invention also proposes a mobile terminal that realizes real-time sharing of mobile terminal video, as shown in Figure 5, which is a schematic structural diagram of the mobile terminal, including:

信令模块501,用于向其他移动终端发送视频属性信息;所述视频属性信息包括Call ID和Segment No;A signaling module 501, configured to send video attribute information to other mobile terminals; the video attribute information includes Call ID and Segment No;

采集模块502,用于采集原始视频数据;Acquisition module 502, for collecting original video data;

视频引擎503,用于对所述原始视频数据进行处理,得到视频数据帧;A video engine 503, configured to process the original video data to obtain video data frames;

传输模块504,用于将所述视频数据帧封装成数据包,并将所述数据包发送至CCN节点;所述数据包的名称由所述Call ID和Segment No确定。The transmission module 504 is configured to encapsulate the video data frame into a data packet, and send the data packet to the CCN node; the name of the data packet is determined by the Call ID and Segment No.

上述移动终端还可以包括渲染模块505;The above mobile terminal may also include a rendering module 505;

所述信令模块501还可以用于,接收来自其他移动终端的视频属性信息;The signaling module 501 can also be used to receive video attribute information from other mobile terminals;

所述传输模块504还可以用于生成兴趣包,并将所述兴趣包发送至CCN节点;所述兴趣包的名称由信令模块501接收的视频属性信息中的Call ID和Segment No确定;还用于接收CCN节点反馈的数据包,对所述数据包解封装,将得到的视频数据帧发送至视频引擎503;The transmission module 504 can also be used to generate an interest packet, and send the interest packet to the CCN node; the name of the interest packet is determined by Call ID and Segment No in the video attribute information received by the signaling module 501; For receiving the data packet fed back by the CCN node, decapsulating the data packet, and sending the obtained video data frame to the video engine 503;

所述视频引擎503还可以用于,对所述数据包进行处理,将处理后的数据发送至渲染模块505;The video engine 503 can also be used to process the data packet and send the processed data to the rendering module 505;

所述渲染模块505,用于播放所述数据。The rendering module 505 is configured to play the data.

上述移动终端中,信令模块501向其他移动终端发送视频属性信息的方式为:通过中心信令服务器向其他移动终端广播视频分享邀请消息;当接收到其他移动终端通过中心信令服务器转发的视频属性信息请求消息时,将视频属性信息通过中心信令服务器转发至其他移动终端;In the above-mentioned mobile terminal, the signaling module 501 sends the video attribute information to other mobile terminals in the following ways: broadcast a video sharing invitation message to other mobile terminals through the central signaling server; When an attribute information request message is sent, the video attribute information is forwarded to other mobile terminals through the central signaling server;

信令模块501从其他移动终端获取视频属性信息的方式为:获取中心信令服务器广播的来自其他移动终端的视频分享邀请消息;通过中心信令服务器向该其他移动终端转发视频属性信息请求消息;接收该其他移动终端通过中心信令服务器转发的视频属性信息。The signaling module 501 obtains the video attribute information from other mobile terminals in the following manner: obtain the video sharing invitation message broadcast by the central signaling server from other mobile terminals; forward the video attribute information request message to the other mobile terminals through the central signaling server; The video attribute information forwarded by the other mobile terminal through the central signaling server is received.

上述移动终端中,数据包或兴趣包的名称由公共前缀和变化后缀组成;其中,In the above mobile terminal, the name of the data packet or interest packet is composed of a common prefix and a variable suffix; where,

公共前缀由所述移动终端预先保存;The public prefix is pre-stored by the mobile terminal;

变化后缀由Call ID和数据帧序号组成,其中数据帧序号由所述Segment No确定。The change suffix is composed of Call ID and data frame sequence number, wherein the data frame sequence number is determined by the Segment No.

本发明还提出一种实现移动终端视频实时分享的CCN节点,如图6为该CCN节点的结构示意图,包括:The present invention also proposes a CCN node that realizes real-time video sharing of mobile terminals, as shown in Figure 6, which is a schematic structural diagram of the CCN node, including:

数据包接收模块601,用于接收并保存来自源移动终端的数据包;A data packet receiving module 601, configured to receive and save a data packet from a source mobile terminal;

兴趣包接收模块602,用于接收并保存来自目标移动终端的兴趣包;所述数据包或兴趣包的名称由视频属性信息中的Call ID和Segment No确定;Interest packet receiving module 602 is used to receive and save the interest packet from the target mobile terminal; the name of the data packet or interest packet is determined by Call ID and Segment No in the video attribute information;

匹配模块603,用于根据兴趣包与数据包的名称获取匹配该兴趣包的数据包,将获取的数据包反馈至发送该兴趣包的目标移动终端。The matching module 603 is configured to obtain a data packet matching the Interest packet according to the names of the Interest packet and the data packet, and feed back the obtained data packet to the target mobile terminal sending the Interest packet.

上述CCN节点还可以包括:The above CCN nodes may also include:

中心信令服务模块604,用于接收来自源移动终端的视频分享邀请消息,将该视频分享邀请消息广播至目标移动终端;还用于接收来自目标移动终端的视频属性信息请求消息,将该视频属性信息请求消息转发至源移动终端;接收来自源移动终端的视频属性信息,将该视频属性信息转发至该目标移动终端。The central signaling service module 604 is configured to receive a video sharing invitation message from a source mobile terminal, and broadcast the video sharing invitation message to a target mobile terminal; it is also used to receive a video attribute information request message from a target mobile terminal, and broadcast the video The attribute information request message is forwarded to the source mobile terminal; the video attribute information from the source mobile terminal is received, and the video attribute information is forwarded to the target mobile terminal.

上述CCN节点中,匹配模块603用于,判断所述CCN节点是否保存有与接收到的兴趣包名称相同的数据包,如果有,则将该数据包反馈至发送该兴趣包的目标移动终端;如果没有,则将该兴趣包转发至其他CCN节点,由其他CCN节点继续进行判断,直至其他CCN节点判断出本地保存有与该兴趣包名称相同的数据包时,接收并保存该其他CCN节点反馈的数据包,并将该数据包反馈至发送该兴趣包的目标移动终端。In the above-mentioned CCN node, the matching module 603 is used to judge whether the CCN node stores a data packet with the same name as the received Interest packet, and if so, feeds back the data packet to the target mobile terminal that sends the Interest packet; If not, forward the Interest packet to other CCN nodes, and the other CCN nodes will continue to make judgments until the other CCN nodes judge that there is a data packet with the same name as the Interest packet stored locally, then receive and save the feedback from the other CCN nodes , and feed back the data packet to the target mobile terminal that sent the Interest packet.

综上可见,本发明提出的实现移动终端视频实时分享的方法、系统和设备,能够基于CCN网络实现视频的实时分享,源移动终端可以将拍摄的画面和声音实时广播分享给多个目标移动终端,可以对目标移动终端进行实时广播,从而实现移动性、灵活性更好的移动终端视频实时分享。视频源可动态切换,每一个接入网络的移动终端既可以作为源,也可以作为数据接收终端,具有很好的移动性和可扩展性,特别适合地理位置分散且接入终端较多的情况。In summary, the method, system and device for realizing real-time video sharing of mobile terminals proposed by the present invention can realize real-time video sharing based on a CCN network, and the source mobile terminal can broadcast and share captured pictures and sounds to multiple target mobile terminals in real time , can broadcast the target mobile terminal in real time, so as to realize real-time video sharing of the mobile terminal with better mobility and flexibility. The video source can be dynamically switched, and each mobile terminal connected to the network can be used as a source or as a data receiving terminal. It has good mobility and scalability, and is especially suitable for situations where geographical locations are dispersed and there are many access terminals. .

以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明保护的范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the present invention. within the scope of protection.

Claims (12)

1.一种实现移动终端视频实时分享的方法,其特征在于,所述方法应用于包括源移动终端、目标移动终端及多个内容中心网络CCN节点的网络,所述方法包括:1. A method for realizing real-time sharing of mobile terminal video, characterized in that, the method is applied to a network comprising a source mobile terminal, a target mobile terminal and a plurality of content-centric network CCN nodes, and the method comprises: 源移动终端将视频属性信息发送至目标移动终端;所述视频属性信息包括视频分享标识Call ID和采集起始数据帧序号Segment No;The source mobile terminal sends the video attribute information to the target mobile terminal; the video attribute information includes the video sharing identifier Call ID and the acquisition start data frame sequence number Segment No; 源移动终端实时采集视频数据帧,将每次采集的视频数据帧封装成一个数据包,其中,数据包的名称由所述Call ID和Segment No确定;将数据包发送至CCN节点;The source mobile terminal collects video data frames in real time, and encapsulates the video data frames collected each time into a data packet, wherein the name of the data packet is determined by the Call ID and Segment No; the data packet is sent to the CCN node; 目标移动终端生成兴趣包,所述兴趣包的名称由所述Call ID和Segment No确定,将所述兴趣包发送至CCN节点;The target mobile terminal generates an interest packet, the name of the interest packet is determined by the Call ID and Segment No, and the interest packet is sent to the CCN node; CCN节点收到来自目标移动终端的兴趣包后,根据兴趣包的名称获取匹配该兴趣包的数据包,将获取的数据包发送至该目标移动终端;After the CCN node receives the Interest packet from the target mobile terminal, it obtains a data packet matching the Interest packet according to the name of the Interest packet, and sends the obtained data packet to the target mobile terminal; 其中,所述数据包或兴趣包的名称由公共前缀和变化后缀组成;其中,Wherein, the name of described data packet or interest packet is made up of common prefix and change suffix; Wherein, 公共前缀由所述源移动终端和目标移动终端预先保存;The public prefix is pre-saved by the source mobile terminal and the target mobile terminal; 变化后缀由Call ID和数据帧序号组成,其中数据帧序号由所述Segment No确定。The change suffix is composed of Call ID and data frame sequence number, wherein the data frame sequence number is determined by the Segment No. 2.根据权利要求1所述的方法,其特征在于,所述源移动终端将视频属性信息发送至目标移动终端的方式为:2. The method according to claim 1, wherein the source mobile terminal sends the video attribute information to the target mobile terminal in the following manner: 源移动终端将视频分享邀请消息发送至中心信令服务器,中心信令服务器将所述视频分享邀请消息广播至目标移动终端;The source mobile terminal sends the video sharing invitation message to the central signaling server, and the central signaling server broadcasts the video sharing invitation message to the target mobile terminal; 目标移动终端通过中心信令服务器向源移动终端发送视频属性信息请求消息,源移动终端通过中心信令服务器向目标移动终端反馈视频属性信息;The target mobile terminal sends a video attribute information request message to the source mobile terminal through the central signaling server, and the source mobile terminal feeds back the video attribute information to the target mobile terminal through the central signaling server; 其中,所述中心信令服务器部署于网络中的一个CCN节点上。Wherein, the central signaling server is deployed on a CCN node in the network. 3.根据权利要求1所述的方法,其特征在于,所述CCN节点收到来自目标移动终端的兴趣包后,根据兴趣包的名称获取匹配该兴趣包的数据包,将获取的数据包发送至该目标移动终端的方式为:3. The method according to claim 1, wherein, after the CCN node receives the interest packet from the target mobile terminal, it obtains the data packet matching the interest packet according to the name of the interest packet, and sends the obtained data packet The way to the target mobile terminal is: CCN节点判断本地是否保存有与该兴趣包名称相同的数据包,如果有,则将该数据包反馈至该目标移动终端;如果没有,则将该兴趣包转发至其他CCN节点,由其他CCN节点继续进行判断,直至其他CCN节点判断出本地保存有与该兴趣包名称相同的数据包时,接收并保存该其他CCN节点反馈的数据包,并将该数据包反馈至该目标移动终端。The CCN node judges whether there is a data packet with the same name as the interest packet locally, and if so, feeds the data packet back to the target mobile terminal; if not, forwards the interest packet to other CCN nodes, and the other CCN nodes Continue to judge until other CCN nodes judge that a data packet with the same name as the Interest packet is stored locally, receive and save the data packet fed back by the other CCN node, and feed the data packet back to the target mobile terminal. 4.一种实现移动终端视频实时分享的系统,其特征在于,所述系统包括:4. A system for realizing real-time sharing of mobile terminal video, characterized in that the system includes: 源移动终端,用于将视频属性信息发送至目标移动终端;所述视频属性信息包括视频分享标识Call ID和采集起始数据帧序号Segment No;还用于实时采集视频数据帧,将每次采集的视频数据帧封装成一个数据包,将数据包发送至内容中心网络CCN节点;其中,数据包的名称由所述Call ID和Segment No确定;The source mobile terminal is used to send the video attribute information to the target mobile terminal; the video attribute information includes the video sharing identifier Call ID and the collection start data frame sequence number Segment No; it is also used for real-time collection of video data frames, and each collection The video data frame is encapsulated into a data packet, and the data packet is sent to the CCN node of the content centric network; wherein, the name of the data packet is determined by the Call ID and Segment No; 目标移动终端,用于生成兴趣包,所述兴趣包的名称由所述Call ID和Segment No确定,将所述兴趣包发送至CCN节点;The target mobile terminal is used to generate an interest packet, the name of the interest packet is determined by the Call ID and Segment No, and the interest packet is sent to the CCN node; 多个CCN节点,用于接收并保存数据包;还用于收到来自目标移动终端的兴趣包后,根据兴趣包的名称获取匹配该兴趣包的数据包,将获取的数据包发送至该目标移动终端;Multiple CCN nodes are used to receive and store data packets; and are also used to obtain data packets matching the interest packet according to the name of the interest packet after receiving the interest packet from the target mobile terminal, and send the obtained data packet to the target mobile terminal; 其中,所述数据包或兴趣包的名称由公共前缀和变化后缀组成;其中,Wherein, the name of described data packet or interest packet is made up of common prefix and change suffix; Wherein, 公共前缀由所述源移动终端和目标移动终端预先保存;The public prefix is pre-saved by the source mobile terminal and the target mobile terminal; 变化后缀由Call ID和数据帧序号组成,其中数据帧序号由所述Segment No确定。The change suffix is composed of Call ID and data frame sequence number, wherein the data frame sequence number is determined by the Segment No. 5.根据权利要求4所述的系统,其特征在于,所述系统还包括:5. The system according to claim 4, wherein the system further comprises: 中心信令服务器,部署于系统中的一个CCN节点上,用于记录并监测移动终端状态,接收来自源移动终端的视频分享邀请消息,将所述视频分享邀请消息广播至目标移动终端;还用于接收目标移动终端发送的视频属性信息请求消息,并将该视频属性信息请求消息转发至源移动终端;接收源移动终端反馈的视频属性信息,并将该视频属性信息转发至目标移动终端。The central signaling server, deployed on a CCN node in the system, is used to record and monitor the status of the mobile terminal, receive the video sharing invitation message from the source mobile terminal, and broadcast the video sharing invitation message to the target mobile terminal; Receive the video attribute information request message sent by the target mobile terminal, and forward the video attribute information request message to the source mobile terminal; receive the video attribute information fed back by the source mobile terminal, and forward the video attribute information to the target mobile terminal. 6.根据权利要求4所述的系统,其特征在于,所述CCN节点根据兴趣包的名称获取匹配该兴趣包的数据包,将获取的数据包发送至该目标移动终端的方式为:6. system according to claim 4, it is characterized in that, described CCN node obtains the data packet of matching this Interest packet according to the title of Interest packet, the mode that the data packet of acquisition is sent to this target mobile terminal is: CCN节点判断本地是否保存有与该兴趣包名称相同的数据包,如果有,则将该数据包反馈至该目标移动终端;如果没有,则将该兴趣包转发至其他CCN节点,由其他CCN节点继续进行判断,直至其他CCN节点判断出本地保存有与该兴趣包名称相同的数据包时,接收并保存该其他CCN节点反馈的数据包,并将该数据包反馈至该目标移动终端。The CCN node judges whether there is a data packet with the same name as the interest packet locally, and if so, feeds the data packet back to the target mobile terminal; if not, forwards the interest packet to other CCN nodes, and the other CCN nodes Continue to judge until other CCN nodes judge that a data packet with the same name as the Interest packet is stored locally, receive and save the data packet fed back by the other CCN node, and feed the data packet back to the target mobile terminal. 7.一种实现移动终端视频实时分享的移动终端,其特征在于,所述移动终端包括:7. A mobile terminal that realizes real-time sharing of mobile terminal video, characterized in that the mobile terminal includes: 信令模块,用于向其他移动终端发送视频属性信息;所述视频属性信息包括视频分享标识Call ID和采集起始数据帧序号Segment No;The signaling module is used to send video attribute information to other mobile terminals; the video attribute information includes video sharing identification Call ID and collection start data frame sequence number Segment No; 采集模块,用于采集原始视频数据;Acquisition module, is used for collecting raw video data; 视频引擎,用于对所述原始视频数据进行处理,得到视频数据帧;A video engine, configured to process the original video data to obtain video data frames; 传输模块,用于将所述视频数据帧封装成数据包,并将所述数据包发送至CCN节点;所述数据包的名称由所述Call ID和Segment No确定;A transmission module, configured to encapsulate the video data frame into a data packet, and send the data packet to a CCN node; the name of the data packet is determined by the Call ID and Segment No; 其中,所述数据包或兴趣包的名称由公共前缀和变化后缀组成;其中,Wherein, the name of described data packet or interest packet is made up of common prefix and change suffix; Wherein, 公共前缀由所述移动终端预先保存;The public prefix is pre-stored by the mobile terminal; 变化后缀由Call ID和数据帧序号组成,其中数据帧序号由所述Segment No确定。The change suffix is composed of Call ID and data frame sequence number, wherein the data frame sequence number is determined by the Segment No. 8.根据权利要求7所述的移动终端,其特征在于,所述移动终端还包括渲染模块;8. The mobile terminal according to claim 7, further comprising a rendering module; 所述信令模块还用于,接收来自其他移动终端的视频属性信息;The signaling module is also used to receive video attribute information from other mobile terminals; 所述传输模块还用于生成兴趣包,并将所述兴趣包发送至CCN节点;所述兴趣包的名称由信令模块接收的视频属性信息中的Call ID和Segment No确定;还用于接收CCN节点反馈的数据包,对所述数据包解封装,将得到的视频数据帧发送至视频引擎;Described transmission module is also used for generating interest packet, and described interest packet is sent to CCN node; The title of described interest packet is determined by Call ID and Segment No in the video attribute information that signaling module receives; Also used for receiving The data packet fed back by the CCN node is decapsulated to the data packet, and the obtained video data frame is sent to the video engine; 所述视频引擎还用于,对所述数据包进行处理,将处理后的数据发送至渲染模块;The video engine is also used to process the data packet and send the processed data to the rendering module; 所述渲染模块,用于播放所述数据。The rendering module is used to play the data. 9.根据权利要求8所述的移动终端,其特征在于,所述信令模块向其他移动终端发送视频属性信息的方式为:通过中心信令服务器向其他移动终端广播视频分享邀请消息;当接收到其他移动终端通过中心信令服务器转发的视频属性信息请求消息时,将视频属性信息通过中心信令服务器转发至其他移动终端;9. The mobile terminal according to claim 8, wherein the signaling module sends video attribute information to other mobile terminals in a manner of: broadcasting a video sharing invitation message to other mobile terminals through a central signaling server; When other mobile terminals forward the video attribute information request message through the central signaling server, the video attribute information is forwarded to other mobile terminals through the central signaling server; 所述信令模块从其他移动终端获取视频属性信息的方式为:获取中心信令服务器广播的来自其他移动终端的视频分享邀请消息;通过中心信令服务器向该其他移动终端转发视频属性信息请求消息;接收该其他移动终端通过中心信令服务器转发的视频属性信息。The method for the signaling module to obtain video attribute information from other mobile terminals is: obtain the video sharing invitation message from other mobile terminals broadcast by the central signaling server; forward the video attribute information request message to the other mobile terminals through the central signaling server ; Receive the video attribute information forwarded by the other mobile terminal through the central signaling server. 10.一种实现移动终端视频实时分享的内容中心网络CCN节点,其特征在于,所述CCN节点包括:10. A content-centric network CCN node that realizes mobile terminal video real-time sharing, is characterized in that, described CCN node comprises: 数据包接收模块,用于接收并保存来自源移动终端的数据包;The data packet receiving module is used to receive and save the data packet from the source mobile terminal; 兴趣包接收模块,用于接收并保存来自目标移动终端的兴趣包;所述数据包或兴趣包的名称由视频属性信息中的视频分享标识Call ID和采集起始数据帧序号Segment No确定;The interest packet receiving module is used to receive and save the interest packet from the target mobile terminal; the name of the data packet or the interest packet is determined by the video sharing identifier Call ID and the collection start data frame sequence number Segment No in the video attribute information; 匹配模块,用于根据兴趣包与数据包的名称获取匹配该兴趣包的数据包,将获取的数据包反馈至发送该兴趣包的目标移动终端;A matching module, configured to obtain a data packet matching the Interest packet according to the names of the Interest packet and the data packet, and feed back the obtained data packet to the target mobile terminal that sends the Interest packet; 其中,所述数据包或兴趣包的名称由公共前缀和变化后缀组成;其中,Wherein, the name of described data packet or interest packet is made up of common prefix and change suffix; Wherein, 公共前缀由所述源移动终端和目标移动终端预先保存;The public prefix is pre-saved by the source mobile terminal and the target mobile terminal; 变化后缀由Call ID和数据帧序号组成,其中数据帧序号由所述Segment No确定。The change suffix is composed of Call ID and data frame sequence number, wherein the data frame sequence number is determined by the Segment No. 11.根据权利要求10所述的CCN节点,其特征在于,所述CCN节点还包括:11. CCN node according to claim 10, is characterized in that, described CCN node also comprises: 中心信令服务模块,用于接收来自源移动终端的视频分享邀请消息,将该视频分享邀请消息广播至目标移动终端;还用于接收来自目标移动终端的视频属性信息请求消息,将该视频属性信息请求消息转发至源移动终端;接收来自源移动终端的视频属性信息,将该视频属性信息转发至该目标移动终端。The central signaling service module is used to receive the video sharing invitation message from the source mobile terminal, broadcast the video sharing invitation message to the target mobile terminal; it is also used to receive the video attribute information request message from the target mobile terminal, and set the video attribute information to the target mobile terminal. The information request message is forwarded to the source mobile terminal; the video attribute information from the source mobile terminal is received, and the video attribute information is forwarded to the target mobile terminal. 12.根据权利要求10所述的CCN节点,其特征在于,所述匹配模块用于,判断所述CCN节点是否保存有与接收到的兴趣包名称相同的数据包,如果有,则将该数据包反馈至发送该兴趣包的目标移动终端;如果没有,则将该兴趣包转发至其他CCN节点,由其他CCN节点继续进行判断,直至其他CCN节点判断出本地保存有与该兴趣包名称相同的数据包时,接收并保存该其他CCN节点反馈的数据包,并将该数据包反馈至发送该兴趣包的目标移动终端。12. The CCN node according to claim 10, wherein the matching module is used to judge whether the CCN node stores a data packet identical to the received Interest packet name, and if so, the data The packet is fed back to the target mobile terminal that sent the Interest packet; if not, the Interest packet is forwarded to other CCN nodes, and the other CCN nodes continue to make judgments until other CCN nodes judge that there is an interest packet with the same name as the Interest packet locally. When receiving a data packet, receive and save the data packet fed back by the other CCN nodes, and feed back the data packet to the target mobile terminal that sent the Interest packet.
CN201310638165.7A 2013-12-02 2013-12-02 Realize the mthods, systems and devices that mobile terminal video is shared Active CN103945277B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310638165.7A CN103945277B (en) 2013-12-02 2013-12-02 Realize the mthods, systems and devices that mobile terminal video is shared

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310638165.7A CN103945277B (en) 2013-12-02 2013-12-02 Realize the mthods, systems and devices that mobile terminal video is shared

Publications (2)

Publication Number Publication Date
CN103945277A CN103945277A (en) 2014-07-23
CN103945277B true CN103945277B (en) 2018-05-01

Family

ID=51192719

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310638165.7A Active CN103945277B (en) 2013-12-02 2013-12-02 Realize the mthods, systems and devices that mobile terminal video is shared

Country Status (1)

Country Link
CN (1) CN103945277B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9998510B2 (en) * 2015-03-20 2018-06-12 Walter Partos Video-based social interaction system
CN104902259B (en) * 2015-06-16 2017-08-01 北京蓝汛通信技术有限责任公司 Video processing method and device
CN107210995A (en) * 2015-08-12 2017-09-26 华为技术有限公司 A kind of method of data transfer, equipment and system
CN105656727A (en) * 2016-02-24 2016-06-08 北京奇虎科技有限公司 Method and device achieving application testing on mobile terminal
CN106331756A (en) * 2016-09-05 2017-01-11 北京智能管家科技有限公司 Routing selection device and method for video forwarding
CN106254069B (en) * 2016-09-07 2019-10-25 广东工业大学 Multi-layer encryption privacy protection method for content-centric network
CN107332769B (en) * 2017-05-16 2019-12-24 北京邮电大学 Data forwarding method and device
CN108650070A (en) * 2018-05-11 2018-10-12 全球能源互联网研究院有限公司 A kind of System and method for of information centre's network phasor measurement unit communication
CN111131764B (en) * 2018-11-01 2021-06-15 腾讯科技(深圳)有限公司 Resource exchange video data processing method, computer equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101247196A (en) * 2007-02-02 2008-08-20 王铁红 Method and apparatus for cross-layer optimization in multimedia communication with different user terminals
CN102447956A (en) * 2010-09-30 2012-05-09 北京沃安科技有限公司 Method for sharing video of mobile phone and system
CN103095724A (en) * 2013-02-05 2013-05-08 西安电子科技大学 Content-centric networking multi-interest package compression sending and processing method
CN103339901A (en) * 2010-11-30 2013-10-02 三星电子株式会社 Terminal and intermediate node in content oriented networking environment and communication method of terminal and intermediate node

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7774332B2 (en) * 2005-04-12 2010-08-10 International Business Machines Corporation Enabling interactive integration of network-accessible applications in a content aggregation framework

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101247196A (en) * 2007-02-02 2008-08-20 王铁红 Method and apparatus for cross-layer optimization in multimedia communication with different user terminals
CN102447956A (en) * 2010-09-30 2012-05-09 北京沃安科技有限公司 Method for sharing video of mobile phone and system
CN103339901A (en) * 2010-11-30 2013-10-02 三星电子株式会社 Terminal and intermediate node in content oriented networking environment and communication method of terminal and intermediate node
CN103095724A (en) * 2013-02-05 2013-05-08 西安电子科技大学 Content-centric networking multi-interest package compression sending and processing method

Also Published As

Publication number Publication date
CN103945277A (en) 2014-07-23

Similar Documents

Publication Publication Date Title
CN103945277B (en) Realize the mthods, systems and devices that mobile terminal video is shared
JP6612249B2 (en) Targeted ad insertion for streaming media data
CN110121059B (en) Monitoring video processing method, device and storage medium
JP2018521538A (en) Media data transfer using web socket sub-protocol
CN110572433B (en) A video scheduling method, system and device
KR20110108366A (en) Method and apparatus for reliable multicast streaming
CN109769123B (en) Method and system for processing video networking data
WO2011017982A1 (en) System, method and terminal for processing media services
CN110049273B (en) Video networking-based conference recording method and transfer server
KR102243753B1 (en) Enable media orchestration
CN110381119A (en) A kind of acquisition methods of log information, system and device and storage medium
CN111614927B (en) Video session establishment method, device, electronic device and storage medium
CN110392233B (en) Monitoring video processing method, device and storage medium
CN105791886B (en) Support the wireless flow media video service system and method for fine-grained data fragment
CN101815210A (en) Digital home remote video monitoring system based on next-generation network
EP4060964B1 (en) Method and apparatus for processing multicast signal
CN110519331B (en) A kind of video network resource processing method and device
CN110557370B (en) A method, system, electronic device and storage medium for pamir synchronization terminal information
CN110740087A (en) Message transmission method, terminal, gateway device, electronic device and storage medium
CN110536148B (en) A method and device for live broadcast based on video networking
CN110351247B (en) Parameter acquisition method, device and system
CN110557611B (en) Information synchronization method, device and storage medium
CN116112696A (en) Live broadcast method, system, BIER controller, router, device and readable medium
CN110049227B (en) Camera operation method and device
CN101409631B (en) Method and apparatus for switching channel

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant