CN115022680A - Video playing method and device, electronic equipment and computer readable medium - Google Patents

Video playing method and device, electronic equipment and computer readable medium Download PDF

Info

Publication number
CN115022680A
CN115022680A CN202210924493.2A CN202210924493A CN115022680A CN 115022680 A CN115022680 A CN 115022680A CN 202210924493 A CN202210924493 A CN 202210924493A CN 115022680 A CN115022680 A CN 115022680A
Authority
CN
China
Prior art keywords
video
format
converted
played
conversion
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.)
Granted
Application number
CN202210924493.2A
Other languages
Chinese (zh)
Other versions
CN115022680B (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.)
Haiyi Technology Beijing Co ltd
Original Assignee
Haiyi Technology Beijing 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 Haiyi Technology Beijing Co ltd filed Critical Haiyi Technology Beijing Co ltd
Priority to CN202210924493.2A priority Critical patent/CN115022680B/en
Publication of CN115022680A publication Critical patent/CN115022680A/en
Application granted granted Critical
Publication of CN115022680B publication Critical patent/CN115022680B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • H04N21/234309Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4 or from Quicktime to Realvideo
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440218Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • 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/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content

Landscapes

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

Abstract

The embodiment of the disclosure discloses a video playing method, a video playing device, electronic equipment and a computer readable medium. One embodiment of the method comprises: in response to receiving a selection operation acting on the video playing confirmation control, determining whether the video format of the video to be played corresponding to the video playing confirmation control meets the video playing condition; in response to the fact that the video format of the video to be played does not meet the video playing condition, sending the video resource address of the video to be played to the server; receiving a converted video resource address corresponding to the video resource address sent by the server; and playing the converted format video corresponding to the converted video resource address according to the converted video resource address. The embodiment realizes the playing of the video on the terminal for the video which does not meet the video format requirement of the terminal.

Description

Video playing method and device, electronic equipment and computer readable medium
Technical Field
The embodiment of the disclosure relates to the technical field of computers, in particular to a video playing method, a video playing device, electronic equipment and a computer readable medium.
Background
With the development of new media technology of the network, users can watch various videos on the network. Currently, when watching a video on a network, the video can be played through various terminals. For example, the video is played through a cell phone, a laptop, a desktop, or a tablet.
However, when playing video in the above manner, there are often the following technical problems:
firstly, the requirements of each terminal on the video format of the played video are different, so that the video can only be played on the terminals partially meeting the video format requirements, and cannot be played on the terminals not meeting the video format requirements.
Secondly, the conversion of the video format takes a certain time, so that the user needs to wait for a long time when watching the video, and the user experience is poor.
Thirdly, when the user waits for the video to be played, the time length of the video clip played by the user is too short or too long, the video clip playing and the video playing cannot be smoothly linked due to the too short time length, and unnecessary user waiting time length is caused due to the too long time length, so that the user experience is poor.
Fourthly, when the played video is a teaching video, the relevant learning content cannot be displayed for the user when the video format is converted, so that the learning efficiency of the user is low.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
Some embodiments of the present disclosure propose video playing methods, apparatuses, electronic devices and computer readable media to solve one or more of the technical problems mentioned in the background section above.
In a first aspect, some embodiments of the present disclosure provide a video playing method, including: in response to receiving a selection operation acting on a video playing confirmation control, determining whether the video format of the video to be played corresponding to the video playing confirmation control meets video playing conditions; in response to the fact that the video format of the video to be played does not meet the video playing condition, sending the video resource address of the video to be played to a server; receiving a converted video resource address corresponding to the video resource address and sent by the server, wherein a video format of a converted format video corresponding to the converted video resource address meets the video playing condition, and the converted format video is a video obtained by performing format conversion processing on the video to be played; and playing the converted format video corresponding to the converted video resource address according to the converted video resource address.
In a second aspect, some embodiments of the present disclosure provide a video playback apparatus, including: the determining unit is configured to respond to the received selection operation acting on the video playing confirmation control, and determine whether the video format of the video to be played corresponding to the video playing confirmation control meets the video playing condition; the sending unit is configured to respond to the fact that the video format of the video to be played does not meet the video playing condition, and send the video resource address of the video to be played to a server; a receiving unit, configured to receive a converted video resource address corresponding to the video resource address sent by the server, where a video format of a converted format video corresponding to the converted video resource address meets the video playing condition, and the converted format video is a video obtained by performing format conversion processing on the video to be played; and the playing unit is configured to play the converted format video corresponding to the converted video resource address according to the converted video resource address.
In a third aspect, some embodiments of the present disclosure provide an electronic device, comprising: one or more processors; a storage device having one or more programs stored thereon, which when executed by one or more processors, cause the one or more processors to implement the method described in any of the implementations of the first aspect.
In a fourth aspect, some embodiments of the present disclosure provide a computer readable medium on which a computer program is stored, wherein the program, when executed by a processor, implements the method described in any of the implementations of the first aspect.
The above embodiments of the present disclosure have the following advantages: by the video playing method of some embodiments of the present disclosure, for a video that does not meet the video format requirement of a terminal, the video can be played on the terminal. Specifically, for a video that does not meet the video format requirement of the terminal, the reason why the video cannot be played on the terminal is that: because the requirements of each terminal on the video format of the played video are different, the video can only be played on the terminal partially meeting the video format requirement, and cannot be played on the terminal not meeting the video format requirement. Based on this, the video playing method of some embodiments of the present disclosure first determines whether the video format of the video to be played corresponding to the video play confirmation control satisfies the video playing condition in response to receiving the selection operation acting on the video play confirmation control. Therefore, whether the video to be played can be determined by determining whether the video format meets video playing conditions. And then, in response to the fact that the video format of the video to be played does not meet the video playing condition, sending the video resource address of the video to be played to the server. Therefore, the video resource address of the video to be played, which cannot be played, can be sent to the server. And secondly, receiving the converted video resource address of the corresponding video resource address sent by the server. The video format of the converted format video corresponding to the converted video resource address meets the video playing condition, and the converted format video is obtained by performing format conversion processing on the video to be played. Thus, the converted video resource address corresponding to the converted format video can be obtained. And finally, playing the converted format video corresponding to the converted video resource address according to the converted video resource address. Therefore, the video to be played which cannot be played can be played by playing the converted format video. For the video to be played which does not meet the video format requirement of the terminal, the format of the video to be played is converted through the server side to obtain the video with the converted format, so that the video with the converted format which meets the video format requirement of the terminal can be played on the terminal.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and elements are not necessarily drawn to scale.
Fig. 1 is a flow diagram of some embodiments of a video playback method according to the present disclosure;
fig. 2 is a schematic block diagram of some embodiments of a video playback device according to the present disclosure;
FIG. 3 is a schematic block diagram of an electronic device suitable for use in implementing some embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings. The embodiments and features of the embodiments in the present disclosure may be combined with each other without conflict.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 illustrates a flow 100 of some embodiments of a video playback method according to the present disclosure. The video playing method comprises the following steps:
step 101, in response to receiving a selection operation acting on a video playing confirmation control, determining whether a video format of a video to be played corresponding to the video playing confirmation control meets a video playing condition.
In some embodiments, in response to receiving a selection operation acting on the video playing confirmation control, an execution subject (e.g., a client) of the video playing method may determine whether a video format of a video to be played corresponding to the video playing confirmation control satisfies a video playing condition. The video playing confirmation control may be a control for determining to play the corresponding video to be played. The video to be played may be a video to be played. Here, the specific type of the video to be played is not limited. For example, the video to be played may be a teaching video. The selection operation may be an operation of selecting the video play confirmation control. The selection operation may include, but is not limited to: click operation, double click operation, hover operation. The video playing condition may be that the video format is any one of preset video formats in a preset video format set. The preset video format may be a preset video format of a video that can be played by the execution main body. In practice, in response to receiving a selection operation acting on the video play confirmation control, the execution main body may determine whether a video format of a video to be played corresponding to the video play confirmation control is any one preset video format in a preset video format set. Therefore, whether the video to be played can be determined by determining whether the video format meets video playing conditions.
It should be noted that the client may be a computing device. The computing device may be hardware or software. When the computing device is hardware, the computing device may be implemented as a distributed cluster formed by a plurality of servers or terminal devices, or may be implemented as a single server or a single terminal device. When the computing device is embodied as software, it may be installed in the hardware devices listed above. It may be implemented, for example, as multiple software or software modules for providing distributed services, or as a single software or software module. And is not particularly limited herein. It should be appreciated that the client described above may have any number of computing devices, as desired for implementation.
In some optional implementations of some embodiments, first, the execution body may determine a set of client playable video formats. In practice, the execution main body may determine a video format that the execution main body can play as a client playable video format, so as to obtain a client playable video format set. Then, in response to determining that the video format is any client playable video format in the set of client playable video formats, it may be determined that the video format satisfies the video playing condition. Here, the preset video format included in the video playing condition may be a playable video format of the client. Therefore, whether the execution main body can play the video to be played can be determined by determining the playable video format set of the client.
And 102, responding to the situation that the video format of the video to be played does not meet the video playing condition, and sending the video resource address of the video to be played to the server.
In some embodiments, the execution main body may send the video resource address of the video to be played to the server in response to determining that the video format of the video to be played does not satisfy the video playing condition. The video resource address may be a link address corresponding to the video to be played. The link address may be a web page address (e.g., an IP address). The server may be a terminal configured to receive the video resource address and perform related processing. Here, the specific setting of the above-described correlation processing is not limited. In practice, in response to determining that the video format of the video to be played does not satisfy the video playing condition, the execution main body may send the video resource address of the video to be played to the server in a wired connection manner or a wireless connection manner. It should be noted that the wireless connection means may include, but is not limited to, a 3G/4G connection, a WiFi connection, a bluetooth connection, a WiMAX connection, a Zigbee connection, a uwb (ultra wideband) connection, and other wireless connection means now known or developed in the future. Therefore, the video resource address of the video to be played, which cannot be played, can be sent to the server.
And 103, receiving the converted video resource address corresponding to the video resource address sent by the server.
In some embodiments, the execution subject may receive a converted video resource address corresponding to the video resource address sent by the server. The video format of the converted format video corresponding to the converted video resource address meets the video playing condition, and the converted format video is obtained by performing format conversion processing on the video to be played. In practice, first, the server may perform video format conversion processing on the video to be played corresponding to the received video resource address through a video format converter to obtain a converted format video. Then, according to the converted format video, the server can generate a converted video resource address through a video conversion link tool. Then, the server may send the converted video resource address to the execution main body, so that the execution main body may receive the converted video resource address corresponding to the video resource address sent by the server. Thus, the converted video resource address corresponding to the converted format video can be obtained.
Optionally, the converted video resource address may be generated by the server based on the following steps:
the first step is that a playable video format set of the client is obtained in response to the received video resource address. In practice, in response to receiving the video resource address, the server may obtain a set of playable video formats of the client through an FFmpeg program.
And secondly, carrying out format conversion on the video to be played according to the playable video format set of the client to obtain a converted format video. In practice, according to the playable video format set of the client, the server may perform format conversion on the video to be played in various ways to obtain a converted format video.
Optionally, the first sub-step determines a video conversion format according to the video playing condition. In practice, the server may determine the video conversion format in various ways according to the video playing condition. As an example, the server may determine, as the video conversion format, a client playable video format with the highest definition in the client playable video format set corresponding to the video playing condition.
And a second substep, performing slicing processing on the video to be played, and performing format conversion on each video clip to be played obtained through the slicing processing according to the video conversion format to obtain a format conversion video clip set. Wherein, each format conversion video clip in the format conversion video clip set corresponds to a clip start time. In practice, in the first step, the server may perform slicing processing on the video to be played to obtain a video clip to be played. And secondly, the server side can perform format conversion on the video clip to be played, so that the video format of the format conversion video clip generated after conversion is the video conversion format. And then, the server can repeat the first step and the second step, so as to realize simultaneous slicing processing and format conversion on the video to be played until the video to be played is sliced to obtain the last video clip to be played, and format conversion is carried out on the last video clip to be played, so that each format conversion video clip generated after format conversion is obtained and used as a format conversion video clip set.
And a third substep of sequencing each format conversion video clip according to the clip start time corresponding to each format conversion video clip in the format conversion video clip set to obtain a format conversion video clip sequence. In practice, the server may sort the format conversion video clips according to the sequence of the clip start times corresponding to the format conversion video clips, so as to obtain a format conversion video clip sequence.
And a fourth substep, determining the format conversion video clip sequence as a conversion format video in response to the number of format conversion video clips included in the format conversion video clip sequence being greater than or equal to a preset clip number threshold value. The preset segment number threshold may be a preset number threshold for format conversion video segments. Thus, a converted format video can be obtained by slicing processing and format conversion. In addition, the fluency of the converted format video during playing can be improved by setting a preset segment quantity threshold value.
Optionally, in the fifth substep, format conversion is performed on the video to be played according to a preset definition and the video conversion format, so as to obtain a target definition video. Wherein, the preset definition may be a preset definition. For example, the predetermined resolution may be 480P. In practice, the server may perform format conversion on the video to be played by using a video format converter, so that the video format of the target definition video obtained after the format conversion is the video conversion format, and the video definition of the target definition video is the preset definition.
And a sixth substep of determining the target definition video as a converted format video in response to the number of each format conversion video segment included in the sequence of format conversion video segments being less than a preset segment number threshold. Wherein the predetermined resolution is less than the resolution of the format-converted video segment sequence. Therefore, when the number of the format conversion video clips is smaller than the preset clip number threshold, the conversion format video with lower definition can be provided, the conversion format video with lower definition is preferentially played, and when the number of the format conversion video clips is larger than or equal to the preset clip number threshold, the conversion format video with higher definition is played, so that the time length from the selection operation of the video playing confirmation control to the playing of the conversion format video is shortened, and the video playing efficiency is improved.
And thirdly, generating a converted video resource address according to the converted format video. In practice, according to the converted format video, the server may generate a converted video resource address through a video-to-link tool.
And fourthly, sending the converted video resource address to a client corresponding to the video resource address. The client corresponding to the video resource address may be the execution subject. Therefore, the server can perform format conversion on the video to be played to obtain a converted format video, and send a converted video resource address corresponding to the converted format video to the execution main body, so that the execution main body can receive the converted video resource address.
Optionally, the step of generating the converted video resource address further includes:
and fifthly, determining the total number of format conversion video clips according to the video to be played corresponding to the video resource address. In practice, the server may round up a quotient of the duration of the video to be played and the duration of the preset segment to obtain the total number of format conversion video segments. The preset segment duration may be a preset duration of a format conversion video segment.
And sixthly, responding to the fact that the number of each format conversion video clip included in the format conversion video clip sequence is smaller than the total number of the format conversion video clips, and generating incomplete conversion information according to the number of each format conversion video clip and the total number of the format conversion video clips. In practice, first, the server may determine a ratio of the number of each format conversion video clip to the total number of the format conversion video clips as a conversion ratio. Then, the server may combine the conversion ratio and a preset incompletely converted corpus into incompletely converted information. The preset not-all converted corpora may be corpora used for being combined with the conversion ratio and representing unfinished format conversion. For example, the incomplete conversion information may be: "the current video has not been converted in format, and the current conversion progress is: 68% ".
And step seven, sending the information which is not completely converted to the client. In practice, the server may send the information that is not completely converted to the client in a wired or wireless manner.
And eighthly, responding to the fact that the number of the format conversion video clips included in the format conversion video clip sequence is equal to the total number of the format conversion video clips, and generating all conversion information according to the total number of the format conversion video clips. In practice, the server may combine the total number of format conversion video clips and all preset conversion corpora into all conversion information. The preset total conversion corpus may be a corpus used for combining with the total number of format conversion video clips and representing the completed format conversion. For example, the above-mentioned all conversion information may be: "the video includes 51 video segments, and all format conversion is completed".
And step nine, sending all the conversion information to the client. In practice, the server may send all the conversion information to the client in a wired or wireless manner. Thus, not all the conversion information or all the conversion information can be transmitted to the client.
Optionally, before performing step 103, first, the executing entity may obtain the total number of format conversion video segments corresponding to the video to be played. In practice, the executing entity may obtain the total number of format conversion video clips corresponding to the video to be played from the server in a wired connection or wireless connection manner. Then, based on the total number of format conversion video segments, an expected video conversion duration can be generated. In practice, the product of the total number of format conversion video clips and the conversion time length of the preset unit video clip can be determined as the predicted video conversion time length. The conversion duration of the preset unit video clip can be the duration of converting the format of a preset single video clip to be played into a format conversion video clip. Secondly, in response to the predicted video conversion duration being greater than the preset waiting duration, the target front video clip corresponding to the video to be played can be played in the video playing window. And the video playing window displays a control for skipping the front-end fragment. The video playing window may be a popup window for playing a target front video clip. The target front video segment may be a preset video segment played before the converted format video. The skip pre-segment control may be a control for determining to skip playing the target pre-segment. Thereafter, in response to detection of a selection operation acting on the above-described skip pre-clip control, format conversion wait information may be generated. In practice, first, the difference duration between the current time and the time of playing the target forward video segment may be determined. Then, the difference between the predicted video conversion duration and the difference duration may be determined as a format conversion waiting duration, and the format conversion waiting duration may be determined as format conversion waiting information. Finally, the format conversion waiting information may be displayed in a form of a popup window.
Optionally, after the step 103 is executed, the execution main body may close the video playing window.
The above-mentioned content is an invention point of the embodiment of the present disclosure, and solves the technical problem mentioned in the background art that "converting a video format takes a certain time, which results in that a user needs to wait for a long time when watching a video, and the user experience is poor". Factors that lead to poor user experience are as follows: the conversion of the video format takes a certain time, so that the user needs to wait for a long time when watching the video, and the user experience is poor. If the above factors are solved, the effect of improving the user experience can be achieved. In order to achieve the effect, the target front video segment is played for the user during the video format conversion, the front segment skipping control is provided, the format conversion waiting information is displayed for the user who does not want to watch the target front video segment, the scorching feeling of the user waiting is reduced, and the user experience is improved.
Alternatively, the target forward video segment may be determined by:
first, a set of front video segments is obtained. The front video clip set in the front video clip set may be a video that is pre-stored for playing before the format conversion video.
And secondly, determining the time range of the video clip according to the predicted video conversion time length. In practice, the difference between the predicted video conversion duration and the preset error duration may be determined as a lower limit of the video segment time range, and the sum of the predicted video conversion duration and the preset error duration may be determined as an upper limit of the video segment time range, so as to obtain the video segment time range. The preset error duration may be a preset duration for determining a time range of the video segment.
And thirdly, determining the front video clip with the video duration within the video clip time range in the front video clip set as an alternative front video clip to obtain an alternative front video clip set.
And fourthly, selecting the alternative front video clip meeting the preset front video condition from the alternative front video clip set as the target front video clip. Here, the specific setting of the preset pre-video condition is not limited. For example, each alternative front video clip in the alternative front video clip set may correspond to play time information. The playing time information may represent the playing time of the alternative front video segment. The preset pre-positioned video condition may be that the playing time represented by the playing time information corresponding to the alternative pre-positioned video clip is the minimum.
The above content is taken as an invention point of the embodiment of the present disclosure, and the technical problem mentioned in the background art is solved, that is, when the user waits for the video to be played, the duration of the video segment played for the user is too short or too long, the too short duration causes that the playing of the video segment cannot be smoothly connected with the video playing, and the too long duration causes unnecessary waiting duration of the user, further causing poor user experience. Further contributing factors to poor user experience are the following: when a user waits for video playing, the time length of a video clip played by the user is too short or too long, the video clip playing and the video playing cannot be smoothly linked due to the too short time length, and unnecessary user waiting time length is caused due to the too long time length, so that the user experience is further poor. If the above factors are solved, the effect of improving the user experience can be achieved. To achieve this, the present disclosure selects a target forward video segment from among forward video segments whose video durations are within a video segment time range. Therefore, the situation that the time length of the video clip played for the user is too short or too long when the user waits for the video to be played is avoided, and the user experience is improved.
Optionally, the video to be played corresponds to a knowledge node tag. The video to be played can be a teaching video. The knowledge node labels can be labels representing subjects, grades and units corresponding to the video to be played.
Alternatively, before executing the step 103, first, the executing body may acquire a preposed knowledge point picture group set. The prepositive knowledge point picture included in the prepositive knowledge point picture group set can be a picture representing a knowledge point. For example, the aforementioned pre-knowledge point map may include, but is not limited to: knowledge point thinking guide graph, knowledge point outline and knowledge point formula. Each preposed knowledge point picture group in the preposed knowledge point picture group set corresponds to a picture node label. The picture node labels may represent subjects, grades and units corresponding to the pre-knowledge point picture group. Then, it may be determined whether a picture node label identical to the above-mentioned knowledge node label exists in each picture node label corresponding to the above-mentioned preceding knowledge point picture group set. Secondly, in response to determining that the picture node tags identical to the knowledge node tag exist in the picture node tags, a pre-knowledge point picture group corresponding to the picture node tag identical to the knowledge node tag can be selected from the pre-knowledge point picture group set as a pre-knowledge point picture group to be played. Finally, the to-be-played foreknowledge point pictures in the to-be-played foreknowledge point picture group can be played in sequence.
The above-mentioned content is an inventive point of the embodiments of the present disclosure, and solves the technical problem mentioned in the background art that "when the played video is a teaching video, the relevant learning content cannot be displayed for the user when the video format is converted, resulting in low learning efficiency of the user". Factors that cause the learning efficiency of the user to be low are as follows: when the played video is a teaching video, the user cannot be presented with the relevant learning content when the video format is converted, so that the learning efficiency of the user is low. If the above factors are solved, the effect of improving the learning efficiency of the user can be achieved. In order to achieve the effect, before the format conversion video is played, each preposed knowledge point picture in the corresponding preposed knowledge point picture group can be played, so that a user can know the content in the format conversion video through each played preposed knowledge point picture, the user can pre-learn the related knowledge content, and the learning efficiency of the user is improved.
And step 104, playing the converted format video corresponding to the converted video resource address according to the converted video resource address.
In some embodiments, the execution main body may play the converted format video corresponding to the converted video resource address according to the converted video resource address. In practice, the execution main body may jump to the converted video resource address and play the converted format video corresponding to the converted video resource address. Therefore, the video to be played which cannot be played can be played by playing the converted format video.
Optionally, first, in response to detecting a dragging operation of a video timeline acting on the converted format video and detecting all conversion information corresponding to the converted format video, the execution main body may play the converted format video according to a dragging-stopping video time point corresponding to the dragging operation. The video time progress bar may be a progress bar representing a time point of playing the converted format video. The above-described drag operation may be an operation of playing the converted format video at a skip time point by acting on the video timeline. The dragging and stopping video time point may be a time point of the converted format video playing represented by the video time progress bar after the dragging operation is finished. Then, in response to detecting the dragging operation acting on the video timeline and not detecting all conversion information corresponding to the converted format video, a jump failure prompt popup may be presented. The skip failure prompt popup can be a popup which indicates that the converted format video cannot be skipped to play. Therefore, when the format conversion of the video to be played is not finished, the skip playing of the video with the converted format cannot be prompted.
The above embodiments of the present disclosure have the following advantages: by the video playing method of some embodiments of the present disclosure, it is possible to play a video on a terminal that does not meet requirements. Specifically, the reason why the video cannot be played on the terminal that does not meet the requirements is that: because the requirements of each terminal on the video format of the played video are different, the video can only be played on a part of terminals meeting the requirements, and cannot be played on terminals not meeting the requirements. Based on this, in the video playing method according to some embodiments of the present disclosure, first, in response to receiving a selection operation applied to the video playing confirmation control, it is determined whether a video format of a video to be played corresponding to the video playing confirmation control satisfies a video playing condition. Therefore, whether the execution main body can play the video to be played can be determined by determining whether the video format meets the video playing condition. And then, in response to the fact that the video format of the video to be played does not meet the video playing condition, sending the video resource address of the video to be played to the server. Therefore, the video resource address of the video to be played, which cannot be played, can be sent to the server. And secondly, receiving the converted video resource address of the corresponding video resource address sent by the server. The video format of the converted format video corresponding to the converted video resource address meets the video playing condition, and the converted format video is obtained by performing format conversion processing on the video to be played. Thus, the converted video resource address corresponding to the converted format video can be obtained. And finally, playing the converted format video corresponding to the converted video resource address according to the converted video resource address. Therefore, the video to be played which cannot be played can be played by playing the converted format video. For the terminal which does not meet the requirement, the format of the video to be played is converted through the server side to obtain the converted format video, so that the converted format video which meets the requirement of the terminal can be played on the terminal.
With continued reference to fig. 2, as an implementation of the methods shown in the above figures, the present disclosure provides some embodiments of a video playing apparatus, which correspond to those shown in fig. 1, and which may be applied in various electronic devices.
As shown in fig. 2, the video playback apparatus 200 of some embodiments includes: a determination unit 201, a transmission unit 202, a reception unit 203, and a playback unit 204. The determining unit 201 is configured to determine, in response to receiving a selection operation acting on a video playing confirmation control, whether a video format of a video to be played corresponding to the video playing confirmation control satisfies a video playing condition; the sending unit 202 is configured to send the video resource address of the video to be played to a server in response to determining that the video format of the video to be played does not satisfy the video playing condition; the receiving unit 203 is configured to receive a converted video resource address corresponding to the video resource address, where a video format of a converted video corresponding to the converted video resource address meets the video playing condition, and the converted video is obtained by performing format conversion on the video to be played; the playing unit 204 is configured to play the converted format video corresponding to the converted video resource address according to the converted video resource address.
It will be understood that the units described in the apparatus 200 correspond to the various steps in the method described with reference to fig. 1. Thus, the operations, features and resulting advantages described above with respect to the method are also applicable to the apparatus 200 and the units included therein, and are not described herein again.
Referring now to FIG. 3, shown is a schematic block diagram of an electronic device (e.g., computing device) 300 suitable for use in implementing some embodiments of the present disclosure. The electronic device shown in fig. 3 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 3, the electronic device 300 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 301 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM) 302 or a program loaded from a storage means 308 into a Random Access Memory (RAM) 303. In the RAM 303, various programs and data necessary for the operation of the electronic apparatus 300 are also stored. The processing device 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input/output (I/O) interface 305 is also connected to bus 304.
Generally, the following devices may be connected to the I/O interface 305: input devices 306 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 307 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage devices 308 including, for example, magnetic tape, hard disk, etc.; and a communication device 309. The communication means 309 may allow the electronic device 300 to communicate wirelessly or by wire with other devices to exchange data. While fig. 3 illustrates an electronic device 300 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided. Each block shown in fig. 3 may represent one device or may represent multiple devices, as desired.
In particular, according to some embodiments of the present disclosure, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, some embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In some such embodiments, the computer program may be downloaded and installed from a network through the communication device 309, or installed from the storage device 308, or installed from the ROM 302. The computer program, when executed by the processing apparatus 301, performs the above-described functions defined in the methods of some embodiments of the present disclosure.
It should be noted that the computer readable medium described in some embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In some embodiments of the disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In some embodiments of the present disclosure, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: in response to receiving a selection operation acting on a video playing confirmation control, determining whether the video format of the video to be played corresponding to the video playing confirmation control meets a video playing condition; in response to the fact that the video format of the video to be played does not meet the video playing condition, sending the video resource address of the video to be played to a server; receiving a converted video resource address corresponding to the video resource address and sent by the server, wherein a video format of a converted format video corresponding to the converted video resource address meets the video playing condition, and the converted format video is a video obtained by performing format conversion processing on the video to be played; and playing the converted format video corresponding to the converted video resource address according to the converted video resource address.
Computer program code for carrying out operations for embodiments of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in some embodiments of the present disclosure may be implemented by software, and may also be implemented by hardware. The described units may also be provided in a processor, and may be described as: a processor includes a determination unit, a transmission unit, a reception unit, and a playback unit. The names of these units do not form a limitation on the unit itself in some cases, for example, a playback unit may also be described as a "unit that plays back a converted format video corresponding to the converted video resource address according to the converted video resource address".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention in the embodiments of the present disclosure is not limited to the specific combination of the above-mentioned features, but also encompasses other embodiments in which any combination of the above-mentioned features or their equivalents is made without departing from the inventive concept as defined above. For example, the above features and (but not limited to) technical features with similar functions disclosed in the embodiments of the present disclosure are mutually replaced to form the technical solution.

Claims (10)

1. A video playback method, comprising:
in response to receiving a selection operation acting on a video playing confirmation control, determining whether a video format of a video to be played corresponding to the video playing confirmation control meets a video playing condition;
in response to the fact that the video format of the video to be played does not meet the video playing condition, sending the video resource address of the video to be played to a server;
receiving a converted video resource address corresponding to the video resource address and sent by the server, wherein the video format of a converted format video corresponding to the converted video resource address meets the video playing condition, and the converted format video is a video obtained by performing format conversion processing on the video to be played;
and playing the converted format video corresponding to the converted video resource address according to the converted video resource address.
2. The method of claim 1, wherein the determining whether the video format of the video to be played corresponding to the video play confirmation control satisfies a video play condition comprises:
determining a playable video format set of a client;
in response to determining that the video format is any client playable video format in the set of client playable video formats, determining that the video format satisfies the video playback condition.
3. The method of claim 1, wherein the translated video asset address is generated based on:
responding to the received video resource address, and acquiring a playable video format set of the client;
according to the playable video format set of the client, carrying out format conversion on the video to be played to obtain a converted format video;
generating a conversion video resource address according to the conversion format video;
and sending the converted video resource address to a client corresponding to the video resource address.
4. The method according to claim 3, wherein the converting the format of the video to be played according to the format set of the video playable by the client to obtain a converted format video comprises:
determining a video conversion format according to the video playing condition;
slicing the video to be played, and performing format conversion on each video clip to be played obtained through slicing to obtain a format conversion video clip set according to the video conversion format, wherein each format conversion video clip in the format conversion video clip set corresponds to a clip start time;
sequencing each format conversion video clip according to the clip start time corresponding to each format conversion video clip in the format conversion video clip set to obtain a format conversion video clip sequence;
determining the format conversion video fragment sequence as a conversion format video in response to the number of format conversion video fragments included in the format conversion video fragment sequence being greater than or equal to a preset fragment number threshold.
5. The method of claim 4, wherein generating the translated video asset address further comprises:
determining the total number of format conversion video clips according to the video to be played corresponding to the video resource address;
in response to the number of each format conversion video clip included in the sequence of format conversion video clips being smaller than the total number of format conversion video clips, generating incomplete conversion information according to the number of each format conversion video clip and the total number of format conversion video clips;
sending the information which is not completely converted to the client;
in response to the number of each format conversion video clip included in the sequence of format conversion video clips being equal to the total number of format conversion video clips, generating all conversion information according to the total number of format conversion video clips;
and sending all the conversion information to the client.
6. The method of claim 5, wherein the method further comprises:
responding to the dragging operation of a video time progress bar acting on the converted format video and detecting all conversion information corresponding to the converted format video, and playing the converted format video according to the dragging and stopping video time point corresponding to the dragging operation;
and displaying a skip failure prompt popup in response to detecting the dragging operation acting on the video time progress bar and not detecting all conversion information corresponding to the converted format video.
7. The method according to claim 4, wherein the converting the format of the video to be played according to the format set of the video playable by the client to obtain a converted format video further comprises:
performing format conversion on the video to be played according to a preset definition and the video conversion format to obtain a target definition video, wherein the preset definition is smaller than the definition of the format conversion video fragment sequence;
determining the target definition video as a converted format video in response to the number of each format conversion video segment included in the sequence of format conversion video segments being less than the preset segment number threshold.
8. A video playback apparatus comprising:
the determining unit is configured to respond to the received selection operation acting on the video playing confirmation control, and determine whether the video format of the video to be played corresponding to the video playing confirmation control meets the video playing condition;
the sending unit is configured to respond to the fact that the video format of the video to be played does not meet the video playing condition, and send the video resource address of the video to be played to a server;
a receiving unit, configured to receive a converted video resource address corresponding to the video resource address sent by the server, where a video format of a converted format video corresponding to the converted video resource address meets the video playing condition, and the converted format video is a video obtained by performing format conversion processing on the video to be played;
and the playing unit is configured to play the converted format video corresponding to the converted video resource address according to the converted video resource address.
9. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon;
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-7.
10. A computer-readable medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the method of any one of claims 1-7.
CN202210924493.2A 2022-08-03 2022-08-03 Video playing method and device, electronic equipment and computer readable medium Active CN115022680B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210924493.2A CN115022680B (en) 2022-08-03 2022-08-03 Video playing method and device, electronic equipment and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210924493.2A CN115022680B (en) 2022-08-03 2022-08-03 Video playing method and device, electronic equipment and computer readable medium

Publications (2)

Publication Number Publication Date
CN115022680A true CN115022680A (en) 2022-09-06
CN115022680B CN115022680B (en) 2022-11-01

Family

ID=83065809

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210924493.2A Active CN115022680B (en) 2022-08-03 2022-08-03 Video playing method and device, electronic equipment and computer readable medium

Country Status (1)

Country Link
CN (1) CN115022680B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103379362A (en) * 2012-04-24 2013-10-30 腾讯科技(深圳)有限公司 Video-on-demand method and system
US20170171568A1 (en) * 2015-12-14 2017-06-15 Le Holdings (Beijing) Co., Ltd. Method and device for processing live video
CN111372128A (en) * 2020-03-11 2020-07-03 北京旷视科技有限公司 Video playing method and device, computer equipment and readable storage medium
CN111935499A (en) * 2020-08-17 2020-11-13 深圳市前海多晟科技股份有限公司 Ultrahigh-definition video gateway system based on distributed storage technology
CN113766270A (en) * 2021-02-26 2021-12-07 北京沃东天骏信息技术有限公司 Video playing method, system, server, terminal equipment and electronic equipment
CN113973214A (en) * 2021-09-30 2022-01-25 中通服科信信息技术有限公司 Video stream format conversion method, device and storage medium
CN114827670A (en) * 2022-06-30 2022-07-29 椭圆方程(深圳)信息技术有限公司 Video playing method and device and electronic equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103379362A (en) * 2012-04-24 2013-10-30 腾讯科技(深圳)有限公司 Video-on-demand method and system
US20170171568A1 (en) * 2015-12-14 2017-06-15 Le Holdings (Beijing) Co., Ltd. Method and device for processing live video
CN111372128A (en) * 2020-03-11 2020-07-03 北京旷视科技有限公司 Video playing method and device, computer equipment and readable storage medium
CN111935499A (en) * 2020-08-17 2020-11-13 深圳市前海多晟科技股份有限公司 Ultrahigh-definition video gateway system based on distributed storage technology
CN113766270A (en) * 2021-02-26 2021-12-07 北京沃东天骏信息技术有限公司 Video playing method, system, server, terminal equipment and electronic equipment
CN113973214A (en) * 2021-09-30 2022-01-25 中通服科信信息技术有限公司 Video stream format conversion method, device and storage medium
CN114827670A (en) * 2022-06-30 2022-07-29 椭圆方程(深圳)信息技术有限公司 Video playing method and device and electronic equipment

Also Published As

Publication number Publication date
CN115022680B (en) 2022-11-01

Similar Documents

Publication Publication Date Title
WO2021004221A1 (en) Display processing method and apparatus for special effects and electronic device
US11818424B2 (en) Method and apparatus for generating video, electronic device, and computer readable medium
CN108965907B (en) Method, device and system for playing video
WO2021196903A1 (en) Video processing method and device, readable medium and electronic device
CN110784754A (en) Video display method and device and electronic equipment
CN110213614B (en) Method and device for extracting key frame from video file
CN110764671A (en) Information display method and device, electronic equipment and computer readable medium
CN111629251B (en) Video playing method and device, storage medium and electronic equipment
US20220394333A1 (en) Video processing method and apparatus, storage medium, and electronic device
CN109862100B (en) Method and device for pushing information
US20230239546A1 (en) Theme video generation method and apparatus, electronic device, and readable storage medium
CN112307375A (en) Page display method and device, electronic equipment and computer readable medium
CN109714626B (en) Information interaction method and device, electronic equipment and computer readable storage medium
CN113395538A (en) Sound effect rendering method and device, computer readable medium and electronic equipment
CN110673886B (en) Method and device for generating thermodynamic diagrams
CN111209432A (en) Information acquisition method and device, electronic equipment and computer readable medium
CN113766303B (en) Multi-screen interaction method, device, equipment and storage medium
CN111225255B (en) Target video push playing method and device, electronic equipment and storage medium
CN110442806B (en) Method and apparatus for recognizing image
CN112770159A (en) Multi-screen interaction system, method, device, equipment and storage medium
CN110147283B (en) Display content switching display method, device, equipment and medium
US11750876B2 (en) Method and apparatus for determining object adding mode, electronic device and medium
CN115022680B (en) Video playing method and device, electronic equipment and computer readable medium
WO2023024803A1 (en) Dynamic cover generating method and apparatus, electronic device, medium, and program product
CN114520928B (en) Display information generation method, information display device and electronic equipment

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