CN117714790A - Self-adaptive video transcoding method based on terminal equipment environment - Google Patents

Self-adaptive video transcoding method based on terminal equipment environment Download PDF

Info

Publication number
CN117714790A
CN117714790A CN202311709684.8A CN202311709684A CN117714790A CN 117714790 A CN117714790 A CN 117714790A CN 202311709684 A CN202311709684 A CN 202311709684A CN 117714790 A CN117714790 A CN 117714790A
Authority
CN
China
Prior art keywords
terminal equipment
video
judging
equipment
video content
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311709684.8A
Other languages
Chinese (zh)
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.)
Beijing Yaozhi Technology Co ltd
Original Assignee
Beijing Yaozhi Technology 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 Beijing Yaozhi Technology Co ltd filed Critical Beijing Yaozhi Technology Co ltd
Priority to CN202311709684.8A priority Critical patent/CN117714790A/en
Publication of CN117714790A publication Critical patent/CN117714790A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/44Processing 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/4402Processing 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 reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440218Processing 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 reformatting operations of video signals for household redistribution, storage or real-time display by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/40Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using video transcoding, i.e. partial or full decoding of a coded input stream followed by re-encoding of the decoded output stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/44Processing 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/44008Processing 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 operations for analysing video streams, e.g. detecting features or characteristics in the video stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/44Processing 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/4408Processing 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 encryption, e.g. re-encrypting a decrypted video stream for redistribution in a home network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/462Content or additional data management, e.g. creating a master electronic program guide from data received from the Internet and a Head-end, controlling the complexity of a video stream by scaling the resolution or bit-rate based on the client capabilities
    • H04N21/4621Controlling the complexity of the content stream or additional data, e.g. lowering the resolution or bit-rate of the video stream for a mobile client with a small screen

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention is applicable to the technical field of video transcoding, and provides a self-adaptive video transcoding method based on terminal equipment environment, which comprises the following steps: verifying the legitimacy of the video, and if the video is legal, preparing video transcoding; acquiring terminal equipment information, judging the type of the terminal equipment, and selecting different transcoding modes according to different types of the terminal equipment, wherein the transcoding modes refer to the conversion of an original video format file into another video format file through a compression technology; judging the network environment of the terminal equipment, and encrypting and protecting the video content; the video content is sent to the terminal equipment by selecting the image quality and the definition of the video content, so that the video content can normally work in a scene with high real-time requirements, complex network environment and equipment differences are dealt with, and the problem of blocking when watching videos is solved.

Description

Self-adaptive video transcoding method based on terminal equipment environment
Technical Field
The invention belongs to the technical field of video transcoding, and particularly relates to a self-adaptive video transcoding method based on terminal equipment environment.
Background
With the leap of information technology, the application of multimedia technology in networks has been unprecedented, and video communication technology, which is an important component of multimedia technology, has also been greatly developed and applied. Because different videos may employ different coding or compression standards and the specific application scenarios may also be different, video transcoding operations are often required when video files are shared, exchanged, or played between different devices.
However, the system cannot work normally in a scene with high real-time requirements, and cannot cope with complex network environments and equipment differences, so that the problem of blocking when watching videos is caused.
Disclosure of Invention
The embodiment of the invention aims to provide a self-adaptive video transcoding method based on terminal equipment environment, and aims to solve the problem in the third part of the background technology.
The embodiment of the invention is realized in such a way that the self-adaptive video transcoding method based on the terminal equipment environment comprises the following steps:
verifying the legitimacy of the video, and if the video is legal, preparing video transcoding;
acquiring terminal equipment information, judging the type of the terminal equipment, and selecting different transcoding modes according to different types of the terminal equipment, wherein the transcoding modes refer to the conversion of an original video format file into another video format file through a compression technology;
judging the network environment of the terminal equipment, and encrypting and protecting the video content;
and selecting the image quality and definition of the video content, and transmitting the video content to the terminal equipment.
Preferably, the step of obtaining terminal equipment information, determining a type of the terminal equipment, and selecting different transcoding modes according to different types of the terminal equipment, where the transcoding modes refer to a step of converting a file in an original video format into a file in another video format by a compression technology, specifically includes:
the method comprises the steps of sending request information to terminal equipment, receiving a permission instruction sent by the terminal equipment, and obtaining head information of the terminal equipment;
judging the identification information of the terminal equipment according to the head information of the terminal equipment, and judging the terminal equipment to be mobile equipment or PC equipment;
and selecting a corresponding coding mode according to the judged terminal equipment, wherein the coding modes adopt H.261, H.263 and H.264 modes.
Preferably, the step of determining the terminal device identification information according to the header information of the terminal device, and determining the terminal device as a mobile device or a PC device specifically includes:
acquiring a player, an operating system and position information of terminal equipment, wherein the equipment identification information comprises the player, the operating system and the position information, and pre-judging the terminal equipment;
the method comprises the steps of sending a pre-judging result to terminal equipment, and processing the pre-judging result through the terminal equipment, wherein the pre-judging result is that the terminal equipment is PC equipment or mobile equipment;
and receiving a processing result of the terminal equipment, and judging the terminal equipment to be mobile equipment or PC equipment.
Preferably, the step of selecting a corresponding coding mode according to the determined terminal device, where the coding mode adopts h.261, h.263 and h.264 modes specifically includes:
judging the coding format and the output target format of the input video content;
acquiring CPU utilization rate of terminal equipment, and selecting an encoder group and a decoder group according to the lowest CPU utilization rate;
the encoder and decoder are determined by selecting among the encoder set and the decoder set according to the encoding format of the input video content and the requirement of the output target format.
Preferably, the step of judging the network environment of the terminal device to encrypt and protect the video content specifically includes:
acquiring the network speed of the terminal equipment in real time, and setting three steps according to the network speed, wherein the steps are different interval sections of the network speed;
judging network fluctuation conditions of three steps, and setting the step with the smallest fluctuation as a transmission channel;
and encrypting the video content, sending verification information to the terminal equipment, and receiving feedback of the terminal equipment.
Preferably, the step of determining the network fluctuation situation of the three steps and setting the step with the smallest fluctuation as the transmission channel specifically includes:
setting a judging time period which is a set fixed time period, and acquiring the net speed of the ladder in the judging time period;
acquiring a minimum network speed of a step, wherein the minimum network speed is the lowest point of the network speed in a judging time period;
when the minimum net speed is greater than a preset threshold value, calculating the maximum difference value of the net speed, and judging whether the net speed can be used or not according to the maximum difference value and the preset value.
Preferably, the step of encrypting the video content, sending verification information to the terminal device, and receiving feedback from the terminal device specifically includes:
performing digital rights management operation on the video content to generate a key, wherein the key is used for unlocking the encrypted video;
encrypting a transmission channel of the video, and binding identification information of terminal equipment;
and sending the key to the terminal equipment, and receiving key information input by the terminal equipment.
Preferably, the step of selecting the image quality and definition of the video content and transmitting the video content to the terminal device specifically includes:
acquiring the size of the transcoded video content, and receiving an image quality and definition selection instruction sent by terminal equipment;
the video content is compressed and then uploaded to a storage server, and the storage server is used for storing the converted video content into a designated storage medium;
the video content in the storage medium is transmitted to the terminal device.
The adaptive video transcoding method based on the terminal equipment environment provided by the embodiment of the invention detects the legitimacy of the video content, needs to ensure that the video content meets data protection regulations, network security methods, personal information protection related laws and the like, judges the size of the video after legal, thereby being convenient for reminding a video viewer of the flow size required to be spent, selects different transcoding modes according to different types of terminal equipment, determines PC equipment or mobile equipment, generates different transcoding schemes, can select decoding equipment according to different software, reasonably selects a network, encrypts the video content, inputs keys by the terminal equipment, completes decoding of the video content, can normally work under a scene with higher real-time requirements (such as live broadcast), and solves the problem of blocking when watching the video.
Drawings
Fig. 1 is a flowchart of a method for adaptive video transcoding based on a terminal device environment according to an embodiment of the present invention;
fig. 2 is a flowchart of acquiring terminal device information, determining a type of a terminal device, and selecting different transcoding modes according to different types of terminal devices, where the transcoding modes refer to a process of converting a file in an original video format into a file in another video format through a compression technology;
fig. 3 is a flowchart of determining terminal device identification information according to header information of a terminal device, and determining that the terminal device is a mobile device or a PC device according to an embodiment of the present invention;
fig. 4 is a flowchart of selecting a corresponding coding mode according to a determined terminal device, where the coding mode adopts h.261, h.263 and h.264 modes;
fig. 5 is a flowchart for encrypting and protecting video content according to the network environment of the terminal device according to the embodiment of the present invention;
fig. 6 is a flowchart for determining network fluctuation conditions of three steps and setting a step with the smallest fluctuation as a transmission channel according to the embodiment of the present invention;
fig. 7 is a flowchart of encrypting video content, sending verification information to a terminal device, and receiving feedback from the terminal device according to an embodiment of the present invention;
fig. 8 is a flowchart of selecting image quality and definition of video content and transmitting the video content to the terminal device according to an embodiment of the present invention;
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Fig. 1 is a flowchart of a terminal device environment-based adaptive video transcoding method according to an embodiment of the present invention, where the method includes:
s100, verifying the legitimacy of the video, and if the video is legal, preparing video transcoding.
In the step, the validity of the video is checked, a compliant data processing flow and a legal user permission mechanism are established, so that the video content can conform to related laws and standards such as data protection laws, network security laws, personal information protection related laws and the like in the transcoding and transmission process, whether the video content can conform to the existing laws and regulations is detected, and the video content conforms to the existing laws and regulations, is legal and does not conform to the existing laws and regulations, and is illegal;
if the video content is legal, displaying the size of the video content, sending the video content to the terminal equipment, and reminding an operator of the flow which is required to be spent; if the video content is illegal, the video cannot be transcoded and downloaded.
S200, obtaining terminal equipment information, judging the type of the terminal equipment, and selecting different transcoding modes according to different types of the terminal equipment, wherein the transcoding modes refer to converting a file in an original video format into a file in another video format through a compression technology.
In this step, terminal equipment information is acquired, and a specific URL (on the WWW, each information resource has a uniform and online address, which is called URL (Uniform Resource Locator, uniform resource locator), which is a uniform resource location flag of the WWW, that is, a network address) path is accessed by the terminal equipment, when the mobile equipment accesses a website by default, the mobile equipment automatically jumps to a mobile version of the web page, when the PC equipment accesses the website, and when the PC equipment accesses the website, the mobile equipment also can use HTTP-USER-AGENT to determine that the access terminal HTTP-USER-AGENT is the HTTP protocol, and HTTP refers to Hypertext transfer protocol (Hypertext TransferProtocol, HTTP) is a simple request-response protocol, which generally operates above TCP. It specifies what messages the client might send to the server and what responses get, so that it can be determined whether the terminal device is a mobile device or a PC device;
the mobile device may be a mobile phone or a tablet computer, the PC device may be a desktop computer or a television, and there are multiple decoding and transcoding modes for different devices, but the targeted decoding and transcoding modes are adopted for different devices, so that coding parameters can be optimized to balance video quality and data compression rate, and different devices and network bandwidth limitations, such as h.264 and h.265, are considered.
S300, judging the network environment of the terminal equipment, and encrypting and protecting the video content.
In the step, the network environment of the terminal equipment is judged, and certain real-time performance and stability are required during transcoding, so that the real-time network speed of the terminal equipment is required to be obtained, the network speed of the terminal equipment is detected, the maximum value and the minimum value of the terminal equipment in unit time are detected, the value of the network speed which does not appear in the maximum value and the minimum value can be selected as the preset network speed within two minutes in the unit time, the value of the preset network speed does not appear, the stable network speed can be judged, the network speed limit for uploading and downloading the video can be set according to the preset network speed, the video can not be blocked during online watching, and meanwhile, the video is encrypted;
the encryption comprises video content and a video transmission channel, the video content is encrypted, copyrights and intellectual property rights of the video content can be protected, unauthorized copying, spreading and embezzlement of the content are prevented, and meanwhile, the video of a user can be protected from involving personal privacy and sensitive information in the transcoding and transmission processes;
the video transmission channel is encrypted, so that data can be prevented from being intercepted, tampered or intercepted by an unauthorized third party, and unauthorized content copying, spreading and embezzlement can be prevented.
And S400, selecting the image quality and definition of the video content, and transmitting the video content to the terminal equipment.
In this step, the image quality and definition of the video content are selected, and the user selects the image quality and definition of the video according to the size of the video content and the current flow of the terminal device, because the flows spent by different image quality and definition can achieve the effect of optimizing the occupation condition of the transmission channel, the user can not occupy more transmission channels when selecting the video with low image quality and low definition, the transmission efficiency of the video is improved, and the user receives the video after the transcoding is completed on the terminal device for watching.
As shown in fig. 2, as a preferred embodiment of the present invention, the steps of obtaining terminal device information, determining the type of the terminal device, and selecting different transcoding modes according to different types of terminal devices, where the transcoding modes refer to a step of converting a file in an original video format into a file in another video format by a compression technology, specifically include:
s201, request information is sent to the terminal equipment, a permission instruction sent by the terminal equipment is received, and head information of the terminal equipment is obtained.
In the step, request information is sent to terminal equipment, the HTTP-USER-AGENT is judged to be head information in the HTTP protocol by HTTP-USER-AGENT, the request head information contains a plurality of pieces of equipment identification information, the equipment identification information can be used for judging the type of the access terminal equipment, after the terminal equipment receives the request head information, a window is popped up on the terminal equipment, and whether the protocol is accepted is selected by a USER;
if the protocol is accepted, a permission instruction is sent out, and then the equipment identification information of the terminal equipment is obtained, if the protocol is not accepted, the equipment identification information of the terminal equipment cannot be obtained, and the next transcoding cannot be carried out.
S202, judging the identification information of the terminal equipment according to the head information of the terminal equipment, and judging the terminal equipment to be mobile equipment or PC equipment.
In this step, the terminal device identification information is determined according to the header information of the terminal device, and whether the access terminal is a mobile device can be determined according to whether the HTTP-USER-AGENT contains a mobile device identification by analyzing the HTTP-USER-AGENT in the USER request header. If true is returned, the representative user uses the mobile device, otherwise, the representative user uses the PC terminal device;
the access mode of the URL path can also be used for judging, and under the default condition, the mobile equipment automatically jumps to the webpage of the mobile version when accessing the website, and the desktop equipment jumps to the webpage of the desktop version when accessing.
S203, selecting a corresponding coding mode according to the judged terminal equipment, wherein the coding modes adopt H.261, H.263 and H.264 modes.
In this step, according to the determined terminal device, selecting a corresponding coding mode, where the coding modes adopt h.261, h.263 and h.264 modes, and the video coding mode refers to a mode of converting a file in an original video format into a file in another video format by a compression technology, where the most important coding and decoding standards in video streaming have the international electricity requirements h.261, h.263 and h.264;
when the terminal equipment is judged to be mobile equipment, adopting codes more suitable for the mobile equipment, and when the terminal equipment is judged to be PC equipment, adopting codes more suitable for the PC equipment, and improving the coding rate, thereby improving the video transmission efficiency;
for example, the h.263 standard can provide better image effects than h.261 at low code rates;
the H.264 adopts a concise design, is easier to realize in video conferences and video phones, and is easier to realize interconnection and intercommunication;
the H.266 algorithm not only can transmit 4K ultra-high definition video, but also supports future 8K or even 16K high definition, ultra-high definition video and 360-degree panoramic video; the H.266 algorithm has high compression performance, and compression coding is carried out on the source video under the condition that the peak signal-to-noise ratio of the image is unchanged;
therefore, the coding mode can be selected according to the specific requirements of actual situations.
As shown in fig. 3, as a preferred embodiment of the present invention, the step of determining the terminal device identification information according to the header information of the terminal device, and determining the terminal device to be a mobile device or a PC device specifically includes:
s2021, acquiring a player, an operating system and position information of the terminal equipment, wherein the equipment identification information comprises the player, the operating system and the position information, and pre-judging the terminal equipment.
In the step, the player, the operating system and the position information of the terminal equipment are acquired, because the identification information of the terminal equipment has obvious differences, the terminal equipment is not confused when being identified, meanwhile, the player used for browsing videos of the terminal equipment can be read for distinguishing, the player has version differences on PC equipment and mobile equipment, meanwhile, in the aspect of the operating system, the operating system of the PC equipment is often a Windows system or a MACOS system, the operating system of the mobile equipment is often an ios system or an Android system, and meanwhile, the real-time position of the terminal equipment can be accessed, if the real-time position changes, the mobile equipment is the probability, and if the real-time position does not change, the PC equipment is the probability;
the terminal device may be checked in conjunction with URL or HTTP protocol.
S2022, the pre-judging result is sent to the terminal equipment, and the pre-judging result is processed by the terminal equipment, wherein the pre-judging result is that the terminal equipment is PC equipment or mobile equipment.
In the step, the pre-judging result is sent to the terminal equipment, the terminal equipment receives the pre-judging result, a confirmation window is popped up on the terminal equipment, the user confirms that the judgment is correct, the next step is carried out, the judgment result is wrong, the opposite option is selected, for example, the PC equipment is wrong, and the mobile equipment is modified; or the user makes a modification option to select the type of terminal device.
S2023, receiving the processing result of the terminal device, and determining that the terminal device is a mobile device or a PC device.
In this step, the processing result of the terminal device is received, and after determining that the specific type of the terminal device is a mobile device or a PC device, an appropriate encoding format may be prepared.
As shown in fig. 4, as a preferred embodiment of the present invention, the step of selecting a corresponding coding scheme according to the determined terminal device, where the coding scheme adopts h.261, h.263 and h.264 schemes specifically includes:
s2031, the encoding format and the output destination format of the input video content are determined.
In this step, the encoding format and the output target format of the input video content are determined, the input video format is determined, and the output video format is obtained at the same time, if the two formats are consistent, encoding is not needed, and if the two formats are inconsistent, the encoder and the decoder are needed to perform format conversion, so that the video content in the target format can be output.
S2032, the CPU usage of the terminal device is acquired, and the encoder group and the decoder group are selected according to the lowest CPU usage.
In this step, the CPU usage of the terminal device is acquired, the CPU usage of each combination is calculated by combining a plurality of encoding options according to the CPU usage of the terminal device, and a combination of encoding options having a higher compression rate than required and having the lowest CPU usage is determined from among a plurality of combinations, a plurality of encoders constituting an encoder group, and a plurality of decoders constituting a decoder group.
S2033, determining the encoder and decoder by selecting among the encoder group and the decoder group according to the encoding format of the input video content and the requirement of the output target format.
In this step, a proper encoder and decoder are selected from the encoder group and the decoder group according to the requirements of the encoding format and the output target format of the input video content, and according to the real-time network speed, a larger encoder and decoder can be used if the CPU of the terminal device is low, and a smaller encoder and decoder can be used if the CPU of the terminal device is high;
the resolution and bit rate of the video need to be dynamically adjusted according to different terminal devices and network conditions so as to adapt to different playing environments. And performing intelligent adjustment according to the screen resolution and processing capacity of the terminal equipment and the real-time condition of the network bandwidth. For example, in case of poor network quality, the resolution and bit rate of the video are reduced to ensure a smooth playback experience.
As shown in fig. 5, as a preferred embodiment of the present invention, the steps of determining the network environment of the terminal device to encrypt and protect the video content specifically include:
s301, acquiring the network speed of the terminal equipment in real time, and setting three steps according to the network speed, wherein the steps are different interval sections of the network speed.
In the step, the network speed of the terminal equipment is obtained in real time, the real-time network speed of the terminal equipment in unit time is measured, the terminal equipment is divided into three steps according to the network speed, for example, 0-100Mb/s,100-500Mb/s and 500-5000Mb/s, and according to the three steps, which step the real-time network speed is closer to can be better judged, and the terminal equipment is more stable in one step.
S302, judging network fluctuation conditions of three steps, and setting the step with the smallest fluctuation as a transmission channel.
In the step, the network fluctuation condition of three steps is judged, and the step with the smallest fluctuation is judged according to the ratio of the real-time network speed distribution of the terminal equipment in the three steps, for example, the maximum value of the real-time network speed is 800Mb/s and the minimum network speed is 90Mb/s, and then 100-500Mb/s is judged as the step with the smallest fluctuation, and at the moment, the step with the smallest fluctuation is provided with a transmission channel, so that the stability of video transmission can be ensured, and the condition of jamming can not be generated.
S303, encrypting the video content, sending verification information to the terminal equipment, and receiving feedback of the terminal equipment.
In the step, the video content is encrypted, the encrypted video is subjected to video unlocking by a special key, the safety and the integrity of the video of a user in the transmission process are ensured by means of encryption technology, access control, user identity verification and the like, related laws and regulations and industry standards are complied with, such as data protection regulations and personal information protection regulations, the privacy and the compliance of the user data are ensured, verification information is sent to terminal equipment, and after confirmation by the user, the key is generated to unlock the encrypted video.
As shown in fig. 6, as a preferred embodiment of the present invention, the step of determining the network fluctuation situation of three steps and setting the step with the smallest fluctuation as the transmission channel specifically includes:
s3021, setting a judging time period, wherein the judging time period is a set fixed time period, and acquiring the net speed of the steps in the judging time period.
In the step, a judging time period is set, the real-time network speed of the terminal equipment can be better detected, and the maximum network speed and the minimum network speed of the terminal equipment in the judging time period are acquired.
S3022, obtaining the minimum net speed of the step, wherein the minimum net speed is the lowest point of the net speed in the judging time period.
In the step, the minimum network speed of the steps is obtained, the network speed fluctuation in the judging time period is recorded, the network speed in the judging time period is divided into three steps, the minimum network speed is the minimum network speed of the steps, and the maximum network speed is the maximum network speed of the steps.
S3023, when the minimum net speed is greater than the preset threshold value, calculating the maximum difference value of the net speed, and determining whether to use according to the maximum difference value and the preset value.
In the step, when the minimum network speed is greater than a preset threshold value, the video can be normally played, the preset threshold value is a value for ensuring the video to be normally played, if the minimum network speed is less than or equal to the preset threshold value, the video cannot be normally played, the minimum network speed set as a transmission channel is compared with the preset threshold value, and at the moment, the real-time network speed which is greater than the preset threshold value is required to be selected as the network speed of the terminal equipment, so that the normal playing is ensured;
after the minimum network speed is more than a preset threshold value, the maximum network speed and the minimum network speed in the steps are subjected to difference to obtain the maximum difference value, and a preset value is set, if the maximum difference value is more than the preset value, the condition that the fluctuation of the network speed is large and the video playing is unstable is indicated, and the steps are needed to be selected again to serve as a transmission channel of the video playing.
As shown in fig. 7, as a preferred embodiment of the present invention, the steps of encrypting video content, sending verification information to a terminal device, and receiving feedback from the terminal device specifically include:
s3031, digital rights management operation is carried out on the video content, and a key is generated and used for unlocking the encrypted video.
In this step, the digital rights management operation is DRM, english full name Digital Rights Management, and the digital rights management refers to rights protection, usage control and management techniques performed during the production, distribution, sales, and usage of audio and video program content, documents, electronic books, etc., and the rigid digital rights management mainly manages through active control, solves the problem of illegal copying through technical repair, sends verification information to a terminal device, and after confirmation by a user, generates a key, unlocks an encrypted video, and matches the key with the encrypted video, thereby forming a one-to-one effect and ensuring security.
S3032, encrypting the transmission channel of the video, and binding the identification information of the terminal equipment.
In this step, the transmission channel of the video is encrypted, and the user's video file involves personal privacy and sensitive information during the transcoding and transmission process. Corresponding security measures such as data encryption, access control and user identity verification are needed to ensure confidentiality and integrity of user data and to comply with relevant privacy protection laws and regulations, the device ID of the PC device, for example 41FF67BC-949F-43C8-8FC0-DCB89163FBCD, may be obtained, the device ID of the PC device may be unique, or the serial number of the mobile device may be obtained, namely the IMEI, the international mobile equipment identity (International Mobile Equipment Identity, IMEI), and the identity of the mobile device may be determined by the IMEI due to the uniqueness of the IMEI.
S3033, the key is sent to the terminal equipment, and the key information input by the terminal equipment is received.
In the step, a key is sent to the terminal equipment, the encrypted video is unlocked, the key is matched with the encrypted video, a one-to-one effect is formed, and safety is ensured.
As shown in fig. 8, as a preferred embodiment of the present invention, the step of selecting the image quality and definition of the video content and transmitting the video content to the terminal device specifically includes:
s401, obtaining the size of the transcoded video content, and receiving an image quality and definition selection instruction sent by the terminal equipment.
In this step, the size of the transcoded video content is obtained, the user can see the size of the transcoded video, the image quality and definition of the video content are selected according to the memory size and flow of the terminal device, and after the selection is completed, the instruction of the terminal device is received, and the image quality and definition of the video content are adjusted, which can be achieved through noise reduction, sharpening, color adjustment, and the like.
And S402, compressing the video content and uploading the compressed video content to a storage server, wherein the storage server is used for storing the converted video content in a designated storage medium.
In this step, the video content is compressed and uploaded to a storage server comprising a storage engine and an access interface. The storage engine is responsible for storing the converted media files in a designated storage medium, such as a hard disk, cloud storage, etc., and may also provide storage management functions, such as backup, restore, cleaning, etc. The access interface is responsible for providing an access interface to media files in the storage server, including protocols such as HTTP, FTP, etc., so that the client can implement a play function by accessing the media files on the storage server. The storage server can also realize dynamic caching and preloading functions so as to improve access efficiency and user experience.
S403, the video content in the storage medium is transmitted to the terminal device.
In this step, the video content in the storage medium is sent to the terminal device, and the transcoded video may be tried to be watched, or stored in the cloud disk, and when the video is watched in real time, the content in the cloud is sent to the terminal device.
It should be understood that, although the steps in the flowcharts of the embodiments of the present invention are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in various embodiments may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor do the order in which the sub-steps or stages are performed necessarily performed in sequence, but may be performed alternately or alternately with at least a portion of the sub-steps or stages of other steps or other steps.
Those skilled in the art will appreciate that all or part of the processes in the methods of the above embodiments may be implemented by a computer program for instructing relevant hardware, where the program may be stored in a non-volatile computer readable storage medium, and where the program, when executed, may include processes in the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above-described embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above-described embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the invention and are described in detail herein without thereby limiting the scope of the invention. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the invention, which are all within the scope of the invention. Accordingly, the scope of protection of the present invention is to be determined by the appended claims.
The foregoing description of the preferred embodiments of the invention is not intended to be limiting, but rather is intended to cover all modifications, equivalents, and alternatives falling within the spirit and principles of the invention.

Claims (8)

1. An adaptive video transcoding method based on a terminal device environment, the method comprising:
verifying the legitimacy of the video, and if the video is legal, preparing video transcoding;
acquiring terminal equipment information, judging the type of the terminal equipment, and selecting different transcoding modes according to different types of the terminal equipment, wherein the transcoding modes refer to the conversion of an original video format file into another video format file through a compression technology;
judging the network environment of the terminal equipment, and encrypting and protecting the video content;
and selecting the image quality and definition of the video content, and transmitting the video content to the terminal equipment.
2. The adaptive video transcoding method based on the terminal equipment environment according to claim 1, wherein the steps of obtaining terminal equipment information, determining the type of the terminal equipment, and selecting different transcoding modes according to different types of the terminal equipment, wherein the transcoding modes refer to the steps of converting a file in an original video format into a file in another video format by a compression technology, specifically include:
the method comprises the steps of sending request information to terminal equipment, receiving a permission instruction sent by the terminal equipment, and obtaining head information of the terminal equipment;
judging the identification information of the terminal equipment according to the head information of the terminal equipment, and judging the terminal equipment to be mobile equipment or PC equipment;
and selecting a corresponding coding mode according to the judged terminal equipment, wherein the coding modes adopt H.261, H.263 and H.264 modes.
3. The adaptive video transcoding method based on the environment of terminal equipment according to claim 2, wherein the step of judging the terminal equipment identification information according to the header information of the terminal equipment, and judging the terminal equipment as mobile equipment or PC equipment, specifically comprises:
acquiring a player, an operating system and position information of terminal equipment, wherein the equipment identification information comprises the player, the operating system and the position information, and pre-judging the terminal equipment;
the method comprises the steps of sending a pre-judging result to terminal equipment, and processing the pre-judging result through the terminal equipment, wherein the pre-judging result is that the terminal equipment is PC equipment or mobile equipment;
and receiving a processing result of the terminal equipment, and judging the terminal equipment to be mobile equipment or PC equipment.
4. The adaptive video transcoding method based on the terminal equipment environment according to claim 2, wherein the step of selecting a corresponding coding mode according to the determined terminal equipment, wherein the coding modes adopt h.261, h.263 and h.264 modes, specifically comprises:
judging the coding format and the output target format of the input video content;
acquiring CPU utilization rate of terminal equipment, and selecting an encoder group and a decoder group according to the lowest CPU utilization rate;
the encoder and decoder are determined by selecting among the encoder set and the decoder set according to the encoding format of the input video content and the requirement of the output target format.
5. The adaptive video transcoding method based on the terminal equipment environment according to claim 1, wherein the step of judging the terminal equipment network environment and encrypting and protecting the video content comprises the following steps:
acquiring the network speed of the terminal equipment in real time, and setting three steps according to the network speed, wherein the steps are different interval sections of the network speed;
judging network fluctuation conditions of three steps, and setting the step with the smallest fluctuation as a transmission channel;
and encrypting the video content, sending verification information to the terminal equipment, and receiving feedback of the terminal equipment.
6. The adaptive video transcoding method based on the terminal equipment environment of claim 5, wherein the step of determining the network fluctuation condition of three steps and setting the step with the smallest fluctuation as the transmission channel specifically comprises:
setting a judging time period which is a set fixed time period, and acquiring the net speed of the ladder in the judging time period;
acquiring a minimum network speed of a step, wherein the minimum network speed is the lowest point of the network speed in a judging time period;
when the minimum net speed is greater than a preset threshold value, calculating the maximum difference value of the net speed, and judging whether the net speed can be used or not according to the maximum difference value and the preset value.
7. The adaptive video transcoding method based on the environment of a terminal device according to claim 5, wherein the step of encrypting the video content, transmitting authentication information to the terminal device, and receiving feedback from the terminal device comprises:
performing digital rights management operation on the video content to generate a key, wherein the key is used for unlocking the encrypted video;
encrypting a transmission channel of the video, and binding identification information of terminal equipment;
and sending the key to the terminal equipment, and receiving key information input by the terminal equipment.
8. The adaptive video transcoding method based on the environment of a terminal device according to claim 1, wherein the step of selecting the image quality and definition of the video content and transmitting the video content to the terminal device comprises:
acquiring the size of the transcoded video content, and receiving an image quality and definition selection instruction sent by terminal equipment;
the video content is compressed and then uploaded to a storage server, and the storage server is used for storing the converted video content into a designated storage medium;
the video content in the storage medium is transmitted to the terminal device.
CN202311709684.8A 2023-12-13 2023-12-13 Self-adaptive video transcoding method based on terminal equipment environment Pending CN117714790A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311709684.8A CN117714790A (en) 2023-12-13 2023-12-13 Self-adaptive video transcoding method based on terminal equipment environment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311709684.8A CN117714790A (en) 2023-12-13 2023-12-13 Self-adaptive video transcoding method based on terminal equipment environment

Publications (1)

Publication Number Publication Date
CN117714790A true CN117714790A (en) 2024-03-15

Family

ID=90158301

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311709684.8A Pending CN117714790A (en) 2023-12-13 2023-12-13 Self-adaptive video transcoding method based on terminal equipment environment

Country Status (1)

Country Link
CN (1) CN117714790A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102263941A (en) * 2010-05-31 2011-11-30 苏州闻道网络科技有限公司 Transcoding method and device for video file
CN102447975A (en) * 2010-10-08 2012-05-09 中国联合网络通信集团有限公司 Streaming media information processing method, system and server
CN102802138A (en) * 2011-05-25 2012-11-28 腾讯科技(深圳)有限公司 Video file processing method and system, and video proxy system
CN103548352A (en) * 2011-04-15 2014-01-29 Sk普兰尼特有限公司 Adaptive video transcoding method and system
CN108712428A (en) * 2018-05-23 2018-10-26 北京奇安信科技有限公司 A kind of method and device carrying out device type identification to terminal
CN114747225A (en) * 2019-12-11 2022-07-12 谷歌有限责任公司 Methods, systems, and media for selecting a format for a streaming media content item

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102263941A (en) * 2010-05-31 2011-11-30 苏州闻道网络科技有限公司 Transcoding method and device for video file
CN102447975A (en) * 2010-10-08 2012-05-09 中国联合网络通信集团有限公司 Streaming media information processing method, system and server
CN103548352A (en) * 2011-04-15 2014-01-29 Sk普兰尼特有限公司 Adaptive video transcoding method and system
CN102802138A (en) * 2011-05-25 2012-11-28 腾讯科技(深圳)有限公司 Video file processing method and system, and video proxy system
CN108712428A (en) * 2018-05-23 2018-10-26 北京奇安信科技有限公司 A kind of method and device carrying out device type identification to terminal
CN114747225A (en) * 2019-12-11 2022-07-12 谷歌有限责任公司 Methods, systems, and media for selecting a format for a streaming media content item

Similar Documents

Publication Publication Date Title
EP3055805B1 (en) System and method for signaling and verifying url signatures for both url authentication and url-based content access authorization in adaptive streaming
CN1950777B (en) Integrity protection of streamed content
EP2044568B1 (en) Method and apparatus for securely moving and returning digital content
US20080031451A1 (en) Method and system for security of data transmissions
US20090063861A1 (en) Information security transmission system
JP2017530484A (en) Token-based authentication and authorization information signaling and exchange for adaptive streaming
US8166132B1 (en) Systems and methods for client-side encoding of user-generated content
US20050154921A1 (en) Method and apparatus for providing a security profile
US20170353745A1 (en) Secure media player
CN109151506B (en) Method, system and server for operating video file
CN111970109B (en) Data transmission method and system
CN117714790A (en) Self-adaptive video transcoding method based on terminal equipment environment
KR100849639B1 (en) Method for encoding and decoding moving picture file and recording medium having the method embodied program
JP2007088704A (en) Server buildup type streaming system
US20100104097A1 (en) System and method for ucc contents protection
CN118055270B (en) Video processing method, system, device, electronic equipment and storage medium
KR100712921B1 (en) Mobile communication terminal enable to play content in short time and its operating method
KR100587530B1 (en) Apparatus for and Method of Protecting Streamed ASF Files
US8630417B2 (en) Method for recording and restoring a ciphered content by a processing unit
CN118055270A (en) Video processing method, system, device, electronic equipment and storage medium
CN115002089A (en) Streaming media transmission method and device, electronic equipment and storage medium
KR20100018878A (en) Method and apparatus for providing streaming service

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