Local high code stream file playing method and playing device of cloud computer and non-temporary computer readable medium
By using cloud applications in cloud computers to identify and monitor the playback process of local high-code stream files, and sending video code stream commands to play locally on the cloud, the problem of lag caused by network restrictions during cloud computers playing high-code stream videos is solved, and the user experience is improved.
Patent Information
- Application Number
- CN202510015479.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-06
- Publication Date
- 2025-04-25
AI Technical Summary
When cloud computers play local high-bit rate videos, due to network and broadband restrictions, there are serious lags, resulting in poor user experience.
Through cloud applications, iterate through the client's local video files, mark and record the names of high-code stream files, and monitor their playback process. When the cloud detects that the high-code stream file enters the playback process, it sends a video code stream command to the client, so that the client can use the local playback application to play the high-code stream file, avoiding the transfer of the video file to the cloud to decode.
It reduces the lag in playing high-code stream files, enables local high-code stream files to be played smoothly on the client, and improves the user's experience of using cloud computers.
Smart Images

Figure CN119893223A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of cloud computer technology, and in particular to a local high-code stream file playback method, a playback device and a non-temporary computer-readable medium of a cloud computer. Background Art
[0002] Cloud PC is a new computer form based on cloud computing technology. It integrates the CPU, memory, storage and other hardware resources of traditional computers into cloud servers. Users can remotely access and use these resources through mobile phones, tablets and other terminal devices. It is an Android-based terminal product. By installing operator-specific cloud applications as a bridge, the terminal device can access the cloud after logging in to the registered account, and then map the video and pictures in the cloud to the terminal device to realize the operation and use of the cloud computer.
[0003] The way to play local videos on a cloud computer is to first upload the client's local video to the cloud, and then decode and play it through the cloud; for example, insert a USB flash drive or other USB storage device on the client side of the cloud computer, and use the network sharing function of the storage device so that the client and the cloud can share the USB flash drive or other USB storage device; when you click on the video resource of the USB flash drive on the cloud desktop, the cloud will obtain the IP packet of the specified video resource sent by the client, and complete the parsing and playback; the client also needs to obtain the video playback effect packet sent back by the cloud before it can be presented on the display screen to complete the playback. In terms of network speed, bandwidth and other limitations, when the client plays a local high-bitrate video, the video will freeze due to insufficient bitrate, resulting in serious freezes when the cloud computer plays high-definition videos such as 4K / 8K, resulting in a poor user experience. Summary of the invention
[0004] The purpose of the present invention is to provide a local high-bitrate file playback method, a playback system and a computer-readable USB storage device for a cloud computer to address the problem that when a cloud computer in the prior art plays a local high-bitrate video, there is severe lag due to network and broadband limitations, resulting in a poor user experience.
[0005] In order to achieve the above object, the technical solution adopted by the present invention is:
[0006] A method for playing local high-code stream files on a cloud computer comprises the following steps:
[0007] S1. Traverse the local video files of the client through the cloud application; mark the high-code stream files in the local video files; and record the names of the high-code stream files into a list file; monitor the playback progress of the video files corresponding to the names in the list file;
[0008] S2. If the cloud detects that the high-code stream file enters the playback process, a video code stream command is sent to the cloud application of the client, so that the client uses a local playback application to play the high-code stream file.
[0009] The local high-code stream file playback method of the cloud computer described in the present invention identifies the video files in the local files, marks the local high-code stream files, and records the names of the high-code stream files in the list file, so that the cloud can monitor or identify the high-code stream files that start the process in the list file through the cloud application. After monitoring that the client enters the process of playing the high-code stream file using the cloud computer resources, the cloud switches the local high-code stream file to the local playback application for playback through the video code stream command. The local high-code stream file does not need to be transmitted to the cloud for decoding before it can be played, thereby avoiding the transmission of high-code stream local video files to the cloud, thereby avoiding the influence of network speed and broadband on the playback of high-code stream files, reducing the jamming phenomenon of high-code stream file playback, and enabling local high-code stream files to be played more smoothly on the client, thereby improving the user experience of using the cloud computer.
[0010] Preferably, the local high-code stream file playback method of the cloud computer of the present invention traverses the local video files of the client, specifically comprising the following steps:
[0011] S11. The client monitors whether a USB storage device insertion event occurs through a thread loop; if the USB storage device insertion event is detected, the metadata of the local video file in the USB storage device is obtained through ffmpeg-python; the metadata includes resolution, bit rate and frame rate.
[0012] As a preferred solution of the present invention, the client monitors the USB storage device insertion event through a thread loop, which can not only traverse other local files of the client, but also monitor the USB storage device insertion event through a thread loop. If the USB storage device is inserted, the metadata of the local video file in the USB storage device is obtained, and then the local video files can be checked in real time, reducing the omission of high-bitrate files due to omission of recording local video files, reducing the possibility of high-bitrate file transmission jams, and further enhancing the smoothness of local high-bitrate file playback.
[0013] Preferably, the local high-code stream file playback method of the cloud computer described in the present invention monitors the playback progress of the video files corresponding to the names in the list file, and further includes the following steps:
[0014] S12: If the USB storage device insertion event is detected, the playback process monitoring system pre-installed in the client is integrated into the USB storage device.
[0015] As a preferred solution of the present invention, through step S12, the playback process monitoring system can be integrated into the USB storage device, so that the cloud can access and read the high-bitrate files in the USB storage device and call the playback process monitoring system. The playback process monitoring system can directly monitor the playback process of the high-bitrate files in the USB storage device, reduce the running memory of the playback process monitoring system, and further improve the efficiency and accuracy of the playback process monitoring.
[0016] Preferably, the local high-code stream file playback method of the cloud computer described in the present invention monitors the playback progress of the video files corresponding to the names in the list file, and specifically includes the following steps:
[0017] S13, the client sends an instruction to the cloud to run the playback process monitoring system;
[0018] S14, collecting progress information of video file playback, and saving the progress information locally;
[0019] S15, comparing the process information with the high-code stream file in the local video file, and if the process information matches the information of the high-code stream file, determining that the high-code stream file is entering the playback process.
[0020] As a preferred solution of the present invention, through step S13, it is possible to quickly and relatively accurately monitor that a high bit rate file enters the playback process, thereby improving the accuracy and efficiency of monitoring the playback process of the high bit rate file.
[0021] Preferably, the local high-code stream file playback method of the cloud computer described in the present invention, the collecting of the process information of the video file playback in S14 specifically includes the following steps: collecting the process information of the video file playback once every second.
[0022] As a preferred solution of the present invention, by collecting the process information of the video file playback once every second, the errors of high-code and streaming files that are not monitored due to the long playback process are reduced, thereby reducing the risk of playback jams caused by high-code streaming files occupying cloud resources for playback, improving the accuracy of high-code streaming file playback control, and further improving the smoothness of high-code streaming file playback.
[0023] Preferably, the local high-code stream file playback method of the cloud computer described in the present invention, the S2 also includes: when the video code stream command is received, ending the process of playing the high-code stream file in the cloud.
[0024] As a preferred solution of the present invention, by executing the instruction to end the process in the video playback process monitoring system, the playback record of the high-bitrate stream file in the cloud can be quickly and without residue. On the one hand, the playback of the high-bitrate stream file in the cloud can be accurately ended, and on the other hand, the process can be cleared to avoid playback errors, further reducing the chance of video playback freezes.
[0025] Preferably, the local high-bitrate stream file playback method of the cloud computer described in the present invention, wherein the local playback application in S2 plays the high-bitrate stream file, specifically includes the following steps: after the cloud application receives the IP packet of the video bitstream command, it parses and obtains the playback information of the high-bitrate stream file corresponding to the video bitstream command, starts the local playback application, and completes the playback of the high-bitrate stream file.
[0026] As a preferred solution of the present invention, by receiving IP packets of video bitstream commands through cloud applications, faster communication transmission can be achieved to obtain playback commands of high-bitstream files, and playback information can be obtained through analysis, so that the playback file and the high-bitstream file correspond to each other, thereby improving the accuracy of playback and reducing the probability of playback errors or freezes.
[0027] In order to achieve the purpose of the present invention, the present invention also provides a local high-code stream file playback device of a cloud computer, which implements the above-mentioned local high-code stream video playback method, including: a video file analysis module, a playback process monitoring module, a communication module, a video playback module, and a playback control module;
[0028] The video file analysis module is used to mark the high-code stream file and record the name of the high-code stream file in the list file; the playback process monitoring module is used to monitor the playback process of the high-code stream file; the communication module is used for communication and data transmission between the client and the cloud; the video playback module is used to play the high-code stream file; the playback control module is used to end or play the playback process of the high-code stream file in the cloud.
[0029] The local high-code stream file playback device of the cloud computer of the present invention can record the high-code stream files in the local files through the video file analysis module through the various modules set up, and record them in the list file after marking. The cloud can monitor whether the high-code stream files enter the playback process through the playback process monitoring module. Once the high-code stream files in the local files enter the playback process, the video code stream command is sent to the client through the communication module, so that the client uses the local playback application to play the high-code stream files. The communication transmission only needs to transmit the IP packet corresponding to the high-code stream file name, thereby avoiding the transmission of high-code stream local video files to the cloud, thereby avoiding the influence of network speed and broadband on the playback of high-code stream files, reducing the jamming phenomenon of high-code stream file playback, and enabling local high-code stream files to be played more smoothly on the client, thereby improving the user experience of using the cloud computer.
[0030] Preferably, the local high-code stream file playback device of the cloud computer described in the present invention further includes an event monitoring module; the event monitoring module is used to monitor whether the insertion event of the USB storage device occurs.
[0031] As a preferred solution of the present invention, through the event monitoring module, it is possible to monitor whether an insertion event of an external USB storage device into a cloud computer occurs. Once an external USB storage device insertion event occurs, the high-code stream files in the external USB storage device can be played locally, thereby enabling the device to detect and play local high-code stream files more comprehensively, avoiding missing monitoring of external USB storage devices, and further improving the smoothness of playing local high-code stream files.
[0032] A non-temporary computer readable storage medium stores a computer program, which, when executed by a processor, implements the local high-code stream file playback method of a cloud computer described in the present invention.
[0033] In summary, due to the adoption of the above technical solution, the beneficial effects of the present invention are:
[0034] When the playback process monitoring system detects that a high-bitrate file in the local video file is being played, the cloud will send a video bitrate command corresponding to the high-bitrate file to the client's cloud application, use the local playback application to play the high-bitrate file, and end the cloud playback process. There is no need to transfer the client's local video file to the cloud first to achieve playback, thereby avoiding network reasons such as network speed and bandwidth, and achieving smooth video playback. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 It is a flow chart of a method for playing local high-code stream files on a cloud computer of the present invention;
[0036] Figure 2 It is a schematic diagram of the interactive execution of the local high-code stream file playback device of the cloud computer of the present invention. DETAILED DESCRIPTION
[0037] The present invention will be described in detail below in conjunction with the accompanying drawings.
[0038] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0039] Embodiment 1:
[0040] This embodiment provides a method for playing local high-bitrate stream files on a cloud computer, comprising the following steps:
[0041] S1. Traverse the local video files of the client through the cloud application; mark the high-code stream files in the local video files; and record the names of the high-code stream files into a list file; monitor the playback progress of the video files corresponding to the names in the list file;
[0042] S2. If the cloud detects that a high-bitrate file has entered the playback process, a video bitrate command is sent to the cloud application of the client, so that the client uses a local playback application to play the high-bitrate file.
[0043] It should be noted that video bitstream is also called bit rate or data rate, which refers to the data flow rate used by a video file per unit time. The high bitstream file or high bitstream file mentioned in the present invention is understood to be a video file that uses a large amount of flow data per unit time, for example, a 4K or 8K bitstream video file with a resolution width and height greater than or equal to 3840×2160.
[0044] The cloud application is understood to be an application software that is adapted based on the Android system, can connect to local client Android system resources, and can also connect to cloud communications. It uses the client operator's cloud application as a communication bridge to achieve shared cloud resources.
[0045] Specifically, the present invention traverses the local video files of the client, and specifically includes the following steps: S11, the client monitors whether the USB storage device insertion event occurs through a thread loop; if the USB storage device insertion event is detected, the metadata of the local video file in the USB storage device is obtained through ffmpeg-python; the metadata includes resolution, bit rate and frame rate; it should be noted that ffmpeg-python is understood as a high-level programming language library, which provides an interface to the FFmpeg command line tool, can process video and audio data, and allows developers of high-level programming languages, such as the python programming language, to directly use FFmpeg functions in their programs without directly calling the command line.
[0046] It should be noted that the local playback application is understood as the video playback software installed on the client, which can play the local video files of the client without using network communication. Specifically, the local playback application in S2 plays the high-bitrate stream file, which specifically includes the following steps: After the cloud application receives the IP packet of the video bitstream command, it parses and obtains the playback information of the high-bitrate stream file corresponding to the video bitstream command, starts the local playback application, and completes the playback of the high-bitrate stream file.
[0047] It should be noted that the reference Figure 1As shown, between steps S1 and S2 of the present invention, it also includes judging whether the high-code stream file enters the playback process. For example, it is judged whether there is a 4K / 8K code stream video file in the USB storage device during the playback process. If the high-code stream file is not played, by monitoring the playback process of the video file corresponding to the name in the list file, it can be known that the high-code stream file has not entered the playback process. The cloud continues to monitor the playback process of the video file in the list file. If it is monitored that the corresponding high-code stream file in the list file enters the playback process, step S2 is executed to realize local playback of the high-code stream file.
[0048] Specifically, monitoring the playback process corresponding to the name in the list file also includes the following steps:
[0049] S12. If a USB storage device insertion event is detected, the playback process monitoring system pre-installed in the client is integrated into the USB storage device; in the case of a USB storage device insertion event, such as a USB flash drive being inserted into the client, the playback process of the video file corresponding to the name in the list file is monitored, specifically including the following steps: S13. The client sends an instruction to the cloud to run the playback process monitoring system;
[0050] S14, collecting the progress information of the video file playback, which can be collecting the progress information of the video file playback once every second, and then saving the progress information locally; S15, comparing the progress information with the high-code stream file in the local video file. If the progress information matches the information of the high-code stream file, it is determined that the high-code stream file has entered the playback process.
[0051] Specifically, ending S2 in the present invention also includes the following steps: when receiving a video code stream command, ending the process of playing the high code stream file in the cloud; for example, the instruction to end the process includes the taskkill-F / pidxxx instruction.
[0052] The local high-code stream file playback method of the cloud computer of the present invention, the video code stream command is sent in S2, specifically comprising the following steps: by means of network packet sending, the name of the high-code stream file is packaged into an IP data packet, and then transmitted to the cloud application of the client; by means of network packet sending, the name of the high-code stream file is packaged into an IP data packet, and then transmitted to the cloud application of the client, and only the IP data packet containing the high-code stream file needs to be transmitted through the network, and the video file does not need to be transmitted, thereby ensuring that the name information of the high-code stream file can be correctly transmitted, and reducing the file capacity of the network transmission, so that the name information of the high-code stream file can be transmitted to the cloud application of the client at a faster speed, thereby improving the communication transmission efficiency and further enhancing the smoothness of the video playback of the high-code stream file.
[0053] Embodiment 2:
[0054] This embodiment provides a local high-code stream file playback device of a cloud computer, which implements the local high-code stream video playback method described in Embodiment 1, including: a video file analysis module, a playback process monitoring module, a communication module, a video playback module, and a playback control module;
[0055] The video file analysis module is used to mark high-bitrate files and record the names of high-bitrate files in a list file; the playback process monitoring module is used to monitor the playback process of high-bitrate files; the communication module is used for communication and data transmission between the client and the cloud; the video playback module is used to play high-bitrate files; and the playback control module is used to end or play the playback process of high-bitrate files on the cloud.
[0056] refer to Figure 2 As shown, the video file analysis module is arranged on the client, the playback process monitoring module is arranged on the client, and can be integrated into a USB storage device. For example, the playback process monitoring module is integrated into a USB storage device, so that the cloud can share and run the playback process monitoring system; the communication module is arranged on the client and the cloud, and the video playback module includes a playback module arranged on the cloud and a playback module arranged on the client; the playback control module is arranged on the cloud.
[0057] Specifically, the local high-code stream file playback device of the cloud computer further includes an event monitoring module; the event monitoring module is used to monitor the insertion event of the USB storage device. It should be noted that the insertion event of the USB storage device of the present invention can be understood as the situation where a USB flash drive or other USB storage device is inserted into the client's computer.
[0058] In this embodiment, reference Figure 2 As shown, the communication module is understood as a module that enables the client to interact and communicate with the client through the cloud application, such as an RJ45 or WIFi communication module.
[0059] Specific operations of using this device: After the user enters the cloud desktop, insert the U disk with video resources into the cloud computer hardware device. When the U disk is inserted into the client hardware, the client's cloud application traverses the U disk content, records the file records belonging to the 4K / 8K video code stream in the U disk, and stores them in the U disk; at this time, the playback process monitoring system preset in the client is also integrated into the U disk; the client's cloud application sends instructions to the cloud to run the playback process monitoring system; when the playback process monitoring system detects that the high-code stream file in the U disk enters the playback process, the cloud sends the video code stream command corresponding to the high-code stream file to the client's cloud application, and ends the cloud playback process.
[0060] Embodiment 3:
[0061] This embodiment provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, Figure 1 As shown, the local high-code stream file playback method of the cloud computer of Example 1 can be implemented.
[0062] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A local high-stream video playback method for a cloud computer, characterized in that: The following steps are involved: S1. Traversing local video files of the client through a cloud application; marking high-bitrate files in the local video files; and recording the names of the high-code stream files into a list file; and monitoring the playing progress of the video files corresponding to the names in the list file; S2. If the cloud detects that the high-code stream file enters the playback process, a video code stream command is sent to the cloud application of the client, so that the client uses a local playback application to play the high-code stream file.
2. The local high-bitrate video playback method of a cloud computer according to claim 1, characterized in that: Traversing the local video files of the client includes the following steps: S11. The client monitors whether a USB storage device insertion event occurs through a thread loop; if the USB storage device insertion event is detected, the metadata of the local video file in the USB storage device is obtained through ffmpeg-python; the metadata includes resolution, bit rate and frame rate.
3. The local high-bitrate video playback method of a cloud computer according to claim 2, characterized in that: Monitoring the playback progress of the video files corresponding to the names in the list file also includes the following steps: S12: If the USB storage device insertion event is detected, the playback process monitoring system pre-installed in the client is integrated into the USB storage device.
4. The local high-bitrate video playback method of a cloud computer according to claim 3, characterized in that: Monitoring the playback progress of the video files corresponding to the names in the list file specifically includes the following steps: S13, the client sends an instruction to the cloud to run the playback process monitoring system; S14, collecting progress information of video file playback, and saving the progress information locally; S15, comparing the process information with the high-code stream file in the local video file, and if the process information matches the information of the high-code stream file, determining that the high-code stream file is entering the playback process.
5. The local high-bitrate video playback method of a cloud computer according to claim 4, characterized in that: Collecting the progress information of the video file playing in S14 specifically includes the following steps: collecting the progress information of the video file playing once every one second.
6. The local high-bitrate video playback method of a cloud computer according to claim 1, characterized in that: The S2 also includes: when receiving the video code stream command, ending the process of playing the high code stream file in the cloud.
7. The local high-bitrate video playback method of a cloud computer according to claim 1, characterized in that: The local playback application of S2 plays the high-bitrate stream file, specifically including the following steps: after the cloud application receives the IP packet of the video bitstream command, it parses and obtains the playback information of the high-bitrate stream file corresponding to the video bitstream command, starts the local playback application, and completes the playback of the high-bitrate stream file.
8. The local high-code stream file playback device of the cloud computer is characterized by: A method for playing local high-code stream files of a cloud computer as described in any one of claims 1 to 7, comprising: a video file analysis module, a play process monitoring module, a communication module, a video play module, and a play control module; The video file analysis module is used to mark the high-code stream file and record the name of the high-code stream file in the list file; the playback process monitoring module is used to monitor the playback process of the high-code stream file; the communication module is used for communication and data transmission between the client and the cloud; the video playback module is used to play the high-code stream file; the playback control module is used to end or play the playback process of the high-code stream file in the cloud.
9. The local high-code stream file playback device of the cloud computer according to claim 8, characterized in that: It also includes an event monitoring module; the event monitoring module is used to monitor the insertion event of the USB storage device.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the local high-bitrate stream file playback method of a cloud computer as described in any one of claims 1-7 is implemented.