CN114143577A - Video acquisition method and system - Google Patents

Video acquisition method and system Download PDF

Info

Publication number
CN114143577A
CN114143577A CN202111417567.5A CN202111417567A CN114143577A CN 114143577 A CN114143577 A CN 114143577A CN 202111417567 A CN202111417567 A CN 202111417567A CN 114143577 A CN114143577 A CN 114143577A
Authority
CN
China
Prior art keywords
url
video
target
client player
server
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.)
Granted
Application number
CN202111417567.5A
Other languages
Chinese (zh)
Other versions
CN114143577B (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.)
China Telecom Digital Intelligence Technology Co Ltd
Original Assignee
China Telecom Group System Integration 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 China Telecom Group System Integration Co Ltd filed Critical China Telecom Group System Integration Co Ltd
Priority to CN202111417567.5A priority Critical patent/CN114143577B/en
Publication of CN114143577A publication Critical patent/CN114143577A/en
Application granted granted Critical
Publication of CN114143577B publication Critical patent/CN114143577B/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/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/237Communication with additional data server
    • 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)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a video acquisition method and a video acquisition system. The method comprises the following steps: the client player sends a URL acquisition instruction to a video website server; the client player acquires a first URL returned by the video website server in response to the URL acquisition instruction; the client player generates a second URL according to the first URL; the client player sends the second URL to the video processing server through the proxy server; and the video processing server returns the target video corresponding to the second URL to the client player through the proxy server. The invention ensures that the target video received by the client player can not be falsified by the proxy server, and ensures low data processing overhead by adding the random character string in the URL corresponding to the video without encrypting the video content, thereby improving the video transmission efficiency and reducing the video transmission cost on the premise of ensuring the safety of the video transmission.

Description

Video acquisition method and system
Technical Field
The invention relates to the technical field of content distribution networks, in particular to a video acquisition method and a video acquisition system.
Background
In the video playing process, a width operator or some agency organization generally caches a video that is not authorized by a video operator in a proxy server in order to accelerate the playing fluency of a video-on-demand by a user, for example, if the content of the video-on-demand played by the user is high in popularity, the video is cached in the proxy server, and other subsequent users play the same video, the video content is directly provided by the proxy server, so that the request of other subsequent users may not reach the server of the video operator, which results in that the video operator cannot insert other content to be inserted (such as subsequent advertisements) into the video playing process, or the video received by a client player is a video that is tampered by the proxy server, and cannot guarantee the security of video transmission. Therefore, a new video acquisition method is needed.
Disclosure of Invention
In view of this, embodiments of the present invention provide a video obtaining method, a video obtaining system, a computer device, and a computer readable storage medium, so as to solve the problem that, in the prior art, a video operator cannot insert other content to be inserted (such as a subsequent advertisement) into a video playing process, or a video received by a client player is a video that is tampered by a proxy server, and cannot ensure security of video transmission.
In a first aspect of the present invention, a video obtaining method is provided, including:
the method comprises the steps that a client player sends a URL obtaining instruction to a video website server, wherein the URL obtaining instruction comprises a target video identifier;
the client player acquires a first URL returned by the video website server in response to the URL acquisition instruction; wherein the first URL comprises a target URL corresponding to the target video identifier and a first random character string;
the client player generates a second URL according to the first URL; the second URL comprises the target URL and a second random string;
the client player sends the second URL to a video processing server through a proxy server;
and the video processing server returns the target video corresponding to the second URL to the client player through the proxy server.
Further, the generating a second URL according to the first URL includes:
acquiring a target URL corresponding to the target video identifier according to the first URL;
and generating a second random character string, and generating a second URL according to the second random character string and the target URL.
Further, the first URL is obtained by encrypting a target URL corresponding to the target video identifier and a first random character string.
Further, the obtaining a target URL corresponding to the target video identifier according to the first URL includes:
decrypting the first URL to obtain the target URL and the first random character string; deleting the first random character string to obtain the target URL;
correspondingly, the generating a second random character string and generating a second URL according to the second random character string and the target URL includes:
generating a second random string;
and encrypting the second random character string and the target URL to generate a second URL.
Further, the returning, by the video processing server, the target video corresponding to the second URL to the client player through the proxy server includes:
the video processing server receives a second URL sent by a client player through a proxy server, determines a video corresponding to a target URL according to the target URL in the second URL, generates a target video according to the video corresponding to the target URL and an inter-cut video corresponding to the video, and sends the target video to the client player through the proxy server.
Further, the determining, according to the target URL in the second URL, a video corresponding to the target URL includes:
decrypting the second URL to obtain the target URL and the second random character string;
deleting the second random character string to obtain the target URL;
and determining the video corresponding to the target URL according to the target URL.
In a second aspect of the present invention, there is provided a video acquisition system, comprising:
the client player is used for sending a URL (uniform resource locator) acquisition instruction to the video website server and receiving a target video;
the video website server is used for providing a target video identifier and a video URL address and generating a first URL based on the video URL address;
the proxy server is used for sending the second URL to a video processing server and returning a target video corresponding to the second URL to the client player;
the video processing server is used for responding to the first URL returned by the URL obtaining instruction; wherein the first URL comprises a target URL corresponding to the target video identifier and a first random character string;
wherein the client player comprises:
the instruction sending unit is used for sending a URL (uniform resource locator) acquisition instruction to the video website server, wherein the URL acquisition instruction comprises a target video identifier;
the URL acquisition unit is used for acquiring a first URL returned by the video website server in response to the URL acquisition instruction;
the URL generating unit is used for generating a second URL according to the first URL; the second URL comprises the target URL and a second random string;
and the URL sending unit is used for sending the second URL to the video processing server through the proxy server so that the video processing server can return the target video corresponding to the second URL.
Further, the video processing server includes:
the URL receiving unit is used for receiving a second URL sent by the client player through the video processing server; the second URL comprises the target URL and a second random string;
the video determining unit is used for determining a video corresponding to the target URL according to the target URL in the second URL;
the video generating unit is used for generating a target video according to the video corresponding to the target URL and the inter-cut video corresponding to the video;
and the video sending unit is used for sending the target video to the client player through the video processing server.
In a third aspect of the invention, a computer device is provided, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the above method when executing the computer program.
In a fourth aspect of the invention, a computer-readable storage medium is provided, which stores a computer program that, when executed by a processor, performs the steps of the above-described method.
Compared with the prior art, the embodiment of the invention has the following beneficial effects: in the embodiment, a URL obtaining instruction is sent to a video website server through a client player, wherein the URL obtaining instruction includes a target video identifier; the client player acquires a first URL returned by the video website server in response to the URL acquisition instruction; wherein the first URL comprises a target URL corresponding to the target video identifier and a first random character string; the client player generates a second URL according to the first URL; the second URL comprises the target URL and a second random string; the client player sends the second URL to a video processing server through a proxy server; and the video processing server returns the target video corresponding to the second URL to the client player through the proxy server. It can be seen that, in this embodiment, the URL used for acquiring the target video includes the random character string, so that the URL sent by the client player to the video processing server by the client player through the proxy server is always changed, and the URL sent by the client player received by the proxy server each time is different, so that the proxy server cannot directly return the locally cached video to the client player, thereby ensuring that the URL sent by the client player each time reaches the video processing server, and the target video corresponding to the target URL is returned to the client player by the video processing server, ensuring that the target video received by the client player is not tampered by the proxy server, and improving the security of video transmission. In addition, the random character strings are added in the URL corresponding to the video without encrypting the video content, so that the low data processing overhead is ensured, the video transmission efficiency is improved and the video transmission cost is reduced on the premise of ensuring the safety of the video transmission.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed for the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a scene schematic diagram of an application scenario provided in an embodiment of the present invention;
fig. 2 is a signaling diagram of a video acquisition method according to an embodiment of the present invention;
fig. 3 is a schematic system structure diagram of a video acquisition system according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a computer device provided by an embodiment of the present invention.
Reference numerals:
1-a terminal device; 2-video web site server; 3-a proxy server; 4-a video processing server; 401-a processor; 402-a memory; 403-computer program.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
A video acquisition method and system according to embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
A first embodiment of the present invention provides a video acquisition method, including:
the method comprises the steps that a client player sends a URL obtaining instruction to a video website server, wherein the URL obtaining instruction comprises a target video identifier;
the client player acquires a first URL returned by the video website server in response to the URL acquisition instruction; wherein the first URL comprises a target URL corresponding to the target video identifier and a first random character string;
the client player generates a second URL according to the first URL; the second URL comprises the target URL and a second random string;
the client player sends the second URL to a video processing server through a proxy server;
and the video processing server returns the target video corresponding to the second URL to the client player through the proxy server.
The method of the embodiment of the invention can be applied to the application scenario shown in fig. 1. In this scenario, the terminal device 1 includes a terminal device 1, a video website server 2, a proxy server 3, and a video processing server 4, where the terminal device 1 may be a terminal device provided with a client player capable of playing a video, such as a notebook computer, a desktop computer, a mobile phone, and a tablet computer. A client player in the terminal device 1 may send a URL obtaining instruction to the video website server 2, where the URL obtaining instruction includes a target video identifier; the video website server 2 may return a first URL to the terminal device 1 in response to the URL obtaining instruction; wherein the first URL comprises a target URL corresponding to the target video identifier and a first random character string; the terminal device 1 may generate a second URL according to the first URL; the second URL comprises the target URL and a second random string; the terminal device 1 may send the second URL to the video processing server 4 through the proxy server 3, so that the video processing server 4 may return the target video corresponding to the second URL through the proxy server 3. It can be seen that, in this embodiment, the URL used for acquiring the target video includes the random character string, so that the URL sent by the client player to the video processing server by the client player through the proxy server is always changed, and the URL sent by the client player received by the proxy server each time is different, so that the proxy server cannot directly return the locally cached video to the client player, thereby ensuring that the URL sent by the client player each time reaches the video processing server, and the target video corresponding to the target URL is returned to the client player by the video processing server, ensuring that the target video received by the client player is not tampered by the proxy server, and improving the security of video transmission. In addition, the invention ensures low data processing overhead only by adding the random character string in the URL corresponding to the video without encrypting the video content, thereby improving the video transmission efficiency and reducing the video transmission cost on the premise of ensuring the video transmission safety.
It should be noted that the specific type, number, and combination of the terminal devices 1 may be adjusted according to the actual requirements of the application scenarios, which is not limited in this embodiment of the present invention.
It should be noted that the above application scenarios are only presented to facilitate understanding of the present invention, and the embodiments of the present invention are not limited in any way in this respect. Rather, embodiments of the present invention may be applied to any scenario where applicable.
Fig. 2 is a signaling diagram of a video acquisition method according to an embodiment of the present invention. As shown in fig. 2, the video acquisition method includes:
s201: and the client player sends a URL acquisition instruction to the video website server.
In this embodiment, the URL obtaining instruction may include a target video identifier, where the target video identifier may be understood as an identifier of a video that needs to be played by the client player, for example, a number, a name, and the like of the video.
As an example, when a user needs to play a video online by using a client player, the client player may first obtain an identifier corresponding to the video, and use the identifier corresponding to the video as a target video identifier. And then, the client player generates a URL acquisition instruction corresponding to the video according to the target video identifier. Then, the client player may send a URL obtaining instruction to the video website server so as to obtain a URL (Uniform Resource Locator) corresponding to the video.
S202: and the client player acquires a first URL returned by the video website server in response to the URL acquisition instruction.
After the video website server obtains the URL obtaining instruction, the video website server may respond to the URL obtaining instruction, first obtain a target URL corresponding to a target video identifier in the URL obtaining instruction, and generate a first random character string. Then, the video website server may generate a first URL according to the target URL and the first random string, and return the first URL to the client player.
The first random string may be a query string (query string), and the first random string may also be a random number. It is understood that the video website server may add the first random string to the HTTP URL of the video file corresponding to the target video identifier published by the video website by adding an HTTP query string to the HTTP URL, or may add a random number to a specific location in the path of the URL (such as the last portion location of the URL, the middle portion location, the location between the host name and the file name).
For example, suppose the HTTP URL of the video file corresponding to the target video identifier published by the video website server on the video website is HTTP:// video.abc.com/m/123456. mp 4; if the first random string is a query string, the video website server may add an HTTP query string "random ═ 42524" to the HTTP URL to obtain a first URL, where the first URL is "HTTP:// video.abc.com/m/123456. mp4random ═ 42524"; if the first random string is a random number, the video website server may add a random number "42524" to a position between the host name and the file name in the path of the HTTP URL, resulting in a first URL, where the first URL is "HTTP:// video.
In an implementation manner, in order to improve security of data transmission, the first URL may be obtained by encrypting a target URL and a first random character string corresponding to the target video identifier. That is to say, the video website server may encrypt the target URL and the first random character string corresponding to the target video identifier to obtain the first URL.
As an example, the video website server may encrypt the target URL corresponding to the target video identifier and the field except the hostname (i.e., host name) in the first random string, where the encryption may be performed by using a symmetric encryption or an asymmetric encryption. Thus, the target URL is encrypted random string except that the hostname is unchanged. It should be noted that the video website server may irregularly replace the random character string in the first URL corresponding to the video content, re-encrypt the random character string, and then publish the random character string on the page of the video website. For example, assuming that the target URL and the first random string corresponding to the target video identifier are "http:// video.abc.com/m/123456. mp4random ═ 42524", after the video website server encrypts the target URL and the field except the hostname (i.e. the host name) in the first random string corresponding to the target video identifier, the first URL "http:// video.abc.com/ae 434htsdg567hfjdaf4fd 34" can be obtained, and as a result, the first URL is an encrypted random string except the hostname. In this way, the HTTP request received by the proxy server at a time can be made different, and thus the cache of the video by the proxy server is invalidated. It can be understood that, since the present embodiment does not encrypt the video content, only the URL needs to be encrypted, decrypted and transformed, the processing overhead is low, and no new device is introduced, thereby reducing the cost.
S203: the client player generates a second URL according to the first URL; the second URL comprises the target URL and a second random string;
after the client player receives the first URL, in order to further make the HTTP requests received by the proxy server different, a new URL may be formed, that is, the client player may generate a second URL according to the first URL, where the second URL includes the target URL and a second random string, and it needs to be noted that the first random string and the second random string are different. The second random string may be a query string (query string), and the second random string may also be a random number.
As an example, the client player may first obtain a target URL corresponding to the target video identifier according to the first URL; it is emphasized that, if the first URL is an encrypted URL, the client player may decrypt the first URL to obtain the target URL and the first random character string, and delete the first random character string to obtain the target URL.
The client player may then generate a second random string, and the client player may generate a second URL based on the second random string and the target URL. It should be noted that, in an implementation manner, in order to improve the security of data transmission, after the client player generates the second random character string, the client player may encrypt the second random character string and the target URL to generate the second URL. The client player may encrypt the target URL corresponding to the target video identifier and a field other than the hostname (i.e., host name) in the second random string, where the encryption may be performed by using a symmetric encryption or an asymmetric encryption.
That is, after obtaining the encrypted first URL from the video website server, the client player may decrypt the first URL, restore the original target URL, generate the second random string in the target URL according to the same rule again, and encrypt the second random string again to form the second URL, where the first URL is "http:// video. abc. com/ae434htsdg567hfjdaf4fd 34", and the updated second URL is "http:// video. abc. com/7hfjd9ae9214htsdg56af6dr439 f", for example.
Next, for example, suppose that the client player obtains an encrypted URL as "http:// video. abc. com/ae434htsdg567hfjdaf4fd 34" from the video website server, decrypts to obtain "http:// video. abc. com/m/123456.mp4random ═ 42524", and restores the original target URL, that is, "http:// video. abc. com/m/123456.mp 4", and then generates a second random character string "random ═ 32568" according to the same rule, so that a URL "http:// video. abc.abc.456/m/123456. mp4random ═ 568" generated according to the target URL and the second random character string can be obtained, and the URL "http:// video. abc. 929/hd/35. http:// h # 52" is encrypted by the client player 63568 ", and the URL is encrypted to form a second random character string, that is" http:// video. abc. 7 hfad 9/e.12.
S204: and the client player sends the second URL to the proxy server.
S205: and the proxy server sends the second URL to a video processing server.
After the client player generates the second URL, the client player may send the second URL to the proxy server, and the proxy server sends the second URL to the video processing server.
It should be noted that, in the process that the client player sends the second URL to the video processing server, the second URL sent by the client player is intercepted by the proxy server, and the proxy server may determine whether the same content (i.e., cache data) exists in the local cache of the proxy server according to the second URL. Since the path portion of the second URL includes a random character string (i.e., a second random character string), the proxy server cannot query the cache data corresponding to the second URL in the cache of the proxy server according to the second URL, and therefore, the proxy server may forward the HTTP request of the client player to the video processing server. That is, since the second URLs corresponding to the same target URL are always changed, the probability that the proxy server finds the cached video is greatly reduced, or even completely fails, and thus, each second URL finally reaches the server of the video website itself, that is, the video processing server.
S206: and the video processing server returns the target video corresponding to the second URL to the client player through the proxy server.
In this embodiment, the video processing server may first receive a second URL sent by the client player through the proxy server, and determine, according to the target URL in the second URL, a video corresponding to the target URL.
In this embodiment, after the video processing server obtains the second URL, the video processing server may determine a target URL in the second URL according to the second URL, and then the video processing server may determine a video corresponding to the target URL according to the target URL.
If the second URL is an encrypted URL, the video processing server may decrypt the second URL to obtain the target URL and the second random string; then, the video processing server may delete the second random character string to obtain the target URL; then, the video processing server may determine, according to the target URL, a video corresponding to the target URL.
For example, after receiving the second URL sent by the proxy server, the video processing server may decrypt the second URL "http:// video.abc.com/7 hfjd9ae9214htsdg56af6dr439 f", restore the original URL "http:// video.abc.com/m/123456. mp4random ═ 32568", delete the random number segment (i.e., the second random character string), obtain the target URL "http:// video.abc.com/m/123456. mp 4" corresponding to the video content, and then, the video processing server may determine the video corresponding to the target URL according to the target URL.
Then, the video processing server may generate a target video according to the video corresponding to the target URL and the inter-cut video corresponding to the video.
In one implementation, the video spots may be video segments, such as advertisements. As an example, after the video processing server obtains the target URL, a video corresponding to the target URL and an inter-cut video corresponding to the video may be determined according to the target URL; then, the video processing server may generate a target video according to the video corresponding to the target URL and the spot video corresponding to the video, for example, the video processing server may insert an advertisement into the video to obtain the target video.
The video processing server may then send the target video to the client player through the proxy server.
After the video processing server obtains the target video, the target video can be sent to the proxy server, so that the proxy server can send the target video to the client player. Therefore, after receiving the target video, the client player plays the target video for the user, and can play the inter-cut video, such as advertisement content, according to the set rule.
It should be noted that, after obtaining the target video, the proxy server may return the target video to the client server. Meanwhile, the proxy server can judge the on-demand popularity of the content in the recent period of time and decide whether to cache the video content locally. However, since the URLs in each HTTP request of the same video content are different, in general, the proxy server determines that the video content does not need to be cached, and even if the video content is cached, the next HTTP request of the same video content is received, and the cached video cannot be hit due to the different URLs, that is, the cached video of the same URL cannot be searched.
It should be noted that the client player, the proxy server and the video processing server may use the same key, and use a symmetric encryption algorithm to encrypt and decrypt the URL; the key can be replaced regularly and synchronized among the three; of course, an asymmetric encryption algorithm can be used, the proxy server and the video processing server use the same private key, the client player uses a public key before playing, the private key is periodically changed, and the three are synchronized.
All the above-mentioned optional technical solutions can be combined arbitrarily to form the optional embodiments of the present invention, and are not described herein again.
The following are embodiments of systems of the present invention that may be used to perform embodiments of methods of the present invention. For details which are not disclosed in the embodiments of the system of the present invention, reference is made to the embodiments of the method of the present invention.
Fig. 3 is a schematic structural diagram of a client player of the video acquisition system according to an embodiment of the present invention.
The client player 301 is configured to send a URL obtaining instruction to the video website server 302, and receive a target video;
a video website server 302 for providing a target video identifier and a video URL address, and generating a first URL based on the video URL address;
the proxy server 303 is configured to send the second URL to the video processing server 304, and return the target video corresponding to the second URL to the client player 301;
a video processing server 304, configured to obtain a first URL returned by the instruction in response to the URL; wherein the first URL comprises a target URL corresponding to the target video identifier and a first random character string;
the client player 301 includes:
an instruction sending unit, configured to send a URL obtaining instruction to the video website server 302, where the URL obtaining instruction includes a target video identifier;
a URL obtaining unit, configured to obtain a first URL returned by the video website server 302 in response to the URL obtaining instruction;
the URL generating unit is used for generating a second URL according to the first URL; the second URL comprises the target URL and a second random string;
a URL sending unit, configured to send the second URL to the video processing server 304 through the proxy server 303, so that the video processing server 304 returns the target video corresponding to the second URL.
Optionally, the URL generating unit is configured to:
acquiring a target URL corresponding to the target video identifier according to the first URL;
and generating a second random character string, and generating a second URL according to the second random character string and the target URL.
Optionally, the first URL is obtained by encrypting a target URL corresponding to the target video identifier and a first random character string.
Optionally, the URL generating unit is configured to:
decrypting the first URL to obtain the target URL and the first random character string; deleting the first random character string to obtain the target URL;
generating a second random string;
and encrypting the second random character string and the target URL to generate a second URL.
The video processing server 304 includes:
a URL receiving unit configured to receive a second URL sent by the client player 301 through the video processing server 304;
the video determining unit is used for determining a video corresponding to the target URL according to the target URL in the second URL;
the video generating unit is used for generating a target video according to the video corresponding to the target URL and the inter-cut video corresponding to the video;
a video sending unit, configured to send the target video to the client player 301 through the video processing server 304.
Optionally, the first URL is obtained by encrypting the target URL and the second random character string;
the video determination unit is configured to:
decrypting the second URL to obtain the target URL and the second random character string;
deleting the second random character string to obtain the target URL;
and determining the video corresponding to the target URL according to the target URL.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Fig. 4 is a schematic diagram of a computer device 4 according to an embodiment of the present invention. As shown in fig. 4, the computer device 4 of this embodiment includes: a processor 401, a memory 402 and a computer program 403 stored in the memory 402 and executable on the processor 401. The steps in the various method embodiments described above are implemented when the processor 401 executes the computer program 403. Alternatively, the processor 401 implements the functions of the modules/modules in the above embodiments when executing the computer program 403.
Illustratively, the computer program 403 may be partitioned into one or more modules stored in the memory 402 and executed by the processor 401 to implement the present invention. One or more modules/modules may be a series of computer program instruction segments capable of performing certain functions, which are used to describe the execution of computer program 403 in computer device 4.
The computer device 4 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computer devices. Computer device 4 may include, but is not limited to, a processor 401 and a memory 402. Those skilled in the art will appreciate that fig. 4 is merely an example of a computer device 4 and is not intended to limit computer device 4 and may include more or fewer components than those shown, or some of the components may be combined, or different components, e.g., the computer device may also include input output devices, network access devices, buses, etc.
The Processor 401 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 402 may be an internal storage module of the computer device 4, for example, a hard disk or a memory of the computer device 4. The memory 402 may also be an external storage device of the computer device 4, such as a plug-in hard disk provided on the computer device 4, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. Further, memory 402 may also include both internal and external storage modules of computer device 4. The memory 402 is used to store computer programs and other programs and video required by the computer device. The memory 402 may also be used to temporarily store video that has been output or is to be output.
It will be clear to those skilled in the art that, for convenience and simplicity of description, the foregoing functional modules and division of modules are merely illustrated, and in practical applications, the foregoing functional allocation may be performed by different functional modules and modules as needed, that is, the internal structure of the system is divided into different functional modules or modules to perform all or part of the above described functions. In the embodiments, each functional module and each module may be integrated into one processing module, or each module may exist alone physically, or two or more modules are integrated into one module, and the integrated modules may be implemented in a form of hardware or a form of software functional modules. In addition, specific names of the functional modules and modules are only used for distinguishing the functional modules and the modules from each other, and are not used for limiting the protection scope of the invention. The modules and the specific working processes of the modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative modules and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided by the present invention, it should be understood that the disclosed system/computer apparatus and method may be implemented in other ways. For example, the system/computer device embodiments described above are merely illustrative, e.g., a division of modules or modules into only one logical division, an actual implementation can have additional divisions, multiple modules or components can be combined or integrated into another system, or some features can be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, systems or modules, and may be in an electrical, mechanical or other form.
Modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
The integrated modules/modules, if implemented in the form of software functional modules and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by the present invention, and the computer program can be stored in a computer readable storage medium to instruct related hardware, and when the computer program is executed by a processor, the steps of the method embodiments described above can be realized. The computer program may comprise computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain suitable additions or additions that may be required in accordance with legislative and patent practices within the jurisdiction, for example, in some jurisdictions, computer readable media may not include electrical carrier signals or telecommunications signals in accordance with legislative and patent practices.
The above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (10)

1. A video acquisition method, comprising:
the method comprises the steps that a client player sends a URL obtaining instruction to a video website server, wherein the URL obtaining instruction comprises a target video identifier;
the client player acquires a first URL returned by the video website server in response to the URL acquisition instruction; wherein the first URL comprises a target URL corresponding to the target video identifier and a first random character string;
the client player generates a second URL according to the first URL; the second URL comprises the target URL and a second random string;
the client player sends the second URL to a video processing server through a proxy server;
and the video processing server returns the target video corresponding to the second URL to the client player through the proxy server.
2. The method of claim 1, wherein generating a second URL from the first URL comprises:
acquiring a target URL corresponding to the target video identifier according to the first URL;
and generating a second random character string, and generating a second URL according to the second random character string and the target URL.
3. The method according to claim 2, wherein the first URL is obtained by encrypting a target URL corresponding to the target video identifier and a first random string.
4. The method according to claim 2, wherein the obtaining a target URL corresponding to the target video identifier according to the first URL comprises:
decrypting the first URL to obtain the target URL and the first random character string; deleting the first random character string to obtain the target URL;
correspondingly, the generating a second random character string and generating a second URL according to the second random character string and the target URL includes:
generating a second random string;
and encrypting the second random character string and the target URL to generate a second URL.
5. The method according to claim 1, wherein the video processing server returns the target video corresponding to the second URL to the client player through the proxy server, and includes:
the video processing server receives a second URL sent by a client player through a proxy server, determines a video corresponding to a target URL according to the target URL in the second URL, generates a target video according to the video corresponding to the target URL and an inter-cut video corresponding to the video, and sends the target video to the client player through the proxy server.
6. The method of claim 5, wherein the determining the video corresponding to the target URL according to the target URL in the second URLs comprises:
decrypting the second URL to obtain the target URL and the second random character string;
deleting the second random character string to obtain the target URL;
and determining the video corresponding to the target URL according to the target URL.
7. A video acquisition system, comprising:
the client player is used for sending a URL (uniform resource locator) acquisition instruction to the video website server and receiving a target video;
the video website server is used for providing a target video identifier and a video URL address and generating a first URL based on the video URL address;
the proxy server is used for sending the second URL to a video processing server and returning a target video corresponding to the second URL to the client player;
the video processing server is used for responding to the first URL returned by the URL obtaining instruction; wherein the first URL comprises a target URL corresponding to the target video identifier and a first random character string;
wherein the client player comprises:
the instruction sending unit is used for sending a URL (uniform resource locator) acquisition instruction to the video website server, wherein the URL acquisition instruction comprises a target video identifier;
the URL acquisition unit is used for acquiring a first URL returned by the video website server in response to the URL acquisition instruction;
the URL generating unit is used for generating a second URL according to the first URL; the second URL comprises the target URL and a second random string;
and the URL sending unit is used for sending the second URL to the video processing server through the proxy server so that the video processing server can return the target video corresponding to the second URL.
8. The system of claim 7, wherein the video processing server comprises:
the URL receiving unit is used for receiving a second URL sent by the client player through the video processing server;
the video determining unit is used for determining a video corresponding to the target URL according to the target URL in the second URL;
the video generating unit is used for generating a target video according to the video corresponding to the target URL and the inter-cut video corresponding to the video;
and the video sending unit is used for sending the target video to the client player through the video processing server.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 6.
CN202111417567.5A 2021-11-26 2021-11-26 Video acquisition method and system Active CN114143577B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111417567.5A CN114143577B (en) 2021-11-26 2021-11-26 Video acquisition method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111417567.5A CN114143577B (en) 2021-11-26 2021-11-26 Video acquisition method and system

Publications (2)

Publication Number Publication Date
CN114143577A true CN114143577A (en) 2022-03-04
CN114143577B CN114143577B (en) 2023-10-24

Family

ID=80388315

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111417567.5A Active CN114143577B (en) 2021-11-26 2021-11-26 Video acquisition method and system

Country Status (1)

Country Link
CN (1) CN114143577B (en)

Citations (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004320623A (en) * 2003-04-18 2004-11-11 Dainippon Printing Co Ltd Streaming content distributing system, method, program, and computer readable medium
CN102510536A (en) * 2011-12-21 2012-06-20 中国传媒大学 Method for downloading videos and audios of internet
CN103229181A (en) * 2010-10-13 2013-07-31 阿卡麦科技公司 Protecting websites and website users by obscuring URLs
CN103546829A (en) * 2013-10-23 2014-01-29 华为技术有限公司 Method and device for processing video service
CN103686198A (en) * 2013-12-30 2014-03-26 优视科技有限公司 Video data processing method, device and system
US20140201849A1 (en) * 2013-01-16 2014-07-17 Wms Gaming, Inc. Securing embedded content in a display frame with player tracking system integration
CN103945259A (en) * 2014-03-31 2014-07-23 Tcl集团股份有限公司 Online video playing method and device
CN104079659A (en) * 2014-07-14 2014-10-01 清华大学 Location-based service anonymous query system based on random agents and application method thereof
CN104160680A (en) * 2012-03-06 2014-11-19 思科技术公司 Spoofing technique for transparent proxy caching
CN104396270A (en) * 2013-07-02 2015-03-04 华为技术有限公司 Streaming media processing method, apparatus and system
CN105100958A (en) * 2015-07-27 2015-11-25 网宿科技股份有限公司 Video flow guide method and device based on Android system
CN105897850A (en) * 2015-12-22 2016-08-24 乐视云计算有限公司 Response processing method and system and scheduling proxy server for CDN platform
CN106101133A (en) * 2016-07-14 2016-11-09 观止云(北京)信息技术有限公司 A kind of method and system of Streaming Media door chain
CN106470420A (en) * 2015-08-17 2017-03-01 中兴通讯股份有限公司 Method for processing business and device
CN106507181A (en) * 2016-11-30 2017-03-15 北京酷我科技有限公司 A kind of method for being obtained and stored in line video data
CN106993201A (en) * 2017-03-17 2017-07-28 武汉斗鱼网络科技有限公司 The authorization check method and device of video playback
CN107579968A (en) * 2017-08-30 2018-01-12 武汉斗鱼网络科技有限公司 Video flowing address detection method, device and server
CN108093270A (en) * 2017-12-29 2018-05-29 北京酷我科技有限公司 A kind of method for depositing video during broadcasting when broadcasting
CN108574686A (en) * 2017-05-17 2018-09-25 北京金山云网络技术有限公司 A kind of method and device of online preview file
CN108965910A (en) * 2018-08-09 2018-12-07 网宿科技股份有限公司 A kind of video cache method and player
EP3503007A1 (en) * 2017-12-22 2019-06-26 SevenOne Media GmbH Method for delivering advertising content and system for carrying out the method
CN111294667A (en) * 2020-03-09 2020-06-16 联通沃音乐文化有限公司 Online video anti-theft system and method based on encryption timestamp
CN111988644A (en) * 2020-08-11 2020-11-24 乐视新生代(北京)文化传媒有限公司 Anti-stealing-link method, device, equipment and storage medium for network video
CN112528178A (en) * 2020-11-10 2021-03-19 微梦创科网络科技(中国)有限公司 Advertisement putting method, device and system and client
CN112689164A (en) * 2020-12-17 2021-04-20 杭州当虹科技股份有限公司 CDN-based video anti-theft chain system
CN113395282A (en) * 2021-06-15 2021-09-14 济南浪潮智投智能科技有限公司 Method and system for preventing third party from accessing server resources

Patent Citations (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004320623A (en) * 2003-04-18 2004-11-11 Dainippon Printing Co Ltd Streaming content distributing system, method, program, and computer readable medium
CN103229181A (en) * 2010-10-13 2013-07-31 阿卡麦科技公司 Protecting websites and website users by obscuring URLs
CN102510536A (en) * 2011-12-21 2012-06-20 中国传媒大学 Method for downloading videos and audios of internet
CN104160680A (en) * 2012-03-06 2014-11-19 思科技术公司 Spoofing technique for transparent proxy caching
US20140201849A1 (en) * 2013-01-16 2014-07-17 Wms Gaming, Inc. Securing embedded content in a display frame with player tracking system integration
CN104396270A (en) * 2013-07-02 2015-03-04 华为技术有限公司 Streaming media processing method, apparatus and system
CN103546829A (en) * 2013-10-23 2014-01-29 华为技术有限公司 Method and device for processing video service
CN103686198A (en) * 2013-12-30 2014-03-26 优视科技有限公司 Video data processing method, device and system
CN103945259A (en) * 2014-03-31 2014-07-23 Tcl集团股份有限公司 Online video playing method and device
CN104079659A (en) * 2014-07-14 2014-10-01 清华大学 Location-based service anonymous query system based on random agents and application method thereof
CN105100958A (en) * 2015-07-27 2015-11-25 网宿科技股份有限公司 Video flow guide method and device based on Android system
CN106470420A (en) * 2015-08-17 2017-03-01 中兴通讯股份有限公司 Method for processing business and device
CN105897850A (en) * 2015-12-22 2016-08-24 乐视云计算有限公司 Response processing method and system and scheduling proxy server for CDN platform
CN106101133A (en) * 2016-07-14 2016-11-09 观止云(北京)信息技术有限公司 A kind of method and system of Streaming Media door chain
CN106507181A (en) * 2016-11-30 2017-03-15 北京酷我科技有限公司 A kind of method for being obtained and stored in line video data
CN106993201A (en) * 2017-03-17 2017-07-28 武汉斗鱼网络科技有限公司 The authorization check method and device of video playback
CN108574686A (en) * 2017-05-17 2018-09-25 北京金山云网络技术有限公司 A kind of method and device of online preview file
CN107579968A (en) * 2017-08-30 2018-01-12 武汉斗鱼网络科技有限公司 Video flowing address detection method, device and server
EP3503007A1 (en) * 2017-12-22 2019-06-26 SevenOne Media GmbH Method for delivering advertising content and system for carrying out the method
CN108093270A (en) * 2017-12-29 2018-05-29 北京酷我科技有限公司 A kind of method for depositing video during broadcasting when broadcasting
CN108965910A (en) * 2018-08-09 2018-12-07 网宿科技股份有限公司 A kind of video cache method and player
CN111294667A (en) * 2020-03-09 2020-06-16 联通沃音乐文化有限公司 Online video anti-theft system and method based on encryption timestamp
CN111988644A (en) * 2020-08-11 2020-11-24 乐视新生代(北京)文化传媒有限公司 Anti-stealing-link method, device, equipment and storage medium for network video
CN112528178A (en) * 2020-11-10 2021-03-19 微梦创科网络科技(中国)有限公司 Advertisement putting method, device and system and client
CN112689164A (en) * 2020-12-17 2021-04-20 杭州当虹科技股份有限公司 CDN-based video anti-theft chain system
CN113395282A (en) * 2021-06-15 2021-09-14 济南浪潮智投智能科技有限公司 Method and system for preventing third party from accessing server resources

Also Published As

Publication number Publication date
CN114143577B (en) 2023-10-24

Similar Documents

Publication Publication Date Title
US8983076B2 (en) Methods and apparatus for key delivery in HTTP live streaming
US9767300B2 (en) Managing restricted tagged content elements within a published message
US20130166906A1 (en) Methods and Apparatus for Integrating Digital Rights Management (DRM) Systems with Native HTTP Live Streaming
CN104284213A (en) Hotlink protection method, client side and system
JP7319380B2 (en) Protect browser cookies
CN111193755B (en) Data access method, data encryption method and data encryption and access system
CN115516835B (en) Method, device, equipment and computer storage medium for updating IP address
JP2023096089A (en) Pseudonym event certification by group signature
KR102608325B1 (en) Protect the integrity of communications on client devices
CN113656648A (en) Data query method, related device and medium
KR20220163483A (en) Confidential information protection using multi-party computing and K-anonymity technology
CN108055356A (en) A kind of information processing method, server, client and readable storage medium storing program for executing
CN110855606A (en) User identity authentication method, cloud decoding server, client and system
CN114143577B (en) Video acquisition method and system
CN114391242B (en) Anonymous event attestation
KR20220052352A (en) Online privacy protection technology
JP2022532815A (en) Fraud prevention in aggregated network measurements
US20220255758A1 (en) Systems and methods for protecting data
KR101815145B1 (en) Certificate sharing method between cross domain
JP7098065B1 (en) Preventing data manipulation and protecting user privacy in telecommunications network measurements
CN109274765B (en) Data transmission method, equipment and system
CN117290892A (en) Method, apparatus, device and computer readable medium for securing data
CN116566653A (en) Verification method, verification device, electronic equipment and storage medium
CN116346486A (en) Combined login method, device, equipment and storage medium
CN116881516A (en) Method, device, equipment and medium for inquiring enterprise information hiding trace

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Room 1308, 13th floor, East Tower, 33 Fuxing Road, Haidian District, Beijing 100036

Applicant after: China Telecom Digital Intelligence Technology Co.,Ltd.

Address before: Room 1308, 13th floor, East Tower, 33 Fuxing Road, Haidian District, Beijing 100036

Applicant before: CHINA TELECOM GROUP SYSTEM INTEGRATION Co.,Ltd.

GR01 Patent grant
GR01 Patent grant