CN106162226A - The transmission method of a kind of TS stream and system - Google Patents
The transmission method of a kind of TS stream and system Download PDFInfo
- Publication number
- CN106162226A CN106162226A CN201610794490.6A CN201610794490A CN106162226A CN 106162226 A CN106162226 A CN 106162226A CN 201610794490 A CN201610794490 A CN 201610794490A CN 106162226 A CN106162226 A CN 106162226A
- Authority
- CN
- China
- Prior art keywords
- stream
- client
- target
- encryption
- target video
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 40
- 230000005540 biological transmission Effects 0.000 title claims abstract description 37
- 238000004458 analytical method Methods 0.000 claims abstract description 10
- 230000004044 response Effects 0.000 claims description 5
- 230000000694 effects Effects 0.000 abstract description 2
- 238000005516 engineering process Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 3
- 239000004615 ingredient Substances 0.000 description 2
- OTZZZISTDGMMMX-UHFFFAOYSA-N 2-(3,5-dimethylpyrazol-1-yl)-n,n-bis[2-(3,5-dimethylpyrazol-1-yl)ethyl]ethanamine Chemical compound N1=C(C)C=C(C)N1CCN(CCN1C(=CC(C)=N1)C)CCN1C(C)=CC(C)=N1 OTZZZISTDGMMMX-UHFFFAOYSA-N 0.000 description 1
- 241000208340 Araliaceae Species 0.000 description 1
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 description 1
- 235000003140 Panax quinquefolius Nutrition 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 235000008434 ginseng Nutrition 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/234—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
- H04N21/2347—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving video stream encryption
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/06—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
- H04L9/0618—Block ciphers, i.e. encrypting groups of characters of a plain text message using fixed encryption transformation
- H04L9/0625—Block ciphers, i.e. encrypting groups of characters of a plain text message using fixed encryption transformation with splitting of the data block into left and right halves, e.g. Feistel based algorithms, DES, FEAL, IDEA or KASUMI
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/08—Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
- H04L9/0861—Generation of secret information including derivation or calculation of cryptographic keys or passwords
- H04L9/0869—Generation of secret information including derivation or calculation of cryptographic keys or passwords involving random numbers or seeds
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/4405—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving video stream decryption
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/472—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Databases & Information Systems (AREA)
- Human Computer Interaction (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The invention discloses the transmission method of a kind of TS stream, in list of videos, choose target video to generate playing request including: client, and by playing request transmission to content management server;Content management server generates the target video with the first encryption data according to analysis result and predetermined encryption rule and links, and target video link is fed back to client;Client forwards target video link to streaming media server;The original TS stream that streaming media server lookup target video link is corresponding, and according to predetermined encryption rule, original TS stream generation is flowed with target TS of the second encryption data, and target TS stream is sent to client;Client deciphering target TS stream.The method, all uses the mode of encryption in content management server and streaming media server, this improves the safety in transmitting procedure of the TS stream.Additionally, invention additionally discloses the transmission system of a kind of TS stream, effect is described above.
Description
Technical field
The present invention relates to technical field of video transmission, particularly relate to transmission method and the system of a kind of TS stream.
Background technology
TS stream (Transport Stream, transmission stream): be according between them by multiple ingredients of a program
Cross correlation carry out organizing and add each ingredient relationship description and program composition information, and be packaged into transmission bag further
After code stream.TS stream is the data such as video, audio frequency, PSI to be packaged into transmission bag transmit.It is mainly used in program transmission.TS
Transmission packet length fix, generally 188 bytes.
In existing TS streaming technology, it is not provided with corresponding ciphering process, causes in transmitting procedure easily by
Tripartite intercepts, and causes divulging a secret of video content etc..
As can be seen here, how improving TS stream is urgently to be resolved hurrily the asking of those skilled in the art in the safety of transmitting procedure
Topic.
Summary of the invention
It is an object of the invention to provide transmission method and the system of a kind of TS stream, for improving the TS stream peace in transmitting procedure
Quan Xing.
For solving above-mentioned technical problem, the present invention provides the transmission method that a kind of TS flows, including:
Client chooses target video to generate playing request in list of videos, and sends described playing request to interior
Hold management server;Wherein, described playing request comprises user profile and the information of described target video of described client;
Described content management server resolves described playing request, according to analysis result and predetermined encryption rule generate with
The target video link of the first encryption data, and the link of described target video is fed back to described client;
Described client forwards the link of described target video to streaming media server;
Described streaming media server searches the original TS stream that the link of described target video is corresponding, and according to described predetermined encryption
Described original TS stream is generated target TS with the second encryption data and flows by rule, and sends described target TS stream to described visitor
Family end;
Described client deciphers described target TS stream according to described predetermined encryption rule.
Preferably, described content management server resolves described playing request, according to analysis result and predetermined encryption rule
Generate with the first encryption data target video link particularly as follows:
Resolve the described user profile and the information of described target video comprised in described playing request;
Utilize the des encryption algorithm in described pre-defined rule that the field comprised in described user profile is generated described first
Encryption data;Wherein, described user profile comprises accidental enciphering data field;
Described first encryption data is joined in the link that described target video is corresponding to generate described target video chain
Connect.
Preferably, described streaming media server searches the original TS stream that the link of described target video is corresponding, and according to described
Predetermined encryption rule by described original TS stream generate with the second encryption data target TS flow particularly as follows:
Utilize the des encryption algorithm in described pre-defined rule that the link of described target video is decrypted and obtain described user
Accidental enciphering data field in information and described original TS stream;
The XOR AES in described pre-defined rule is utilized to be flowed with described original TS by described accidental enciphering data field
Carry out XOR and generate described target TS stream, and corresponding encryption indicator position is set.
Preferably, the described XOR AES utilized in described pre-defined rule is by described accidental enciphering data field and institute
State original TS stream carry out XOR generate described target TS stream, and corresponding encryption indicator position is set particularly as follows:
Filter out the I frame bag in described original TS stream;
The XOR AES in described pre-defined rule is utilized to be carried out with described I frame bag by described accidental enciphering data field
XOR obtains target I frame bag, and arranges described encryption indicator position;
Remainder data bag in being flowed by described original TS is sequentially added into described target I frame bag to become described target TS
Stream.
Preferably, described client according to described predetermined encryption rule decipher described target TS stream particularly as follows:
Judge whether the packet in described target TS stream has described encryption indicator position;
If it is, utilize the XOR AES in described pre-defined rule by described accidental enciphering data field with described
In target TS stream, the packet with described encryption indicator position carries out XOR to decipher described target TS stream.
Preferably, described user profile also includes: ID field, described client ip address field, described client
The MAC Address field of terminal device, reserved field to be extended, the version number field of described client and request reproduction time word
Section.
Preferably, also include: described content management server judges the time span in described request reproduction time field
Whether exceed predetermined time period, if it is, send response failure information to described client.
Preferably, also include: whether the reproduction time length of client described in described streaming media server judges exceedes institute
State the time span in request reproduction time field, if it is, send play right to described client to suspend information.
For solving above-mentioned technical problem, the present invention provides the transmission system that a kind of TS flows, including:
Client, for choosing target video in list of videos to generate playing request, and sends out described playing request
Delivering to content management server, described client is additionally operable to forward target video link and according to predetermined to streaming media server
Encryption rule deciphering target TS stream;Wherein, described playing request comprises the user profile of described client and described target video
Information;
Described content management server, is used for resolving described playing request, raw according to analysis result and predetermined encryption rule
Become the target video with the first encryption data to link, and the link of described target video is fed back to described client;
Described streaming media server, for searching the original TS stream that the link of described target video is corresponding, and according to described pre-
Determine encryption rule and described original TS stream is generated the target TS stream with the second encryption data, and described target TS stream is sent extremely
Described client.
The transmission method of TS provided by the present invention stream and system, client chooses target video with life in list of videos
Become playing request, and described playing request is sent to content management server;Wherein, described playing request comprises described client
The user profile of end and the information of described target video;Described content management server resolves described playing request, according to parsing
Result and predetermined encryption rule generate the target video with the first encryption data and link, and by described target video link feedback
To described client;Described client forwards the link of described target video to streaming media server;Described streaming media server is looked into
Look for the original TS stream that the link of described target video is corresponding, and according to described predetermined encryption rule will described original TS stream generation with
The target TS stream of the second encryption data, and described target TS stream is sent to described client;Described client is according to described pre-
Determine encryption rule and decipher described target TS stream.Owing to all using the side of encryption in content management server and streaming media server
Formula, this improves the safety in transmitting procedure of the TS stream.Further, since comprise user's letter of client in playing request
Breath, therefore the first encryption data and the second encryption data all include the user profile of client, therefore can ensure that and are flowed by TS
It is sent to correct client, improves the efficiency of user's viewing.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention, the accompanying drawing used required in embodiment will be done simply below
Introduce, it should be apparent that, the accompanying drawing in describing below is only some embodiments of the present invention, for ordinary skill people
From the point of view of Yuan, on the premise of not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
The flow chart of the transmission method of a kind of TS stream that Fig. 1 provides for the present invention;
The structure chart of the transmission system of a kind of TS stream that Fig. 2 provides for the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Describe, it is clear that described embodiment is only a part of embodiment of the present invention rather than whole embodiment wholely.Based on this
Embodiment in invention, those of ordinary skill in the art are not under making creative work premise, and obtained is every other
Embodiment, broadly falls into scope.
The core of the present invention is to provide transmission method and the system of a kind of TS stream.
In order to make those skilled in the art be more fully understood that the present invention program, below in conjunction with the accompanying drawings and detailed description of the invention
The present invention is described in further detail.
The flow chart of the transmission method of a kind of TS stream that Fig. 1 provides for the present invention.As it is shown in figure 1, the transmission method of TS stream
Including:
S10: client chooses target video to generate playing request in list of videos, and sends playing request to interior
Hold management server.Wherein, playing request comprises the user profile of client and the information of target video.
S11: content management server resolves playing request, generates with first according to analysis result and predetermined encryption rule
The target video link of encryption data, and target video link is fed back to client.
S12: client forwards target video link to streaming media server.
S13: streaming media server searches the original TS stream that target video link is corresponding, and according to predetermined encryption rule by former
Beginning TS stream generates target TS with the second encryption data and flows, and sends target TS stream to client.
S14: client is according to predetermined encryption rule deciphering target TS stream.
In being embodied as, client needs pre-set encryption with content management server and streaming media server
Rule, content management server is for generating the first encryption data according to the encryption of predetermined encryption rule, and streaming media server is used for
Generating the second encryption data according to the encryption of predetermined encryption rule, client is deciphered according to predetermined encryption rule.Content management service
Utensil has storage device, stores list of videos, after user is by client login content management server, selects in list of videos
Take the video wanting to see, i.e. target video, be then equivalent to generate playing request to content management server, and by playing request
Send to content management server.Wherein, playing request comprises the user profile of client and the information of target video.Can manage
Solve, why user profile is joined playing request and is able to allow content management server by target video chain
The client of correspondence is delivered in sending and receiving, in case sending out mistake.
It is that content management server resolves corresponding to playing request after receiving playing request for which video, to determine mesh
Mark video link and resolve the user profile that playing request is corresponding.The information of the user being resolved to is advised according to predetermined encryption
Then encryption generates the first encryption data, and this first encryption data is joined in the video link parsed to generate target
Video link.
It is understood that owing to the user profile of different user is different, therefore, the first encryption number that client receives
According to this and the second encryption data is all different, even selecting same video, its decrypting process is also different.It addition,
Content management server simply sends a video link to client, is not real TS stream, so client cannot be seen
See.
Client receives the target video link that content management server sends, and is forwarded to flow matchmaker by target video link
Body server.Streaming media server is to being that client provides the real TS destination of stream, and streaming media server receives target video
Link, owing to the link of this target video is encryption, therefore, it is also desirable to deciphering, according to decrypted result after deciphering, it is right to find
The original TS stream answered.If this original TS stream is directly sent to client by streaming media server, then client is also can be straight
Connect viewing, but easily intercepted by other illegitimate client, because the not encryption of this original TS stream.Therefore, in this enforcement
In example, need to be encrypted original TS stream, i.e. according to predetermined encryption rule, original TS stream is generated with the second encryption data
Target TS stream, and by target TS stream send to client.It is understood that original TS stream and target TS stream here are phases
For to, target TS stream is the original TS stream after encryption.
The target TS stream that client receiving stream media server sends, and according to predetermined encryption rule deciphering target TS stream.
The transmission method of the TS stream that the present embodiment provides, all uses in content management server and streaming media server and adds
Close mode, this improves the safety in transmitting procedure of the TS stream.Further, since comprise client in playing request
User profile, therefore the first encryption data and the second encryption data all include the user profile of client, therefore can ensure that
TS stream is sent to correct client, improves the efficiency of user's viewing.
In order to allow those skilled in the art more understand the technical scheme that the present invention provides, more specific reality given below
Execute mode.
As being preferably carried out mode, content management server resolves playing request, according to analysis result and predetermined encryption
Rule generate with the first encryption data target video link particularly as follows:
Resolve the user profile and the information of target video comprised in playing request.
Utilize the des encryption algorithm in pre-defined rule that the field comprised in user profile is generated the first encryption data;Its
In, user profile comprises accidental enciphering data field.
First encryption data is joined in the link that target video is corresponding to generate target video link.
The cipher mode that predetermined encryption rule can take various forms, in the present embodiment, chooses des encryption algorithm,
User profile such as comprises accidental enciphering data field, ID field, client ip address field, client machine
MAC Address field, reserved field to be extended, the version number field of client and request reproduction time field, then use DES to add
Close algorithm obtains the first encryption data.In other embodiments, in order to be further ensured that the safety of ciphering process, can use
3DES AES.3DES AES is exactly triple DEA (TDEA, Triple Data Encryption
Algorithm) common name of block encryption.It is the equal of that each data block is applied three des encryption algorithms.
It should be noted that what accidental enciphering data field was randomly generated, therefore, same client is at different time
The user profile sent to content management server is also different.So can improve the safety of TS streaming further.
As being preferably carried out mode, the original TS that streaming media server searches target video link corresponding flows, and according to
Predetermined encryption rule by original TS stream generate with the second encryption data target TS flow particularly as follows:
Utilize des encryption algorithm in pre-defined rule that target video link is decrypted obtain in user profile random
Encryption data field and original TS stream;
Utilize the XOR AES in pre-defined rule that accidental enciphering data field and original TS stream are carried out XOR
Generate target TS stream, and corresponding encryption indicator position is set.
Streaming media server not only needs to encrypt and to be also decrypted target video link.If pre-defined rule uses
Des encryption algorithm, then streaming media server will use des encryption algorithm to be decrypted the accidental enciphering obtaining in user profile
Data field.Accidental enciphering data field carries out XOR as a radix and original TS stream.It is understood that it is original
TS stream is only correct, once with accidental enciphering data field, original TS stream is carried out XOR, then the target TS stream obtained
It is wrong.Even if client obtains this target TS stream, if be not decrypted, cannot watch.
Furthermore it is possible to each packet in being flowed with original TS by accidental enciphering data field carries out XOR generation
Target TS flows, then each packet in target TS stream is also encryption;Or to a few packets therein the most all
Carry out XOR and generate target TS stream, then during target TS flows, also simply a few packets are encryptions.Therefore, the present embodiment
Middle arrange encryption indicator position be for convenience client know whole target TS stream in which packet be encryption, which is
Do not encrypt.
As being preferably carried out mode, utilize the XOR AES in pre-defined rule by accidental enciphering data field with former
Beginning TS stream carry out XOR generate target TS stream, and corresponding encryption indicator position is set particularly as follows:
Filter out the I frame bag in original TS stream;
Utilize the XOR AES in pre-defined rule that with I frame bag, accidental enciphering data field is carried out XOR to obtain
Target I frame bag, and encryption indicator position is set;
Remainder data bag in being flowed by original TS is sequentially added into target I frame bag to become target TS stream.
If it will be appreciated that the original TS stream each packet of terminal is encrypted, then conciliate at ciphering process
All expend higher resource during close and lose time.I frame: for Intra pictures (intra picture), I frame is typically every
First frame of individual GOP (a kind of video compression technology that MPEG is used), through moderately compressing, as the ginseng of random access
Examination point, can treat as image.If the I frame bag in only flowing original TS is encrypted, the effect of encryption the most clearly can be improved
Rate.Therefore, it can first filter out the I frame bag in original TS stream, only accidental enciphering data field and I frame bag are carried out XOR fortune
Calculation obtains target I frame bag, and arranges encryption indicator position.
As preferred embodiment, client according to predetermined encryption rule deciphering target TS stream particularly as follows:
Judge whether the packet in target TS stream has encryption indicator position;
If it is, utilize the XOR AES in pre-defined rule to carry in being flowed with target TS by accidental enciphering data field
The packet having encryption indicator position carries out XOR with deciphering target TS stream.
Client, after receiving target TS stream, first determines whether whether the packet in target TS stream has encryption indicator position,
If had, it is decoded, without then need not deciphering.
In decrypting process, carry out XOR still with accidental enciphering data field with the packet with encryption indicator position
Computing, it is to be understood that through twice XOR, then be exactly initial value, i.e. obtains original TS stream, can normally watch.
As preferred embodiment, user profile also includes: ID field, client ip address field, client
The MAC Address field of terminal device, reserved field to be extended, the version number field of client and request reproduction time field.
Can arrange according to practical situation it is understood that user profile needs to comprise several field, only be not
Above-mentioned several field.
As preferred embodiment, also include:
Content management server judges to ask whether the time span in reproduction time field exceedes predetermined time period, as
Fruit is, then send response failure information to client.
In being embodied as, in order to prevent the client from playing same video within a very long time, then with
Family information adds request reproduction time field, and after receiving playing request, it is judged that in request reproduction time field
Whether time span exceedes predetermined time period, if it is, send response failure information to client.Such as, Preset Time
A length of 24 hours, if request reproduction time field is 25 hours, then content management server sent response mistake to client
Lose information, i.e. client this time request is not responded.
As preferred embodiment, also include:
Whether the reproduction time length of streaming media server judges client exceedes the time in request reproduction time field
Length, if it is, send play right to client to suspend information.
In being embodied as, in order to prevent the client from playing same video within a very long time, though objective
The TS that family end has obtained correspondence by deciphering flows, but whether streaming media server can judge the reproduction time length of client
Exceed the time span in request reproduction time field, if it is, send play right to client to suspend information.Can manage
Solving, if predetermined time period is 24 hours, a length of 20 hours of the reproduction time of client, therefore, client can
Obtain corresponding TS stream smoothly and carry out video-see, but once more than 20 hours, then streaming media server sends to client
Play right is suspended information, i.e. client and just cannot be watched.
The structure chart of the transmission system of a kind of TS stream that Fig. 2 provides for the present invention.As in figure 2 it is shown, the transmission system of TS stream
Including:
Client 10, for choosing target video to generate playing request, and by playing request transmission in list of videos
To content management server, client is additionally operable to forward target video link and according to predetermined encryption rule to streaming media server
Then deciphering target TS stream;Wherein, playing request comprises the user profile of client and the information of target video;
Content management server 11, is used for resolving playing request, according to analysis result and predetermined encryption rule generate with
The target video link of the first encryption data, and target video link is fed back to client;
Streaming media server 12, for searching the original TS stream that target video link is corresponding, and according to predetermined encryption rule
Original TS stream is generated target TS with the second encryption data flow, and target TS stream is sent to client.
The transmission system of the TS stream that the present embodiment provides, all uses in content management server and streaming media server and adds
Close mode, this improves the safety in transmitting procedure of the TS stream.Further, since comprise client in playing request
User profile, therefore the first encryption data and the second encryption data all include the user profile of client, therefore can ensure that
TS stream is sent to correct client, improves the efficiency of user's viewing.
Owing to the embodiment of components of system as directed is the most corresponding with the embodiment of method part, therefore the embodiment of components of system as directed please
See the description of the embodiment of method part, wouldn't repeat here.
The transmission method and the system that flow TS provided by the present invention above are described in detail.In description, each is real
Executing example uses the mode gone forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, and each is real
Execute identical similar portion between example to see mutually.For device disclosed in embodiment, owing to it is open with embodiment
Method corresponding, so describe fairly simple, relevant part sees method part and illustrates.It should be pointed out that, for this
For the those of ordinary skill of technical field, under the premise without departing from the principles of the invention, it is also possible to the present invention is carried out some
Improving and modify, these improve and modify in the protection domain also falling into the claims in the present invention.
Professional further appreciates that, in conjunction with the unit of each example that the embodiments described herein describes
And algorithm steps, it is possible to electronic hardware, computer software or the two be implemented in combination in, in order to clearly demonstrate hardware and
The interchangeability of software, the most generally describes composition and the step of each example according to function.These
Function performs with hardware or software mode actually, depends on application-specific and the design constraint of technical scheme.Specialty
Technical staff specifically should can be used for using different methods to realize described function to each, but this realization should not
Think beyond the scope of this invention.
The method described in conjunction with the embodiments described herein or the step of algorithm can direct hardware, processor be held
The software module of row, or the combination of the two implements.Software module can be placed in random access memory (RAM), internal memory, read-only deposit
Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, depositor, hard disk, moveable magnetic disc, CD-ROM or technology
In any other form of storage medium well known in field.
Claims (9)
1. the transmission method of a TS stream, it is characterised in that including:
Client chooses target video to generate playing request in list of videos, and sends described playing request to content pipe
Reason server;Wherein, described playing request comprises user profile and the information of described target video of described client;
Described content management server resolves described playing request, generates with first according to analysis result and predetermined encryption rule
The target video link of encryption data, and the link of described target video is fed back to described client;
Described client forwards the link of described target video to streaming media server;
Described streaming media server searches the original TS stream that the link of described target video is corresponding, and according to described predetermined encryption rule
Described original TS stream is generated target TS with the second encryption data flow, and described target TS stream is sent to described client
End;
Described client deciphers described target TS stream according to described predetermined encryption rule.
The transmission method of TS the most according to claim 1 stream, it is characterised in that described content management server resolves described
Playing request, according to analysis result and predetermined encryption rule generate the target video with the first encryption data link particularly as follows:
Resolve the described user profile and the information of described target video comprised in described playing request;
Utilize the des encryption algorithm in described pre-defined rule that the field comprised in described user profile generates described first encryption
Data;Wherein, described user profile comprises accidental enciphering data field;
Described first encryption data is joined in the link that described target video is corresponding to generate the link of described target video.
The transmission method of TS the most according to claim 2 stream, it is characterised in that described streaming media server searches described mesh
The original TS stream that mark video link is corresponding, and according to described predetermined encryption rule, described original TS stream is generated with the second encryption
Data target TS stream particularly as follows:
Utilize the des encryption algorithm in described pre-defined rule that the link of described target video is decrypted and obtain described user profile
In accidental enciphering data field and described original TS stream;
The XOR AES in described pre-defined rule is utilized to be carried out with described original TS stream by described accidental enciphering data field
XOR generates described target TS stream, and arranges corresponding encryption indicator position.
TS the most according to claim 3 stream transmission method, it is characterised in that described utilize in described pre-defined rule different
Or described accidental enciphering data field and described original TS stream are carried out XOR and generate described target TS stream by AES, and
Corresponding encryption indicator position is set particularly as follows:
Filter out the I frame bag in described original TS stream;
Utilize the XOR AES in described pre-defined rule that described accidental enciphering data field and described I frame bag are carried out XOR
Computing obtains target I frame bag, and arranges described encryption indicator position;
Remainder data bag in being flowed by described original TS is sequentially added into described target I frame bag to become described target TS stream.
5. the transmission method flowed according to the TS described in claim 3 or 4, it is characterised in that described client is according to described predetermined
Encryption rule decipher described target TS stream particularly as follows:
Judge whether the packet in described target TS stream has described encryption indicator position;
If it is, utilize the XOR AES in described pre-defined rule by described accidental enciphering data field and described target
In TS stream, the packet with described encryption indicator position carries out XOR to decipher described target TS stream.
The transmission method of TS the most according to claim 2 stream, it is characterised in that also include in described user profile: user
Id field, described client ip address field, the MAC Address field of described client machine, reserved field to be extended, described visitor
The version number field of family end and request reproduction time field.
The transmission method of TS the most according to claim 6 stream, it is characterised in that also include:
It is long that described content management server judges whether the time span in described request reproduction time field exceedes Preset Time
Degree, if it is, send response failure information to described client.
The transmission method of TS the most according to claim 6 stream, it is characterised in that also include:
Whether the reproduction time length of client described in described streaming media server judges exceedes described request reproduction time field
In time span, if it is, to described client send play right suspend information.
9. the transmission system of a TS stream, it is characterised in that including:
Client, for choosing target video to generate playing request, and by the transmission of described playing request extremely in list of videos
Content management server, described client is additionally operable to forward target video link and according to predetermined encryption to streaming media server
Rule deciphering target TS stream;Wherein, described playing request comprises user profile and the letter of described target video of described client
Breath;
Described content management server, is used for resolving described playing request, generates band according to analysis result and predetermined encryption rule
The target video having the first encryption data links, and the link of described target video is fed back to described client;
Described streaming media server, for searching the original TS stream that the link of described target video is corresponding, and adds according to described making a reservation for
Described original TS stream is generated target TS with the second encryption data and flows by close rule, and sends described target TS stream to described
Client.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610794490.6A CN106162226A (en) | 2016-08-31 | 2016-08-31 | The transmission method of a kind of TS stream and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610794490.6A CN106162226A (en) | 2016-08-31 | 2016-08-31 | The transmission method of a kind of TS stream and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106162226A true CN106162226A (en) | 2016-11-23 |
Family
ID=57344980
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610794490.6A Pending CN106162226A (en) | 2016-08-31 | 2016-08-31 | The transmission method of a kind of TS stream and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106162226A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018099157A1 (en) * | 2016-12-02 | 2018-06-07 | 杭州海康威视数字技术股份有限公司 | Method and device for encrypting file system |
CN110213669A (en) * | 2019-05-18 | 2019-09-06 | 杭州当虹科技股份有限公司 | A kind of video content burglary-resisting system and method based on TS slice |
CN113132759A (en) * | 2019-12-30 | 2021-07-16 | 中国移动通信集团北京有限公司 | Method, device, server, system and storage medium for determining video playing time delay |
CN115002089A (en) * | 2022-06-30 | 2022-09-02 | 兰州乐智教育科技有限责任公司 | Streaming media transmission method and device, electronic equipment and storage medium |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1933580A (en) * | 2005-09-14 | 2007-03-21 | 乐金电子(中国)研究开发中心有限公司 | Encoding/decoding method and device for digital content |
CN101079696A (en) * | 2007-06-29 | 2007-11-28 | 中兴通讯股份有限公司 | A stream media encryption system and method for industrial monitoring system |
CN101630116A (en) * | 2009-08-13 | 2010-01-20 | 中国华录集团有限公司 | Two-way authentication system of player and projector for digital movies mobile playing |
CN102281261A (en) * | 2010-06-10 | 2011-12-14 | 杭州华三通信技术有限公司 | Data transmission method, system and apparatus |
CN103929646A (en) * | 2014-04-29 | 2014-07-16 | 深圳国微技术有限公司 | Device and method used for insertion, detection and extraction of watermark |
CN104980771A (en) * | 2014-04-09 | 2015-10-14 | 中国电信股份有限公司 | Method and system for stream media-on-demand through internet protocol television (IPTV) |
CN105141984A (en) * | 2015-08-21 | 2015-12-09 | 湖南亿谷科技发展股份有限公司 | Network video obtaining system and network video obtaining method |
CN105657456A (en) * | 2016-03-10 | 2016-06-08 | 腾讯科技(深圳)有限公司 | Processing method, device and system for multimedia data |
CN105872726A (en) * | 2016-05-24 | 2016-08-17 | 华为技术有限公司 | Television program playing method, related equipment and system |
-
2016
- 2016-08-31 CN CN201610794490.6A patent/CN106162226A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1933580A (en) * | 2005-09-14 | 2007-03-21 | 乐金电子(中国)研究开发中心有限公司 | Encoding/decoding method and device for digital content |
CN101079696A (en) * | 2007-06-29 | 2007-11-28 | 中兴通讯股份有限公司 | A stream media encryption system and method for industrial monitoring system |
CN101630116A (en) * | 2009-08-13 | 2010-01-20 | 中国华录集团有限公司 | Two-way authentication system of player and projector for digital movies mobile playing |
CN102281261A (en) * | 2010-06-10 | 2011-12-14 | 杭州华三通信技术有限公司 | Data transmission method, system and apparatus |
CN104980771A (en) * | 2014-04-09 | 2015-10-14 | 中国电信股份有限公司 | Method and system for stream media-on-demand through internet protocol television (IPTV) |
CN103929646A (en) * | 2014-04-29 | 2014-07-16 | 深圳国微技术有限公司 | Device and method used for insertion, detection and extraction of watermark |
CN105141984A (en) * | 2015-08-21 | 2015-12-09 | 湖南亿谷科技发展股份有限公司 | Network video obtaining system and network video obtaining method |
CN105657456A (en) * | 2016-03-10 | 2016-06-08 | 腾讯科技(深圳)有限公司 | Processing method, device and system for multimedia data |
CN105872726A (en) * | 2016-05-24 | 2016-08-17 | 华为技术有限公司 | Television program playing method, related equipment and system |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018099157A1 (en) * | 2016-12-02 | 2018-06-07 | 杭州海康威视数字技术股份有限公司 | Method and device for encrypting file system |
CN108154042A (en) * | 2016-12-02 | 2018-06-12 | 杭州海康威视数字技术股份有限公司 | A kind of file system encryption method and device |
CN108154042B (en) * | 2016-12-02 | 2020-07-03 | 杭州海康威视数字技术股份有限公司 | File system encryption method and device |
CN110213669A (en) * | 2019-05-18 | 2019-09-06 | 杭州当虹科技股份有限公司 | A kind of video content burglary-resisting system and method based on TS slice |
CN110213669B (en) * | 2019-05-18 | 2021-03-23 | 杭州当虹科技股份有限公司 | Video content anti-theft system and method based on TS (transport stream) slices |
CN113132759A (en) * | 2019-12-30 | 2021-07-16 | 中国移动通信集团北京有限公司 | Method, device, server, system and storage medium for determining video playing time delay |
CN115002089A (en) * | 2022-06-30 | 2022-09-02 | 兰州乐智教育科技有限责任公司 | Streaming media transmission method and device, electronic equipment and storage medium |
CN115002089B (en) * | 2022-06-30 | 2023-09-19 | 兰州乐智教育科技有限责任公司 | Streaming media transmission method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6592570B2 (en) | Transmitter | |
US8949592B2 (en) | System and methods for providing live streaming content using digital rights management-based key management | |
US8321690B2 (en) | Protecting digital media of various content types | |
US7693278B2 (en) | Data distribution apparatus and data communications system | |
KR101203266B1 (en) | Carrying protected content using a control protocol for streaming and a transport protocol | |
JP2000287192A (en) | Information distributing device, receiving device and communication method | |
US20080063195A1 (en) | Method and system for encrypting or decrypting wmv streaming media | |
CN106162226A (en) | The transmission method of a kind of TS stream and system | |
TW201204011A (en) | Systems and methods for securely streaming media content | |
CN103081493B (en) | For the protection of the system and method for the advertisement selection of privacy | |
CN108881966A (en) | A kind of information processing method and relevant device | |
CN108200085B (en) | A kind of data distribution, retransmission method and device | |
CN110012260A (en) | A kind of video conference content guard method, device, equipment and system | |
US7886160B2 (en) | Information processing apparatus and method, and computer program | |
JP2018198438A (en) | Transmission device, reception device, and limited reception system | |
US8196214B2 (en) | Method and apparatus for securing content using encryption with embedded key in content | |
WO2015034020A1 (en) | Transmission device, reception device, limited reception system, and limited reception method | |
CN110380843A (en) | A kind of information processing method and relevant device | |
CN109429106A (en) | Program request movie theatre pro digital cinematographic projector broadcast control system | |
JP2003229844A (en) | Data transfer system | |
CN108306880B (en) | A kind of data distribution, retransmission method and device | |
KR101260673B1 (en) | Set operation method for protecting privacy | |
CN113783900B (en) | Encryption and multi-stage calibration method for stream media of unmanned aerial vehicle | |
CN108769748A (en) | A kind of information processing method and relevant device | |
CN112738572B (en) | Digital film encryption and decryption system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20161123 |