CN114679608A - VR video encryption playing method, server, user side and system - Google Patents
VR video encryption playing method, server, user side and system Download PDFInfo
- Publication number
- CN114679608A CN114679608A CN202210371729.4A CN202210371729A CN114679608A CN 114679608 A CN114679608 A CN 114679608A CN 202210371729 A CN202210371729 A CN 202210371729A CN 114679608 A CN114679608 A CN 114679608A
- Authority
- CN
- China
- Prior art keywords
- video
- target
- user side
- playing
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 120
- 238000012795 verification Methods 0.000 claims abstract description 22
- 238000004590 computer program Methods 0.000 claims description 10
- 230000000903 blocking effect Effects 0.000 abstract 1
- 230000005540 biological transmission Effects 0.000 description 22
- 238000012545 processing Methods 0.000 description 18
- 238000005516 engineering process Methods 0.000 description 16
- 230000000694 effects Effects 0.000 description 12
- 230000006870 function Effects 0.000 description 9
- 238000010586 diagram Methods 0.000 description 8
- 238000004891 communication Methods 0.000 description 5
- 230000006835 compression Effects 0.000 description 2
- 238000007906 compression Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 208000002173 dizziness Diseases 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000003044 adaptive effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 239000011521 glass Substances 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
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
- 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/25—Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
- H04N21/254—Management at additional data server, e.g. shopping server, rights management server
- H04N21/2541—Rights Management
-
- 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/25—Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
- H04N21/258—Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
- H04N21/25866—Management of end-user data
- H04N21/25875—Management of end-user data involving end-user authentication
-
- 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/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/81—Monomedia components thereof
- H04N21/816—Monomedia components thereof involving special video data, e.g 3D video
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/83—Generation or processing of protective or descriptive data associated with content; Content structuring
- H04N21/845—Structuring of content, e.g. decomposing content into time segments
- H04N21/8455—Structuring of content, e.g. decomposing content into time segments involving pointers to the content, e.g. pointers to the I-frames of the video stream
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/83—Generation or processing of protective or descriptive data associated with content; Content structuring
- H04N21/845—Structuring of content, e.g. decomposing content into time segments
- H04N21/8456—Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/85—Assembly of content; Generation of multimedia applications
- H04N21/858—Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot
- H04N21/8586—Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot by using a URL
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Computer Security & Cryptography (AREA)
- Computer Graphics (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The invention provides a VR video encryption playing method, a server, a user side and a system, wherein the method comprises the following steps: the server receives a VR video playing request sent by a user side, and judges whether the user side has VR video playing authority or not according to a preset identity verification rule; if the user side is determined to have the VR video playing permission, sending a target VR video index file to the user side so that the user side can generate a VR video downloading request based on the target VR video index file; receiving a VR video downloading request sent by a user side, and sending a target VR video file to the user side so that the user side can decrypt and play the target VR video; wherein, the target VR video file includes: and the plurality of encrypted target VR video slice files and the target VR video index file. The occurrence of picture blocking phenomenon during VR video playing can be effectively reduced, the playing smoothness is improved, and the safety of video data is improved.
Description
Technical Field
The invention relates to the technical field of streaming media data processing, in particular to a VR video encryption playing method and system.
Background
The rapid development of computer technology, the variety of multimedia is more and more abundant, artistic exhibition forms and more expression effects, and VR (Virtual Reality, VR for short) hardware equipment and 360-degree VR panoramic video technology are produced at the same time, so that the comprehensive and immersive experience feeling is brought to consumers.
Unlike ordinary 2D video, which is spread out on a plane, VR panoramic video is spread out on a sphere. The VR panoramic video is shot in 360 degrees in an all-around mode through a professional panoramic camera, and is synthesized into a three-dimensional video format through technology and coding processing, and each frame of the three-dimensional video format comprises a multi-angle picture.
In the prior art, when a user side plays a VR panoramic video, the processing computation amount of each frame of picture is very large, a video stream file needs to be continuously acquired from a VR streaming media server to be analyzed and rendered into a spherical picture, and meanwhile, the VR video has a large volume and a large code rate, and the bandwidth occupation amount required by video stream transmission is large. A user can be blocked and unsmooth when watching a VR panoramic video with a large volume, and easily feels dizzy. Meanwhile, video streams output by the VR streaming media server are generally not subjected to transmission encryption and file encryption, so that the risk of stealing the video streams and the video files is caused.
Therefore, how to provide a VR video encryption playing method, server, user side and system, which reduce the occurrence of picture pause phenomenon during VR video playing, improve playing fluency, and improve video data security becomes a problem to be solved urgently.
Disclosure of Invention
Aiming at the defects in the prior art, the embodiment of the invention provides a VR video encryption playing method, a server, a user side and a system.
The invention provides a VR video encryption playing method, which comprises the following steps:
the server receives a VR video playing request sent by a user side, and judges whether the user side has VR video playing authority or not according to a preset identity verification rule;
if the user side is determined to have the VR video playing permission, sending a target VR video index file to the user side so that the user side can generate a VR video downloading request based on the target VR video index file;
receiving a VR video downloading request sent by a user side, and sending a target VR video file to the user side so that the user side can decrypt and play the target VR video; wherein, the target VR video file includes: and the plurality of encrypted target VR video slice files and the target VR video index file.
According to the VR video encryption playing method provided by the invention, before the steps that the server receives a video playing request sent by the user side and judges whether the user side has video playing authority or not according to the preset identity verification rule, the method further comprises the following steps:
slicing the target VR video according to a preset slicing rule to obtain a plurality of target VR video slice files and target VR video index files;
and encrypting the target VR slice files according to a preset encryption rule to obtain a plurality of encrypted target VR video slice files.
According to the VR video encryption playing method provided by the invention, a target VR video is sliced according to a preset slicing rule to obtain a plurality of target VR video slice files and a target VR video index file, and the method specifically comprises the following steps:
and according to a preset slicing rule, slicing the target VR video for a preset duration according to a time sequence to obtain a plurality of target VR video slice files.
According to the VR video encryption playing method provided by the invention, the target VR slice file is encrypted according to the preset encryption rule to obtain a plurality of encrypted target VR video slice files, and the method specifically comprises the following steps:
and encrypting the target VR slice files by using a symmetric encryption algorithm according to a preset encryption rule to obtain a plurality of encrypted target VR video slice files.
The invention also provides a VR video encryption playing method, which comprises the following steps:
the method comprises the steps that a user side sends a VR video playing request to a server, so that the server judges whether the user side has VR video playing authority or not according to a preset identity verification rule;
receiving a target VR video index file sent by a server, and generating a VR video downloading request based on the target VR video index file;
sending a VR video downloading request to a server, so that the server sends a target VR video file to a user side after receiving the VR video downloading request; wherein, the target VR video file includes: a plurality of encrypted target VR video slice files and target VR video index files;
and receiving the target VR video file, and decrypting and playing the target VR video based on a preset decryption rule.
The present invention also provides a server comprising: the system comprises an identity authentication unit, a first sending unit and a second sending unit;
the identity authentication unit is used for receiving a VR video playing request sent by a user side and judging whether the user side has VR video playing authority or not according to a preset identity authentication rule;
the first sending unit is used for sending the target VR video index file to the user side after the user side is determined to have the VR video playing authority, so that the user side generates a VR video downloading request based on the target VR video index file;
the second sending unit is used for receiving a VR video downloading request sent by the user side and sending a target VR video file to the user side so that the user side can decrypt and play the target VR video; wherein, the target VR video file includes: and the plurality of encrypted target VR video slice files and the target VR video index file.
The present invention also provides a user terminal, including: the device comprises a playing request unit, a first receiving unit, a downloading request unit and a video playing unit;
the playing request unit is used for sending a VR video playing request to the server so that the server can judge whether the user side has VR video playing authority or not according to a preset identity verification rule;
the first receiving unit is used for receiving a target VR video index file sent by the server and generating a VR video downloading request based on the target VR video index file;
the downloading request unit is used for sending a VR video downloading request to the server so that the server sends a target VR video file to the user side after receiving the VR video downloading request; wherein, the target VR video file includes: a plurality of encrypted target VR video slice files and target VR video index files;
and the video playing unit is used for receiving the target VR video file, decrypting and playing the target VR video based on a preset decryption rule.
The invention also provides a VR video encryption playing system, which comprises: a server and a user side;
the server can execute the VR video encryption playing method on the server side;
the user terminal can execute the VR video encryption playing method on the user terminal side as described above.
The invention also provides an electronic device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the program to realize the steps of any one of the VR video encryption playing methods.
The present invention also provides a non-transitory computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements the steps of any of the VR video encryption playback methods described above.
The VR video encryption playing method, the server, the user side and the system provided by the invention are used for slicing the VR video and encrypting the sliced VR video to obtain the encrypted VR video slice file and the corresponding VR video index file. And only under the condition that the user side passes the authentication, sending the VR video index file to the user side, downloading a target VR video file in a server by the user side through the VR video index file, and decrypting and playing the VR video through a decryption method corresponding to encryption processing. Meanwhile, the video slicing technology and the encryption algorithm are applied, the smoothness of VR video playing can be guaranteed, the VR video is played at a high speed, the VR video is only stored in the server, the user side downloads the VR video and plays the VR video, and the safety of VR video file transmission and playing is guaranteed.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the drawings needed for the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a flowchart of a VR video encryption playing method provided by the present invention;
fig. 2 is a second flowchart of the VR video encryption playing method provided by the present invention;
fig. 3 is a schematic flow chart of a VR video encryption playing method provided by the present invention;
FIG. 4 is a schematic diagram of a server according to the present invention;
fig. 5 is a schematic diagram of a client structure according to the present invention;
fig. 6 is a schematic structural diagram of a VR video encryption playing system provided by the present invention;
fig. 7 is a schematic physical structure diagram of an electronic device provided in the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
At present, VR panoramic video generally adopts an ERP (equal distance cylindrical projection, abbreviated as ERP) projection mode to project each frame of picture as a rectangular picture.
The VR panoramic video playing process specifically comprises the following steps: the VR streaming media server sends the VR panoramic video to a user side (VR helmet and glasses, wherein sensors, processors, storage, screens and the like are integrated in the VR panoramic video, and the VR panoramic video is connected with the VR server in a wired or wireless network streaming mode to realize data transmission); the user side downloads the video file through a corresponding streaming media protocol; the method comprises the steps that a user side analyzes and decodes a video file through an internal program and a processor, and after each frame of rectangular video picture is obtained, the corresponding rectangular picture is rendered into a spherical picture according to an ERP mode; then determining an area which can be watched by a user in the spherical picture according to the watching direction of the eyes of the user, and acquiring the picture of the area from the spherical picture; and finally, performing barrel-shaped anti-distortion (a distortion phenomenon which does not influence imaging definition) processing on the acquired picture, and rendering the processed picture to a user side display screen for picture display.
The invention mainly aims to solve the technical problems that in the prior art, pictures are blocked and unsmooth in the playing process of a large-size VR panoramic video, discomfort experience of dizziness is easily caused, and safety in the transmission process of the VR panoramic video is high.
The following description will be made for the principles of the related art used in the embodiments of the present invention:
the traditional video on demand can be played only by loading the whole video source file, so that the user experience is influenced and the video resource is leaked under the condition that the network access rate of a common user is low. The streaming transmission technology is that a video source file is divided into video compression packets through special processing, a streaming media server continuously transmits data to a user client in real time, the client uses a corresponding player to gradually unpack, decode and render the file packets, and finally outputs and plays the file packets, and the subsequent compression packets are continuously downloaded in real time, so that the effect of continuously playing videos is achieved.
The HLS (HTTP Live Streaming, HTTP-based adaptive bitrate Streaming media transport Protocol, HLS for short) is a mature and excellent video Streaming network transport Protocol developed by Apple (Apple) based on HTTP (hypertext Transfer Protocol, HTTP for short). The iOS and the android system also support the HLS protocol originally, and dynamic self-adaptive code rate playing can be realized at various user terminals without secondary development.
In order to realize the HLS streaming media protocol, the invention adopts FFmpeg (fast forwarded Mpeg) technology to split a video original file into a plurality of small slice files (ts files), and simultaneously generates an index file (. m3u 8), wherein the index file is similar to a dictionary directory and is stored in the related information of the video related slice files.
Google VR SDK For Android is a complete set of VR video viewing underlying software development kit released by Google corporation, wherein two support modes are determined with respect to video playing: video playing of the local video stream and video playing based on the HLS streaming media protocol. Based on the kit, an HLS streaming media panoramic player can be developed.
Video stream playing address and video file security: generally, a video stream playing address (URL, Uniform Resource Locator) is subjected to anti-theft processing, and a common method is a timestamp anti-theft chain; in the HLS streaming media protocol, a video file needs to be downloaded progressively at a client, and then the video file is analyzed, decoded and rendered to achieve a playing effect, so that a certain file leakage risk exists in the process.
The invention uses the symmetric encryption algorithm to encrypt the video file first, and mixes the decryption algorithm in the video player program, so that the video can be played only through the appointed player, and the video security is further ensured.
Fig. 1 is a flowchart of a VR video encryption playing method provided by the present invention, and as shown in fig. 1, the present invention provides a VR video encryption playing method, which includes:
step S11, the server receives a VR video playing request sent by the user side, and judges whether the user side has VR video playing authority or not according to a preset identity verification rule;
step S12, if the user side is determined to have the VR video playing permission, a target VR video index file is sent to the user side, so that the user side generates a VR video downloading request based on the target VR video index file;
step S13, receiving a VR video downloading request sent by a user side, and sending a target VR video file to the user side for the user side to decrypt and play the target VR video; wherein, the target VR video file includes: and the plurality of encrypted target VR video slice files and the target VR video index file.
Specifically, fig. 3 is a schematic flow chart of a VR video encryption playing method provided by the present invention, as shown in fig. 3, a main body related to the embodiment of the present invention includes a server and a user side. The functions of the server can be divided into a file storage service, a video processing service and a streaming service. The file storage service is used for storing the manufactured VR panoramic video, the video processing service is used for slicing and encrypting the VR panoramic video, and the streaming media service is used for authenticating and carrying out identity verification on the user side.
It can be understood that, in the practical application process of the present invention, the type of the server and the specific type of the user end can be adjusted according to the practical situation, which is not limited in the present invention.
The VR video playing method provided by the present invention is explained from the perspective of a complete scheme implemented by the cooperation of a server and a user. The server executes the following specific steps: the present invention is described by taking the steps of the server-side method as an example.
When the user terminal needs to play the video, the user terminal needs to request the server to download the VR video, and sends a VR video playing request corresponding to the target video to the server.
It can be understood that, in order to prevent an unauthorized user from connecting to the streaming media server and falsifying the request to obtain the video stream playing address to play the video, the whole playing process needs to be safely controlled. Therefore, the VR video playing request sent by the user terminal needs to include information that can perform user terminal identity authentication, and similarly, in order to accurately enable the server to determine the VR video that needs to be transmitted, the VR video playing request also needs to include related information of the target VR video.
In step S11, after receiving the VR video playing request sent by the user terminal, the server determines whether the user terminal has VR video playing permission according to a preset authentication rule.
It can be understood that each user side can be designed to distribute different user credentials (key) and keys (secret) of the service request, each user side encrypts information such as the key, the secret, expiration time and the like by adopting an MD5 algorithm to obtain a signature (sign), the signature and the information are added into a video request address to be sent by the streaming media server side, the server checks the time and the signature of the client side request, and the VR video file delivery address is returned after the check is passed. The HLS streaming media transmission protocol is generated based on an HTTP protocol, and the streaming media service is used as a relay service communicated with a user side and a file storage server and has the functions of requesting playing authentication, returning an m3u8 down-sent address (a target VR video index file) and the like.
It should be noted that the preset identity verification rule is only used as a specific example to describe the authentication method of the present invention, and in the practical application process of the present invention, other authentication rules may also be used, which is not limited by the present invention.
In addition, the specific information type and storage transmission mode included in the VR video playing request can be adjusted according to actual requirements, which is not limited in the present invention.
VR video is stored with the form of target VR video file in the server, and target VR video file includes: a number of encrypted target VR video slice files (ts files) and target VR video index files (m 3u 8).
In step S12, if the server successfully authenticates, which indicates that the user terminal can be determined to have the VR video playing permission, the target VR video index file corresponding to the VR video requested by the user terminal is found and sent to the user terminal.
And after receiving the target VR video index file, the user side generates a VR video downloading request. It is understood that, the VR video index file (m 3u 8) is similar to the dictionary directory, and stores the related information of the target video associated slice file, and the specific content and expression form of the VR video download request can be set according to the actual situation, which is not limited by the present invention.
In step S13, after receiving the VR video download request sent by the user, the server sends the target VR video file to the user.
And after receiving the target VR video file sent by the server, the user side decrypts the target VR video file and plays the target VR video.
It can be understood that the method for decrypting the target VR video file by the user end and the method for encrypting the target VR video file by the server are matched with each other, and the specific encryption and decryption method can be adjusted according to actual requirements, which is not limited in the present invention.
The VR video encryption playing method provided by the invention is used for slicing and encrypting the VR video to obtain an encrypted VR video slice file and a corresponding VR video index file. And only under the condition that the identity of the user side passes verification, sending the VR video index file to the user side, downloading a target VR video file in a server by the user side through the VR video index file, and decrypting and playing the VR video through a decryption method corresponding to encryption processing. Meanwhile, the video slicing technology and the encryption algorithm are applied, the smoothness of VR video playing can be guaranteed, the VR video is played at a high speed, the VR video is only stored in the server, the user side downloads the VR video and plays the VR video, and the safety of VR video file transmission and playing is guaranteed.
Optionally, before the step of receiving, by the server, the video playing request sent by the user side and determining whether the user side has the video playing right according to the preset authentication rule, the VR video encryption playing method provided by the present invention further includes:
slicing the target VR video according to a preset slicing rule to obtain a plurality of target VR video slice files and a target VR video index file;
and encrypting the target VR slice files according to a preset encryption rule to obtain a plurality of encrypted target VR video slice files.
Specifically, as shown in fig. 3, after VR panoramic video is synthesized by professional panoramic camera shooting and video coding technology, VR panoramic video source files are uploaded to file storage service, and VR panoramic video is sliced by video processing service of a server. Therefore, before the step of receiving a video playing request sent by a user side at a server and judging whether the user side has a video playing right according to a preset identity verification rule, the method further comprises the following steps:
and slicing the target VR video through an FFmpeg multimedia processing technology according to a preset slicing rule to obtain a plurality of target VR video slice files (ts files) and target VR video index (m 3u 8) files.
It is understood that the slicing rule preset in the present invention may be to slice VR video by 10 seconds (without limitation) for a time period in a timeline order to generate a plurality of slice files and an index file. The VR panoramic video can also be decoded, the decoded video data is divided according to the view angle, and the video data is sliced according to the view angle. The slicing rule is described as a specific example, and other slicing rules may be used adaptively in the practical application of the present invention, and the present invention is not limited to this.
And encrypting the target VR slice file according to a preset encryption rule to obtain a plurality of encrypted target VR video slice files (ts files).
And uploading the encrypted target VR video slice file (ts file) and the target VR video index (m 3u 8) file to a file storage service.
The VR video encryption playing method provided by the invention uses FFmpeg technology to split a video file into slice files and encrypts the slice files. And allowing the user terminal to download the video file only under the condition that the user terminal passes the authentication. With the sliced form of video, can guarantee to be based on VR video streaming media server continuously outputs the panoramic video stream, improve the smoothness nature of VR video broadcast, realize the effect of the high-speed broadcast of VR video. And VR video only stores in the server, and the user side downloads the broadcast and needs to decrypt the slice file, guarantees VR video file transmission and broadcast security.
Optionally, according to the VR video encryption playing method provided by the present invention, the target VR video is sliced according to a preset slicing rule to obtain a plurality of target VR video slice files and a target VR video index file, which specifically includes:
and according to a preset slicing rule, slicing the target VR video for a preset duration according to a time sequence to obtain a plurality of target VR video slice files.
Specifically, according to predetermineeing the section rule, slice target VR video, obtain a plurality of target VR video slice files and target VR video index file, specifically include:
according to a preset slicing rule, slicing the target VR video for a preset duration according to a time sequence, for example: a 60 second video file is sliced in 10 second slices for a total of 6 slice files each 10 seconds long. The above examples are merely illustrative of the present invention, and in the practical application process of the present invention, the specific slicing rule can be adjusted according to the practical situation, which is not limited by the present invention.
It will be appreciated that, in general, each target VR video slice file should be equal in duration after slicing. However, since the VR video file may have a time length that is not an integral multiple of the preset time length, there may be a case where the time lengths of the target VR video slice files are inconsistent.
The VR video encryption playing method provided by the invention uses FFmpeg technology to split a video file into slice files and encrypts the slice files. And allowing the user terminal to download the video file only under the condition that the user terminal passes the authentication. With the sliced form of video, can guarantee to be based on VR video streaming media server continuously outputs the panoramic video stream, improve the smoothness nature of VR video broadcast, realize the effect of the high-speed broadcast of VR video. And VR video only stores in the server, and the user side downloads the broadcast and needs to decrypt the slice file, guarantees VR video file transmission and broadcast security.
Optionally, according to the VR video encryption playing method provided by the present invention, the target VR slice file is encrypted according to a preset encryption rule to obtain a plurality of encrypted target VR video slice files, which specifically includes:
and encrypting the target VR slice files by using a symmetric encryption algorithm according to a preset encryption rule to obtain a plurality of encrypted target VR video slice files.
Specifically, according to predetermineeing the encryption rule, encrypt target VR slicing file, obtain a plurality of target VR video slicing files after encrypting, specifically include:
and encrypting the target VR slice file by using a symmetric Encryption algorithm such as Advanced Encryption Standard (AES) according to a preset Encryption rule to obtain a plurality of encrypted target VR video slice files.
It should be noted that, in the practical application process of the present invention, the specific algorithm of the preset encryption rule may be adjusted according to the practical requirement, which is not limited in the present invention.
In addition, since the encryption step is in the server and the decryption step is in the user side, the preset encryption rule and the preset decryption rule should be matched with each other in order to ensure that the scheme can be implemented.
The VR video encryption playing method provided by the invention has the advantages that the FFmpeg technology is used for splitting the video file into the slice file, and the symmetric encryption algorithm AES is used for encrypting the slice file. And allowing the user terminal to download the video file only under the condition that the user terminal passes the authentication. With the sliced form of video, can guarantee to be based on VR video streaming media server continuously outputs the panoramic video stream, improve the smoothness nature of VR video broadcast, realize the effect of the high-speed broadcast of VR video. And VR video only stores in the server, and the user side downloads the broadcast and needs to decrypt the slice file, guarantees VR video file transmission and broadcast security.
Fig. 2 is a second flowchart of the VR video encryption playing method provided by the present invention, and as shown in fig. 2, the present invention further provides a VR video encryption playing method, which includes:
step S21, the user side sends a VR video playing request to the server, so that the server judges whether the user side has VR video playing authority or not according to a preset identity verification rule;
step S22, receiving a target VR video index file sent by the server, and generating a VR video downloading request based on the target VR video index file;
step S23, sending a VR video downloading request to a server, so that the server sends a target VR video file to a user side after receiving the VR video downloading request; wherein, the target VR video file includes: a plurality of encrypted target VR video slice files and target VR video index files;
and step S24, receiving the target VR video file, and decrypting and playing the target VR video based on a preset decryption rule.
Specifically, fig. 3 is a schematic flow chart of a VR video encryption playing method provided by the present invention, as shown in fig. 3, a main body related to the embodiment of the present invention includes a server and a user side. The functions of the server can be divided into a file storage service, a video processing service and a streaming service. The file storage service is used for storing the manufactured VR panoramic video, the video processing service is used for slicing and encrypting the VR panoramic video, and the streaming media service is used for authenticating and carrying out identity verification on the user side.
It can be understood that, in the practical application process of the present invention, the type of the server and the specific type of the user end can be adjusted according to the practical situation, which is not limited in the present invention.
The VR video playing method provided by the present invention is explained from the perspective of a complete scheme implemented by the cooperation of a server and a user. The specific steps executed by the user side are as follows: the present invention will be described by taking the steps of the server-side method as an example.
When the user terminal needs to play the video, in step S21, the user terminal sends a VR video playing request corresponding to the target video to the server.
It can be understood that, in order to prevent an unauthorized user from connecting to the streaming media server and falsifying the request to obtain the video stream playing address to play the video, the whole playing process needs to be safely controlled. Therefore, the VR video playing request sent by the user terminal needs to include information that can perform user terminal identity authentication, and similarly, in order to accurately enable the server to determine the VR video that needs to be transmitted, the VR video playing request also needs to include related information of the target VR video.
And after receiving the VR video playing request sent by the user side, the server judges whether the user side has VR video playing permission according to a preset identity verification rule. And if the user is determined to have the VR video playing authority, sending a target VR video index file (m 3u 8) to the user side.
It can be understood that each user terminal can be designed to distribute different user credentials (key) and keys (secret) of the service request, each user terminal encrypts information such as the key, the secret, the expiration time and the like by using an MD5 algorithm to obtain a signature (sign), the signature (sign) is added to the streaming media service terminal in the video request address to send the information, and the server checks the time and the signature of the client terminal request to obtain a check result and then returns the VR video file issuing address. The HLS streaming media transmission protocol is generated based on an HTTP protocol, and the streaming media service is used as a relay service communicated with a user side and a file storage server and has the functions of requesting playing authentication, returning an m3u8 down-sent address (a target VR video index file) and the like.
It should be noted that the preset authentication rule is only used as a specific example to describe the authentication method of the present invention, and in the practical application process of the present invention, other authentication rules may also be used, which is not limited by the present invention.
In addition, the specific information type and storage transmission mode included in the VR video playing request can be adjusted according to actual requirements, which is not limited in the present invention.
VR video is stored with the form of target VR video file in the server, and target VR video file includes: a number of encrypted target VR video slice files (ts files) and target VR video index files (m 3u 8).
In step S22, the user side receives the target VR video index file sent by the server, and generates a VR video download request based on the target VR video index file.
It is understood that, the VR video index file (m 3u 8) is similar to the dictionary directory, and stores the related information of the target video associated slice file, and the specific content and expression form of the VR video download request can be set according to the actual situation, which is not limited by the present invention.
In step S23, a VR video download request is sent to the server.
And after receiving the VR video downloading request sent by the user side, the server sends a target VR video file to the user side. The target VR video file includes: a plurality of encrypted target VR video slice files and target VR video index files;
in step S24, the target VR video file is received, and the target VR video is decrypted and played based on a preset decryption rule.
It can be understood that the method for decrypting the target VR video file by the user side and the method for encrypting the target VR video file by the server are matched with each other, and the specific encryption and decryption method can be adjusted according to actual requirements, which is not limited in the present invention.
The user side comprises a panoramic video player mixed with a decryption algorithm: the Google VR SDK For Android underlying toolkit is developed and compiled into a panoramic video player, a decryption algorithm Android library corresponding to a video slice encryption algorithm AES is compiled, and the decryption algorithm Android library is introduced into the panoramic video player. When the panoramic video player executes playing, the slice file can be decrypted in real time through the built-in video slice decryption algorithm, the playing effect of the VR panoramic playing process is achieved, meanwhile, the decrypted slice file cannot be stored in the storage of the user side, and the safety of the video file is protected.
The playing control program is combined with the panoramic player to realize the playing of the streaming media: the method comprises the steps that a video playing control program is built in a user side, after a video scene playing interface is entered, a panoramic player is called, meanwhile, video stream playing is requested from a remote streaming media service, after authentication is approved, an m3u8 file is pulled, and then video playing is executed according to program logic. The user terminal is internally provided with a video playing control program, so that the control functions of pausing, continuing playing, volume adjusting, continuously playing the next video and the like are realized.
The VR video encryption playing method provided by the invention has the advantages that a video file is split into slice files by using an FFmpeg technology, and the slice files are encrypted by using a symmetric encryption algorithm AES; developing a panoramic video player under an Android ecological environment by using a Google VR SDK For Android underlying toolkit, and simultaneously mixing a symmetric decryption algorithm AES into a player program; and continuously outputting the panoramic video stream based on the VR video streaming server. The software technologies, hardware equipment (VR server and VR display terminal) and the network are connected in series to achieve the effects of VR panoramic video encryption and decryption and high-speed playing. The fast flow playing of the VR panoramic video can be achieved, and the effects of video encryption and playing safety are achieved.
Fig. 4 is a schematic structural diagram of a server provided by the present invention, and as shown in fig. 4, the present invention further provides a server, including: an authentication unit 410, a first transmission unit 420, and a second transmission unit 430;
the identity authentication unit 410 is configured to receive a VR video playing request sent by a user side, and determine whether the user side has a VR video playing right according to a preset identity authentication rule;
a first sending unit 420, configured to send the target VR video index file to the user terminal after determining that the user terminal has the VR video playing permission, so that the user terminal generates a VR video downloading request based on the target VR video index file;
a second sending unit 430, configured to receive a VR video downloading request sent by a user, and send a target VR video file to the user, so that the user can decrypt and play the target VR video; wherein, the target VR video file includes: and the plurality of encrypted target VR video slice files and the target VR video index file.
Specifically, the VR video playing method provided by the present invention is explained from the perspective of a complete scheme implemented by the cooperation of a server and a client. The server executes the following specific steps: the present invention will be described by taking the steps of the server-side method as an example.
When the user terminal needs to play the video, the user terminal needs to request the server to download the VR video, and sends a VR video playing request corresponding to the target video to the server.
It can be understood that, in order to prevent an unauthorized user from connecting to the streaming media server and falsifying the request to obtain the video stream playing address to play the video, the whole playing process needs to be safely controlled. Therefore, the VR video playing request sent by the user terminal needs to include information that can be used for user terminal identity authentication, and similarly, in order to accurately enable the server to determine the VR video that needs to be transmitted, the VR video playing request also needs to include related information of the target VR video.
The identity authentication unit 410 is configured to, after receiving a VR video playing request sent by a user, determine whether the user has VR video playing permission according to a preset identity authentication rule.
It can be understood that each user terminal can be designed to distribute different user credentials (key) and keys (secret) of the service request, each user terminal encrypts information such as the key, the secret, the expiration time and the like by using an MD5 algorithm to obtain a signature (sign), the signature (sign) is added to the streaming media service terminal in the video request address to send the information, and the server checks the time and the signature of the client terminal request to obtain a check result and then returns the VR video file issuing address. The HLS streaming media transmission protocol is generated based on an HTTP protocol, and the streaming media service is used as a relay service communicated with a user side and a file storage server and has the functions of requesting playing authentication, returning an m3u8 down-sent address (a target VR video index file) and the like.
It should be noted that the preset authentication rule is only used as a specific example to describe the authentication method of the present invention, and in the practical application process of the present invention, other authentication rules may also be used, which is not limited by the present invention.
In addition, the specific information type and storage transmission mode included in the VR video playing request can be adjusted according to actual requirements, which is not limited in the present invention.
VR video is stored with the form of target VR video file in the server, and target VR video file includes: a number of encrypted target VR video slice files (ts files) and target VR video index files (m 3u 8).
If the server authenticates successfully, it indicates that the user side can be determined to have the VR video playing permission, and the first sending unit 420 is configured to find and send the target VR video index file corresponding to the VR video requested by the user side to the user side.
And after receiving the target VR video index file, the user side generates a VR video downloading request. It is understood that, the VR video index file (m 3u 8) is similar to the dictionary directory, and stores the related information of the target video associated slice file, and the specific content and expression form of the VR video download request can be set according to the actual situation, which is not limited by the present invention.
The second sending unit 430 is configured to send the target VR video file to the user side after receiving the VR video downloading request sent by the user side.
And after the user side receives the target VR video file sent by the server, the target VR video file is decrypted, and the target VR video is played.
It can be understood that the method for decrypting the target VR video file by the user side and the method for encrypting the target VR video file by the server are matched with each other, and the specific encryption and decryption method can be adjusted according to actual requirements, which is not limited in the present invention.
It should be noted that, the server provided by the present invention is configured to execute the VR video encryption playing method on the server side, and a specific implementation manner thereof is consistent with the method implementation manner, and details are not described herein again.
The server side provided by the invention is used for slicing the VR video and encrypting the sliced VR video to obtain an encrypted VR video slice file and a corresponding VR video index file. And only under the condition that the user side passes the authentication, sending the VR video index file to the user side, downloading a target VR video file in a server by the user side through the VR video index file, and decrypting and playing the VR video through a decryption method corresponding to encryption processing. Meanwhile, by applying a video slicing technology and an encryption algorithm, the smoothness of VR video playing can be guaranteed, the VR video can be played at a high speed, the VR video is only stored in a server, and a user side downloads the VR video to be played, so that the safety of VR video file transmission and playing is guaranteed.
Fig. 5 is a schematic diagram of a ue structure provided in the present invention, and as shown in fig. 5, the present invention further provides a ue, including: a play request unit 510, a first receiving unit 520, a download request unit 530, and a video play unit 540;
a playing request unit 510, configured to send a VR video playing request to a server, so that the server determines whether the user side has a VR video playing right according to a preset identity verification rule;
a first receiving unit 520, configured to receive a target VR video index file sent by a server, and generate a VR video download request based on the target VR video index file;
a download request unit 530, configured to send a VR video download request to a server, so that the server sends a target VR video file to a user terminal after receiving the VR video download request; wherein, the target VR video file includes: a plurality of encrypted target VR video slice files and target VR video index files;
and the video playing unit 540 is configured to receive the target VR video file, decrypt and play the target VR video based on a preset decryption rule.
Fig. 3 is a schematic flow chart of a VR video encryption playing method provided by the present invention, as shown in fig. 3, a main body related to the embodiment of the present invention includes a server and a user side. The functions of the server can be divided into a file storage service, a video processing service and a streaming service. The file storage service is used for storing the manufactured VR panoramic video, the video processing service is used for slicing and encrypting the VR panoramic video, and the streaming media service is used for authenticating and carrying out identity verification on the user side.
It can be understood that, in the practical application process of the present invention, the type of the server and the specific type of the user end can be adjusted according to the practical situation, which is not limited in the present invention.
The VR video playing method provided by the present invention is explained from the perspective of a complete scheme implemented by the cooperation of a server and a user. The specific steps executed by the user side are as follows: the present invention will be described by taking the steps of the server-side method as an example.
When the user needs to play the video, the play request unit 510 is configured to send a VR video play request corresponding to the target video to the server.
It can be understood that, in order to prevent an unauthorized user from connecting to the streaming media server and falsifying the request to obtain the video stream playing address to play the video, the whole playing process needs to be safely controlled. Therefore, the VR video playing request sent by the user terminal needs to include information that can perform user terminal identity authentication, and similarly, in order to accurately enable the server to determine the VR video that needs to be transmitted, the VR video playing request also needs to include related information of the target VR video.
And after receiving the VR video playing request sent by the user side, the server judges whether the user side has VR video playing permission according to a preset identity verification rule. And if the user is determined to have the VR video playing authority, sending a target VR video index file (m 3u 8) to the user side.
It can be understood that each user terminal can be designed to distribute different user credentials (key) and keys (secret) of the service request, each user terminal encrypts information such as the key, the secret, the expiration time and the like by using an MD5 algorithm to obtain a signature (sign), the signature (sign) is added to the streaming media service terminal in the video request address to send the information, and the server checks the time and the signature of the client terminal request to obtain a check result and then returns the VR video file issuing address. The HLS streaming media transmission protocol is generated based on an HTTP protocol, and the streaming media service is used as a relay service communicated with a user side and a file storage server and has the functions of requesting playing authentication, returning an m3u8 down-sent address (a target VR video index file) and the like.
It should be noted that the preset authentication rule is only used as a specific example to describe the authentication method of the present invention, and in the practical application process of the present invention, other authentication rules may also be used, which is not limited by the present invention.
In addition, the specific information type and storage transmission mode included in the VR video playing request can be adjusted according to actual requirements, which is not limited in the present invention.
VR video is stored with the form of target VR video file in the server, and target VR video file includes: a number of encrypted target VR video slice files (ts files) and target VR video index files (m 3u 8).
The first receiving unit 520 is configured to receive a target VR video index file sent by a server, and generate a VR video download request based on the target VR video index file.
It is understood that, the VR video index file (m 3u 8) is similar to the dictionary directory, and stores the related information of the target video associated slice file, and the specific content and expression form of the VR video download request can be set according to the actual situation, which is not limited by the present invention.
A download requesting unit 530, configured to send a VR video download request to the server.
And after receiving the VR video downloading request sent by the user side, the server sends a target VR video file to the user side. The target VR video file includes: a plurality of encrypted target VR video slice files and target VR video index files;
and the video playing unit 540 is configured to receive the target VR video file, decrypt and play the target VR video based on a preset decryption rule.
It can be understood that the method for decrypting the target VR video file by the user side and the method for encrypting the target VR video file by the server are matched with each other, and the specific encryption and decryption method can be adjusted according to actual requirements, which is not limited in the present invention.
The user side comprises a panoramic video player mixed with a decryption algorithm: the Google VR SDK For Android underlying toolkit is developed and compiled into a panoramic video player, a decryption algorithm Android library corresponding to a video slice encryption algorithm AES is compiled, and the decryption algorithm Android library is introduced into the panoramic video player. When the panoramic video player executes playing, the slice file can be decrypted in real time through the built-in video slice decryption algorithm, the playing effect of the VR panoramic playing process is achieved, meanwhile, the decrypted slice file cannot be stored in the storage of the user side, and the safety of the video file is protected.
The playing control program is combined with the panoramic player to realize the playing of the streaming media: the method comprises the steps that a video playing control program is built in a user side, after a video scene playing interface is entered, a panoramic player is called, meanwhile, video stream playing is requested from a remote streaming media service, after authentication is approved, an m3u8 file is pulled, and then video playing is executed according to program logic. The user terminal is internally provided with a video playing control program, so that the control functions of pausing, continuing playing, volume adjusting, continuously playing the next video and the like are realized.
It should be noted that, the specific implementation of the user side for executing the VR video encryption playing method on the user side provided by the present invention is consistent with the method implementation, and is not described herein again.
The user side provided by the invention splits the video file into the slice file by using the FFmpeg technology, and encrypts the slice file by using a symmetric encryption algorithm AES; developing a panoramic video player under an Android ecological environment by using a Google VR SDK For Android bottom-layer toolkit, and simultaneously mixing a symmetric decryption algorithm AES into a player program; and continuously outputting the panoramic video stream by the video streaming media server based on the VR. The software technologies, hardware equipment (VR server and VR display terminal) and the network are connected in series to achieve the effects of VR panoramic video encryption and decryption and high-speed playing. The fast flow playing of the VR panoramic video can be achieved, and the effects of video encryption and playing safety are achieved.
Fig. 6 is a schematic structural diagram of a VR video encryption playing system provided by the present invention, and as shown in fig. 6, the present invention further provides a VR video encryption playing system, which includes: a server and a user side;
the server can execute the VR video encryption playing method on the server side;
the user terminal can execute the VR video encryption playing method on the user terminal side as described above.
Specifically, it should be noted that, the VR video encryption playing system provided by the present invention includes: server and user terminal. It should be noted that, in the practical application process of the present invention, the type of the server and the specific type of the user end can be adjusted according to the practical situation, which is not limited in the present invention.
In addition, in the VR video encryption playing system, the number of the user terminals is not limited.
The server can execute the VR video encryption playing method on the server side.
The user terminal can execute the VR video encryption playing method on the user terminal side as described above.
It should be noted that, the VR video encryption playing system provided by the present invention is used for executing the VR video encryption playing method, and the specific implementation manner thereof is consistent with the method implementation manner, and is not described herein again.
The VR video encryption playing system provided by the invention is used for slicing the VR video and encrypting the sliced VR video to obtain an encrypted VR video slice file and a corresponding VR video index file. And only under the condition that the user side passes the authentication, sending the VR video index file to the user side, downloading a target VR video file in a server by the user side through the VR video index file, and decrypting and playing the VR video through a decryption method corresponding to encryption processing. Meanwhile, the video slicing technology and the encryption algorithm are applied, the smoothness of VR video playing can be guaranteed, the VR video is played at a high speed, the VR video is only stored in the server, the user side downloads the VR video and plays the VR video, and the safety of VR video file transmission and playing is guaranteed.
Fig. 7 is a schematic physical structure diagram of an electronic device provided in the present invention, and as shown in fig. 7, the electronic device may include: a processor (processor)710, a communication interface (communications interface)720, a memory (memory)730, and a communication bus 740, wherein the processor 710, the communication interface 720, and the memory 730 communicate with each other via the communication bus 740. Processor 710 may invoke logic instructions in memory 730 to perform a VR video playback method comprising: the server receives a VR video playing request sent by a user side, and judges whether the user side has VR video playing authority or not according to a preset identity verification rule; if the user side is determined to have the VR video playing permission, sending a target VR video index file to the user side so that the user side can generate a VR video downloading request based on the target VR video index file; receiving a VR video downloading request sent by a user side, and sending a target VR video file to the user side so that the user side can decrypt and play the target VR video; wherein, the target VR video file includes: and the plurality of encrypted target VR video slice files and the target VR video index file.
In addition, the logic instructions in the memory 730 can be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
In another aspect, the present invention also provides a computer program product, the computer program product includes a computer program stored on a non-transitory computer-readable storage medium, the computer program includes program instructions, when the program instructions are executed by a computer, the computer can execute the VR video encryption playing method provided by the above methods, and the method includes: the server receives a VR video playing request sent by a user side, and judges whether the user side has VR video playing authority or not according to a preset identity verification rule; if the user side is determined to have the VR video playing permission, sending a target VR video index file to the user side so that the user side can generate a VR video downloading request based on the target VR video index file; receiving a VR video downloading request sent by a user side, and sending a target VR video file to the user side so that the user side can decrypt and play the target VR video; wherein, the target VR video file includes: and the plurality of encrypted target VR video slice files and the target VR video index file.
In yet another aspect, the present invention further provides a non-transitory computer-readable storage medium, on which a computer program is stored, the computer program being implemented by a processor to execute the VR video encryption playing method provided in the above aspects, the method including: the server receives a VR video playing request sent by a user side, and judges whether the user side has VR video playing authority or not according to a preset identity verification rule; if the user side is determined to have the VR video playing permission, sending a target VR video index file to the user side so that the user side can generate a VR video downloading request based on the target VR video index file; receiving a VR video downloading request sent by a user side, and sending a target VR video file to the user side so that the user side can decrypt and play the target VR video; wherein, the target VR video file includes: and the plurality of encrypted target VR video slice files and the target VR video index file.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods of the various embodiments or some parts of the embodiments.
Finally, it should be noted that: 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; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (10)
1. A VR video encryption playing method is characterized by comprising the following steps:
the server receives a VR video playing request sent by a user side, and judges whether the user side has VR video playing permission or not according to a preset identity verification rule;
if the user side is determined to have the VR video playing permission, sending a target VR video index file to the user side so that the user side can generate a VR video downloading request based on the target VR video index file;
receiving a VR video downloading request sent by a user side, and sending a target VR video file to the user side so that the user side can decrypt and play the target VR video; wherein the target VR video file includes: and the plurality of encrypted target VR video slice files and the target VR video index file.
2. The VR video encryption playing method of claim 1, wherein before the step of receiving, by the server, a video playing request sent by a user side and determining whether the user side has a video playing right according to a preset authentication rule, the method further comprises:
slicing the target VR video according to a preset slicing rule to obtain a plurality of target VR video slice files and a target VR video index file;
and encrypting the target VR slice files according to a preset encryption rule to obtain a plurality of encrypted target VR video slice files.
3. The VR video encryption playing method of claim 2, wherein the slicing the target VR video according to a preset slicing rule to obtain a plurality of target VR video slice files and a target VR video index file specifically includes:
and slicing the target VR video according to a preset slicing rule and a preset time length according to a time sequence to obtain a plurality of target VR video slicing files.
4. The VR video encryption playing method of claim 2, wherein encrypting the target VR slice file according to a preset encryption rule to obtain a plurality of encrypted target VR video slice files includes:
and encrypting the target VR slice files by using a symmetric encryption algorithm according to a preset encryption rule to obtain a plurality of encrypted target VR video slice files.
5. A VR video encryption playing method is characterized by comprising the following steps:
a user side sends a VR video playing request to a server, so that the server judges whether the user side has VR video playing authority or not according to a preset identity verification rule;
receiving a target VR video index file sent by a server, and generating a VR video downloading request based on the target VR video index file;
sending the VR video downloading request to the server, so that the server sends a target VR video file to the user side after receiving the VR video downloading request; wherein the target VR video file includes: a plurality of encrypted target VR video slice files and target VR video index files;
and receiving the target VR video file, and decrypting and playing the target VR video based on a preset decryption rule.
6. A server, comprising: the system comprises an identity authentication unit, a first sending unit and a second sending unit;
the identity authentication unit is used for receiving a VR video playing request sent by a user side and judging whether the user side has VR video playing permission or not according to a preset identity authentication rule;
the first sending unit is configured to send a target VR video index file to the user side after determining that the user side has a VR video playing permission, so that the user side generates a VR video downloading request based on the target VR video index file;
the second sending unit is configured to receive a VR video downloading request sent by a user side, and send a target VR video file to the user side, so that the user side can decrypt and play the target VR video; wherein the target VR video file includes: and the plurality of encrypted target VR video slice files and the target VR video index file.
7. A user terminal, comprising: the device comprises a playing request unit, a first receiving unit, a downloading request unit and a video playing unit;
the playing request unit is used for sending a VR video playing request to a server by a user side so that the server can judge whether the user side has VR video playing authority or not according to a preset identity verification rule;
the first receiving unit is used for receiving a target VR video index file sent by a server and generating a VR video downloading request based on the target VR video index file;
the download request unit is configured to send the VR video download request to the server, so that the server sends a target VR video file to the user side after receiving the VR video download request; wherein the target VR video file includes: a plurality of encrypted target VR video slice files and target VR video index files;
and the video playing unit is used for receiving the target VR video file, and decrypting and playing the target VR video based on a preset decryption rule.
8. A VR video encryption playing method system is characterized by comprising the following steps: a server and a user side;
the server being capable of performing the VR video encrypted playback method of any of claims 1-4;
the user end is capable of performing the VR video encryption playback method of claim 5.
9. An electronic device, comprising a memory and a processor, wherein the processor and the memory communicate with each other through a bus; the memory stores program instructions executable by the processor, the program instructions being invoked by the processor to perform the VR video encryption playback method of any of claims 1 to 5.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the VR video encrypted playback method as recited in any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210371729.4A CN114679608B (en) | 2022-04-11 | 2022-04-11 | VR video encryption playing method, server, user, system, electronic device and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210371729.4A CN114679608B (en) | 2022-04-11 | 2022-04-11 | VR video encryption playing method, server, user, system, electronic device and medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114679608A true CN114679608A (en) | 2022-06-28 |
CN114679608B CN114679608B (en) | 2023-08-25 |
Family
ID=82077220
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210371729.4A Active CN114679608B (en) | 2022-04-11 | 2022-04-11 | VR video encryption playing method, server, user, system, electronic device and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114679608B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114071111A (en) * | 2021-12-27 | 2022-02-18 | 北京百度网讯科技有限公司 | Video playing method and device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150286805A1 (en) * | 2012-12-12 | 2015-10-08 | Tencent Technology (Shenzhen) Company Ltd. | Method, system, server and terminal for implementing secure transmission of data |
CN106791934A (en) * | 2016-12-14 | 2017-05-31 | 暴风集团股份有限公司 | For the encryption player method and encryption system of VIP videos |
WO2017215514A1 (en) * | 2016-06-14 | 2017-12-21 | 深圳创维数字技术有限公司 | Audio/video encrypted playing method and system thereof |
CN107659829A (en) * | 2017-11-06 | 2018-02-02 | 网宿科技股份有限公司 | A kind of method and system of video-encryption |
CN111683281A (en) * | 2020-06-04 | 2020-09-18 | 腾讯科技(深圳)有限公司 | Video playing method and device, electronic equipment and storage medium |
CN112188303A (en) * | 2020-09-03 | 2021-01-05 | 北京火眼目测科技有限公司 | VR (virtual reality) streaming media playing method and device based on visual angle |
-
2022
- 2022-04-11 CN CN202210371729.4A patent/CN114679608B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150286805A1 (en) * | 2012-12-12 | 2015-10-08 | Tencent Technology (Shenzhen) Company Ltd. | Method, system, server and terminal for implementing secure transmission of data |
WO2017215514A1 (en) * | 2016-06-14 | 2017-12-21 | 深圳创维数字技术有限公司 | Audio/video encrypted playing method and system thereof |
CN106791934A (en) * | 2016-12-14 | 2017-05-31 | 暴风集团股份有限公司 | For the encryption player method and encryption system of VIP videos |
CN107659829A (en) * | 2017-11-06 | 2018-02-02 | 网宿科技股份有限公司 | A kind of method and system of video-encryption |
CN111683281A (en) * | 2020-06-04 | 2020-09-18 | 腾讯科技(深圳)有限公司 | Video playing method and device, electronic equipment and storage medium |
CN112188303A (en) * | 2020-09-03 | 2021-01-05 | 北京火眼目测科技有限公司 | VR (virtual reality) streaming media playing method and device based on visual angle |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114071111A (en) * | 2021-12-27 | 2022-02-18 | 北京百度网讯科技有限公司 | Video playing method and device |
Also Published As
Publication number | Publication date |
---|---|
CN114679608B (en) | 2023-08-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3239877B1 (en) | Streamlined digital rights management | |
US9813404B2 (en) | Content URL authentication for dash | |
CN105939484B (en) | A kind of the encryption playback method and its system of audio-video | |
CN106331751B (en) | A kind of online encrypted slice video broadcasting method based on iOS operating system | |
CA2865527C (en) | Systems, methods and apparatuses for the secure transmission of media content | |
US10055553B2 (en) | PC secure video path | |
JP7359781B2 (en) | Network live broadcasting methods and devices, terminals and servers | |
CN112822518A (en) | Video playing method, device, system, electronic equipment and storage medium | |
US20170171279A1 (en) | Method and terminal for online playing video stream | |
US20160063223A1 (en) | Distributing protected content | |
US20170171166A1 (en) | Anti-hotlinking method and electronic device | |
CN113259720B (en) | Video encryption method and system based on HLS protocol | |
US20150199498A1 (en) | Flexible and efficient signaling and carriage of authorization acquisition information for dynamic adaptive streaming | |
CN113411638A (en) | Video file playing processing method and device, electronic equipment and storage medium | |
KR20100008740A (en) | Apparatus and method for providing security service of user interface | |
CN103152321A (en) | Digital rights management of streaming contents and services | |
CN110798714A (en) | HLS-based local video playing system and playing method | |
CN114679608B (en) | VR video encryption playing method, server, user, system, electronic device and medium | |
US10331862B2 (en) | Viewport decryption | |
CN109348293A (en) | The end APP key based on HLS technology obscures incorrect order video encryption method | |
CN109429106A (en) | Program request movie theatre pro digital cinematographic projector broadcast control system | |
CN113055717A (en) | HLS streaming media DRM method | |
US20180270208A1 (en) | Image processing apparatus and image processing method | |
CN114157912B (en) | Cloud video playing method and application thereof in image projection screen | |
Solé Castellví | Common media application format. Implementation and analysis |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |