CN112468519B - Television decoding capability detection method and device, computer equipment and readable storage medium - Google Patents

Television decoding capability detection method and device, computer equipment and readable storage medium Download PDF

Info

Publication number
CN112468519B
CN112468519B CN202110117290.8A CN202110117290A CN112468519B CN 112468519 B CN112468519 B CN 112468519B CN 202110117290 A CN202110117290 A CN 202110117290A CN 112468519 B CN112468519 B CN 112468519B
Authority
CN
China
Prior art keywords
video
resolution
television
playing
file
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.)
Active
Application number
CN202110117290.8A
Other languages
Chinese (zh)
Other versions
CN112468519A (en
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.)
Shenzhen Happycast Technology Co Ltd
Original Assignee
Shenzhen Happycast 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 Shenzhen Happycast Technology Co Ltd filed Critical Shenzhen Happycast Technology Co Ltd
Priority to CN202110117290.8A priority Critical patent/CN112468519B/en
Publication of CN112468519A publication Critical patent/CN112468519A/en
Application granted granted Critical
Publication of CN112468519B publication Critical patent/CN112468519B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/61Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1454Digital output to display device ; Cooperation and interconnection of the display device with other functional units involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/70Media network packetisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/75Media network packet handling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Abstract

The invention relates to the technical field of screen projection, and discloses a method, a device, computer equipment and a readable storage medium for detecting the decoding capability of a television, which can provide a detection scheme for pre-acquiring the decoding capability of the video resolution of a television end in a progress feedback mode of video playing, namely, at least two video files with different video resolutions are compressed into a mixed video file with a resolution, and after the mixed video file with the resolution is pushed to the television equipment, the decoding capability of the video resolution and the decoding capability of the maximum video resolution of the television end can be determined according to the playing progress time of the mixed video file with the resolution and the video playing time length of each video file by the television equipment, so that the video data with the maximum adaptive resolution can be conveniently pushed to the television equipment with different decoding capabilities, and screen projection failure is avoided, and screen projection experience of a user is ensured.

Description

Television decoding capability detection method and device, computer equipment and readable storage medium
Technical Field
The invention belongs to the technical field of screen projection, and particularly relates to a method and a device for detecting the decoding capability of a television, computer equipment and a readable storage medium.
Background
The wireless screen projection is called wireless screen sharing, screen flying or screen sharing. Specifically, a picture of a mobile device a (such as a mobile phone, a tablet, a notebook, or a computer) is displayed on another device screen B (such as a tablet, a notebook, a computer, a television, a kiosk, or a projector) in real time by a certain technical method, and the output content includes various media information and a real-time operation picture. At present, the schemes supporting the mature wireless screen projection technology include an Airplay screen mirror image of apple formation, a Miracast protocol of a WIFI Alliance, and DLNA (Digital Living Network Alliance) of other companies, although the DLNA committee has been officially released in 2017 in 1/5 because old standards cannot meet the development trend of new devices and the DLNA standards cannot be updated in the future, the DLNA protocol is still widely used, and does not exit from a historical stage in a short time, and is still one of the best solutions in some cases), so that the wireless screen projection technology has exhibited an unparalleled importance in the interaction between small-screen devices (such as mobile phones) and large-screen devices (such as televisions), and plays a role in both entertainment and office screen projection.
At present, although many television devices support the DLNA standard protocol, the protocol only supports data push, and cannot detect the decoding capability of the television terminal on the protocol level, and meanwhile, the player of the television terminal is a system player, and cannot directly acquire the decoding capability of the player. Therefore, if video data higher than the decoding capability of the television end is blindly pushed to the television equipment, screen projection failure can be directly caused, and screen projection experience of a user is influenced.
Disclosure of Invention
The invention aims to provide a method, a device, computer equipment and a readable storage medium for detecting the television decoding capability, which can be used for acquiring the video resolution decoding capability of a television in advance through a progress feedback mode of video playing, further conveniently pushing the video data with the maximum adaptive resolution aiming at the television equipment with different decoding capabilities, avoiding screen projection failure and ensuring the screen projection experience of a user.
In a first aspect, the present invention provides a method for detecting a decoding capability of a television, including:
acquiring at least two video files, wherein each video file in the at least two video files has a video resolution different from other video files;
pressing the at least two video files into a resolution mixed video file, wherein the video data in the resolution mixed video file and corresponding to each video file in the at least two video files one by one has the same video resolution and video playing duration as the corresponding video files, and the playing sequence of all the video data is arranged in sequence from small to large according to the video resolution;
pushing the resolution mixed video file to television equipment;
and determining the video resolution decoding capability of the television equipment according to the playing progress time of the television equipment for playing the resolution mixed video file and the video playing time of each video file.
Based on the above invention, a detection scheme for obtaining the video resolution decoding capability of the television in advance through a progress feedback mode of video playing can be provided, that is, at least two video files with different video resolutions are compressed into a resolution mixed video file, and after the resolution mixed video file is pushed to the television equipment, the video resolution decoding capability and the maximum video resolution decoding capability of the television can be determined according to the playing progress time of the television equipment for playing the resolution mixed video file and the video playing time length of each video file, so that the video data with the maximum adaptive resolution can be conveniently pushed for the television equipment with different decoding capabilities, screen projection failure is avoided, and screen projection experience of a user is ensured.
In one possible design, in the at least two video files, the order of the video playing time lengths of all the video files from small to large is consistent with the order of the video resolutions from small to large.
In one possible design, the compressing the at least two video files into one resolution hybrid video file includes:
and compressing the at least two video files into an MP4 format file serving as the resolution mixed video file by using an encoder based on the H264 video coding standard, wherein the video data header in the MP4 format file, which corresponds to each of the at least two video files one by one, is added with decoding identification information of corresponding video data, and the decoding identification information comprises a sequence parameter set SPS and a picture parameter set PPS.
In one possible design, pushing the resolution blended video file to a television device includes:
and pushing the video data in the resolution mixed video file to the television equipment in a streaming media mode for online playing according to a media transmission protocol of a Digital Living Network Alliance (DLNA), and acquiring the current playing progress time fed back by the television equipment in real time online.
In one possible design, determining, according to the playing progress time of the television apparatus for playing the resolution-mixed video file and the video playing duration of each video file, the video resolution decoding capability that the television apparatus has includes:
judging whether the current playing progress time is greater than the sum of video playing durations of the first N-1 video files in the at least two video files and arranged in sequence from small to large according to the video resolution, wherein N is a positive integer and is not greater than the total number of the at least two video files;
and if so, determining that the television equipment has decoding capability corresponding to the video resolution of the Nth video file arranged in the order of the video resolution from small to large.
In one possible design, after determining that the television apparatus has decoding capabilities corresponding to video resolutions of nth video files arranged in order of video resolutions from small to large, the method further includes:
judging whether the total number of the at least two video files is equal to N or not;
if so, ending the pushing of the video data, otherwise, pushing the residual video data corresponding to the Nth video file which is arranged from small to large according to the video resolution in a double-speed playing mode to the television equipment for online playing.
In one possible design, after determining that the television apparatus has decoding capabilities corresponding to video resolutions of nth video files arranged in order of video resolutions from small to large, the method further includes:
judging whether the total number of the at least two video files is equal to N or not;
if so, ending the video data pushing, otherwise directly pushing the video data corresponding to the (N + 1) th video files which are arranged from small to large according to the video resolution ratio to the television equipment for online playing directly or after fixed time delay.
In a second aspect, the present invention provides a device for detecting a decoding capability of a television, which includes a video file acquisition module, a video file suppression module, a video file push module and a decoding capability determination module;
the video file acquisition module is used for acquiring at least two video files, wherein each video file in the at least two video files has a video resolution different from that of other video files;
the video file compressing module is in communication connection with the video file acquiring module and is used for compressing the at least two video files into a resolution mixed video file, wherein the video data in the resolution mixed video file and corresponding to each of the at least two video files has the same video resolution and video playing time length as the corresponding video files, and the playing sequence of all the video data is sequentially arranged according to the video resolution from small to large;
the video file pushing module is in communication connection with the video file pressing module and is used for pushing the resolution mixed video file to television equipment;
and the decoding capability determining module is used for determining the video resolution decoding capability of the television equipment according to the playing progress time of the television equipment for playing the resolution mixed video file and the video playing time of each video file.
In a third aspect, the present invention provides a computer device, comprising a memory, a processor and a transceiver, which are sequentially connected in communication, wherein the memory is used for storing a computer program, the transceiver is used for transceiving data, and the processor is used for reading the computer program and executing the television decoding capability detection method according to the first aspect or any one of the possible designs of the first aspect.
In a fourth aspect, the present invention provides a readable storage medium, which stores instructions that, when executed on a computer, perform the television decoding capability detection method according to the first aspect or any one of the possible designs of the first aspect.
In a fifth aspect, the present invention provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the television decoding capability detection method as described above in the first aspect or any one of the possible designs of the first aspect.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a method for detecting the decoding capability of a television provided by the present invention.
Fig. 2 is a schematic diagram of a streaming media data structure of an MP4 format file provided by the present invention.
Fig. 3 is a schematic structural diagram of a television decoding capability detection apparatus provided by the present invention.
Fig. 4 is a schematic structural diagram of a computer device provided by the present invention.
Detailed Description
The invention is further described with reference to the following figures and specific embodiments. It should be noted that the description of the embodiments is provided to help understanding of the present invention, but the present invention is not limited thereto. Specific structural and functional details disclosed herein are merely illustrative of example embodiments of the invention. This invention may, however, be embodied in many alternate forms and should not be construed as limited to the embodiments set forth herein.
It will be understood that, although the terms first, second, etc. may be used herein to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another. For example, a first element could be termed a second element, and, similarly, a second element could be termed a first element, without departing from the scope of example embodiments of the present invention.
It should be understood that, for the term "and/or" as may appear herein, it is merely an associative relationship that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists alone, B exists alone, and A and B exist at the same time; for the term "/and" as may appear herein, which describes another associative object relationship, it means that two relationships may exist, e.g., a/and B, may mean: a exists independently, and A and B exist independently; in addition, for the character "/" that may appear herein, it generally means that the former and latter associated objects are in an "or" relationship.
It will be understood that when an element is referred to herein as being "connected," "connected," or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may be present. Conversely, if a unit is referred to herein as being "directly connected" or "directly coupled" to another unit, it is intended that no intervening units are present. In addition, other words used to describe the relationship between elements should be interpreted in a similar manner (e.g., "between … …" versus "directly between … …", "adjacent" versus "directly adjacent", etc.).
It is to be understood that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of example embodiments of the invention. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises," "comprising," "includes" and/or "including," when used herein, specify the presence of stated features, quantities, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, quantities, steps, operations, elements, components, and/or groups thereof.
It should also be noted that, in some alternative designs, the functions/acts noted may occur out of the order noted in the figures. For example, two figures shown in succession may, in fact, be executed substantially concurrently, or the figures may sometimes be executed in the reverse order, depending upon the functionality/acts involved.
It should be understood that specific details are provided in the following description to facilitate a thorough understanding of example embodiments. However, it will be understood by those of ordinary skill in the art that the example embodiments may be practiced without these specific details. For example, systems may be shown in block diagrams in order not to obscure the examples in unnecessary detail. In other instances, well-known processes, structures and techniques may be shown without unnecessary detail in order to avoid obscuring example embodiments.
As shown in fig. 1 to 2, the method for detecting the television decoding capability provided in the first aspect of this embodiment may be, but is not limited to, executed by a screen projection initiating terminal (e.g., a smart phone supporting a DLNA protocol, etc.) before initiating screen projection to a television device. The method for detecting the television decoding capability may include, but is not limited to, the following steps S101 to S104.
S101, at least two video files are obtained, wherein each video file in the at least two video files has a video resolution different from other video files.
In the step S101, for example, the at least two video files may be, but are not limited to, a first video file corresponding to a video resolution of 720P, a second video file corresponding to a video resolution of 1080P, a third video file corresponding to a video resolution of 2K, a fourth video file corresponding to a video resolution of 4K, and so on. The file formats of the at least two video files can be the same or different, and only the video files can be compressed into the same resolution ratio mixed video file subsequently. In addition, in order to subsequently determine the video resolution decoding capability of the television equipment, the video playing time length of each video file needs to be known; each of the at least two video files may have the same video playing time length (e.g., 5 seconds each) as the other video files, or may be different.
In the step S101, preferably, in the at least two video files, the sequence of the video playing time lengths of all the video files from small to large is consistent with the sequence of the video resolutions from small to large, that is, the smaller the video resolution is, the shorter the corresponding video playing time length is, the larger the video resolution is, the longer the corresponding video playing time length is, for example, the video playing time length of the first video file may be set to 3 seconds, the video playing time length of the second video file may be set to 5 seconds, the video playing time length of the third video file may be set to 10 seconds, the video playing time length of the fourth video file may be set to 15 seconds, and so on. Since the video resolution decoding capability of the television equipment is downward compatible, the low video resolution decoding capability is determined whether the video resolution decoding capability exists or not firstly and easily, therefore, by shortening the video playing time length of the video file with the low video resolution, the playing progress can be switched to play the video data with the higher video resolution more quickly when the video data of the video file is mixed with the subsequent playing resolution, the time required by the detection of the television decoding capability is shortened, and the detection result can be obtained quickly.
S102, pressing the at least two video files into a resolution ratio mixed video file, wherein the video data in the resolution ratio mixed video file and corresponding to each video file in the at least two video files one by one has the same video resolution ratio and video playing duration as the corresponding video files, and the playing sequence of all the video data is arranged in sequence from small to large according to the video resolution ratio.
In step S102, preferably, the at least two video files are compressed into one resolution mixture video file, including but not limited to: and compressing the at least two video files into one MP4 format file serving as the resolution mixed video file by using an encoder based on the H264 video coding standard, wherein the video data header in the MP4 format file, which corresponds to each video file in the at least two video files one by one, is added with decoding identification information of corresponding video data, and the decoding identification information includes but is not limited to a Sequence Parameter Set (SPS), a Picture Parameter Set (PPS) and the like. The aforementioned H264 video coding standard is an existing standard, so the video file compression manner is an existing conventional manner; the Sequence parameter Set SPS (i.e., Sequence Paramater Set) stores a Set of global parameters of a Coded video Sequence (i.e., a Sequence formed by a structure of encoded pixel data of one frame and one frame of an original video); the Picture parameter set PPS (Picture parameter set) stores parameters on which encoded data of each frame depends; in the packaging format, the PPS is usually stored in the file header of the video file together with the SPS, so that when the video file is compressed, the sequence parameter set SPS and the image parameter set PPS corresponding to the video data are added to the video data header corresponding to each video file one by one, and can be identified by a decoder at a television end, thereby realizing playing and displaying of the video data. In addition, as shown in fig. 2, for example, the playing order of all the video data may be, in sequence, the video data corresponding to the first video file, the video data corresponding to the second video file, the video data corresponding to the third video file, and the video data corresponding to the fourth video file.
And S103, pushing the resolution mixed video file to television equipment.
In step S103, the television device is the television terminal with the video resolution decoding capability to be detected, and may support the DLNA protocol. Preferably, the resolution mixed video file is pushed to a television device, including but not limited to: and pushing the video data in the resolution mixed video file to the television equipment in a streaming media mode for online playing according to a media transmission protocol of a Digital Living Network Alliance (DLNA), and acquiring the current playing progress time fed back by the television equipment in real time online. The media transmission protocol of the digital living network alliance DLNA is the existing protocol, so that a specific mode of pushing video data to the television equipment in a streaming media mode for online playing and online obtaining the current playing progress time fed back by the television equipment in real time can be obtained by performing routine modification based on the existing protocol.
And S104, determining the video resolution decoding capability of the television equipment according to the playing progress time of the television equipment for playing the resolution mixed video file and the video playing duration of each video file.
In the step S104, preferably, the video resolution decoding capability of the television apparatus is determined according to the playing progress time of the television apparatus playing the resolution mixed video file and the video playing duration of each video file, including but not limited to the following steps S1041 to S1042.
S1041, judging whether the current playing progress time is larger than the sum of video playing time lengths of the first N-1 video files in the at least two video files and arranged according to the video resolution from small to large, wherein N is a positive integer and is not larger than the total number of the at least two video files.
S1042. if yes, determining that the television equipment has decoding capacity corresponding to the video resolution of the Nth video file which is arranged in the order from small to large according to the video resolution.
In the foregoing steps S1041 to S1042, for example, if the video playing time length of the first video file is 3 seconds, the video playing time length of the second video file is 5 seconds, the video playing time length of the third video file is 10 seconds, and the video playing time length of the fourth video file is 15 seconds, when the current playing progress time is greater than 0 second (i.e., N = 1) and less than or equal to 3 seconds, it is reflected that the television end has successfully decoded the video data with the corresponding video resolution of 720P, that is, it may be determined that the television device has the decoding capability corresponding to the video resolution of the 1 st video file (i.e., the first video file) arranged in order from small to large video resolution, that is, the capability of decoding 720P video data; when the current playing progress time is greater than 3 seconds (i.e., greater than the video playing duration of the first video file of the at least two video files and arranged in the order from the small video resolution to the large video resolution, N = 2) and less than or equal to 8 seconds, it is reflected that the television end has successfully decoded the video data corresponding to the video resolution of 1080P, that is, it can be determined that the television device has the decoding capability corresponding to the video resolution of the 2 nd video file (i.e., the second video file) arranged in the order from the small video resolution to the large video resolution, that is, has the capability of decoding 1080P video data; when the current playing progress time is greater than 8 seconds (i.e., greater than the video playing time lengths of the first two video files which are in the at least two video files and are arranged in the order from the small video resolution to the large video resolution, N = 3) and less than or equal to 18 seconds, it is reflected that the television end has successfully decoded the video data corresponding to the video resolution of 2K, that is, it can be determined that the television apparatus has the decoding capability corresponding to the video resolution of the 3 rd video file (i.e., the third video file) which is arranged in the order from the small video resolution to the large video resolution, that is, has the capability of decoding the 2K video data; when the current playing progress time is greater than 18 seconds (i.e., greater than the video playing time lengths of the first three video files in the at least two video files and arranged in the order from the small video resolution to the large video resolution, N = 4), it is reflected that the television end has successfully decoded the video data with the corresponding video resolution of 4K, that is, it can be determined that the television device has the decoding capability corresponding to the video resolution of the 4 th video file (i.e., the fourth video file) arranged in the order from the small video resolution to the large video resolution, that is, has the capability of decoding the 4K video data.
In the step S104, if the current playing schedule time is equal to 0 second all the time after the video data is pushed (for example, 0 th to 33 th seconds after the pushing), it is reflected that the television end has not successfully decoded the video data with the corresponding video resolution of 720P, and it may be determined that the television apparatus has no capability of decoding the 720P video data. In addition, if the current playing progress time is stagnated at the 3 rd second and reflects that the television end does not successfully decode the video data with the corresponding video resolution of 1080P, the television device can be determined not to have the capability of decoding 1080P video data, and the maximum video resolution decoding capability can be determined to have the capability of decoding 720P video data; if the current playing progress time is stopped at 8 seconds and reflects that the television end does not successfully decode the video data with the corresponding video resolution of 2K, the television equipment can be determined not to have the capability of decoding the 2K video data, and the maximum video resolution decoding capability can be determined to have the capability of decoding 1080P video data; if the current playing progress time is stopped at 18 seconds and reflects that the television end does not successfully decode the video data with the corresponding video resolution of 4K, the television equipment can be determined not to have the capability of decoding the 4K video data, and the maximum video resolution decoding capability can be determined to have the capability of decoding the 2K video data.
Therefore, based on the television decoding capability detection results obtained in the steps S101 to S104, the video resolution decoding capability and the maximum video resolution decoding capability of the television end can be determined, so that the video data with the maximum adaptive resolution can be conveniently pushed to the television devices with different decoding capabilities, the screen projection failure is avoided, the screen projection experience of the user is ensured, that is, in the subsequent screen projection of the video data, the video data with the video resolution corresponding to the maximum video resolution decoding capability of the television device can be obtained by suppressing according to the determined video resolution decoding capability of the television device, and the video data can be pushed to the television device.
Preferably, after determining that the television apparatus has a decoding capability corresponding to the video resolution of the nth video file arranged in the order of the video resolution from small to large, the method further includes, but is not limited to: judging whether the total number of the at least two video files is equal to N or not; if so, ending the pushing of the video data, otherwise, pushing the residual video data corresponding to the Nth video file which is arranged from small to large according to the video resolution in a double-speed playing mode to the television equipment for online playing. Specifically, after the fact that the television device has the decoding capability corresponding to the video resolution of the nth video file is determined, the playing of the remaining video data corresponding to the nth video file can be accelerated at 1.25-fold speed, 1.5-fold speed or 2-fold speed, so that the playing progress can be switched to the playing of the video data with higher video resolution more quickly, the time required for detecting the television decoding capability is shortened, and the detection result can be obtained quickly.
Preferably, after determining that the television apparatus has a decoding capability corresponding to the video resolution of the nth video file arranged in the order of the video resolution from small to large, the method further includes, but is not limited to: judging whether the total number of the at least two video files is equal to N or not; if so, ending the video data pushing, otherwise directly pushing the video data corresponding to the (N + 1) th video file arranged in the sequence from small to large according to the video resolution to the television equipment for online playing directly or after a fixed delay (for example, a delay of 0.1 second). Therefore, the playing of the residual video data corresponding to the Nth video file can be skipped, the playing progress can be switched to the playing of the video data with higher video resolution more quickly, the time required by the detection of the decoding capability of the television is shortened, and the detection result can be obtained quickly.
As shown in fig. 3, a second aspect of this embodiment provides a virtual device for implementing the first aspect or any one of the first aspects that may be designed to implement the method for detecting the decoding capability of the television, and the virtual device includes a video file acquisition module, a video file suppression module, a video file push module, and a decoding capability determination module;
the video file acquisition module is used for acquiring at least two video files, wherein each video file in the at least two video files has a video resolution different from that of other video files;
the video file compressing module is in communication connection with the video file acquiring module and is used for compressing the at least two video files into a resolution mixed video file, wherein the video data in the resolution mixed video file and corresponding to each of the at least two video files has the same video resolution and video playing time length as the corresponding video files, and the playing sequence of all the video data is sequentially arranged according to the video resolution from small to large;
the video file pushing module is in communication connection with the video file pressing module and is used for pushing the resolution mixed video file to television equipment;
and the decoding capability determining module is used for determining the video resolution decoding capability of the television equipment according to the playing progress time of the television equipment for playing the resolution mixed video file and the video playing time of each video file.
For the working process, working details and technical effects of the foregoing apparatus provided in the second aspect of this embodiment, reference may be made to the method described in the first aspect or any one of the possible designs of the first aspect, which is not described herein again.
As shown in fig. 4, a third aspect of this embodiment provides a computer device for executing the television decoding capability detection method according to any one of the first aspect or the possible designs of the first aspect, including a memory, a processor, and a transceiver, which are sequentially and communicatively connected, where the memory is used for storing a computer program, the transceiver is used for transceiving data, and the processor is used for reading the computer program and executing the television decoding capability detection method according to any one of the first aspect or the possible designs of the first aspect. For example, the Memory may include, but is not limited to, a Random-Access Memory (RAM), a Read-Only Memory (ROM), a Flash Memory (Flash Memory), a First-in First-out (FIFO), and/or a First-in Last-out (FILO), and the like; the transceiver may be, but is not limited to, a WiFi (wireless fidelity) wireless transceiver, a bluetooth wireless transceiver, a GPRS (General Packet Radio Service) wireless transceiver, and/or a ZigBee (ZigBee protocol, low power consumption local area network protocol based on ieee802.15.4 standard) wireless transceiver, etc.; the processor may not be limited to the use of a microprocessor of the model number STM32F105 family. In addition, the computer device may also include, but is not limited to, a power module, a display screen, and other necessary components.
For the working process, working details, and technical effects of the foregoing computer device provided in the third aspect of this embodiment, reference may be made to the method in the first aspect or any one of the possible designs in the first aspect, which is not described herein again.
A fourth aspect of the present embodiment provides a readable storage medium storing instructions including any one of the first aspect or the first aspect which may be designed for the television decoding capability detection method, that is, the readable storage medium stores instructions which, when executed on a computer, perform the television decoding capability detection method according to any one of the first aspect or the first aspect which may be designed. The readable storage medium refers to a carrier for storing data, and may include, but is not limited to, a floppy disk, an optical disk, a hard disk, a flash Memory, a flash disk and/or a Memory Stick (Memory Stick), etc., and the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
For the working process, the working details and the technical effects of the foregoing readable storage medium provided in the fourth aspect of this embodiment, reference may be made to the method in the first aspect or any one of the possible designs in the first aspect, which is not described herein again.
A fifth aspect of the present embodiment provides a computer program product containing instructions, which when run on a computer, cause the computer to execute the television decoding capability detection method according to the first aspect or any one of the possible designs of the first aspect. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable devices.
The embodiments described above are merely illustrative, and may or may not be physically separate, if referring to units illustrated as separate components; if reference is made to a component displayed as a unit, it may or may not be a physical unit, and may be located in one place or distributed over a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
The above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: modifications may be made to the embodiments described above, or equivalents may be substituted for some of the features described. And such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Finally, it should be noted that the present invention is not limited to the above alternative embodiments, and that various other forms of products can be obtained by anyone in light of the present invention. The above detailed description should not be taken as limiting the scope of the invention, which is defined in the claims, and which the description is intended to be interpreted accordingly.

Claims (9)

1. A method for detecting decoding capability of a television, comprising:
acquiring at least two video files, wherein each video file in the at least two video files has a video resolution different from that of other video files, and the sequence of video playing durations of all the video files in the at least two video files is consistent with the sequence of video resolutions from small to large;
pressing the at least two video files into a resolution mixed video file, wherein the video data in the resolution mixed video file and corresponding to each video file in the at least two video files one by one has the same video resolution and video playing duration as the corresponding video files, and the playing sequence of all the video data is arranged in sequence from small to large according to the video resolution;
pushing the resolution mixed video file to television equipment;
and determining the video resolution decoding capability of the television equipment according to the playing progress time of the television equipment for playing the resolution mixed video file and the video playing time of each video file.
2. The method of claim 1, wherein the compressing the at least two video files into a resolution blend video file comprises:
and compressing the at least two video files into an MP4 format file serving as the resolution mixed video file by using an encoder based on the H.264 video coding standard, wherein a video data header in the MP4 format file, which corresponds to each of the at least two video files one by one, is added with decoding identification information of corresponding video data, and the decoding identification information comprises a Sequence Parameter Set (SPS) and a Picture Parameter Set (PPS).
3. The television decoding capability detection method of claim 2, wherein pushing the resolution blended video file to a television device comprises:
and pushing the video data in the resolution mixed video file to the television equipment in a streaming media mode for online playing according to a media transmission protocol of a Digital Living Network Alliance (DLNA), and acquiring the current playing progress time fed back by the television equipment in real time online.
4. The method for detecting the decoding capability of the television as claimed in claim 3, wherein the determining the decoding capability of the television device for the video resolution according to the playing progress time of the television device for playing the resolution mixed video file and the video playing time length of each video file comprises:
judging whether the current playing progress time is greater than the sum of video playing durations of the first N-1 video files in the at least two video files and arranged in sequence from small to large according to the video resolution, wherein N is a positive integer and is not greater than the total number of the at least two video files;
and if so, determining that the television equipment has decoding capability corresponding to the video resolution of the Nth video file arranged in the order of the video resolution from small to large.
5. The television decoding capability detection method according to claim 4, wherein after determining that the television apparatus has a decoding capability corresponding to a video resolution of an Nth video file arranged in order of a video resolution from a small to a large, the method further comprises:
judging whether the total number of the at least two video files is equal to N or not;
if so, ending the pushing of the video data, otherwise, pushing the residual video data corresponding to the Nth video file which is arranged from small to large according to the video resolution in a double-speed playing mode to the television equipment for online playing.
6. The television decoding capability detection method according to claim 4, wherein after determining that the television apparatus has a decoding capability corresponding to a video resolution of an Nth video file arranged in order of a video resolution from a small to a large, the method further comprises:
judging whether the total number of the at least two video files is equal to N or not;
if so, ending the video data pushing, otherwise directly pushing the video data corresponding to the (N + 1) th video files which are arranged from small to large according to the video resolution ratio to the television equipment for online playing directly or after fixed time delay.
7. A television decoding capability detection device is characterized by comprising a video file acquisition module, a video file suppression module, a video file pushing module and a decoding capability determination module;
the video file acquisition module is used for acquiring at least two video files, wherein each video file in the at least two video files has a video resolution different from that of other video files, and the sequence of video playing time lengths of all the video files in the at least two video files is consistent with the sequence of video resolutions from small to large;
the video file compressing module is in communication connection with the video file acquiring module and is used for compressing the at least two video files into a resolution mixed video file, wherein the video data in the resolution mixed video file and corresponding to each of the at least two video files has the same video resolution and video playing time length as the corresponding video files, and the playing sequence of all the video data is sequentially arranged according to the video resolution from small to large;
the video file pushing module is in communication connection with the video file pressing module and is used for pushing the resolution mixed video file to television equipment;
and the decoding capability determining module is used for determining the video resolution decoding capability of the television equipment according to the playing progress time of the television equipment for playing the resolution mixed video file and the video playing time of each video file.
8. Computer equipment, characterized in that, it includes memory, processor and transceiver which are connected in communication in turn, wherein, the memory is used for storing computer program, the transceiver is used for transceiving data, the processor is used for reading the computer program, and executing the television decoding capability detection method as claimed in any one of claims 1 to 6.
9. A computer-readable storage medium having stored thereon instructions for executing the method of detecting television decoding capability according to any one of claims 1 to 6 by a processor when the instructions are run on a computer.
CN202110117290.8A 2021-01-28 2021-01-28 Television decoding capability detection method and device, computer equipment and readable storage medium Active CN112468519B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110117290.8A CN112468519B (en) 2021-01-28 2021-01-28 Television decoding capability detection method and device, computer equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110117290.8A CN112468519B (en) 2021-01-28 2021-01-28 Television decoding capability detection method and device, computer equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN112468519A CN112468519A (en) 2021-03-09
CN112468519B true CN112468519B (en) 2021-05-11

Family

ID=74802795

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110117290.8A Active CN112468519B (en) 2021-01-28 2021-01-28 Television decoding capability detection method and device, computer equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN112468519B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114466246A (en) * 2022-02-14 2022-05-10 维沃移动通信有限公司 Video processing method and device
CN114979755A (en) * 2022-05-20 2022-08-30 Oppo广东移动通信有限公司 Screen projection method and device, terminal equipment and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101971539A (en) * 2007-12-13 2011-02-09 爱立信电话股份有限公司 Method and apparatus for blind decoding
CN104053051A (en) * 2014-06-12 2014-09-17 广东欧珀移动通信有限公司 Automated testing method and device achieving compatibility of mobile phone audios and mobile phone videos
CN104661079A (en) * 2015-02-03 2015-05-27 深圳创维数字技术有限公司 Multimedia format testing method and device
CN107205158A (en) * 2016-03-18 2017-09-26 中国科学院宁波材料技术与工程研究所 A kind of multichannel audio-video frequency stream synchronous decoding method based on timestamp
CN107465913A (en) * 2017-08-04 2017-12-12 四川长虹电器股份有限公司 The automatic method for playing USB flash disk video measurement video decoding chip performance

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9106721B2 (en) * 2012-10-02 2015-08-11 Nextbit Systems Application state synchronization across multiple devices
CN111654754A (en) * 2020-04-22 2020-09-11 北京奇艺世纪科技有限公司 Video playing method and device, electronic equipment and readable storage medium
CN112188254A (en) * 2020-09-29 2021-01-05 深圳创维-Rgb电子有限公司 Video playing double-speed switching processing method and device based on television terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101971539A (en) * 2007-12-13 2011-02-09 爱立信电话股份有限公司 Method and apparatus for blind decoding
CN104053051A (en) * 2014-06-12 2014-09-17 广东欧珀移动通信有限公司 Automated testing method and device achieving compatibility of mobile phone audios and mobile phone videos
CN104661079A (en) * 2015-02-03 2015-05-27 深圳创维数字技术有限公司 Multimedia format testing method and device
CN107205158A (en) * 2016-03-18 2017-09-26 中国科学院宁波材料技术与工程研究所 A kind of multichannel audio-video frequency stream synchronous decoding method based on timestamp
CN107465913A (en) * 2017-08-04 2017-12-12 四川长虹电器股份有限公司 The automatic method for playing USB flash disk video measurement video decoding chip performance

Also Published As

Publication number Publication date
CN112468519A (en) 2021-03-09

Similar Documents

Publication Publication Date Title
CN106664458B (en) Method for transmitting video data, source device and storage medium
EP3304277B1 (en) Low latency screen mirroring
US9167296B2 (en) Customized playback at sink device in wireless display system
CN112468519B (en) Television decoding capability detection method and device, computer equipment and readable storage medium
CN102075728A (en) Method and system for sharing audio and/or video data
CN106792154B (en) Frame skipping synchronization system of video player and control method thereof
CN107517400B (en) Streaming media playing method and streaming media player
CN112616065B (en) Screen image initiating method, device and system and readable storage medium
CN102348117A (en) System of transmitting digital high definition signal with low bandwidth, method thereof and network multimedia television
CN112272313B (en) HID (high intensity discharge) -based audio and video transmission method and device and computer readable storage medium
EP3351003A1 (en) Method and apparatus for providing power saving media content
US20210400287A1 (en) Seamless content encoding and transmission
CN103841451A (en) Multimedia playing method, device and terminal
CN107493478B (en) Method and device for setting coding frame rate
US20210400334A1 (en) Method and apparatus for loop-playing video content
CN112584228A (en) Low-delay screen projection method and system based on WEB
US9118803B2 (en) Video conferencing system
CN106375786B (en) UDP media data communication method, device, set-top box and system
CN111836071B (en) Multimedia processing method and device based on cloud conference and storage medium
KR101671311B1 (en) Cloud stream service system, apparatus and cloud streaming service method thereof
CN114554277A (en) Multimedia processing method, device, server and computer readable storage medium
CN103888795A (en) Digital screen on time broadcasting system and method thereof
CN115118921A (en) Method and system for video screen-combining self-adaptive output in cloud conference
WO2012149685A1 (en) Wireless hd video streaming with intermediate bridge
CN116233504A (en) Live broadcast push flow method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant