CN117319723A - Video playing processing method and device, storage medium and electronic equipment - Google Patents

Video playing processing method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN117319723A
CN117319723A CN202311246288.6A CN202311246288A CN117319723A CN 117319723 A CN117319723 A CN 117319723A CN 202311246288 A CN202311246288 A CN 202311246288A CN 117319723 A CN117319723 A CN 117319723A
Authority
CN
China
Prior art keywords
code stream
stream data
video
client
equipment
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
CN202311246288.6A
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 QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and 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 QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN202311246288.6A priority Critical patent/CN117319723A/en
Publication of CN117319723A publication Critical patent/CN117319723A/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/41Structure of client; Structure of client peripherals
    • H04N21/414Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance
    • H04N21/41407Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance embedded in a portable device, e.g. video client on a mobile phone, PDA, laptop
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • H04N21/26208Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists the scheduling operation being performed under constraints
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • H04N21/26291Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists for providing content or additional data updates, e.g. updating software modules, stored at the client
    • 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/458Scheduling content for creating a personalised stream, e.g. by combining a locally stored advertisement with an incoming stream; Updating operations, e.g. for OS modules ; time-related management operations
    • H04N21/4586Content update operation triggered locally, e.g. by comparing the version of software modules in a DVB carousel to the version stored locally
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

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

Abstract

The application discloses a video playing processing method, a video playing processing device, a storage medium and electronic equipment, wherein the method comprises the following steps: when video playing software of a client plays videos, detecting whether video playing is blocked, if the video playing is detected to be blocked, acquiring target code stream data when the video playing software plays videos, sending the target code stream data to a server of the video playing software, and equipment models and/or equipment CPUs corresponding to the client, so that the server closes the target code stream data corresponding to the equipment models and/or the equipment CPUs, updates the code stream data corresponding to the equipment models and/or the equipment CPUs, obtains updated code stream data, and sends code stream data update information to the client, wherein the code stream data update information comprises the updated code stream data, and the client receives the code stream data update information and plays videos according to the updated code stream data, so that the subsequent client plays videos smoothly through the video playing software.

Description

Video playing processing method and device, storage medium and electronic equipment
Technical Field
The present invention relates to the field of video playing processing technologies, and in particular, to a video playing processing method, a device, a storage medium, and an electronic apparatus.
Background
At present, the models of mobile phones are increasingly multiplied, the models of mobile phones using the same CPU chip have tens or hundreds of models, certain video playing software, such as an Aiqi process APP, can support various code stream data such as 1080, 2k, 4k and the like when playing videos on mobile phones of different models, and when the CPU meets the functions, the situation that the video playing process is blocked can be caused due to poor support of certain models in mobile phones of manufacturers under certain conditions. However, in the related art, when the code stream data configuration is modified for the affected model, the modification can be performed only by a human, so that the efficiency is low.
Disclosure of Invention
The embodiment of the application provides a video playing processing method, a video playing processing device, a storage medium and electronic equipment, which can automatically modify code stream data during video playing, so that the video playing is smooth, and the efficiency of modifying the configuration of the code stream data for the affected machine type is improved.
In a first aspect, an embodiment of the present application provides a video playing processing method, applied to a client, including:
when video playing software of the client plays videos, detecting whether video playing is blocked or not;
if the video playing is detected to be blocked, acquiring target code stream data when video playing software plays the video;
The target code stream data and the equipment model and/or the equipment CPU corresponding to the client are sent to the server of the video playing software, so that the server closes the target code stream data corresponding to the equipment model and/or the equipment CPU and updates the code stream data corresponding to the equipment model and/or the equipment CPU to obtain updated code stream data, and a code stream data update message is sent to the client, wherein the code stream data update message comprises the updated code stream data;
and receiving the code stream data updating message sent by the server, and playing the video according to the updated code stream data so as to enable the subsequent client to be smooth when playing the video through the video playing software.
In some embodiments, the detecting whether the video playing is stuck comprises:
when a video is played, acquiring a play code stream data packet of the video with preset duration once in each preset time period, and decoding the play code stream data packet into audio stream data and video stream data;
acquiring a first playing time and a second playing time when the audio stream data and the video stream data are simultaneously played;
And when the first playing time is detected to be inconsistent with the second playing time, determining that the video playing is blocked.
In some embodiments, before the video playing software of the client detects whether the video playing is blocked when the video is played, the method further includes:
calling an interface service to acquire code stream data configured by the server according to the equipment model and/or the equipment CPU dimension;
displaying the code stream definition corresponding to the code stream data;
receiving selection operation of a user for the code stream definition, and determining target code stream definition for video playing;
determining the target code stream data corresponding to the target code stream definition;
and playing the video according to the target code stream data.
In some embodiments, the sending the target bitstream data to the server of the video playing software includes:
and delivering the target code stream data to the server through a log delivery function.
In a second aspect, an embodiment of the present application provides a video playing processing method, which is applied to a server, and includes:
receiving target code stream data sent by a client, and a device model and/or a device CPU (Central processing Unit) corresponding to the client;
Closing the target code stream data corresponding to the equipment model and/or the equipment CPU, and updating the code stream data corresponding to the equipment model and/or the equipment CPU to obtain updated code stream data;
and sending a code stream data update message to the client, wherein the code stream data update message comprises the updated code stream data so that the client receives the updated code stream data.
In some embodiments, an embodiment of the present application provides a video playing processing method, further including:
receiving a code stream configuration request sent by the client, wherein the code stream configuration request carries a target equipment model and/or an equipment CPU (central processing unit) corresponding to the client;
matching code stream data according to the equipment model and a preset code stream configuration table, wherein the preset code stream configuration table comprises the corresponding relation between the equipment model and/or the equipment CPU and the code stream data;
if the code stream data cannot be matched according to the equipment model and the preset code stream configuration table, the code stream data are matched according to the equipment CPU.
In some embodiments, the closing the target code stream data corresponding to the device model and/or the device CPU includes:
And when the server receives the target code stream data delivered by different clients of the same equipment model and/or equipment CPU in a preset number in the past preset time, closing the target code stream data corresponding to the equipment model and/or equipment CPU.
In a third aspect, an embodiment of the present application further provides a video playing processing device, applied to a client, including:
the detection unit is used for detecting whether video playing is blocked or not when the video playing software of the client plays the video;
the acquisition unit is used for acquiring target code stream data when the video playing software plays the video if the video playing is detected to be blocked;
a first sending unit, configured to send the target code stream data to a server of the video playing software, and an equipment model and/or an equipment CPU corresponding to the client, so that the server closes the target code stream data corresponding to the equipment model and/or the equipment CPU, updates the code stream data corresponding to the equipment model and/or the equipment CPU, and obtains updated code stream data, and sends a code stream data update message to the client, where the code stream data update message includes the updated code stream data;
The first processing unit is used for receiving the code stream data updating message sent by the server and playing the video according to the updated code stream data so as to enable the subsequent client to be smooth when playing the video through the video playing software.
In a fourth aspect, an embodiment of the present application further provides a video playing processing device, applied to a server, including:
the second receiving unit is used for receiving target code stream data sent by the client and equipment models and/or equipment CPUs corresponding to the client;
the second processing unit is used for closing the target code stream data corresponding to the equipment model and/or the equipment CPU, updating the code stream data corresponding to the equipment model and/or the equipment CPU, and obtaining updated code stream data;
and the second sending unit is used for sending a code stream data update message to the client, wherein the code stream data update message comprises the updated code stream data so that the client receives the updated code stream data.
In a fifth aspect, embodiments of the present application further provide a computer-readable storage medium, on which a computer program is stored, which when run on a computer causes the computer to perform a video playback processing method as provided in any of the embodiments of the present application.
In a sixth aspect, an embodiment of the present application further provides an electronic device, including a processor and a memory, where the memory has a computer program, and the processor is configured to execute the video playing processing method provided in any embodiment of the present application by calling the computer program.
The technical scheme provided by the embodiment of the application is applied to a client, when video playing software of the client plays videos, whether video playing is blocked or not is detected, if the video playing is detected to be blocked, target code stream data when the video playing software plays the videos are obtained, the target code stream data are sent to a server of the video playing software, and a device model and/or a device CPU corresponding to the client, so that the server closes the target code stream data corresponding to the device model and/or the device CPU, updates the code stream data corresponding to the device model and/or the device CPU, obtains updated code stream data, and sends code stream data update information to the client, wherein the code stream data update information comprises the updated code stream data, and the client receives the code stream data update information sent by the server and plays the videos according to the updated code stream data, so that the client plays the videos smoothly through the video playing software. Therefore, the method and the device can automatically modify the code stream data during video playing, so that the video playing is smooth, and the efficiency of modifying the code stream data configuration of the affected machine type is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a video playing processing method according to an embodiment of the present application.
Fig. 2 is a schematic flow chart of detecting whether a video playing is stuck or not in the video playing processing method provided in the embodiment of the present application.
Fig. 3 is a schematic flowchart of a video playing processing method according to an embodiment of the present application.
Fig. 4 is a schematic flow chart of interaction between different ends involved in the video playing processing method provided in the embodiment of the present application.
Fig. 5 is a schematic structural diagram of a video playing processing device according to an embodiment of the present application.
Fig. 6 is a schematic structural diagram of a video playing processing device according to an embodiment of the present application.
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It will be apparent that the described embodiments are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by a person skilled in the art without any inventive effort, are intended to be within the scope of the present application based on the embodiments herein.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the present application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
The embodiment of the application provides a video playing processing method, and an execution main body of the video playing processing method may be the video playing processing device provided in the embodiment of the application, or an electronic device integrated with the video playing processing device, where the video playing processing device may be implemented in a hardware or software manner. The electronic device may be a smart phone, a tablet computer, a palm computer, a notebook computer, or a desktop computer.
Referring to fig. 1, fig. 1 is a flow chart of a video playing processing method provided in an embodiment of the present application, where the video playing processing method is applied to a client, and may include the following steps:
s110, when the video playing software of the client plays the video, detecting whether the video playing is blocked or not.
For example, the client may be a mobile phone, and play the video through video playing software installed on the mobile phone, where the mobile phone can detect whether the video playing is blocked while playing the video.
When the video playing is detected, the video played at present can be converted into a frame sequence in the background, the difference value between frames is calculated, and whether faults exist in the frame sequence is detected, so that whether the current video is stuck or not is judged.
In some embodiments, the step of detecting whether the video playing is stuck or not may include the following steps:
when a video is played, acquiring a play code stream data packet of the video with preset duration once in each preset time period, and decoding the play code stream data packet into audio stream data and video stream data;
acquiring a first playing time and a second playing time when the audio stream data and the video stream data are simultaneously played;
And when the first playing time is detected to be inconsistent with the second playing time, determining that the video playing is blocked.
Wherein the preset time period and the preset duration are set by the person skilled in the art according to the requirements. For example, the preset time period may be set to be 10 minutes, the preset duration is 5 minutes, and the code stream data packet corresponding to the currently played video with the length of 5 minutes is acquired every 10 minutes.
In an example, referring to fig. 2, the play code stream data packet may be obtained through a video cloud service, the play code stream data packet is decoded into audio stream data and video stream data through the cloud service, the audio stream data and the video stream data are played at the same time, a first play time corresponding to the play audio stream data and a second play time corresponding to the play video stream data are recorded, whether a difference exists between the first play time and the second play time is detected, when the first play time and the second play time are detected to be inconsistent, it is determined that the video play is blocked, and a video blocked message is notified to a client, and the video blocked message may be notified to the client through a log delivery function (ping back).
In addition, the cloud service can also send the first playing time and the second playing time to the client, so that the difference between the first playing time and the second playing time is detected through the background of the client, and whether the video playing is blocked or not is determined through the client.
In some embodiments, before the step of "when the video playing software of the client plays the video, detecting whether the video playing is stuck" may further include the following steps:
calling an interface service to acquire code stream data configured by the server according to the equipment model and/or the equipment CPU dimension;
displaying the code stream definition corresponding to the code stream data;
receiving selection operation of a user for the code stream definition, and determining target code stream definition for video playing;
determining the target code stream data corresponding to the target code stream definition;
and playing the video according to the target code stream data.
Specifically, when video playing software of the client needs to perform video playing, the interface service is called to obtain code stream data configured according to a device model and/or a device CPU dimension corresponding to the client in a server corresponding to the video playing software, after the code stream data is obtained, the client displays code stream definition corresponding to the code stream data, such as 1080, 2k, 4k, and the like, and provides the code stream definition for user selection, and when the user selects a target code stream definition through selection operation, such as the target code stream definition is 4k, video is played according to the target code stream data corresponding to the target code stream definition.
In the application, the configuration priority of the two dimension equipment types and the equipment CPU takes the equipment type as the first, the code stream data is matched through the equipment type, and if the code stream data cannot be matched through the equipment type, the code stream data can be configured through the equipment CPU.
And S120, if the video playing is detected to be blocked, acquiring target code stream data when the video playing software plays the video.
In this embodiment, if the client detects that the video playing is blocked, the target code stream data when the video playing software plays the video is obtained, for example, the target code stream data may be determined according to the selected code stream definition on the interface where the user plays the video, for example, the selected code stream definition is 4k, and the code stream data corresponding to the 4k code stream definition is the target code stream data when the video is currently played.
S130, sending the target code stream data and the equipment model and/or the equipment CPU corresponding to the client to the server of the video playing software, so that the server closes the target code stream data corresponding to the equipment model and/or the equipment CPU and updates the code stream data corresponding to the equipment model and/or the equipment CPU to obtain updated code stream data, and sending a code stream data update message to the client, wherein the code stream data update message comprises the updated code stream data.
It can be understood that the client sends the target code stream data that will cause the playing to be stuck to the server of the video playing software. In addition, the target code stream data are obtained by the server according to the code stream data matching of the equipment model and/or the equipment CPU, so that all clients under the equipment model and/or the equipment CPU can not be matched with the target code stream data any more, the problem of video playing clamping caused by the target code stream data is avoided, the equipment model and/or the equipment CPU corresponding to the client is also transmitted to the server, and the server is convenient to modify the code stream data under the equipment model and/or the equipment CPU.
In the application, as the video playing of the client under the corresponding equipment model and/or equipment CPU is caused to be blocked by the code stream definition corresponding to the target code stream data, the target code stream data corresponding to the equipment model and/or equipment CPU is closed through the server, that is, the target code stream data causing the blocking is not supported under the equipment model and/or equipment CPU, and the server cannot configure the target code stream data causing the blocking for the equipment model and/or equipment CPU.
For example, when the client plays the video, the code stream definition corresponding to the code stream data that can be selected includes 1080, 2k and 4k, and when the video is played by the code stream data corresponding to the 4k code stream definition, a blocking occurs, and the code stream data corresponding to the 4k code stream definition is closed.
That is, for example, the updated code stream data does not include the code stream data corresponding to the 4k code stream definition any more, but includes the code stream data corresponding to 1080 and 2k other than the 4k code stream definition.
In some embodiments, the step of "sending the target bitstream data to the server of the video playing software" may include the following steps:
and delivering the target code stream data to the server through a log delivery function.
In the application, the client can deliver the target code stream data to the server through a log delivery function (pingback), and the equipment model and/or the equipment CPU corresponding to the client.
And S140, receiving the code stream data updating message sent by the server, and playing the video according to the updated code stream data so as to enable the subsequent client to be smooth when playing the video through the video playing software.
In this embodiment, after the configuration code stream data corresponding to the device model and/or the device CPU of the client is updated by the server, the server may send a code stream data update message to the interface service of the client, so that the interface service receives the updated code stream data and plays the video according to the code stream data.
It can be understood that through the interaction between the client and the server, the method and the device can automatically modify the code stream data when the video is played, and close the code stream data of certain equipment models and/or the client corresponding to the equipment CPU when the video is played, so that the subsequent clients corresponding to the equipment models and/or the equipment CPU become fluent when the video is played.
In particular, the present application is not limited by the order of execution of the steps described, and certain steps may be performed in other orders or concurrently without conflict.
As can be seen from the foregoing, in the video playing processing method provided in this embodiment, when video playing software of the client plays video, it is detected whether video playing is blocked, if it is detected that video playing is blocked, target code stream data when video playing software plays video is obtained, the target code stream data is sent to a server of the video playing software, and a device model and/or a device CPU corresponding to the client, so that the server closes the target code stream data corresponding to the device model and/or the device CPU, updates the code stream data corresponding to the device model and/or the device CPU, obtains updated code stream data, and sends a code stream data update message to the client, where the code stream data update message includes the updated code stream data, and the client receives the code stream data update message sent by the server, and performs video playing according to the updated code stream data, so that the client is smooth when video playing is performed by the video playing software. Therefore, the method and the device can automatically modify the code stream data during video playing, so that the video playing is smooth, and the efficiency of modifying the code stream data configuration of the affected machine type is improved.
The method described in the previous examples is described in further detail below by way of example.
Referring to fig. 2, fig. 2 is a flowchart illustrating a video playing processing method according to an embodiment of the present application. The video playing processing method is applied to a server and can comprise the following steps:
s210, receiving target code stream data sent by a client, and a device model and/or a device CPU corresponding to the client.
It can be understood that if the client detects that the video playing is blocked, the target code stream data of the video playing software when playing the video is obtained, the target code stream data and the device model and/or the device CPU corresponding to the client are sent to the server, and the server receives the target code stream data and the device model and/or the device CPU corresponding to the client.
For example, the client determines that the code stream data corresponding to the code stream definition of 4k is the target code stream data when the video is currently played according to the code stream definition selected on the interface where the video is played by the user, and then sends the code stream data corresponding to the code stream definition of 4k to the server, and the server receives the code stream data corresponding to the code stream definition of 4 k.
S220, closing the target code stream data corresponding to the equipment model and/or the equipment CPU, and updating the code stream data corresponding to the equipment model and/or the equipment CPU to obtain updated code stream data.
The video playing of the client under the corresponding equipment model and/or equipment CPU can cause the blocking of the video due to the code stream definition corresponding to the target code stream data, so that the server side can close the target code stream data corresponding to the equipment model and/or equipment CPU, namely the target code stream data causing the blocking is not supported under the equipment model and/or equipment CPU, and the server side can not configure the target code stream data causing the blocking for the equipment model and/or equipment CPU.
In some embodiments, the step of "closing the target code stream data corresponding to the device model and/or the device CPU" may include the following steps:
and when the server receives the target code stream data delivered by different clients of the same equipment model and/or equipment CPU in a preset number in the past preset time, closing the target code stream data corresponding to the equipment model and/or equipment CPU.
The preset time length in the past and the preset number can be set by a person skilled in the art according to needs, for example, the preset time length in the past can be in the past 10 minutes, and the preset number can be 10, that is, when the server side receives target code stream data delivered by different clients of 10 identical equipment models and/or equipment CPUs in the past 10 minutes, the target code stream data corresponding to the equipment models and/or the equipment CPUs is closed.
For example, referring to fig. 4, the device model and/or the device CPU of the client playing the card and the code stream data causing the playing card may be sent to the server through the log delivery function, and the server counts the received data, determines which device model and/or the code stream data under the device CPU need to be changed, and sends the corresponding code stream data update message to the client through the interface service of the client.
It can be understood that, when the code stream data under a certain device model and/or device CPU makes the situation that the playing video is jammed more frequently, it is explained that the probability of the jamming is high because the code stream data configured when the video is played is unsuitable, and therefore, the unsuitable code stream data needs to be closed.
For example, when the client plays video, the code stream definition corresponding to the code stream data that can be selected includes 1080, 2k and 4k, and when video playing is performed by the code stream data corresponding to the 4k code stream definition, the client may close the code stream data corresponding to the 4k code stream definition by the server, and update the code stream data configured under the device model and/or the device CPU, where the updated code stream data does not include the code stream data corresponding to the 4k code stream definition any more, and includes the code stream data corresponding to 1080 and 2k other than the 4k code stream definition.
S230, sending a code stream data update message to the client, wherein the code stream data update message comprises the updated code stream data so that the client receives the updated code stream data.
In this embodiment, after updating the code stream data configured under the device model and/or the device CPU corresponding to the client, the server sends a code stream data update message to the client, where the code stream data update message includes updated code stream data, so that the client receives the updated code stream data, and performs video playing according to the updated code stream data, so that the subsequent video playing of the client by the video playing software is smooth.
Specifically, the server may send a code stream data update message to the interface service of the client, so that the interface service receives the updated code stream data, and performs video playing according to the code stream data.
It can be seen that, the video playing processing method provided in this embodiment is applied to a server, and receives, by the server, target code stream data sent by a client, and a device model and/or a device CPU corresponding to the client, closes the target code stream data corresponding to the device model and/or the device CPU, updates the code stream data corresponding to the device model and/or the device CPU, obtains updated code stream data, and sends a code stream data update message to the client, where the code stream data update message includes the updated code stream data, so that the client receives the updated code stream data, and performs video playing according to the updated code stream data, so that the client is smooth when playing video by the video playing software. Therefore, the method and the device can automatically modify the code stream data during video playing, so that the video playing is smooth, and the efficiency of modifying the code stream data configuration of the affected machine type is improved.
In some embodiments, the video playing processing method further includes the steps of:
receiving a code stream configuration request sent by the client, wherein the code stream configuration request carries a target equipment model and/or an equipment CPU (central processing unit) corresponding to the client;
matching code stream data according to the equipment model and a preset code stream configuration table, wherein the preset code stream configuration table comprises the corresponding relation between the equipment model and/or the equipment CPU and the code stream data;
if the code stream data cannot be matched according to the equipment model and the preset code stream configuration table, the code stream data are matched according to the equipment CPU.
In the application, the configuration priority of the two dimension equipment types and the equipment CPU takes the equipment type as the first, the code stream data is matched through the equipment type, and if the code stream data cannot be matched through the equipment type, the code stream data can be configured through the equipment CPU.
In one embodiment, a video playing processing device is also provided. Referring to fig. 5, fig. 5 is a schematic structural diagram of a video playing processing apparatus 300 according to an embodiment of the present application, where the video playing processing apparatus 400 is mainly integrated in an electronic device corresponding to a client, and specifically, the video playing processing apparatus 300 includes a detecting unit 301, an acquiring unit 302, a first sending unit 303, and a first processing unit 304, as follows:
A detecting unit 301, configured to detect whether video playing is stuck when video playing software of the client plays video;
the obtaining unit 302 is configured to obtain target code stream data when the video playing software plays the video if the video playing is detected to be blocked;
a first sending unit 303, configured to send the target bitstream data to a server of the video playing software, and an equipment model and/or an equipment CPU corresponding to the client, so that the server closes the target bitstream data corresponding to the equipment model and/or the equipment CPU, updates the bitstream data corresponding to the equipment model and/or the equipment CPU, and obtains updated bitstream data, and sends a bitstream data update message to the client, where the bitstream data update message includes the updated bitstream data;
the first processing unit 304 is configured to receive the code stream data update message sent by the server, and perform video playing according to the updated code stream data, so that the subsequent client is smooth when playing the video through the video playing software.
In some embodiments, the detection unit 301 may be configured to:
When a video is played, acquiring a play code stream data packet of the video with preset duration once in each preset time period, and decoding the play code stream data packet into audio stream data and video stream data;
acquiring a first playing time and a second playing time when the audio stream data and the video stream data are simultaneously played;
and when the first playing time is detected to be inconsistent with the second playing time, determining that the video playing is blocked.
In some embodiments, the acquisition unit 302 may also be configured to:
calling an interface service to acquire code stream data configured by the server according to the equipment model and/or the equipment CPU dimension;
displaying the code stream definition corresponding to the code stream data;
receiving selection operation of a user for the code stream definition, and determining target code stream definition for video playing;
determining the target code stream data corresponding to the target code stream definition;
and playing the video according to the target code stream data.
In some embodiments, the first sending unit 303 may be configured to:
and delivering the target code stream data to the server through a log delivery function.
In one embodiment, a video playing processing device is also provided. Referring to fig. 6, fig. 6 is a schematic structural diagram of a video playing processing apparatus 400 according to the embodiment of the present application, where the video playing processing apparatus 400 is mainly integrated in a server corresponding to a server, and specifically, the video playing processing apparatus 400 includes a second receiving unit 401, a second processing unit 402, and a second sending unit 403, as follows:
A second receiving unit 401, configured to receive target code stream data sent by a client, and a device model and/or a device CPU corresponding to the client;
the second processing unit 402 is configured to close the target code stream data corresponding to the device model and/or the device CPU, and update the code stream data corresponding to the device model and/or the device CPU, to obtain updated code stream data;
a second sending unit 403, configured to send a code stream data update message to the client, where the code stream data update message includes the updated code stream data, so that the client receives the updated code stream data.
In some embodiments, the second processing unit 402 may also be configured to:
receiving a code stream configuration request sent by the client, wherein the code stream configuration request carries a target equipment model and/or an equipment CPU (central processing unit) corresponding to the client;
matching code stream data according to the equipment model and a preset code stream configuration table, wherein the preset code stream configuration table comprises the corresponding relation between the equipment model and/or the equipment CPU and the code stream data;
if the code stream data cannot be matched according to the equipment model and the preset code stream configuration table, the code stream data are matched according to the equipment CPU.
In some embodiments, the second processing unit 402 may be configured to:
and when the server receives the target code stream data delivered by different clients of the same equipment model and/or equipment CPU in a preset number in the past preset time, closing the target code stream data corresponding to the equipment model and/or equipment CPU.
It should be noted that, the video playing processing device provided in the embodiment of the present application and the video playing processing method in the foregoing embodiment belong to the same concept, and any method provided in the embodiment of the video playing processing method may be implemented by using the video playing processing device, and detailed implementation processes of the video playing processing method are shown in the embodiment of the video playing processing method and are not repeated herein.
In addition, in order to better implement the video playing processing method in the embodiment of the present application, the present application further provides an electronic device, please refer to fig. 7, fig. 7 shows a schematic structural diagram of the electronic device 500 provided in the present application, and as shown in fig. 7, the electronic device 500 provided in the present application includes a processor 501 and a memory 502, where the processor 501 is configured to implement steps of the video playing processing method in the above embodiment of the present application when executing a computer program stored in the memory 502, for example:
When video playing software of the client plays videos, detecting whether video playing is blocked or not;
if the video playing is detected to be blocked, acquiring target code stream data when video playing software plays the video;
the target code stream data and the equipment model and/or the equipment CPU corresponding to the client are sent to the server of the video playing software, so that the server closes the target code stream data corresponding to the equipment model and/or the equipment CPU and updates the code stream data corresponding to the equipment model and/or the equipment CPU to obtain updated code stream data, and a code stream data update message is sent to the client, wherein the code stream data update message comprises the updated code stream data;
and receiving the code stream data updating message sent by the server, and playing the video according to the updated code stream data so as to enable the subsequent client to be smooth when playing the video through the video playing software.
By way of example, a computer program may be partitioned into one or more modules/units that are stored in memory 502 and executed by processor 501 to accomplish the embodiments of the present application. One or more of the modules/units may be a series of computer program instruction segments capable of performing particular functions to describe the execution of the computer program in a computer device.
Electronic device 500 may include, but is not limited to, processor 501, memory 502. It will be appreciated by those skilled in the art that the illustration is merely an example of the electronic device 500 and does not constitute a limitation of the electronic device 500, and may include more or less components than illustrated, or may combine some components, or different components, e.g., the electronic device 500 may further include an input-output device, a network access device, a bus, etc., through which the processor 501, the memory 502, the input-output device, the network access device, etc., are connected.
The processor 501 may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or any conventional processor or the like that is a control center of the electronic device 500 that interfaces and lines to various portions of the overall electronic device 500.
The memory 502 may be used to store computer programs and/or modules, and the processor 501 may implement various functions of the computer device by executing or executing the computer programs and/or modules stored in the memory 502, and invoking data stored in the memory 502. The memory 502 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data (such as audio data, video data, etc.) created according to the use of the electronic device 500, and the like. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as a hard disk, memory, plug-in hard disk, smart Media Card (SMC), secure Digital (SD) Card, flash Card (Flash Card), at least one disk storage device, flash memory device, or other volatile solid-state storage device.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the video playing processing device, the electronic apparatus 500 and the corresponding units thereof described above may refer to the description of the video playing processing method in the above embodiments of the present application, and the details are not repeated herein.
Those of ordinary skill in the art will appreciate that all or a portion of the steps of the various methods of the above embodiments may be performed by instructions, or by instructions controlling associated hardware, which may be stored in a computer-readable storage medium and loaded and executed by a processor.
To this end, an embodiment of the present application provides a computer readable storage medium having stored therein a plurality of instructions that can be loaded by a processor to perform the steps in the video playback processing method in the above embodiment of the present application, for example:
when video playing software of the client plays videos, detecting whether video playing is blocked or not;
if the video playing is detected to be blocked, acquiring target code stream data when video playing software plays the video;
the target code stream data and the equipment model and/or the equipment CPU corresponding to the client are sent to the server of the video playing software, so that the server closes the target code stream data corresponding to the equipment model and/or the equipment CPU and updates the code stream data corresponding to the equipment model and/or the equipment CPU to obtain updated code stream data, and a code stream data update message is sent to the client, wherein the code stream data update message comprises the updated code stream data;
And receiving the code stream data updating message sent by the server, and playing the video according to the updated code stream data so as to enable the subsequent client to be smooth when playing the video through the video playing software.
As can be seen from the foregoing, in the electronic device according to the embodiment of the present application, when video playing software of the client plays a video, whether the video playing is blocked is detected, if the video playing is detected to be blocked, target code stream data when the video playing software plays the video is obtained, the target code stream data is sent to a server of the video playing software, and a device model and/or a device CPU corresponding to the client, so that the server closes the target code stream data corresponding to the device model and/or the device CPU, updates the code stream data corresponding to the device model and/or the device CPU, obtains updated code stream data, and sends a code stream data update message to the client, where the code stream data update message includes the updated code stream data, and the client receives the code stream data update message sent by the server, and performs video playing according to the updated code stream data, so that the client plays the video smoothly through the video playing software. Therefore, the method and the device can automatically modify the code stream data during video playing, so that the video playing is smooth, and the efficiency of modifying the code stream data configuration of the affected machine type is improved.
The specific operation may refer to the description of the video playing processing method in the above embodiments of the present application, and will not be repeated here.
Wherein the computer-readable storage medium may comprise: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
Since the instructions stored in the computer readable storage medium may execute the steps in the video playing processing method in the above embodiments of the present application, the beneficial effects that can be achieved by the video playing processing method in the above embodiments of the present application may be achieved, which is detailed in the foregoing description and will not be repeated herein.
Furthermore, the terms "first," "second," and "third," and the like, herein, are used for distinguishing between different objects and not for describing a particular sequential order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or modules is not limited to the particular steps or modules listed and certain embodiments may include additional steps or modules not listed or inherent to such process, method, article, or apparatus.
The foregoing has described in detail a video playback processing method, apparatus, electronic device and storage medium provided by the present application, and specific examples have been applied to illustrate the principles and embodiments of the present application, where the foregoing examples are only used to help understand the method and core idea of the present application; meanwhile, those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present application, and the present description should not be construed as limiting the present application in view of the above.

Claims (10)

1. A video playing processing method applied to a client, comprising the following steps:
when video playing software of the client plays videos, detecting whether video playing is blocked or not;
if the video playing is detected to be blocked, acquiring target code stream data when video playing software plays the video;
the target code stream data and the equipment model and/or the equipment CPU corresponding to the client are sent to the server of the video playing software, so that the server closes the target code stream data corresponding to the equipment model and/or the equipment CPU and updates the code stream data corresponding to the equipment model and/or the equipment CPU to obtain updated code stream data, and a code stream data update message is sent to the client, wherein the code stream data update message comprises the updated code stream data;
And receiving the code stream data updating message sent by the server, and playing the video according to the updated code stream data so as to enable the subsequent client to be smooth when playing the video through the video playing software.
2. The video playback processing method of claim 1, wherein detecting whether a video playback has stuck comprises:
when a video is played, acquiring a play code stream data packet of the video with preset duration once in each preset time period, and decoding the play code stream data packet into audio stream data and video stream data;
acquiring a first playing time and a second playing time when the audio stream data and the video stream data are simultaneously played;
and when the first playing time is detected to be inconsistent with the second playing time, determining that the video playing is blocked.
3. The video playback processing method of claim 1, wherein before detecting whether video playback has stuck while video playback software of the client is playing video, further comprising:
calling an interface service to acquire code stream data configured by the server according to the equipment model and/or the equipment CPU dimension;
Displaying the code stream definition corresponding to the code stream data;
receiving selection operation of a user for the code stream definition, and determining target code stream definition for video playing;
determining the target code stream data corresponding to the target code stream definition;
and playing the video according to the target code stream data.
4. The method for processing video playing according to claim 1, wherein said sending the target code stream data to the server of the video playing software comprises:
and delivering the target code stream data to the server through a log delivery function.
5. The video playing processing method is applied to a server and is characterized by comprising the following steps:
receiving target code stream data sent by a client, and a device model and/or a device CPU (Central processing Unit) corresponding to the client;
closing the target code stream data corresponding to the equipment model and/or the equipment CPU, and updating the code stream data corresponding to the equipment model and/or the equipment CPU to obtain updated code stream data;
and sending a code stream data update message to the client, wherein the code stream data update message comprises the updated code stream data so that the client receives the updated code stream data.
6. The video playback processing method of claim 5, further comprising:
receiving a code stream configuration request sent by the client, wherein the code stream configuration request carries a target equipment model and/or an equipment CPU (central processing unit) corresponding to the client;
matching code stream data according to the equipment model and a preset code stream configuration table, wherein the preset code stream configuration table comprises the corresponding relation between the equipment model and/or the equipment CPU and the code stream data;
if the code stream data cannot be matched according to the equipment model and the preset code stream configuration table, the code stream data are matched according to the equipment CPU.
7. The method of video playing processing according to claim 5, wherein the closing the target code stream data corresponding to the device model and/or the device CPU includes:
and when the server receives the target code stream data delivered by different clients of the same equipment model and/or equipment CPU in a preset number in the past preset time, closing the target code stream data corresponding to the equipment model and/or equipment CPU.
8. A video playback processing apparatus comprising means for performing the video playback processing method as claimed in any one of claims 1 to 7.
9. A computer-readable storage medium, on which a computer program is stored, characterized in that the computer program, when run on a computer, causes the computer to perform the video playback processing method of any one of claims 1 to 4 or the video playback processing method of any one of claims 5 to 7.
10. An electronic device comprising a processor and a memory, the memory storing a computer program, wherein the processor is configured to perform the video playback processing method as set forth in any one of claims 1 to 4 by invoking the computer program.
CN202311246288.6A 2023-09-25 2023-09-25 Video playing processing method and device, storage medium and electronic equipment Pending CN117319723A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311246288.6A CN117319723A (en) 2023-09-25 2023-09-25 Video playing processing method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311246288.6A CN117319723A (en) 2023-09-25 2023-09-25 Video playing processing method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN117319723A true CN117319723A (en) 2023-12-29

Family

ID=89285996

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311246288.6A Pending CN117319723A (en) 2023-09-25 2023-09-25 Video playing processing method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN117319723A (en)

Similar Documents

Publication Publication Date Title
CN112087633B (en) Video decoding method, device and storage medium
US20170171278A1 (en) Method and electronic device for continuously playing video
CN113055451B (en) Resource downloading method and device, electronic equipment and storage medium
US11070886B2 (en) Method and apparatus for looping a video file
CN112203111B (en) Multimedia resource preloading method and device, electronic equipment and storage medium
CN108076377B (en) Video storage and playing method and device, electronic equipment and storage medium
US10944920B2 (en) Video switching method, device and video patrol system
US20150134846A1 (en) Method and apparatus for media segment request retry control
US10321206B2 (en) Method for switching an audio/video application, apparatus and smart TV
CN103873929A (en) Method and device for playing multimedia data
CN113556568B (en) Cloud application running method, system, device and storage medium
CN111050217B (en) Video playing method and device
JP7354127B2 (en) Providing activity notifications regarding digital content
CN117319723A (en) Video playing processing method and device, storage medium and electronic equipment
CN114374869B (en) Panoramic video playing method and device and computer storage medium
CN109688468A (en) A kind of playback method, intelligent terminal, system and the storage medium of the video that is switched on
CN111356006B (en) Video playing method, device, server and storage medium
CN108650544B (en) Media playing method, device and system
US11463493B2 (en) Method and apparatus for playing media file
CN114025170A (en) Video playing method and device, computer equipment and computer readable storage medium
CN107659830B (en) Interactive activity access method, system and terminal equipment
CN110175263A (en) A kind of method of positioning video frame, the method and terminal device for saving video
CN112423144B (en) Multimedia resource exception handling method, device, equipment and storage medium
CN115955597B (en) Multi-format video self-adaptive switching method, system and storage medium
CN111988667B (en) Intelligent terminal media player management method and system

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