CN106817587B - Video stream generating/sharing method and system, terminal device and server cluster - Google Patents

Video stream generating/sharing method and system, terminal device and server cluster Download PDF

Info

Publication number
CN106817587B
CN106817587B CN201611196475.8A CN201611196475A CN106817587B CN 106817587 B CN106817587 B CN 106817587B CN 201611196475 A CN201611196475 A CN 201611196475A CN 106817587 B CN106817587 B CN 106817587B
Authority
CN
China
Prior art keywords
video stream
video
client
publisher
sharing request
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
CN201611196475.8A
Other languages
Chinese (zh)
Other versions
CN106817587A (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.)
Otvcloud Internet Technology Shanghai Co ltd
Original Assignee
Otvcloud Internet Technology Shanghai 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 Otvcloud Internet Technology Shanghai Co ltd filed Critical Otvcloud Internet Technology Shanghai Co ltd
Priority to CN201611196475.8A priority Critical patent/CN106817587B/en
Publication of CN106817587A publication Critical patent/CN106817587A/en
Application granted granted Critical
Publication of CN106817587B publication Critical patent/CN106817587B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/643Communication protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/643Communication protocols
    • H04N21/6437Real-time Transport Protocol [RTP]
    • 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/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • H04N21/8456Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments
    • 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/8543Content authoring using a description language, e.g. Multimedia and Hypermedia information coding Expert Group [MHEG], eXtensible Markup Language [XML]
    • 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/858Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot
    • H04N21/8586Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot by using a URL

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Databases & Information Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a video stream generation method/sharing method, a system, terminal equipment and a server cluster, wherein the video stream generation method is applied to a communication network comprising a video stream source end and a client end serving as a publisher; the video stream generation method comprises the following steps: generating a two-dimensional code comprising a webpage link address for linking the video stream source; and encapsulating the two-dimension code in a video stream which needs to be transmitted to the client as the publisher, so that the client as the publisher automatically links the webpage by scanning the two-dimension code encapsulated in the video stream after receiving the video stream, and receives a video sharing request input by a user. The invention realizes the quick selection, generation, release and sharing of the short video of the television user, and greatly reduces the threshold of the television user for selecting, generating, sharing and transmitting the short video.

Description

Video stream generating/sharing method and system, terminal device and server cluster
Technical Field
The present invention relates to the field of video communication technologies, and in particular, to a method, a system, a terminal device, and a server cluster for generating/sharing a video stream.
Background
With the development of the mobile internet, videos show a trend of moving, fragmenting and socializing. The television user audience extracts the wonderful segments seen on the television screen, the wonderful segments are published to the social platform, friends watch the wonderful segments on the mobile phone, and the television user audience has important significance in sharing the content with the friends. And attracting more users to watch the long video by the wonderful short video and guiding the long video to a large television screen to form a closed transmission loop with a large screen and a small screen between the television and the mobile phone. Through big data analysis, can acquire watching and propagating hobby of user to improve accurate service level, promote user's liveness.
However, the television is mainly operated by a remote controller, and interaction is difficult. The generation and sharing of the short video on the television are very inconvenient, and a convenient and concise technology is needed to realize the quick selection, generation, release and sharing of the short video of a television user.
Therefore, how to provide a method, a system, a terminal device and a server cluster for generating/sharing a video stream to solve various defects in the prior art, such as the inability to generate a short video through a television and the inconvenience of sharing a short video, is a technical problem to be solved by practitioners in the art.
Disclosure of Invention
In view of the above drawbacks of the prior art, an object of the present invention is to provide a method, a system, a terminal device and a server cluster for generating/sharing a video stream, so as to solve the problems that the short video cannot be generated through a television terminal and the short video cannot be conveniently shared in the prior art.
To achieve the above and other related objects, an aspect of the present invention provides a method for generating a video stream, which is applied in a communication network including a source end of the video stream and a client end as a publisher; the method for generating the video stream comprises the following steps: generating a two-dimensional code comprising a webpage link address for linking the video stream source; and encapsulating the two-dimension code in a video stream which needs to be transmitted to the client as the publisher, so that the client as the publisher automatically links the webpage by scanning the two-dimension code encapsulated in the video stream after receiving the video stream, and receives a video sharing request input by a user.
In an embodiment of the present invention, the video sharing request input by the user includes a title of the video stream to be shared, a description content of the video stream to be shared, and/or a time length of the video stream to be shared.
The invention also provides a video stream sharing method based on the video stream generating method, which is applied to a communication network comprising a client serving as a publisher, a client serving as a sharer and a server cluster, and the video stream sharing method comprises the following steps: receiving a video sharing request sent by a client serving as a publisher; according to the video sharing request, searching a video stream attribute file which is used for corresponding to the video stream and representing the video stream attribute; and forwarding the storage address of the current latest video stream attribute file according to the searched video stream attribute file, so that the client serving as the publisher shares the current latest video stream attribute file to a mainstream social platform, and the client serving as a sharer can share the video stream.
In an embodiment of the present invention, the video stream attribute file includes an index file for recording source addresses of video data segments constituting the video stream, and a video streaming media file composed of a plurality of video data segments; the server cluster comprises a data distribution server, a live broadcast source server and an on-demand source server; the step of searching the video stream attribute file which is used for corresponding to the video stream and representing the video stream attribute comprises the following steps: the live broadcast source server receives the video sharing request received by the data distribution server and sends the video sharing request to the on-demand source server, and the on-demand source server feeds back a request confirmation message to the live broadcast source server after receiving the video sharing request, so that the live broadcast source server knows that the video sharing request is received, and downloads the index file and the video stream transmission media file from the live broadcast source server.
In an embodiment of the present invention, the storage address of the current latest video stream attribute file includes a storage address of a current latest index file and a cover page address of a video to be played currently.
In an embodiment of the present invention, when the live source server knows that the on-demand source server has received the video sharing request, the storage address of the current latest index file and the cover page address of the current video to be played are sent to the data distribution server, and the data distribution server forwards the storage address of the current latest index file and the cover page address of the current video to be played to the client serving as the publisher.
In an embodiment of the present invention, the method for sharing a video stream further includes: if the client serving as the sharer shares the video stream, accessing the on-demand source server according to the storage address of the received current latest index file and the cover page address of the current video to be played, judging whether the index file and the video stream transmission media file corresponding to the video stream to be shared by the client serving as the sharer exist in the index file and the video stream transmission media file downloaded by the on-demand source server, and if so, directly extracting the index file and the video stream transmission media file corresponding to the video stream from the on-demand source server; and if not, extracting the index file and the video streaming media file corresponding to the video stream from the live broadcast source server.
The invention also provides a video stream generation system, which is applied to a communication network comprising a source end of the video stream and a client end as a publisher; the video stream generation system includes: the two-dimensional code generating module is used for generating a two-dimensional code comprising a webpage link address for linking the video stream source; and the packaging module is used for packaging the two-dimension code in a video stream which needs to be transmitted to the client side serving as the publisher, so that the client side serving as the publisher automatically links the webpage by scanning the two-dimension code packaged in the video stream after receiving the video stream, and a video sharing request input by a user is received.
In another aspect, the invention further provides a terminal device, which includes the video stream generation system.
The present invention further provides a video stream sharing system based on the video stream generating system, which is applied to a communication network including a client as a publisher, a client as a sharer, and a server, and includes: the first processing module is used for receiving a video sharing request sent by a client serving as a publisher; the second processing module is used for searching a video stream attribute file which is used for corresponding to the video stream and representing the video stream attribute according to the video sharing request; and the third processing module is used for forwarding the storage address of the current latest video stream attribute file according to the searched video stream attribute file, so that the client serving as the publisher shares the current latest video stream attribute file to a mainstream social platform, and the client serving as a sharer shares the video stream.
A final aspect of the present invention provides a communication network, including a server cluster in communication connection with a client as a publisher and a client as a sharer, the server cluster including: the data distribution server is used for receiving a video sharing request sent by a client serving as a publisher; the video-on-demand source server is used for searching a video stream attribute file which is used for corresponding to the video stream and representing the video stream attribute according to the video sharing request; and/or the live broadcast source server is used for forwarding the storage address of the current latest video stream attribute file according to the searched video stream attribute file, so that the client serving as the publisher shares the current latest video stream attribute file to a mainstream social platform, and the client serving as a sharer shares the video stream.
As described above, the method, system, terminal device and server cluster for generating/sharing video stream according to the present invention have the following advantages:
through the strong video processing capacity of the background, the television user only needs to scan the two-dimensional code, and the method, the system, the terminal equipment and the server cluster for generating/sharing the video stream greatly reduce the threshold of selecting, generating, sharing and transmitting the short video for the television user. By the method, the system, the terminal equipment and the server cluster for generating/sharing the video stream, the video coverage and the transmission depth can be greatly accelerated by a provider; the publisher can share the content watched by the publisher to the social platform, so that the attention of the publisher is improved; the viewers can timely and effectively participate in the real sharing of the content of the publisher, so that unnecessary links and software popularization are avoided, and the receiving of junk data is reduced.
Drawings
Fig. 1 is a flowchart illustrating a method for generating a video stream according to an embodiment of the invention.
Fig. 2 is a schematic view showing an application scenario of the video stream sharing method based on the video stream generating method of the present invention.
Fig. 3 is a flowchart illustrating a video stream sharing method according to an embodiment of the present invention.
Fig. 4 is a flowchart illustrating the process of S32 in the video stream sharing method according to the present invention.
Fig. 5 is a flowchart illustrating the process of S33 in the video stream sharing method according to the present invention.
Fig. 6 is a schematic diagram showing the schematic structure of the video stream generation system of the present invention.
Fig. 7 is a schematic diagram of the principle structure of the terminal device of the present invention.
Fig. 8 is a schematic structural diagram of a video stream sharing system of the video stream-based generating system according to the present invention.
Fig. 9 is a schematic structural diagram of a communication network according to an embodiment of the present invention.
Description of the element reference numerals
1 communication network
11 client as publisher
12 client as sharer
13 server cluster
131 data distribution server
132 order source server
133 live source server
2 video stream generation system
21 two-dimensional code generation module
22 encapsulation module
3 terminal device
4 system for generating video stream
Video stream sharing system
41 first processing module
42 second processing module
43 third processing Module
8 communication network
5 Server Cluster
6 client as publisher
7 client as sharer
51 data distribution server
52 order source server
53 broadcast source server
Detailed Description
The embodiments of the present invention are described below with reference to specific embodiments, and other advantages and effects of the present invention will be easily understood by those skilled in the art from the disclosure of the present specification. The invention is capable of other and different embodiments and of being practiced or of being carried out in various ways, and its several details are capable of modification in various respects, all without departing from the spirit and scope of the present invention. It is to be noted that the features in the following embodiments and examples may be combined with each other without conflict.
It should be noted that the drawings provided in the following embodiments are only for illustrating the basic idea of the present invention, and the components related to the present invention are only shown in the drawings rather than drawn according to the number, shape and size of the components in actual implementation, and the type, quantity and proportion of the components in actual implementation may be changed freely, and the layout of the components may be more complicated.
Example one
The embodiment provides a video stream generation method, which is applied to a communication network comprising a source end of a video stream and a client end as a publisher; the method for generating the video stream comprises the following steps:
generating a two-dimensional code comprising a webpage link address for linking the video stream source;
and encapsulating the two-dimension code in a video stream which needs to be transmitted to the client as the publisher, so that the client as the publisher automatically links the webpage by scanning the two-dimension code encapsulated in the video stream after receiving the video stream, and receives a video sharing request input by a user.
The method for generating a video stream provided by the present embodiment will be described in detail below with reference to the drawings. The method for generating a video stream according to this embodiment is applied to a communication network including a source end of a video stream, a transmission medium, and a client as a publisher. In this embodiment, the source end of the video stream is a television station, a cable network operator, a content license plate party, or a video website, i.e. a producer of video content or a source of video content. The transmission media include cable television, IPTV, internet events, satellite television, and the like. The client serving as the publisher comprises terminal equipment such as a smart phone, a tablet computer and a touch panel television.
Please refer to fig. 1, which is a flowchart illustrating a method for generating a video stream according to an embodiment. As shown in fig. 1, the method for generating a video stream specifically includes the following steps:
s1, the source end of the video stream generates a two-dimensional code including a web page link address (in this embodiment, the web page link address is an HTML5 page address) for linking the source of the video stream. In this embodiment, the two-dimensional code further includes a video identifier and/or a timestamp identifier.
And S2, the source end of the video stream encapsulates the generated two-dimensional code in the video stream which needs to be transmitted to the client end serving as the publisher through the transmission medium. In this embodiment, when the client serving as the publisher plays the video stream after receiving the video stream, the two-dimensional code is displayed on a screen, and the client serving as the publisher automatically links the webpage by scanning the two-dimensional code encapsulated in the video stream to receive a video sharing request input by a user. When the client is linked to the HTML5 page, the user can input a video sharing request of the user on the HTML5 page according to his own sharing requirement, for example, the title of the video stream to be shared by the user, the description content of the video stream to be shared (which may be set to not more than 200 words), and/or the time length of the video stream to be shared (which is set by the user).
The embodiment also provides a video stream sharing method based on the video stream generating method. The method for sharing a video stream according to this embodiment is applied to a communication network including a client as a publisher, a client as a sharer, and a server cluster, and includes the following steps:
receiving a video sharing request sent by a client serving as a publisher;
according to the video sharing request, searching a video stream attribute file which is used for corresponding to the video stream and representing the video stream attribute;
and forwarding the storage address of the current latest video stream attribute file according to the searched video stream attribute file, so that the client serving as the publisher shares the current latest video stream attribute file to a mainstream social platform, and the client serving as a sharer can share the video stream.
The following describes the sharing method of the video stream provided by the present embodiment in detail with reference to the drawings. Please refer to fig. 2, which is a schematic view of an application scene of a video stream sharing method based on a video stream generating method. The video stream sharing method is applied to a communication network 1 including a client as a publisher, a client as a sharer, and a server cluster as shown in fig. 2. In this embodiment, the client 11 as the publisher and the client 12 as the sharer may be terminal devices such as a smart phone, a tablet computer, a touch-sensitive flat-panel television, and the like. In this embodiment, the client 11 as the publisher and the client 12 as the sharer are smartphones.
The server cluster 13 in this embodiment includes:
the data distribution server 131 is, for example, a CDN server. The CDN server can redirect the user's request to the service node closest to the user in real time according to the network traffic and the comprehensive information such as the connection of each node, the load condition, the distance to the user, the response time and the like. The method aims to enable the user to obtain the required content nearby, solve the problem of congestion of the Internet network and improve the response speed of the user for accessing the website.
The on-demand source server 132, where the user initiates a play request at the client, and the request is sent out through the network, arrives at and is received by the network card of the on-demand source server, and is transmitted to the on-demand source server. After the request is verified, the on-demand source server prepares the accessible program names in the storage subsystem, so that the user can browse the favorite program list. After the user selects the program, the on-demand source server takes out the program content from the storage subsystem and transmits the program content to the client for playing. The client can play any multimedia material stored in the video memory of the on-demand source server at any time. The client can view the selected multimedia data when receiving a small portion of data.
The live source server 133 is essentially a video-audio i-encoding device. The media flow device is mainly designed for the application requirements of live video, streaming media service, IPTV, interactive television, mobile television, business television, remote teaching, B2B business communication, transmission of video to desktop, VOD system, remote monitoring, data storage and the like. The live broadcast server supports the input of RTMP (push streaming or pull streaming), UDP (user datagram protocol) and Http-ts protocol streams, and when the live broadcast server distributes and outputs the streams, the system can convert the streams into corresponding protocol streams to output in real time according to different access terminal platforms so as to support the playing of different terminal platforms.
Please refer to fig. 3, which is a flowchart illustrating a video stream sharing method based on a video stream generating method according to an embodiment of the present invention. As shown in fig. 3, the video stream sharing method specifically includes the following steps:
and S31, receiving a video sharing request sent by the client as a publisher through the CDN server.
And S32, according to the video sharing request, searching a video stream attribute file which is used for corresponding to the video stream and representing the video stream attribute. The video stream attribute file includes an index file for recording source addresses of video data segments constituting the video stream, and a video stream transmission media file composed of a plurality of video data segments. In this embodiment, the index file for recording the source addresses of the video data segments constituting the video stream is an M3U8 index file. The video streaming media file is a TS media file composed of a plurality of video data fragments. The network addresses of all video data segments form an M3U8 index list. Please refer to fig. 4, which shows a flowchart of S32. As shown in fig. 4, S32 specifically includes the following steps:
s321, the live source server receives the video sharing request distributed by the data distribution server, and sends the video sharing request to the on-demand source server;
and S322, after receiving the video sharing request, the on-demand source server feeds back a request confirmation message to the live source server. In this embodiment, the request confirmation information is data information of a code 200.
S323, after the live source server knows that the video sharing request has been received, that is, after the live source server receives the data information of the code 200, the on-demand source server downloads the index file (M3U8 index file) and the video streaming media file (TS media file) from the live source server.
And S33, forwarding the storage address of the current latest video stream attribute file according to the searched video stream attribute file, so that the client as the publisher shares the current latest video stream attribute file to a mainstream social platform, and the client as the sharer shares the video stream. In this embodiment, the storage address of the current latest video stream attribute file includes a storage address of the current latest index file and a cover page address of a video to be played currently.
Please refer to fig. 5, which shows a flowchart of S33. As shown in fig. 5, S33 specifically includes the following steps:
and S331, when the live broadcast source server knows that the on-demand source server has received the video sharing request, the live broadcast source server sends the storage address of the current latest index file and the cover page address of the current video to be played to the CDN server.
And S332, the CDN server forwards the storage address of the current latest index file and the cover page address of the current video to be played to the client serving as the publisher.
And S333, the client serving as the publisher shares the storage address of the current latest index file and the cover page address of the current video to be played to the mainstream social platform of the client, such as WeChat friends, WeChat friend circles, QQ spaces, microblogs and the like.
S335, when a client serving as a sharer shares a storage address of a current latest index file and a cover page address of a current video to be played, which are issued by a client serving as a publisher, accessing the on-demand source server according to the received storage address of the current latest index file and the cover page address of the current video to be played, judging whether an index file and a video stream transmission media file corresponding to a video stream to be shared by the client serving as the sharer exist in the index file and the video stream transmission media file downloaded by the on-demand source server, if so, executing S335, and directly extracting the index file and the video stream transmission media file corresponding to the video stream from the on-demand source server; if not, executing S336, and extracting the index file and the video streaming media file corresponding to the video stream from the live broadcast source server.
Through the strong video processing capability of the background, the television user only needs to scan the two-dimensional code, and the video stream generation method and the video stream sharing method based on the video stream generation method greatly reduce the threshold of selecting, generating, sharing and transmitting the short video for the television user. By the video stream generation method and the video stream sharing method based on the video stream generation method, a provider can greatly accelerate the coverage and propagation depth of a video; the publisher can share the content watched by the publisher to the social platform, so that the attention of the publisher is improved; the viewers can timely and effectively participate in the real sharing of the content of the publisher, so that unnecessary links and software popularization are avoided, and the receiving of junk data is reduced.
Example two
The present embodiment provides a video stream generation system 2, which is applied in a communication network including a source end of a video stream and a client as a publisher. Fig. 6 is a schematic structural diagram of a video stream generating system. As shown in fig. 6, the video stream generation system 2 includes a two-dimensional code generation module 21 and an encapsulation module 22.
The two-dimensional code generating module 21 is configured to generate a two-dimensional code including a web page link address for linking the video stream source.
The encapsulating module 22 connected to the two-dimension code generating module 21 is configured to encapsulate the two-dimension code in a video stream that needs to be transmitted to the client as the publisher, so that after the client as the publisher receives the video stream, the client as the publisher automatically links the webpage by scanning the two-dimension code encapsulated in the video stream, so as to receive a video sharing request input by a user.
Fig. 7 shows a schematic structural diagram of the terminal device 3 according to the present embodiment. As shown in fig. 7, the terminal device 3 includes the above-described video stream generation system 2.
EXAMPLE III
Fig. 8 is a schematic structural diagram of a video stream sharing system based on the video stream generating system according to the second embodiment. As shown in fig. 8, the video stream sharing system 4 of the video stream generating system includes a first processing module 41, a second processing module 42, and a third processing module 43.
The first processing module 41 is configured to receive a video sharing request sent by a client as a publisher;
the second processing module 42 connected to the first processing module 41 is configured to search, according to the video sharing request, a video stream attribute file that is used for corresponding to the video stream and representing the video stream attribute.
The third processing module 43 connected to the first processing module 41 and the second processing module 42 is configured to forward a storage address of the current latest video stream attribute file according to the found video stream attribute file, so that the client as the publisher shares the current latest video stream attribute file to a mainstream social platform, so as to share the video stream as a client of a sharer.
Fig. 9 shows a schematic structural diagram of a communication network in an embodiment. As shown in fig. 9, the communication network 5 includes a server cluster 5 that is connected to a communication between a client 6 as a publisher and a client 7 as a sharer, and the server cluster 5 includes: a data distribution server 51, an on-demand source server 52, and a live source server 53.
The data distribution server 51 is configured to receive a video sharing request sent by a client as a publisher.
The on-demand source server 52 connected to the data distribution server 51 is configured to search, according to the video sharing request, a video stream attribute file that is used for corresponding to the video stream and indicating the attribute of the video stream.
And/or the live broadcast source server 53 connected to the data distribution server 51 and the on-demand source server 52 is configured to forward a storage address of the currently latest video stream attribute file according to the found video stream attribute file, so that the client as the publisher shares the currently latest video stream attribute file to the mainstream social platform, so as to share the video stream as the client of the sharer.
In this embodiment, the index file for recording the source addresses of the video data segments constituting the video stream is an M3U8 index file. The video streaming media file is a TS media file composed of a plurality of video data fragments. The network addresses of all video data segments form an M3U8 index list. In this embodiment, the storage address of the current latest video stream attribute file includes a storage address of the current latest index file and a cover page address of a video to be played currently. The specific working process of the server cluster 5 described in this embodiment applied to the communication network including the communication connection with the client 6 as the publisher and the client 7 as the sharer is as follows:
the live broadcast source server 53 receives the video sharing request received by the data distribution server, and sends the video sharing request to the on-demand source server 52;
after receiving the video sharing request, the on-demand source server 52 feeds back a request confirmation message to the live source server. In this embodiment, the request confirmation information is data information of a code 200.
After the live source server 53 knows that the video sharing request is received, that is, after the live source server receives the data information of the code 200, the on-demand source server downloads the index file (M3U8 index file) and the video streaming media file (TS media file) from the live source server.
When the live broadcast source server 53 knows that the on-demand source server has received the video sharing request, the live broadcast source server 53 sends the storage address of the current latest index file and the cover page address of the current video to be played to the CDN server.
The CDN server 51 forwards the storage address of the current latest index file and the cover page address of the current video to be played to the client 6 serving as the publisher.
The client 6 as the publisher shares the storage address of the current latest index file and the cover page address of the current video to be played to the mainstream social platform of the client, such as a WeChat friend, a WeChat friend circle, a QQ space, a microblog and the like.
The client 7 serving as a sharer shares a storage address of a current latest index file and a cover page address of a current video to be played, which are issued by the client serving as the publisher, accesses the on-demand source server 52 according to the received storage address of the current latest index file and the cover page address of the current video to be played, judges whether an index file and a video stream transmission media file corresponding to a video stream to be shared by the client serving as the sharer exist in the index file and the video stream transmission media file downloaded by the on-demand source server 52, and if so, directly extracts the index file and the video stream transmission media file corresponding to the video stream from the on-demand source server 52; if not, extracting the index file and the video stream transmission media file corresponding to the video stream from the live broadcast source server 53.
In summary, with the strong video processing capability of the background, the television user only needs to scan the two-dimensional code, and the video stream generation/sharing method, system, terminal device and server cluster described in the present invention greatly reduce the threshold for the television user to select, generate, share and transmit the short video. By the method, the system, the terminal equipment and the server cluster for generating/sharing the video stream, the video coverage and the transmission depth can be greatly accelerated by a provider; the publisher can share the content watched by the publisher to the social platform, so that the attention of the publisher is improved; the viewers can timely and effectively participate in the real sharing of the content of the publisher, so that unnecessary links and software popularization are avoided, and the receiving of junk data is reduced. Therefore, the invention effectively overcomes various defects in the prior art and has high industrial utilization value.
The foregoing embodiments are merely illustrative of the principles and utilities of the present invention and are not intended to limit the invention. Any person skilled in the art can modify or change the above-mentioned embodiments without departing from the spirit and scope of the present invention. Accordingly, it is intended that all equivalent modifications or changes which can be made by those skilled in the art without departing from the spirit and technical spirit of the present invention be covered by the claims of the present invention.

Claims (11)

1. A method for generating a video stream is applied to a communication network comprising a source end of the video stream and a client end as a publisher; the method for generating the video stream comprises the following steps:
generating a two-dimensional code comprising a webpage link address for linking the video stream source; the two-dimensional code also comprises a video identifier and/or a timestamp identifier;
packaging the two-dimension code in a video stream which needs to be transmitted to the client as the publisher, so that the client as the publisher automatically links the webpage by scanning the two-dimension code packaged in the video stream after receiving the video stream, and receiving a video sharing request input by a user; the video sharing request comprises the time length of the video stream to be shared.
2. The method of generating a video stream according to claim 1, wherein: the video sharing request further comprises a title of the video stream to be shared by the user and description content of the video stream to be shared.
3. A video stream sharing method is applied to a communication network comprising a client as a publisher, a client as a sharer and a server cluster, and comprises the following steps:
receiving a video sharing request sent by a client serving as a publisher; the video sharing request comprises the time length of a video stream to be shared; the generation mode of the video stream comprises the steps of generating a two-dimensional code comprising a webpage link address for linking the source of the video stream; packaging the two-dimension code in a video stream which needs to be transmitted to the client as the publisher, so that the client as the publisher automatically links the webpage by scanning the two-dimension code packaged in the video stream after receiving the video stream, and receiving a video sharing request input by a user; the two-dimensional code also comprises a video identifier and/or a timestamp identifier;
according to the video sharing request, searching a video stream attribute file which is used for corresponding to the video stream and representing the video stream attribute;
and forwarding the storage address of the current latest video stream attribute file according to the searched video stream attribute file, so that the client serving as the publisher shares the current latest video stream attribute file to a mainstream social platform, and the client serving as a sharer can share the video stream.
4. The method for sharing a video stream according to claim 3, wherein: the video stream attribute file comprises an index file used for recording source addresses of video data fragments forming the video stream and a video stream transmission media file formed by a plurality of video data fragments; the server cluster comprises a data distribution server, a live broadcast source server and an on-demand source server;
the step of searching the video stream attribute file which is used for corresponding to the video stream and representing the video stream attribute comprises the following steps:
the live broadcast source server receives the video sharing request received by the data distribution server and sends the video sharing request to the on-demand source server, and the on-demand source server feeds back a request confirmation message to the live broadcast source server after receiving the video sharing request, so that the live broadcast source server knows that the video sharing request is received, and downloads the index file and the video stream transmission media file from the live broadcast source server.
5. The method for sharing a video stream according to claim 3, wherein: and the storage address of the current latest video stream attribute file comprises the storage address of the current latest index file and the cover page address of the current video to be played.
6. The video stream sharing method according to claim 4, wherein: and when the live broadcast source server knows that the video-on-demand source server has received the video sharing request, the storage address of the current latest index file and the cover page address of the current video to be played are sent to the data distribution server, and the data distribution server forwards the storage address of the current latest index file and the cover page address of the current video to be played to the client serving as the publisher.
7. The method for sharing a video stream according to claim 4, wherein: the video stream sharing method further comprises the following steps:
if the client serving as the sharer shares the video stream, accessing the on-demand source server according to the storage address of the received current latest index file and the cover page address of the current video to be played, judging whether the index file and the video stream transmission media file corresponding to the video stream to be shared by the client serving as the sharer exist in the index file and the video stream transmission media file downloaded by the on-demand source server, and if so, directly extracting the index file and the video stream transmission media file corresponding to the video stream from the on-demand source server; and if not, extracting the index file and the video streaming media file corresponding to the video stream from the live broadcast source server.
8. A video stream generation system is applied to a communication network comprising a source end of a video stream and a client end as a publisher; the video stream generation system includes:
the two-dimensional code generating module is used for generating a two-dimensional code comprising a webpage link address for linking the video stream source; the two-dimensional code also comprises a video identifier and/or a timestamp identifier;
the packaging module is used for packaging the two-dimension code into a video stream which needs to be transmitted to the client side serving as the publisher, so that the client side serving as the publisher automatically links the webpage by scanning the two-dimension code packaged in the video stream after receiving the video stream, and a video sharing request input by a user is received; the video sharing request comprises the time length of the video stream to be shared.
9. A terminal device characterized by comprising a system for generating a video stream as claimed in claim 8.
10. A video stream sharing system based on the video stream generation system according to claim 8, applied to a communication network including a client as a publisher, a client as a sharer, and a server, the video stream sharing system comprising:
the first processing module is used for receiving a video sharing request sent by a client serving as a publisher; the video sharing request comprises the time length of a video stream to be shared; the generation mode of the video stream comprises the steps of generating a two-dimensional code comprising a webpage link address for linking the source of the video stream; packaging the two-dimension code in a video stream which needs to be transmitted to the client as the publisher, so that the client as the publisher automatically links the webpage by scanning the two-dimension code packaged in the video stream after receiving the video stream, and receiving a video sharing request input by a user; the two-dimensional code also comprises a video identifier and/or a timestamp identifier;
the second processing module is used for searching a video stream attribute file which is used for corresponding to the video stream and representing the video stream attribute according to the video sharing request;
and the third processing module is used for forwarding the storage address of the current latest video stream attribute file according to the searched video stream attribute file, so that the client serving as the publisher shares the current latest video stream attribute file to a mainstream social platform, and the client serving as a sharer shares the video stream.
11. A communications network comprising a server cluster communicatively connected to clients as publishers and clients as sharers, the server cluster comprising:
the data distribution server is used for receiving a video sharing request sent by a client serving as a publisher; the video sharing request comprises the time length of a video stream to be shared; the generation mode of the video stream comprises the steps of generating a two-dimensional code comprising a webpage link address for linking the source of the video stream; packaging the two-dimension code in a video stream which needs to be transmitted to the client as the publisher, so that the client as the publisher automatically links the webpage by scanning the two-dimension code packaged in the video stream after receiving the video stream, and receiving a video sharing request input by a user; the two-dimensional code also comprises a video identifier and/or a timestamp identifier;
the video-on-demand source server is used for searching a video stream attribute file which is used for corresponding to the video stream and representing the video stream attribute according to the video sharing request;
and/or
And the live broadcast source server is used for forwarding the storage address of the current latest video stream attribute file according to the searched video stream attribute file, so that the client serving as the publisher shares the current latest video stream attribute file to a mainstream social platform, and the client serving as a sharer shares the video stream.
CN201611196475.8A 2016-12-22 2016-12-22 Video stream generating/sharing method and system, terminal device and server cluster Active CN106817587B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611196475.8A CN106817587B (en) 2016-12-22 2016-12-22 Video stream generating/sharing method and system, terminal device and server cluster

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611196475.8A CN106817587B (en) 2016-12-22 2016-12-22 Video stream generating/sharing method and system, terminal device and server cluster

Publications (2)

Publication Number Publication Date
CN106817587A CN106817587A (en) 2017-06-09
CN106817587B true CN106817587B (en) 2020-12-08

Family

ID=59109429

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611196475.8A Active CN106817587B (en) 2016-12-22 2016-12-22 Video stream generating/sharing method and system, terminal device and server cluster

Country Status (1)

Country Link
CN (1) CN106817587B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107509093A (en) * 2017-09-08 2017-12-22 北京未来媒体科技股份有限公司 Video resource processing method, the method and device across the synchronous broadcasting video resource of screen
CN108377429A (en) * 2018-04-24 2018-08-07 中国广播电视网络有限公司 A kind of demolition of video flowing and take out frame method
CN108737849A (en) * 2018-05-02 2018-11-02 王林 Video deployment method, device and terminal device and server
CN108900880B (en) * 2018-07-25 2020-12-08 亦非云互联网技术(上海)有限公司 Large and small screen interaction method and system
CN111131844A (en) * 2019-12-02 2020-05-08 钛马信息网络技术有限公司 Resource sharing method and system for automobile data recorder
CN113038161A (en) * 2021-03-24 2021-06-25 李辉 Video display method and system based on two-dimensional code

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102902761B (en) * 2012-09-25 2015-07-15 腾讯科技(深圳)有限公司 Cross-terminal cloud browse method and system
CN103501463A (en) * 2013-10-25 2014-01-08 乐视网信息技术(北京)股份有限公司 Data acquisition method and electronic equipment
CN103647991A (en) * 2013-12-23 2014-03-19 乐视致新电子科技(天津)有限公司 Method and system for sharing video in intelligent television
CN104093067B (en) * 2014-06-23 2017-08-25 广州三星通信技术研究有限公司 Share in the terminal, the apparatus and method of playback of audio-visual fragment
CN105282480A (en) * 2014-06-30 2016-01-27 三亚中兴软件有限责任公司 File sharing method and device in video conference
CN104703039A (en) * 2015-03-13 2015-06-10 天脉聚源(北京)传媒科技有限公司 Video information acquiring method and device
CN104703041A (en) * 2015-03-13 2015-06-10 天脉聚源(北京)传媒科技有限公司 Video sharing method and device
CN105721462B (en) * 2016-02-01 2020-05-29 百度在线网络技术(北京)有限公司 Information pushing method and device
CN105872858A (en) * 2016-04-27 2016-08-17 亦非云互联网技术(上海)有限公司 Video sharing method and system, video processing system and client side

Also Published As

Publication number Publication date
CN106817587A (en) 2017-06-09

Similar Documents

Publication Publication Date Title
CN106817587B (en) Video stream generating/sharing method and system, terminal device and server cluster
US11539989B2 (en) Media content redirection
US10506271B2 (en) Network architecture and method for application deployment
US10074149B2 (en) Watermarked media content in IPTV or ITV networks
CN104378647B (en) A kind of intelligent space storage system and method based on DTV
US11812075B2 (en) Enhanced service compatibility with clients
CN103491179A (en) Multi-screen interaction method and system based on Web
US20210160551A1 (en) Methods and systems for dynamic routing of content using a static playlist manifest
US10257588B2 (en) Systems and methods for inserting breakpoints and reference links into a media file
KR101593780B1 (en) Method and system for seamless navigation of content across different devices
KR20130009446A (en) System and method for contents sharing, device and computer readable medium storing the method
CN106302362B (en) Multimedia content sending method, sharing method, receiving method and corresponding devices
US8914409B2 (en) Method and apparatus for callback supplementation of media program metadata
US20190149856A1 (en) Methods and Systems For Redirecting Content Players
EP3048796A1 (en) Information system, information delivery method and iptv system based on multi-screen interaction
CN103368925A (en) Device authentication method
CN102655605A (en) Media scheduling and broadcasting device system and automatic scheduling method for channels
US8621066B2 (en) Apparatus for tracking the distribution of media content
TWI482496B (en) Apparatus, system for scheduling and broadcasting media, automatic channel scheduling method and recording medium
KR102232779B1 (en) System and method for mobile commerce linked with live broadcasting program
US11792486B2 (en) Interface generation using collection pools
CN112565811B (en) Decentralized edge node distribution system for Internet television
KR101017345B1 (en) Method for executing events of interactive contents
CN110650377B (en) Digital television program comment and bullet screen system and method
KR20100047831A (en) Appratus for providing interactive service in ubiquitous environment

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