Video service processing method and device
By introducing QSF identifiers in video service processing, priority transmission of key TS files is solved, and the problem of poor user interaction perception and experience is improved.
Patent Information
- Application Number
- CN202111636143.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-29
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2041-12-29
AI Technical Summary
After the launch of video services such as 4K and ultra-high definition, users have poor interactive perception and experience of video services, especially when network traffic increases, the response speed of video on-demand and back viewing operations is not fast enough.
By introducing QSF identifiers between the set-top box and network devices, priority is given to the transmission of TS files in the HTTP requests related to interactive operations, ensuring that key TS files (such as I frames) arrive at the set-top box as soon as possible, improving the user experience.
It significantly improves the user's interactive perception experience of video services, especially in on-demand, cut-off and fast forward/fast back operations, reducing load delay and response time and improving user's perception speed.
Smart Images

Figure CN114374860B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of communication technology, and in particular to a video service processing method and device. Background Art
[0002] Telecom has developed video services mainly based on IPTV. At present, the quality assurance of the video service streams operated by basic telecommunication operators is provided by the network equipment on the CDN side, which marks the quality of service (QoS) of the entire video stream based on the IP address or port, and the downstream network equipment trusts this mark and provides assurance. The entire self-operated video service has a higher priority than ordinary Internet services.
[0003] With the launch of 4K and ultra-high-definition services, in some network links, the self-operated video business flows of basic telecommunications operators have accounted for 40% or even more than 50% of the total network traffic. When users operate set-top boxes, they have a natural perception of the response speed of video on demand (including playback) loading and video on demand (including playback) fast forward and rewind, and hope that the response speed of these operations is as fast as possible. However, due to the increasing number of video services, users' interactive perception experience of video services is poor.
[0004] Therefore, there is an urgent need for a video service processing method to improve the user's interactive perception experience of the video service. Summary of the invention
[0005] The embodiments of the present invention provide a video service processing method and device to enhance the user's interactive perception experience of the video service.
[0006] In a first aspect, an embodiment of the present invention provides a video service processing method, including:
[0007] The set-top box receives a user operation instruction from a terminal device, wherein the user operation instruction is used to perform interactive operations on a video service;
[0008] The set-top box generates M HTTP requests in response to the user operation instruction; at least one HTTP request among the M HTTP requests includes a QSF identifier, and the QSF identifier is used by the network device to preferentially transmit the TS file corresponding to the HTTP request carrying the QSF identifier, and M is a positive integer;
[0009] The set-top box sends the M HTTP requests to the network device in sequence;
[0010] The set-top box receives M HTTP responses from the network device; the HTTP response corresponding to each HTTP request includes a TS file corresponding to the HTTP request.
[0011] In the above technical solution, the set-top box receives a user operation instruction from a terminal device, and the user operation instruction is used to perform interactive operations on the video service. Then, the set-top box generates M HTTP requests in response to the user operation instruction, and sends the M HTTP requests to the network device in sequence. At least one of the M HTTP requests includes a QSF identifier, and the QSF identifier is used by the network device to preferentially transmit the TS file corresponding to the HTTP request carrying the QSF identifier. Then, the set-top box can preferentially receive at least one HTTP response from the network device, thereby improving the user's interactive perception experience of the video service.
[0012] Optionally, the interactive operation includes any one of the following: on-demand operation, channel switching operation, fast forward / fast rewind operation.
[0013] Optionally, the interactive operation is a video-on-demand operation, N HTTP requests among the M HTTP requests include a QSF identifier, and the N HTTP requests are used to request first N TS files of a video service corresponding to the video-on-demand operation, where N is a positive integer less than M.
[0014] In the above technical solution, the transmission of the first N TS files is prioritized, so that the first N TS files can reach the set-top box in a shorter time. Generally speaking, as long as the I frame of the first TS file arrives, it can be played. Compared with the existing technology, the I frame of the first TS file can reach the set-top box for playback earlier, thereby improving the user perception experience.
[0015] Optionally, the interactive operation is a switching operation for switching from a video of a first channel to a video of a second channel, N HTTP requests among the M HTTP requests include a QSF identifier, and the N HTTP requests are used to request the first N TS files of the video of the second channel, where N is a positive integer less than M.
[0016] In the above technical solution, after the channel switching operation, the transmission of the first N TS files of the video of the second channel is prioritized, so that the first N TS files can reach the set-top box in a shorter time. Generally speaking, as long as the I frame of the first TS file arrives, it can be played. Compared with the existing technology, the I frame of the first TS file can reach the set-top box for playback earlier, thereby improving the user perception experience.
[0017] Optionally, the interactive operation is a fast forward / fast rewind operation for jumping from requesting to play a first TS file to requesting to play a second TS file, N HTTP requests among the M HTTP requests include a QSF identifier, and the N HTTP requests are used to request the second TS file and N-1 TS files after the second TS file, and N is a positive integer less than M.
[0018] In the above technical solution, after the fast forward / fast rewind operation, the transmission of the second TS file to be played and the N-1 TS files after the second TS file is prioritized, so that the second TS file and the N-1 TS files after the second TS file can reach the set-top box in a shorter time. Generally speaking, as long as the I frame of the second TS file arrives, it can be played, and the I frame of the second TS file can also reach the set-top box for playback earlier than the prior art, thereby improving the user perception experience.
[0019] In a second aspect, an embodiment of the present invention further provides a video service processing method, comprising: a network device receives an HTTP request from a set-top box; if the HTTP request carries a QSF identifier, the network device preferentially transmits a TS file corresponding to the HTTP request carrying the QSF identifier.
[0020] In a third aspect, an embodiment of the present invention further provides a video service processing device, including:
[0021] A receiving unit, used to receive a user operation instruction from a terminal device, wherein the user operation instruction is used to perform interactive operations on a video service;
[0022] A generating unit, configured to generate M HTTP requests in response to the user operation instruction; at least one HTTP request among the M HTTP requests includes a QSF identifier, and the QSF identifier is used by the network device to preferentially process a TS file corresponding to the HTTP request carrying the QSF identifier;
[0023] A sending unit, configured to send the M HTTP requests to the network device in sequence;
[0024] The receiving unit is further used to receive M HTTP responses from the network device; the HTTP response corresponding to each HTTP request includes a TS file corresponding to the HTTP request.
[0025] Optionally, the interactive operation includes any one of the following: on-demand operation, channel switching operation, fast forward / fast rewind operation.
[0026] Optionally, the interactive operation is a video-on-demand operation, N HTTP requests among the M HTTP requests include a QSF identifier, and the N HTTP requests are used to request first N TS files of a video service corresponding to the video-on-demand operation, where N is a positive integer less than M.
[0027] Optionally, the interactive operation is a switching operation for switching from a video of a first channel to a video of a second channel, N HTTP requests among the M HTTP requests include a QSF identifier, and the N HTTP requests are used to request the first N TS files of the video of the second channel, where N is a positive integer less than M.
[0028] Optionally, the interactive operation is a fast forward / fast rewind operation for jumping from requesting to play a first TS file to requesting to play a second TS file, N HTTP requests among the M HTTP requests include a QSF identifier, and the N HTTP requests are used to request the second TS file and N-1 TS files after the second TS file, and N is a positive integer less than M.
[0029] In a fourth aspect, an embodiment of the present invention further provides a video service processing device, including:
[0030] A receiving unit, used for receiving an HTTP request from a set-top box;
[0031] The processing unit is used to preferentially transmit the TS file corresponding to the HTTP request carrying the QSF identifier if the HTTP request carries the QSF identifier.
[0032] In a fifth aspect, an embodiment of the present invention provides a video service processing device, including:
[0033] A memory for storing program instructions;
[0034] The processor is used to call the program instructions stored in the memory, and execute the above-mentioned first aspect and any optional method thereof, or execute the method of the second aspect according to the obtained program.
[0035] In a sixth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the above-mentioned first aspect and any optional method thereof, or execute the method of the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0037] Figure 1 A schematic diagram of a system architecture provided for an embodiment of the present invention;
[0038] Figure 2 A schematic diagram of a process flow of a video service processing method provided by an embodiment of the present invention;
[0039] Figure 3 A schematic diagram of a process flow of a video service processing method provided by an embodiment of the present invention;
[0040] Figure 4 A schematic diagram of a process flow of a video service processing method provided by an embodiment of the present invention;
[0041] Figure 5 A schematic diagram of the structure of a video service processing device provided by an embodiment of the present invention;
[0042] Figure 6 A schematic diagram of the structure of a video service processing device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0043] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0044] The existing video service network QOS gives priority to all IPTV service flows over Internet service flows, but there is no priority difference between the service flows for daily viewing and user interactive operations in the video service flow, and the user's interactive perception experience of the video service is poor. Therefore, an embodiment of the present invention provides a video service processing method, which accurately identifies and guarantees a small amount of interactive data flows in the IPTV video service flow, thereby improving the user perception experience.
[0045] Figure 1 A system architecture is provided for an embodiment of the present invention. Figure 1As shown, the system architecture may include a set top box (STB) 101 , a television 102 , a remote control device 103 , an electronic program guide (ETG) system 104 and a content delivery network (CDN) 105 .
[0046] Set-top box 101 is a device that connects TV set 102 and external signal source, and it can convert compressed digital signal into TV content, and show on TV set 102, and signal can come from wired cable, satellite antenna, broadband network and terrestrial broadcast. The content that set-top box receives can receive digital content, including electronic program guide, Internet webpage etc., except the image and sound that analog TV can provide. In the embodiment of the present application, set-top box 101 can increase QSF mark in Hypertext Transfer Protocol (Hyper Text Transfer Protocol, HTTP) request, so that network equipment can preferentially transmit transport stream (Transport Stream, TS) file corresponding to HTTP request carrying QSF mark according to the QSF mark. This set-top box 101 can be the set-top box of interactive network television (IPTV) business, and can also be the set-top box of non-IPTV business.
[0047] The remote control device 103 is used for a user to control the television set 102 .
[0048] The EPG system 104 is used to forward data or signals from the CDN network 105 to the set-top box 101 , and may also be used to forward data or signals from the set-top box 101 to the CDN network 105 .
[0049] The CDN network 105 includes at least one network device (such as Figure 1 The CDN network 105 is used to provide users with data of video services or Internet services.
[0050] It should be noted that the above Figure 1 The structure shown is only an example and is not limited to this embodiment of the present invention.
[0051] Based on the above description, Figure 2 The flow of a video service processing method provided by an embodiment of the present invention is exemplarily shown. The flow can be executed by a video service processing device, which can be located at Figure 1 The set-top box 101 shown in the figure may also be the set-top box 101. In the following embodiments, the video service processing device is taken as the set-top box 101 as an example for description. Figure 2 As shown in the figure, the process specifically includes:
[0052] Step 201: The set-top box receives a user operation instruction from a terminal device.
[0053] Here, the terminal device may be Figure 1 The remote control device shown may also be a television. The user operation instruction in step 201 is used to perform interactive operations on the video service.
[0054] In one practicable manner, the interactive operation includes any one of the following: on-demand operation, channel switching operation, and fast forward / fast rewind operation.
[0055] Step 202: The set-top box generates M HTTP requests in response to user operation instructions.
[0056] The M HTTP requests are used to request the network device to send the TS file after the interactive operation on the video service.
[0057] In step 202, at least one of the M HTTP requests includes a QSF identifier, and the QSF identifier is used by the network device to preferentially transmit the TS file corresponding to the HTTP request carrying the Quality Service Flag (QSF) identifier, where M is a positive integer. In a possible implementation, N of the M HTTP requests include the QSF identifier, where N is less than M, thereby avoiding an excessive amount of data with limited security in the network.
[0058] Exemplarily, a Uniform Resource Locator (URL) corresponding to a TS file 1 is: HTTP: / / yn_iptv.com / vod_hd_movie_1.ts, then the URL corresponding to the HTTP request 1 initiated to request the TS file 1 may be: HTTP: / / yn_iptv.com / vod_hd_movie_1.ts&qsf=1.
[0059] In the example of the present application, the set-top box adds a QSF identifier to at least one HTTP request corresponding to an interactive operation, such as a video-on-demand operation, a channel switching operation, and a fast-forward / fast-rewind operation, and does not add a QSF identifier to an HTTP request corresponding to a non-interactive operation.
[0060] Step 203: The set-top box sends M HTTP requests to the network device in sequence.
[0061] Correspondingly, the network device receives M HTTP requests from the set-top box. Here, the network device can be Figure 1 CDN nodes in the CDN network shown. For example, each HTTP request may carry a URL corresponding to the requested video content.
[0062] Step 204: For any one of the at least one HTTP request, if the HTTP request carries a QSF identifier, the network device preferentially transmits the TS file corresponding to the HTTP request carrying the QSF identifier.
[0063] If the HTTP request does not carry the QSF identifier, the network device transmits the TS file corresponding to the HTTP request that does not carry the QSF identifier in a traditional manner, and the traditional manner is not to give priority to transmitting the TS file corresponding to the HTTP request that does not carry the QSF identifier.
[0064] Step 205: The set-top box receives M HTTP responses from the network device.
[0065] The HTTP response corresponding to each HTTP request includes the TS file corresponding to the HTTP request.
[0066] In a specific implementation, the M HTTP requests in the above step 203 may be sent sequentially. After one HTTP request is sent, an HTTP response corresponding to the HTTP request is received from the network device, and then the next HTTP request is sent.
[0067] In the example of the present application, the set-top box receives a user operation instruction from a terminal device, and the user operation instruction is used to perform interactive operations on a video service. Then, the set-top box generates M HTTP requests in response to the user operation instruction, and sends at least one HTTP request to a network device in sequence. At least one of the M HTTP requests includes a QSF identifier, and the QSF identifier is used by the network device to preferentially transmit the TS file corresponding to the HTTP request carrying the QSF identifier. Then, the set-top box can preferentially receive at least one HTTP response from the network device, thereby improving the user's interactive perception experience of the video service.
[0068] In one practicable manner, the interactive operation in step 201 is a video-on-demand operation, and N of the M HTTP requests in step 202 include a QSF identifier, and the N HTTP requests are used to request the first N TS files of the video service corresponding to the video-on-demand operation, where N is a positive integer less than M. That is, the set-top box adds a QSF identifier to the HTTP requests corresponding to the first N TS files of the video-on-demand (including playback) service to prioritize the first N TS files to be transmitted to the set-top box, thereby reducing the loading delay. The QSF identifier is no longer added to the HTTP requests corresponding to the TS files after the first N TS files, thereby avoiding excessive data volume that is prioritized in the network.
[0069] Exemplarily, in a specific implementation, based on the actual business ratio, the value of N of the N shards to be protected is usually selected as 5, that is, a QSF identifier is added to the HTTP requests of the first five TS files related to the interactive operation.
[0070] In the loading scenario of on-demand or playback services, it is necessary to complete the loading of the video as soon as possible to reduce the delay. The following is an exemplary description of the processing method of the video service in conjunction with the loading process of the on-demand or playback service.
[0071] like Figure 3 As shown, the processing process of the video service includes:
[0072] Step 301, the set-top box starts the on-demand program. When playing the on-demand (including playback) video, the player first obtains the m3u8 file.
[0073] The m3u8 file contains the serial number of the TS file required for the entire on-demand video stream.
[0074] Step 302: The CDN network returns the m3u8 file to the set-top box.
[0075] Step 303: After parsing m3u8, the set-top box adds a QSF parameter to the URL corresponding to the HTTP request for requesting the first TS file, and sends the HTTP request for requesting the first TS file to the CDN network.
[0076] Step 304: The CDN network determines that the HTTP request for requesting the first TS file carries a QSF identifier, sets a TOS mark for the first TS file, and prioritizes returning the first TS file to the set-top box.
[0077] Step 305: The set-top box adds a QSF parameter to the URL corresponding to the HTTP request for requesting the second TS file, and sends the HTTP request for requesting the second TS file to the CDN network.
[0078] Step 306: The CDN network determines that the HTTP request for requesting the second TS file carries the QSF identifier, sets a TOS mark for the second TS file, and prioritizes returning the second TS file to the set-top box.
[0079] Step 307: The set-top box adds QSF parameters to the URLs corresponding to the HTTP requests for requesting the third TS file, and sends the HTTP requests for requesting the third TS file to the CDN network.
[0080] Step 308: The CDN network determines that the HTTP request for requesting the third TS file carries a QSF identifier, sets a TOS mark for the third TS file, and prioritizes returning the third TS file to the set-top box.
[0081] Step 309: The set-top box adds QSF parameters to the URLs corresponding to the HTTP requests for requesting the fourth TS file, and sends the HTTP requests for requesting the fourth TS file to the CDN network.
[0082] In step 310, the CDN network determines that the HTTP request for requesting the fourth TS file carries a QSF identifier, sets a TOS mark for the fourth TS file, and prioritizes returning the fourth TS file to the set-top box.
[0083] Step 311: The set-top box adds QSF parameters to the URLs corresponding to the HTTP requests for requesting the fifth TS file, and sends the HTTP requests for requesting the fifth TS file to the CDN network.
[0084] Step 312: The CDN network determines that the HTTP request for requesting the fifth TS file carries a QSF identifier, sets a TOS mark for the fifth TS file, and prioritizes returning the fifth TS file to the set-top box.
[0085] Step 313: The set-top box sends an HTTP request for requesting the sixth TS file to the CDN network. The QSF parameter is not added to the HTTP request for requesting the sixth TS file.
[0086] Step 314: The CDN determines that the HTTP request for requesting the sixth TS file does not carry the QSF identifier, and returns the sixth TS file to the set-top box with normal priority.
[0087] Exemplarily, in the above step 301, for example, the URLs corresponding to 1 to 6 ts files in the m3u8 file are:
[0088] HTTP: / / yn_iptv.com / vod_hd_movie_1.ts;
[0089] HTTP: / / yn_iptv.com / vod_hd_movie_2.ts;
[0090] HTTP: / / yn_iptv.com / vod_hd_movie_3.ts;
[0091] HTTP: / / yn_iptv.com / vod_hd_movie_4.ts;
[0092] HTTP: / / yn_iptv.com / vod_hd_movie_5.ts;
[0093] HTTP: / / yn_iptv.com / vod_hd_movie_6.ts.
[0094] In the above steps 303 to 314, when the set-top box initiates an HTTP request for requesting 1 to 6 TSs, the URLs corresponding to the HTTP requests are:
[0095] http: / / yn_iptv.com / vod_hd_movie_1.ts&qsf=1;
[0096] http: / / yn_iptv.com / vod_hd_movie_2.ts&qsf=1;
[0097] HTTP: / / yn_iptv.com / vod_hd_movie_3.ts&qsf=1;
[0098] http: / / yn_iptv.com / vod_hd_movie_4.ts&qsf=1;
[0099] http: / / yn_iptv.com / vod_hd_movie_5.ts&qsf=1;
[0100] HTTP: / / yn_iptv.com / vod_hd_movie_6.ts.
[0101] In the above example, the QSF parameter is added to the HTTP request for requesting the 1st to 5th TS files, and the transmission of the 1st to 5th TS files is prioritized, thereby improving the user experience. The QSF parameter is not added to the HTTP request for requesting the 6th TS file and subsequent TS files, which can avoid excessive security data in the network.
[0102] Video service on-demand (including playback scenarios) is based on HLS / FLV audio and video TS file distribution. For example, a high-definition 1080P video program has an average bit rate of 8Mb / s, in which an I frame appears once every 2 seconds. Video services are usually cut into a TS file for burst distribution according to the audio and video stream that plays for 10 seconds. In this solution, under the condition of giving priority to the first 5 TS files loaded on-demand, in a 100M optical bandwidth environment, the TS file can be sent to the player of the set-top box at a burst rate of more than 80Mb / s, and the I frame is compressed to an interval of 200ms. It can be played as long as the I frame arrives, without having to wait until the entire TS file is downloaded before playing. When loading video services on-demand, it usually takes 0.5-0.8 seconds for the set-top box's player program to start. After adopting the above method, the total loading time of on-demand (including playback) can be controlled within 1 second, which can significantly improve the user's perceived experience compared to the 2-second response speed required for conventional loading.
[0103] In one practicable manner, the interactive operation in step 201 is a switching operation for switching from a video of a first channel to a video of a second channel, and N HTTP requests among the M HTTP requests in the above step 202 include a QSF identifier, and the N HTTP requests are used to request the first N TS files of the video of the second channel, where N is a positive integer less than M.
[0104] In this way, the process of obtaining the first N TS files corresponding to the video of the second channel can be referred to Figure 3 The process of obtaining the first N TS files during the video loading process of the on-demand service will not be repeated here.
[0105] In one practicable manner, the interactive operation in step 201 is a fast forward / fast rewind operation for jumping from requesting to play the first TS file to requesting to play the second TS file, and N HTTP requests among the M HTTP requests in the above step 202 include a QSF identifier, and the N HTTP requests are used to request the second TS file and N-1 TS files after the second TS file, where N is a positive integer less than M.
[0106] When the set-top box performs fast forward / fast rewind operations for on-demand and playback services, the video needs to be downloaded immediately to reduce latency. The following is an exemplary description of the processing method of the video service in conjunction with the fast forward / fast rewind operations performed during on-demand or playback services.
[0107] like Figure 4 As shown, the processing process of the video service includes:
[0108] Step 401, the set-top box starts the on-demand program, and when playing the on-demand (including playback) video, the player first obtains the m3u8 file.
[0109] The m3u8 file contains the serial number of the TS file required for the entire on-demand video stream.
[0110] Step 402: The CDN network returns the m3u8 file to the set-top box.
[0111] For example, the third TS file is currently being played. After the fast-forward operation is performed, the file is fast-forwarded to the Xth TS file. In this case, a QSF identifier needs to be added to request the Xth to X+N-1th TS files.
[0112] Step 403: After parsing m3u8, the set-top box adds a QSF parameter to the URL corresponding to the HTTP request for requesting the Xth TS file, and sends the HTTP request for requesting the Xth TS file to the CDN network.
[0113] Step 404: The CDN network determines that the HTTP request for requesting the Xth TS file carries the QSF identifier, sets a TOS mark for the Xth TS file, and prioritizes returning the Xth TS file to the set-top box.
[0114] Step 405: The set-top box adds a QSF parameter to the URL corresponding to the HTTP request for requesting the X+1th TS file, and sends the HTTP request for requesting the X+1th TS file to the CDN network.
[0115] Step 406, the CDN network determines that the HTTP request for requesting the X+1th TS file carries the QSF identifier, sets a TOS mark for the X+1th TS file, and prioritizes returning the X+1th TS file to the set-top box.
[0116] Step 407: The set-top box adds a QSF parameter to the URL corresponding to the HTTP request for requesting the X+2th TS file, and sends the HTTP request for requesting the X+2th TS file to the CDN network.
[0117] Step 408: The CDN network determines that the HTTP request for requesting the X+2th TS file carries the QSF identifier, sets a TOS mark for the X+2th TS file, and prioritizes returning the X+2th TS file to the set-top box.
[0118] Step 409: The set-top box adds a QSF parameter to the URL corresponding to the HTTP request for requesting the X+3th TS file, and sends the HTTP request for requesting the X+3th TS file to the CDN network.
[0119] Step 410: The CDN network determines that the HTTP request for requesting the X+3th TS file carries a QSF identifier, sets a TOS mark for the X+3th TS file, and prioritizes returning the X+3th TS file to the set-top box.
[0120] Step 411: The set-top box adds a QSF parameter to the URL corresponding to the HTTP request for requesting the X+4th TS file, and sends the HTTP request for requesting the X+4th TS file to the CDN network.
[0121] Step 412, the CDN network determines that the HTTP request for requesting the X+4th TS file carries the QSF identifier, sets a TOS mark for the X+4th TS file, and prioritizes returning the X+4th TS file to the set-top box.
[0122] Step 413: The set-top box sends an HTTP request for requesting the X+5th TS file to the CDN network, and the QSF parameter is not added to the HTTP request for requesting the X+5th TS file.
[0123] Step 414: The CDN determines that the HTTP request for requesting the X+5th TS file does not carry the QSF identifier, and returns the X+5th TS file to the set-top box with normal priority.
[0124] In the above example, when fast forwarding / fast rewinding to the Xth TS file, the QSF parameter is added to the HTTP request for requesting the Xth to X+4th TS files, and the transmission of the Xth to X+4th TS files is prioritized, thereby improving the user experience. The QSF parameter is not added to the HTTP request for requesting the X+5th TS file and subsequent TS files, which can avoid excessive security data in the network.
[0125] Video service on-demand (including playback scenarios) is based on HLS / FLV audio and video TS file distribution. For example, a high-definition 1080P video program has an average bit rate of 8Mb / s, in which an I frame appears once every 2 seconds. Video services are usually cut into multiple TS files for burst distribution according to the 10-second audio and video stream. In this solution, under the condition of giving priority to fast forward and rewind, the X~X+N-1 (a total of N) TS files, in a 100M optical bandwidth environment, the TS file can be sent to the player of the set-top box at a burst rate of more than 80Mb / s, and the I frame is compressed to an interval of 200ms. It can be played as long as the I frame arrives, without having to wait until the entire TS file is downloaded before playing. When the user performs fast forward and rewind operations, the player program of the set-top box is running normally. After adopting this guarantee method, the total response time of fast forward and rewind on-demand (including playback) can be controlled within 0.3 seconds, which can significantly improve the user's perceived experience compared to the response speed of more than 0.7 seconds in the prior art.
[0126] Based on the same technical concept, Figure 5 A video service processing device provided by an embodiment of the present invention is exemplarily shown, and the device can execute the flow of the data video service processing method.
[0127] like Figure 5 As shown, the device comprises:
[0128] A receiving unit 501 is used to receive a user operation instruction from a terminal device, where the user operation instruction is used to perform interactive operations on a video service;
[0129] A generating unit 502 is configured to generate M HTTP requests in response to the user operation instruction; at least one HTTP request among the M HTTP requests includes a QSF identifier, and the QSF identifier is used by the network device to preferentially process a TS file corresponding to the HTTP request carrying the QSF identifier;
[0130] The sending unit 503 is used to send the M HTTP requests to the network device in sequence;
[0131] The receiving unit 501 is further configured to receive M HTTP responses from the network device; the HTTP response corresponding to each HTTP request includes a TS file corresponding to the HTTP request.
[0132] Optionally, the interactive operation includes any one of the following: on-demand operation, channel switching operation, fast forward / fast rewind operation.
[0133] Optionally, the interactive operation is a video-on-demand operation, N HTTP requests among the M HTTP requests include a QSF identifier, and the N HTTP requests are used to request first N TS files of a video service corresponding to the video-on-demand operation, where N is a positive integer less than M.
[0134] Optionally, the interactive operation is a switching operation for switching from a video of a first channel to a video of a second channel, N HTTP requests among the M HTTP requests include a QSF identifier, and the N HTTP requests are used to request the first N TS files of the video of the second channel, where N is a positive integer less than M.
[0135] Optionally, the interactive operation is a fast forward / fast rewind operation for jumping from requesting to play a first TS file to requesting to play a second TS file, N HTTP requests among the M HTTP requests include a QSF identifier, and the N HTTP requests are used to request the second TS file and N-1 TS files after the second TS file, and N is a positive integer less than M.
[0136] Based on the same technical concept, Figure 6 Another video service processing device provided by an embodiment of the present invention is exemplarily shown, and the device can execute the flow of the data video service processing method.
[0137] like Figure 6 As shown, the device comprises:
[0138] The receiving unit 601 is used to receive an HTTP request from a set-top box;
[0139] The processing unit 602 is configured to preferentially transmit the TS file corresponding to the HTTP request carrying the QSF identifier if the HTTP request carries the QSF identifier.
[0140] Based on the same technical concept, an embodiment of the present invention provides a video service processing device, including:
[0141] A memory for storing program instructions;
[0142] The processor is used to call the program instructions stored in the memory and execute the video service processing method according to the obtained program.
[0143] Based on the same technical concept, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute a video service processing method.
[0144] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0145] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0146] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0147] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0148] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0149] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of this application and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A video service processing method, characterized in that: include: The set-top box receives a user operation instruction from a terminal device, wherein the user operation instruction is used to perform interactive operations on a video service; The set-top box generates M hypertext transfer protocol HTTP requests in response to the user operation instruction; the M HTTP requests are used to request the network device to send the TS file after the interactive operation of the video service, at least one HTTP request of the M HTTP requests includes a QSF identifier, and the QSF identifier is used by the network device to preferentially transmit the transport stream TS file corresponding to the HTTP request carrying the service quality flag QSF identifier, and M is a positive integer; The set-top box sends the M HTTP requests to the network device in sequence; The set-top box receives M HTTP responses from the network device; the HTTP response corresponding to each HTTP request includes a TS file corresponding to the HTTP request, and the set-top box preferentially receives at least one HTTP response corresponding to the at least one HTTP request from the network device.
2. The method according to claim 1, characterized in that The interactive operation includes any of the following: On-demand operation, channel switching operation, fast forward / fast rewind operation.
3. The method according to claim 1 or 2, characterized in that The interactive operation is a video-on-demand operation, N HTTP requests among the M HTTP requests include a QSF identifier, the N HTTP requests are used to request the first N TS files of the video service corresponding to the video-on-demand operation, and N is a positive integer less than M.
4. The method according to claim 1 or 2, characterized in that: The interactive operation is a switching operation for switching from a video of a first channel to a video of a second channel, N HTTP requests among the M HTTP requests include a QSF identifier, and the N HTTP requests are used to request the first N TS files of the video of the second channel, where N is a positive integer less than M.
5. The method according to claim 1 or 2, characterized in that: The interactive operation is a fast forward / fast rewind operation for jumping from requesting to play the first TS file to requesting to play the second TS file, N HTTP requests among the M HTTP requests include a QSF identifier, and the N HTTP requests are used to request the second TS file and N-1 TS files after the second TS file, and N is a positive integer less than M.
6. A video service processing method, characterized in that: include: The network device receives M HTTP requests from the set-top box; wherein the M HTTP requests are used to request the network device to send down the TS file after the interactive operation on the video service, at least one HTTP request among the M HTTP requests includes a QSF identifier, and the QSF identifier is used by the network device to preferentially transmit the transport stream TS file corresponding to the HTTP request carrying the service quality flag QSF identifier, and M is a positive integer; For any one of the M HTTP requests, if the HTTP request carries a QSF identifier, the network device preferentially transmits the TS file corresponding to the HTTP request carrying the QSF identifier; if the HTTP request does not carry the QSF identifier, the network device transmits the TS file corresponding to the HTTP request not carrying the QSF identifier in a traditional manner.
7. A video service processing device, characterized in that: include: A receiving unit, used to receive a user operation instruction from a terminal device, wherein the user operation instruction is used to perform interactive operations on a video service; A generating unit, configured to generate M HTTP requests in response to the user operation instruction; The M HTTP requests are used to request the network device to send the TS file after the interactive operation of the video service, at least one HTTP request among the M HTTP requests includes a QSF identifier, and the QSF identifier is used by the network device to preferentially process the TS file corresponding to the HTTP request carrying the QSF identifier, and M is a positive integer; A sending unit, configured to send the M HTTP requests to the network device in sequence; The receiving unit is also used to receive M HTTP responses from the network device; the HTTP response corresponding to each HTTP request includes a TS file corresponding to the HTTP request, and the receiving unit preferentially receives at least one HTTP response corresponding to the at least one HTTP request from the network device.
8. The device according to claim 7, characterized in that The interactive operation includes any of the following: On-demand operation, channel switching operation, fast forward / fast rewind operation.
9. The device according to claim 7 or 8, characterized in that The interactive operation is a video-on-demand operation, N HTTP requests among the M HTTP requests include a QSF identifier, the N HTTP requests are used to request the first N TS files of the video service corresponding to the video-on-demand operation, and N is a positive integer less than M.
10. The device according to claim 7 or 8, characterized in that The interactive operation is a switching operation for switching from a video of a first channel to a video of a second channel, N HTTP requests among the M HTTP requests include a QSF identifier, and the N HTTP requests are used to request the first N TS files of the video of the second channel, where N is a positive integer less than M.
11. The device according to claim 7 or 8, characterized in that The interactive operation is a fast forward / fast rewind operation for jumping from requesting to play the first TS file to requesting to play the second TS file, N HTTP requests among the M HTTP requests include a QSF identifier, and the N HTTP requests are used to request the second TS file and N-1 TS files after the second TS file, and N is a positive integer less than M.
12. A video service processing device, characterized in that: include: A receiving unit, configured to receive M HTTP requests from a set-top box; wherein the M HTTP requests are used to request a network device to send a TS file after performing an interactive operation on a video service, at least one of the M HTTP requests includes a QSF identifier, and the QSF identifier is used by the network device to preferentially transmit a transport stream TS file corresponding to an HTTP request carrying a service quality flag QSF identifier, and M is a positive integer; A processing unit is used for, for any one of the M HTTP requests, if the HTTP request carries a QSF identifier, preferentially transmitting the TS file corresponding to the HTTP request carrying the QSF identifier; if the HTTP request does not carry the QSF identifier, transmitting the TS file corresponding to the HTTP request not carrying the QSF identifier in a traditional manner.
13. A video service processing device, characterized in that: include: A memory for storing program instructions; A processor, configured to call the program instructions stored in the memory, and execute the method according to any one of claims 1 to 5 according to the obtained program, or execute the method according to claim 6.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the method according to any one of claims 1 to 5, or to execute the method according to claim 6.
