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 aflow 100 of some embodiments of a video transcoding playback method in accordance with the present disclosure. The video transcoding playing method comprises the following steps:
step 101, uploading each video to be processed in the video set to be processed to a server.
In some embodiments, an executing subject (e.g., a computing device) of the video transcoding playing method may upload each to-be-processed video in the to-be-processed video set to the server. The video to be processed in the video set to be processed may be a video that is stored by the execution main body and needs to be processed (for example, transcoding processing). The server may be a server. In practice, the execution main body may upload each to-be-processed video in the to-be-processed video set to the server. For example, the execution subject may upload each to-be-processed video in the to-be-processed video set to the server by using a single file slice (start, end) method in Vue front-end technology. Therefore, the server can receive each video to be processed in the video set to be processed.
It should be noted that the computing device may be hardware or software. When the computing device is hardware, it may be implemented as a distributed cluster composed of multiple 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 enumerated above. It may be implemented, for example, as multiple software or software modules to provide distributed services, or as a single software or software module. And is not particularly limited herein. It should be understood that there may be any number of computing devices, as desired for an implementation.
And 102, responding to the detection of a first selection operation acting on the transcoding template determination control, and sending a transcoding request for at least one to-be-processed video to the server.
In some embodiments, in response to detecting a first selection operation acting on a transcoding template determination control, the execution subject may send a transcoding request for at least one pending video to the server. The at least one to-be-processed video may be a to-be-processed video corresponding to the first selection operation in the to-be-processed video set. The video to be processed corresponding to the first selection operation may be the video to be processed which is selected and confirmed to be transcoded by the first selection operation acting on the transcoding template determination control. The server side can be used for transcoding the at least one video to be processed according to the transcoding request, so as to obtain a transcoded video website set. The number of the transcoded video addresses in the transcoded video address set may be greater than or equal to the number of videos to be processed in the at least one video to be processed. The transcoding request may include at least one transcoding template identification. The transcoding template determination control can be a control used for determining transcoding according to the selected transcoding template. The selected transcoding template may be at least one transcoding template. The transcoding template identifier of the at least one transcoding template identifier may uniquely identify the transcoding template. The transcoding template can be a template representing various parameters of the transcoded video to be processed. The transcoding template may include, but is not limited to, a transcoding template identification, a template name, a video resolution, an output type, a video encoding type, and a watermark type.
As an example, the transcoding template identification of the above transcoding template may be "1". The transcoding template may include a template name of 720 characters. The transcoding template may include a video resolution of 720P. The transcoding template may include an output type of M3U 8. The type of video coding included in the transcoding template may be hevc. The watermark type included in the transcoding template can be a text watermark.
For each video to be processed in the at least one video to be processed, the server may transcode the video to be processed by using the video converter according to the at least one transcoding template, and generate a video link for each video obtained after transcoding, so as to obtain at least one video link as a transcoded video website. And for at least one transcoding video website corresponding to each video to be processed, the transcoding video website in the at least one transcoding video website corresponds to the transcoding template in the at least one transcoding template in a one-to-one manner.
The transcoding template determination control can be displayed in a video uploading management window. The video uploading management window may be a window that displays the to-be-processed video set uploaded to the server and the operation control corresponding to each to-be-processed video in the to-be-processed video set uploaded to the server. The operation control may be a control for characterizing and operating the corresponding video to be processed. For example, the operation control may be a transcoding control. The transcoding control can be a control for sending a transcoding request to the corresponding video to be processed. The transcoding control may include the transcoding template determination control. The first selection operation may be an operation of selecting a transcoding template determination control. The first selection operation may include, but is not limited to, a click operation and a hover operation. In practice, in response to detecting a first selection operation on the transcoding template determination control, the execution main body may send a transcoding request for at least one to-be-processed video to the server in a wired or wireless connection manner. The transcoding request may be a request for characterizing transcoding at least one to-be-processed video. The transcoding request may include at least one transcoding template. Therefore, the server side can transcode the at least one to-be-processed video according to the at least one transcoding template to obtain a transcoded video website set. It should be noted that the above-mentioned wireless connection means may include, but is not limited to, 3G/4G connection, WiFi connection, bluetooth connection, WiMAX connection, Zigbee connection, uwb (ultra wideband) connection, and other now known or later developed wireless connection means.
Optionally, the set of transcoded video websites may be generated by the server through the following steps:
first, in response to receiving the transcoding request, the server may perform the following transcoding steps for each to-be-processed video of the at least one to-be-processed video and a slice time period corresponding to the to-be-processed video:
firstly, slicing the video to be processed according to the slicing time period to obtain a video clip. The slicing time period may be a time period of a video segment obtained by slicing. For example, the slicing time period may be "0 hour 0 minute 0 second to 0 hour 0 minute 10 second". In practice, the server may perform slicing processing on a portion of the video to be processed, where the portion corresponds to a slice time period, to obtain a video slice. For example, the server may perform slicing processing on the video of the first ten seconds in the to-be-processed video by using a ffmpeg (fast forward moving picture expert group) technology to obtain a video segment. Therefore, the video positioned in the slicing time period in the video to be processed can be sliced, and the video clip is obtained.
And secondly, transcoding the video segments according to each transcoding template identifier included in the transcoding request to obtain a video transcoding segment set. In practice, the server may utilize the transcoding template corresponding to each transcoding template identifier to perform transcoding processing on the video segment through a Discrete Cosine Transform (DCT) domain conversion technique, so as to obtain a video transcoding segment corresponding to each transcoding template.
And thirdly, updating the slicing time period according to the preset slicing interval duration. The preset slice interval duration may be a preset interval duration of two adjacent video segments. As an example, the preset slice interval duration may be 10 seconds. The client may update the slice time period of "0 hour 0 minute 0 second to 0 hour 0 minute 10 second" to "0 hour 0 minute 10 second to 0 hour 0 minute 20 second".
And fourthly, in response to the fact that the updated slice time period does not meet the video end time condition, executing the transcoding step again according to the updated slice time period and the video to be processed. The video end time condition may be that the slice period includes an end time point of the to-be-processed video.
And fifthly, responding to the situation that the updated slice time section meets the video ending time condition, and generating an ending slice time section according to the starting time point of the slice time section and the ending time point of the video to be processed. In practice, the server may use a start time point of the slice time period and an end time point of the to-be-processed video as a start time point and an end time point of an end slice time period, so as to obtain the end slice time period. As an example, the start time point of the slice period may be "0 hour 24 minutes 40 seconds". The ending time point of the above-mentioned video to be processed may be "0 hour 24 minutes 46 seconds". The end slice period may be "0 hours 24 minutes 40 seconds to 0 hours 24 minutes 46 seconds".
And sixthly, slicing the video to be processed according to the ending slicing time period to obtain an ending video segment. In practice, the server may perform slicing processing on the portion of the video to be processed corresponding to the ending slice time period through ffmpeg technology, so as to obtain an ending video segment.
And seventhly, carrying out transcoding processing on the ending video segment according to each transcoding template identifier included in the transcoding request to obtain an ending video transcoding segment set. In practice, according to the transcoding template corresponding to each transcoding template identifier included in the transcoding request, the server side may perform transcoding processing on the ending video segment through a DCT domain conversion technique to obtain an ending video transcoding segment set.
Then, a set of transcoded video websites can be generated according to the obtained sets of video transcoding fragments and the obtained sets of ending video transcoding fragments. In practice, in the first step, the server may determine, as target video transcoding fragments, each video transcoding fragment and each ending video transcoding fragment corresponding to the same to-be-processed video and the same transcoding template in the obtained each video transcoding fragment set and each ending video transcoding fragment set, so as to obtain a target video transcoding fragment group. And secondly, for each target video transcoding fragment group in the obtained target video transcoding fragment groups, the server side can sort the target video transcoding fragments in an ascending order according to the starting time point of each target video transcoding fragment in the target video transcoding fragment groups to obtain the sorted target video transcoding fragments as target transcoding videos. And thirdly, generating a transcoded video website for each target transcoded video in the obtained target transcoded videos through a video-to-link tool, so that the corresponding target transcoded video can be played by jumping to the transcoded video website. Therefore, the video can be transcoded through the server side, and a transcoded video website set used for being sent to the execution main body is obtained.
Alternatively, before executingstep 102, first, in response to detecting a selection operation on an add template control, the execution body may display a newly added template configuration window. The newly added template configuration window may include a template name configuration control, an output type configuration control, a video encoding configuration control, a video resolution configuration control, a watermark type configuration control, and an added template determination control. The add template control may be a control that characterizes an add transcoding template. The add template control may be displayed in a transcode template management window. The transcoding template management window may be a window displaying the adding template control, and a template name, a video resolution, an output type, a video encoding type, and a watermark type of each transcoding template. The template name may be a name of the transcoding template. The video resolution may be a resolution of the transcoded video to be processed. The output type can be a video format of the transcoded video to be processed. The above output types may include, but are not limited to: M3U 8. The video coding type can be a video coding format for transcoding the video to be processed. The above video coding types may include, but are not limited to: hevc, h264, wmv3, mjpeg. The above watermark type may be the type of watermark added on the video to be processed. The above watermark types may include, but are not limited to: character watermark and picture watermark. The newly added template configuration window can be a window for displaying a template name configuration control, an output type configuration control, a video coding configuration control, a video resolution configuration control, a watermark type configuration control and an added template determination control. The template name configuration control may be a control for configuring a template name by representation. The output type configuration control can be a control for configuring the type of the video output after transcoding the video to be processed. The video coding configuration control may be a control for configuring video coding. The video resolution configuration control may be a control configured to configure resolution of a video output after transcoding. The watermark type configuration control may be a control for configuring a watermark added to the transcoded video. The add template determination control may be a control that determines a new add template for the token.
Then, in response to detecting the selection operation acting on the watermark type configuration control, a no watermark control, a text watermark control and a picture watermark control can be displayed. The above-described watermark-free controls may determine for characterization controls that do not require the addition of a watermark. The text watermark control can be a control for representing that the added watermark is a text type. The picture watermark control may be a control for representing that the added watermark is a picture type.
Secondly, in response to detecting a selection operation acting on the text watermark control, a text watermark configuration sub-control set can be displayed. The text watermark configuration sub-control in the text watermark configuration sub-control set can be a control for configuring the watermark in the text form. The text watermark configuration sub-control may include, but is not limited to: a watermark character editing sub-control, a character font sub-control, a font size sub-control and a font color sub-control. The watermark text editing sub-control can be a control for editing the specific text content of the text watermark. The text font sub-control may be a control for selecting a font of the watermark text. The font size sub-control may be a control for selecting the font size of the watermark text. The font color sub-control may be a control for selecting a font color of the watermark text. Therefore, the user can configure the watermark character editing sub-control, the character font sub-control, the font size sub-control and the font color sub-control.
And then, in response to detecting the selection operation acting on the picture watermark control, displaying the picture watermark configuration sub-control set. The picture watermark configuration sub-control in the picture watermark configuration sub-control set can be a control for configuring a picture watermark. The picture watermark configuration sub-control may include, but is not limited to: a picture position sub-control and a watermark picture editing sub-control. The picture position sub-control can be a sub-control for setting the position of the watermark picture in the video. The watermark picture editing sub-control can be a sub-control for editing a specific picture of a picture watermark. Therefore, the user can upload the watermark picture to the execution main body through the watermark picture editing sub-control.
And finally, in response to the detection of the selection operation acting on the template adding determination control, generating a transcoding template according to the configuration operation acting on the watermark-free control, the text watermark configuration sub-control set or the picture watermark configuration sub-control set. The configuration operation includes, but is not limited to, a selection operation, an input operation, and an upload operation. In practice, the configuration item corresponding to the configuration operation acting on the watermark-free control, the text watermark configuration sub-control set or the picture watermark configuration sub-control set may be determined as the watermark type of the transcoding template, the configuration item corresponding to the configuration operation acting on the template name configuration control may be determined as the template name, the configuration item corresponding to the configuration operation acting on the output type configuration control may be determined as the output type, the configuration item corresponding to the configuration operation acting on the video encoding configuration control may be determined as the video encoding type, the configuration item corresponding to the configuration operation acting on the video resolution configuration control may be determined as the video resolution, and a new transcoding template identifier may be generated to generate the transcoding template. The execution main body can use the sum of the stored transcoding template identifier with the maximum value and the preset superposition value as a new transcoding template identifier. The preset superposition value can be a preset numerical value. For example, the preset overlap value may be 1. Thus, a transcoding template for transcoding can be obtained.
Optionally, the executing entity may present a transcoding template selection window in response to detecting a transcoding template selection operation acting on the transcoding template selection control, prior to executingstep 102. The transcoding template selection window comprises a newly-built transcoding template control and transcoding template identifications of all transcoding templates. The transcoding template selection control can be a control included in the transcoding control. The transcoding control can be a control for transcoding the video to be processed. The transcoding template selection control may be characterized as a control determined to select a transcoding template for the transcoding process. The newly-built transcoding template control can be a control representing a newly-built transcoding template. Thus, the user can select the transcoding template by selecting the transcoding template identifier in the transcoding template selection window. And then, in response to detecting the selection operation acting on the newly-built transcoding template control, displaying the newly-built template configuration window. Finally, in response to detecting a selection operation on an addition template determination control displayed in the newly added template configuration window, a transcoding template may be generated, and the generated transcoding template may be presented in the transcoding template selection window. Therefore, a user can create a transcoding template without quitting the transcoding template selection window, the transcoding template is newly added when the user selects the transcoding template, and the transcoding efficiency is improved.
Optionally, before executingstep 102, first, in response to detecting a transcoding template selecting operation acting on the transcoding template selecting control, the executing main body may obtain to-be-processed video resolutions of to-be-processed videos corresponding to the transcoding template selecting operation in the to-be-processed video set, so as to obtain a to-be-processed video resolution set. In practice, the to-be-processed video resolution of each to-be-processed video can be acquired through wired connection or wireless connection. Then, transcoding template screening information can be generated according to the to-be-processed video resolution set. The transcoding template screening information may be information including resolution of each video to be processed. For example, the transcoding template filtering information may be "1080P, 720P". And then, deleting the transcoding template meeting the transcoding template screening condition corresponding to the transcoding template screening information from the transcoding template set so as to update the transcoding template set. The transcoding template screening condition may be that the resolution of the video included in the transcoding template is greater than the minimum resolution of the value in the transcoding template screening information. For example, when the transcoding template filtering information is "1080P, 720P", the transcoding template with the video resolution of 1080P may be deleted from the transcoding template set. The transcoding template set can determine each transcoding template corresponding to the control for the transcoding template. And finally, the transcoding templates in the updated transcoding template set can be displayed in the transcoding template selection window.
The above content is used as an invention point of the embodiment of the disclosure, and solves the technical problems mentioned in the background art that "a part of transcoding templates cannot be used", so that a user needs to spend a long time on selecting a transcoding template to be used, the transcoding efficiency is further reduced, and the user experience is poor ". Factors that lead to poor user experience are as follows: and part of transcoding templates cannot be used, so that a user needs to spend a long time on selecting the available transcoding templates when selecting the transcoding templates, the transcoding efficiency is further reduced, and the user experience is poor. If the above factors are solved, the effects of improving the transcoding efficiency and the user experience can be achieved. In order to achieve the effect, according to the video resolution of each video to be processed, the transcoding templates which cannot be used are deleted, so that the transcoding templates selected by the user can be used, the time for the user to select the available transcoding templates is shortened, and the transcoding efficiency and the user experience are improved.
Optionally, before deleting, from the set of transcoding templates, a transcoding template in the set of transcoding templates that satisfies the transcoding template screening condition corresponding to the transcoding template screening information, the method further includes: firstly, the execution main body can determine the transcoding template meeting the transcoding template screening condition in the transcoding template set as a target transcoding template to obtain a target transcoding template set. Then, according to the target transcoding template set, transcoding template disable prompt information can be generated. In practice, the template name and the preset forbidden corpus of each target transcoding template in the target transcoding template set may be combined as the forbidden prompt information of the transcoding template. The preset forbidden corpora may be a preset corpus combined with template names of the target transcoding templates. For example, the transcoding template disabling prompt message may be: 720 the text transcoding template is disabled. And finally, the transcoding template forbidden prompt message can be displayed in the transcoding template selection window.
The above content is used as an invention point of the embodiment of the disclosure, and the technical problem mentioned in the background art is solved, namely, the technical problem that the user cannot be prompted about the transcoding template to be forbidden, so that the transcoding template selected by the user is unavailable, the user needs to reselect the transcoding template, and the transcoding efficiency is influenced. The factors that contribute to the transcoding efficiency are as follows: the user cannot be prompted about the transcoding template to be forbidden, so that the transcoding template selected by the user is unavailable, the user needs to reselect the transcoding template, and the transcoding efficiency is influenced. If the factors are solved, the effect of reducing the influence of forbidden transcoding templates on transcoding efficiency can be achieved. In order to achieve the effect, the transcoding template forbidding prompt message is generated to prompt the user of the transcoding template to be forbidden, so that the user can re-determine the template to be selected in the transcoding templates or independently select the transcoding template for the video to be processed, and the influence of the forbidding transcoding template on the transcoding efficiency is reduced.
And 103, receiving a transcoding video website set corresponding to the transcoding request sent by the server.
In some embodiments, the execution subject may receive, through a wired connection or a wireless connection, a set of transcoding video websites corresponding to the transcoding request sent by the server. The transcoded video website in the transcoded video website set can be a website capable of playing a corresponding video through selection operation of the website. Therefore, the website representing the address of the video obtained by transcoding each to-be-processed video can be obtained.
Optionally, the video transcoding process window may further display a transcoding progress. The transcoding progress may be a progress percentage of the transcoding process characterizing the video to be processed. For example, the transcoding schedule may be 79%. The server side can also be used for responding to the transcoding processing failure, generating transcoding failure information through the ffmpeg technology, and sending the transcoding failure information to the client side. And before executingstep 103, in response to receiving a transcoding progress set that the transcoding status sent by the server is at least one to-be-processed video in transcoding, the execution main body may update the transcoding progress that the transcoding status is at least one to-be-processed video in transcoding according to the transcoding progress set. The transcoding state may be a state representing that the video to be processed is transcoded. The transcoding state may include, but is not limited to: not started, in transcoding, successful transcoding and failed transcoding. In practice, in response to receiving a transcoding progress set that the transcoding status sent by the server is at least one to-be-processed video in transcoding, the execution main body may replace the transcoding progress of each to-be-processed video in transcoding status with the transcoding progress corresponding to the to-be-processed video in the transcoding progress set according to the transcoding progress set. And then, responding to the fact that the transcoding progress meets a preset progress value condition, and generating progress abnormity prompt information. The preset progress value condition may be that the time when the value of the transcoding progress is unchanged is longer than a preset progress duration. The preset schedule time length may be a preset time length. In practice, the time when the value of the transcoding progress is unchanged and the preset abnormal corpus can be combined to generate progress abnormal prompt information. The preset abnormal corpus may be a preset corpus combined with a duration of the transcoding schedule, the duration of the transcoding schedule being unchanged. For example, the progress abnormality prompting information may be: the transcoding schedule has not changed for 15 minutes. And secondly, displaying the progress abnormity prompting information in a preset progress abnormity window. And then, in response to receiving the transcoding failure information, updating the transcoding state of the to-be-processed video corresponding to the transcoding failure information to be transcoding failure. And finally, displaying the transcoding failure information in a popup mode.
The above content is an invention point of the embodiment of the present disclosure, and solves the technical problem mentioned in the background art that "prompt cannot be timely performed when video transcoding is problematic, which causes long-time blocking of video transcoding and affects transcoding efficiency". The factors that lead to low transcoding efficiency are as follows: when a problem occurs in video transcoding, prompt cannot be timely carried out, long-time blocking of the video transcoding is caused, and transcoding efficiency is affected. If the above factors are solved, the effect of improving the transcoding efficiency can be achieved. In order to achieve the effect, the progress abnormity prompt information and the transcoding failure information are respectively displayed, so that a user can further process the corresponding to-be-processed video through the progress abnormity prompt information and the transcoding failure information, long-time blocking of video transcoding is reduced, and the influence on transcoding efficiency is reduced.
And step 104, in response to the detection of the second selection operation acting on the video playing control, playing the video of the transcoded video website corresponding to the second selection operation according to the transcoded video website corresponding to the second selection operation in the transcoded video website set.
In some embodiments, in response to detecting a second selection operation acting on the video playing control, the execution subject may play video corresponding to the transcoded video website of the second selection operation according to the transcoded video website corresponding to the second selection operation in the transcoded video website set. The video playing control can be a control for playing the video of the corresponding transcoding video website. Each video playing control corresponds to one transcoding video website. The video playing control can be displayed in the transcoding recording window. The transcoding recording window can be a window for displaying each transcoded video to be processed and a video playing control corresponding to each transcoded video to be processed. The transcoding recording window can display the video cover, the video name, the template name, the video size, the video duration, the video address and the transcoding completion time of each transcoded video to be processed so as to complete the display of each transcoded video to be processed. The video duration may be duration of the transcoded video to be processed. For example, the video duration may be 19 minutes. The video cover can be a cover of the transcoded video to be processed. Here, the specific setting of the video cover is not limited. For example, the video cover can be a first frame of a transcoded video to be processed. The video cover can also be a preset picture. And the video name of each transcoded video to be processed is the same as the video name of the corresponding video to be processed. The video address may be a transcoded video website. The transcoding completion time can be a time point when the transcoding of the video to be processed is completed.
As an example, for the transcoded to-be-processed video, the video cover may be a first frame picture of the transcoded to-be-processed video. The video names may be: wave formation and propagation-1. The template name may be 720 pictures. The video size may be 179.08 MB. The video duration may be "00: 15: 04". The video address may be https:// xx/video file/xx.m3u8. The transcoding completion time may be "2022-05-1813: 18".
In practice, in response to detecting a second selection operation acting on the video playing control, the execution main body may play a video corresponding to the transcoded video website of the second selection operation according to the transcoded video website corresponding to the second selection operation. Therefore, the transcoded video to be processed can be played.
Optionally, the transcoded video websites in the set of transcoded video websites may correspond to address expiration times. The address expiration time may be a time representing the expiration of the corresponding transcoded video website.
Optionally, in response to that the current time is earlier than the address expiration time corresponding to the transcoded video website corresponding to the second selection operation, the execution subject may play the video corresponding to the transcoded video website corresponding to the second selection operation. Therefore, the urgency of watching the video of the transcoded video website by the user can be improved, and the video of the transcoded video website can be played in time.
Optionally, the to-be-processed video in the to-be-processed video set may correspond to a transcoding control. The transcoding control may include the transcoding template determination control. The transcoding control may be a control characterizing transcoding of the corresponding video to be processed.
Optionally, in response to a to-be-processed video corresponding to a transcoded video website existing in the to-be-processed video set, the execution main body may delete a transcoding control corresponding to the to-be-processed video corresponding to the transcoded video website in the video upload management window. Therefore, the transcoding control can not be displayed for the video to be processed after transcoding is completed, and the same video to be processed is prevented from being transcoded repeatedly.
Optionally, first, in response to detecting a selection operation acting on the video transcoding progress query control, the execution subject may present a video transcoding progress window. The video transcoding progress query control can be a control for representing the transcoding progress of the query video to be processed. The video transcoding progress query control can be displayed in a video transcoding management window. The video transcoding management window may be a window displaying the video transcoding progress query control. And the video transcoding process window displays the video name and the transcoding state. Then, in response to detecting a first selection operation acting on the transcoding template determination control, the transcoding state of each to-be-processed video corresponding to the first selection operation in the video transcoding process window may be updated to be in transcoding. Therefore, the transcoding progress of each video to be processed can be displayed.
Various embodiments of the present disclosure have the following beneficial effects: by the video transcoding playing method of some embodiments of the present disclosure, the waiting time for a user to watch a video is reduced. Specifically, the reason why the waiting time for the user to watch the video is too long is that: transcoding is carried out on each video in sequence, transcoding can not be carried out on each video simultaneously, long time is needed for transcoding each video, transcoding efficiency is low, and waiting time for watching the video by a user is long. Based on this, in the video transcoding playing method of some embodiments of the present disclosure, first, each to-be-processed video in the to-be-processed video set is uploaded to the server. Therefore, the server can receive each video to be processed in the video set to be processed. Then, in response to detecting a first selection operation acting on the transcoding template determination control, a transcoding request for at least one to-be-processed video is sent to the server. The at least one video to be processed is a video to be processed corresponding to the first selection operation in the video set to be processed. The server is used for transcoding at least one to-be-processed video according to the transcoding request so as to obtain a transcoded video website set. The number of the transcoded video websites in the transcoded video website set is greater than or equal to the number of the videos to be processed in at least one video to be processed. The transcoding request includes at least one transcoding template. Therefore, the server side can transcode at least one video to be processed according to at least one transcoding template to obtain a transcoded video website set. And secondly, receiving a transcoding video website set of the corresponding transcoding request sent by the server. Therefore, the website representing the address of the video obtained by transcoding each to-be-processed video can be obtained. And finally, in response to detecting a second selection operation acting on the video playing control, playing the video of the transcoded video website corresponding to the second selection operation according to the transcoded video website corresponding to the second selection operation in the transcoded video website set. Therefore, the transcoded video to be processed can be played. Due to the first selection operation acting on the transcoding template determination control, the server side can transcode at least one to-be-processed video according to at least one transcoding template, so that for each to-be-processed video, at least one transcoding video website can be obtained by transcoding the to-be-processed video through at least one transcoding template, and further for each to-be-processed video, a transcoding video website set can be obtained through transcoding, and the number of the transcoding video websites in the transcoding video website set is greater than or equal to the number of the to-be-processed videos in the at least one to-be-processed video. Therefore, through the transcoding template, the server side can transcode each to-be-processed video to obtain a transcoded video website set, so that the video transcoding efficiency is improved, and the waiting time for a user to watch the video can be reduced.
With continuing reference to fig. 2, as an implementation of the methods shown in the above-mentioned figures, the present disclosure provides some embodiments of a video transcoding playing apparatus, which correspond to those of the method embodiments shown in fig. 1, and which can be applied in various electronic devices.
As shown in fig. 2, the videotranscoding playing device 200 of some embodiments includes: an uploadingunit 201, a sendingunit 202, a receivingunit 203, and aplaying unit 204. Theuploading unit 201 is configured to upload each to-be-processed video in the to-be-processed video set to the server; the sendingunit 202 is configured to send, in response to detecting a first selection operation acting on a transcoding template determination control, a transcoding request for at least one to-be-processed video to the server, where the at least one to-be-processed video is a to-be-processed video corresponding to the first selection operation in the to-be-processed video set, the server is configured to transcode the at least one to-be-processed video according to the transcoding request to obtain a transcoded video website set, the number of transcoded video websites in the transcoded video website set is greater than or equal to the number of to-be-processed videos in the at least one to-be-processed video, and the transcoding request includes at least one transcoding template identifier; the receivingunit 203 is configured to receive a set of transcoding video websites corresponding to the transcoding request sent by the server; theplaying unit 204 is configured to, in response to detecting a second selection operation acting on the video playing control, play the video corresponding to the transcoded video website corresponding to the second selection operation according to the transcoded video website corresponding to the second selection operation in the transcoded video website set.
It will be understood that the units described in theapparatus 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 theapparatus 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, theelectronic 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 theRAM 303, various programs and data necessary for the operation of theelectronic apparatus 300 are also stored. Theprocessing device 301, theROM 302, and theRAM 303 are connected to each other via abus 304. An input/output (I/O)interface 305 is also connected tobus 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.; anoutput 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 acommunication device 309. The communication means 309 may allow theelectronic device 300 to communicate with other devices, wireless or wired, to exchange data. While fig. 3 illustrates anelectronic 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 thecommunication device 309, or installed from thestorage device 308, or installed from theROM 302. The computer program, when executed by theprocessing 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: uploading each video to be processed in the video set to be processed to a server; in response to detecting a first selection operation acting on a transcoding template determination control, sending a transcoding request for at least one to-be-processed video to the server, wherein the at least one to-be-processed video is a to-be-processed video corresponding to the first selection operation in the to-be-processed video set, the server is configured to perform transcoding processing on the at least one to-be-processed video according to the transcoding request to obtain a transcoded video website set, the number of transcoded video websites in the transcoded video website set is greater than or equal to the number of to-be-processed videos in the at least one to-be-processed video, and the transcoding request includes at least one transcoding template identifier; receiving a transcoding video website set which is sent by the server and corresponds to the transcoding request; and in response to detecting a second selection operation acting on the video playing control, playing the video of the transcoded video website corresponding to the second selection operation according to the transcoded video website corresponding to the second selection operation in the transcoded video website set.
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 an upload unit, a transmission unit, a reception unit, and a playback unit. The names of these units do not form a limitation to the unit itself under certain circumstances, for example, a receiving unit may also be described as a "unit that receives the set of transcoded video websites corresponding to the transcoding request sent by the server".
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.