CN107566892B - Video file processing method and device and computer readable storage medium - Google Patents

Video file processing method and device and computer readable storage medium Download PDF

Info

Publication number
CN107566892B
CN107566892B CN201710841908.9A CN201710841908A CN107566892B CN 107566892 B CN107566892 B CN 107566892B CN 201710841908 A CN201710841908 A CN 201710841908A CN 107566892 B CN107566892 B CN 107566892B
Authority
CN
China
Prior art keywords
video file
short video
information
splicing
short
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710841908.9A
Other languages
Chinese (zh)
Other versions
CN107566892A (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201710841908.9A priority Critical patent/CN107566892B/en
Publication of CN107566892A publication Critical patent/CN107566892A/en
Application granted granted Critical
Publication of CN107566892B publication Critical patent/CN107566892B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The disclosure provides a video file processing method, a video file processing device and a computer readable storage medium, and belongs to the technical field of computers. The method comprises the following steps: determining a selected plurality of first short video files in the dialog information; and when a splicing instruction for indicating splicing of the short video files is received, splicing the plurality of first short video files to obtain a second video file. In the embodiment of the disclosure, a plurality of selected first short video files in the dialog information can be spliced into a second video file, so that video creation can be realized in the dialog information, the chat experience is enriched, and the interest of the chat is increased.

Description

Video file processing method and device and computer readable storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for processing a video file, and a computer-readable storage medium.
Background
With the development of computer technology, users in social applications can not only send voice messages, text messages and pictures to friends, but also send short video files to friends. In order to facilitate the information sharing of the chat content between the user and each friend, the user can also forward the short video file sent by a certain friend to other friends.
When a user wants to forward a plurality of short video files, the user of the sending end selects the short video files to be sent in a chat dialog box between the user of the sending end and the first friend, the sending end obtains the selected video files after receiving a forwarding instruction, and each selected video file is used as a message content to be sent to the selected second friend.
Disclosure of Invention
In order to overcome the problems in the related art, the present disclosure provides a video file processing method, an apparatus and a computer-readable storage medium, where the technical solution is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a video file processing method, the method including:
determining a selected plurality of first short video files in the dialog information;
and when a splicing instruction for indicating splicing of the short video files is received, splicing the plurality of first short video files to obtain a second video file.
In the embodiment of the disclosure, a plurality of selected first short video files in the dialog information can be spliced into a second video file, so that video creation can be realized in the dialog information, the chat experience is enriched, and the interest of the chat is increased.
In a possible implementation manner, the splicing the plurality of first short video files to obtain a second video file includes:
determining the splicing sequence of each first short video file;
and splicing each first short video file based on the splicing sequence of each first short video file to obtain a second video file.
In one possible implementation manner, the determining the splicing order of each first short video file includes:
determining the sending time of each first short video file, and determining the splicing sequence of each first short video file based on the sending time of each first short video file; alternatively, the first and second electrodes may be,
determining the sending time of each first short video file, displaying the thumbnail of each first short video file according to the sending time of each first short video file, adjusting the display sequence of each first short video file according to the sequence of dragging the thumbnail of each first short video file by a user, and determining the adjusted display sequence of each first short video file as the splicing sequence of each first short video file.
In the embodiment of the disclosure, the splicing sequence of each first short video file can be determined based on the sending time of each first short video file, so that the efficiency of determining the splicing sequence of each first short video file is improved. In addition, the user can also manually adjust the splicing sequence of each first short video file, so that the user requirements are met, and the user experience is improved.
In a possible implementation manner, after the splicing the plurality of first short video files to obtain the second video file, the method further includes:
acquiring character information to be inserted;
determining the insertion time range of the text information;
and inserting the text information into the second video file based on the insertion time range.
In the embodiment of the present disclosure, after the plurality of first short video files are spliced into the second video file, text information may be added to the second video file, so that the information capacity of the second video file is increased.
In a possible implementation manner, the obtaining of the text information to be inserted includes:
acquiring character information input by a user; and/or the presence of a gas in the gas,
obtaining context information of each selected first short video file, taking the context information of each first short video file as the character information to be inserted, wherein the context information of any first short video file comprises a first preset number of chat messages and/or a second preset number of chat messages of any first short video file in the conversation information; and/or the presence of a gas in the gas,
acquiring at least one piece of text information selected in the dialogue information, and taking the at least one piece of text information as the text information to be inserted; and/or the presence of a gas in the gas,
and acquiring the relevant information of each first short video file, and taking the relevant information of each first short video file as the text information to be inserted, wherein the relevant information of any first short video file comprises at least one item of a sender, sending time, group name of a group corresponding to the conversation information or user name of a user of any video file.
In the embodiment of the disclosure, various ways of obtaining the text information to be inserted are provided, and applicable scenes are increased.
In a possible implementation manner, the determining the insertion time range of the text message includes:
acquiring a preset insertion time range; alternatively, the first and second electrodes may be,
displaying a first option prompt including a first input box and a second input box, wherein the first input box is used for inputting an insertion starting time, the second input box is used for inputting an insertion ending time, the insertion starting time input in the first input box and the insertion ending time input in the second input box are obtained, and the insertion starting time and the insertion ending time are combined into the insertion time range; alternatively, the first and second electrodes may be,
and playing the second video file, acquiring a current first playing time of the second video file when a first preset touch operation is detected in the process of playing the second video file, acquiring a current second playing time of the second video file when a second preset touch operation is detected, and forming the first playing time and the second playing time into the insertion time range.
In the embodiment of the disclosure, a plurality of ways of determining the insertion time range are provided, and applicable scenarios are increased.
In a possible implementation manner, after the splicing the plurality of first short video files to obtain the second video file, the method further includes:
receiving an indication of the second video file saving and/or forwarding;
and saving and/or forwarding the second video file according to the received instruction for saving and/or forwarding the second video file.
In the embodiment of the disclosure, the second video file can be processed to the friend and stored, so that the good time can be saved.
In one possible implementation manner, before determining the selected plurality of first short video files in the dialog information, the method further includes:
when the dialog information meets a pop-up condition, popping up a second option prompt containing a multi-option, wherein the pop-up condition comprises that the duration of continuously triggering one chat message in the dialog information exceeds a first preset duration, or the duration of continuously triggering a blank area of the dialog information exceeds a second preset duration;
and when the multi-selection option in the second option prompt is triggered, setting the attribute of each first short video file in the dialog information as selectable.
In one possible implementation, after determining the selected plurality of first short video files in the dialog information, the method further includes:
when the multiple options in the second option prompt are triggered, displaying a third option prompt containing a splicing option;
when the splicing option in the third option prompt is triggered, receiving the splicing instruction generated when the splicing option is triggered.
In one possible implementation, the method further includes:
receiving an indication of the plurality of first short video files forwarding;
and forwarding the plurality of first short video files one by one according to the received indication for forwarding the plurality of first short video files.
In the embodiment of the disclosure, the plurality of first short video files can be spliced into the second video file, the second video file is processed to the friend, the plurality of first short video files can be forwarded to the friend one by one, scenes are enriched, and user experience is improved.
According to a second aspect of the embodiments of the present disclosure, there is provided a video file processing apparatus, the apparatus including:
a first determining module for determining a selected plurality of first short video files in the dialog information;
and the splicing module is used for splicing the plurality of first short video files to obtain a second video file when a splicing instruction for indicating splicing of the short video files is received.
In a possible implementation manner, the splicing module is further configured to determine a splicing order of each first short video file, and splice each first short video file based on the splicing order of each first short video file to obtain a second video file.
In a possible implementation manner, the splicing module is further configured to determine a sending time of each first short video file, and determine a splicing order of each first short video file based on the sending time of each first short video file; alternatively, the first and second electrodes may be,
the splicing module is further configured to determine the sending time of each first short video file, display a thumbnail of each first short video file according to the sending time of each first short video file, adjust the display order of each first short video file according to the order in which the thumbnails of each first short video file are dragged by a user, and determine the adjusted display order of each first short video file as the splicing order of each first short video file.
In one possible implementation, the apparatus further includes:
the acquisition module is used for acquiring character information to be inserted;
the second determining module is used for determining the insertion time range of the text information;
and the inserting module is used for inserting the text information into the second video file based on the inserting time range.
In a possible implementation manner, the obtaining module is further configured to obtain text information input by a user; and/or the presence of a gas in the gas,
the obtaining module is further configured to obtain context information of each selected first short video file, and use the context information of each first short video file as the text information to be inserted, where the context information of any first short video file includes a first preset number of preceding chat messages and/or a second preset number of following chat messages of the any first short video file in the dialog information; and/or the presence of a gas in the gas,
the acquisition module is further configured to acquire at least one piece of text information selected from the dialog information, and use the at least one piece of text information as the text information to be inserted; and/or the presence of a gas in the gas,
the obtaining module is further configured to obtain relevant information of each first short video file, and use the relevant information of each first short video file as the text information to be inserted, where the relevant information of any first short video file includes at least one of a sender of any video file, sending time, a group name of a packet corresponding to the session information, or a user name of the user.
In a possible implementation manner, the second determining module is further configured to obtain a preset insertion time range; alternatively, the first and second electrodes may be,
the second determining module is further configured to display a first option prompt including a first input box and a second input box, where the first input box is used to input an insertion start time, the second input box is used to input an insertion end time, the insertion start time input in the first input box and the insertion end time input in the second input box are obtained, and the insertion start time and the insertion end time are combined into the insertion time range; alternatively, the first and second electrodes may be,
the second determining module is further configured to play the second video file, acquire a current first play time of the second video file when a first preset touch operation is detected in a process of playing the second video file, acquire a current second play time of the second video file when a second preset touch operation is detected, and combine the first play time and the second play time into the insertion time range.
In one possible implementation, the apparatus further includes:
and the processing module is used for receiving the instruction for saving and/or forwarding the second video file and saving and/or forwarding the second video file according to the received instruction for saving and/or forwarding the second video file.
In one possible implementation, the apparatus further includes:
the pop-up module is used for popping up a second option prompt containing multiple options when the conversation information meets a pop-up condition, wherein the pop-up condition comprises that the duration of continuously triggering one chat message in the conversation information exceeds a first preset duration, or the duration of continuously triggering a blank area of the conversation information exceeds a second preset duration;
and the setting module is used for setting the attribute of each first short video file in the dialog information as selectable when a multi-selection option in the second option prompt is triggered.
In one possible implementation, the apparatus further includes:
the display module is used for displaying a third option prompt containing a forwarding option when the multi-option in the second option prompt is triggered;
a receiving module, configured to receive, when the splicing option in the third option prompt is triggered, the splicing instruction generated when the splicing option is triggered.
In one possible implementation, the apparatus further includes:
and the forwarding module is used for receiving the instruction of forwarding the plurality of first short video files and forwarding the plurality of first short video files one by one according to the received instruction of forwarding the plurality of first short video files.
According to a third aspect of the embodiments of the present disclosure, there is provided a video file processing apparatus, the apparatus including: a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
determining a selected plurality of first short video files in the dialog information;
and when a splicing instruction for indicating splicing of the short video files is received, splicing the plurality of first short video files to obtain a second video file.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of:
determining a selected plurality of first short video files in the dialog information;
and when a splicing instruction for indicating splicing of the short video files is received, splicing the plurality of first short video files to obtain a second video file.
In the embodiment of the disclosure, a plurality of selected first short video files in the dialog information can be spliced into a second video file, so that video creation can be realized in the dialog information, the chat experience is enriched, and the interest of the chat is increased.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flow diagram illustrating a method of video file processing in accordance with an exemplary embodiment;
FIG. 2 is a flow diagram illustrating a method of video file processing in accordance with an exemplary embodiment;
FIG. 3 is a block diagram illustrating a video file processing apparatus according to an exemplary embodiment;
FIG. 4 is a block diagram illustrating a video file processing apparatus according to an exemplary embodiment;
FIG. 5 is a block diagram illustrating a video file processing apparatus according to an exemplary embodiment;
FIG. 6 is a block diagram illustrating a video file processing apparatus according to an exemplary embodiment;
FIG. 7 is a block diagram illustrating a video file processing apparatus in accordance with an exemplary embodiment;
fig. 8 is a block diagram illustrating a video file processing apparatus according to an example embodiment.
Detailed Description
To make the objects, technical solutions and advantages of the present disclosure more apparent, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings.
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
A social application refers to an application having message input, forwarding, and receiving functions. In the social application program, a user can chat with one friend of the user and can also join in a group to chat with a plurality of friends of the user at the same time. When a user chats with a friend, the short video file can be sent, and not only can voice messages, text messages, pictures and the like be sent, but also the short video file can be sent. The short video file refers to a video file with the playing time not exceeding a fourth preset time. The fourth preset time period may be set and changed as needed, and in the embodiment of the present disclosure, the fourth preset time period is not specifically limited, for example, the fourth preset time period may be 30s or 40s, and the like. In the embodiment of the disclosure, the sending end can splice a plurality of selected first short video files in the session information into one second video file, so that video creation can be realized in the session information, chat experience is enriched, and the interest of chat is increased.
Fig. 1 is a flow diagram illustrating a method of video file processing, as shown in fig. 1, including the following steps, according to an example embodiment.
In step S101, the selected plurality of first short video files are determined in the dialog information.
In step S102, when a splicing instruction for instructing to splice the short video files is received, the plurality of first short video files are spliced to obtain a second video file.
In a possible implementation manner, the splicing the plurality of first short video files to obtain a second video file includes:
determining the splicing sequence of each first short video file;
and splicing each first short video file based on the splicing sequence of each first short video file to obtain a second video file.
In one possible implementation, the determining the splicing order of each first short video file includes:
determining the sending time of each first short video file, and determining the splicing sequence of each first short video file based on the sending time of each first short video file; alternatively, the first and second electrodes may be,
determining the sending time of each first short video file, displaying the thumbnail of each first short video file according to the sending time of each first short video file, adjusting the display sequence of each first short video file according to the sequence of dragging the thumbnail of each first short video file by a user, and determining the adjusted display sequence of each first short video file as the splicing sequence of each first short video file.
In a possible implementation manner, after the splicing the plurality of first short video files to obtain the second video file, the method further includes:
acquiring character information to be inserted;
determining the insertion time range of the character information;
and inserting the text information into the second video file based on the insertion time range.
In one possible implementation manner, the acquiring the text information to be inserted includes:
acquiring character information input by a user; and/or the presence of a gas in the gas,
obtaining the context information of each selected first short video file, taking the context information of each first short video file as the character information to be inserted, wherein the context information of any first short video file comprises a first preset number of chat messages and/or a second preset number of chat messages in front of and/or behind the first short video file in the conversation information; and/or the presence of a gas in the gas,
acquiring at least one piece of selected text information in the dialogue information, and taking the at least one piece of text information as the text information to be inserted; and/or the presence of a gas in the gas,
and acquiring the relevant information of each first short video file, and taking the relevant information of each first short video file as the text information to be inserted, wherein the relevant information of any first short video file comprises at least one item of a sender, sending time, group name of a group corresponding to the conversation information or user name of a user of any video file.
In one possible implementation, the determining the insertion time range of the text message includes:
acquiring a preset insertion time range; alternatively, the first and second electrodes may be,
displaying a first option prompt including a first input box and a second input box, wherein the first input box is used for inputting an insertion starting time, the second input box is used for inputting an insertion ending time, the insertion starting time input in the first input box and the insertion ending time input in the second input box are obtained, and the insertion starting time and the insertion ending time are combined into the insertion time range; alternatively, the first and second electrodes may be,
and playing the second video file, acquiring a current first playing time of the second video file when a first preset touch operation is detected in the process of playing the second video file, acquiring a current second playing time of the second video file when a second preset touch operation is detected, and forming the first playing time and the second playing time into the insertion time range.
In one possible implementation, the method further includes:
receiving an indication of the second video file saving and/or forwarding;
and saving and/or forwarding the second video file according to the received instruction for saving and/or forwarding the second video file.
In one possible implementation, before determining the selected plurality of first short video files in the dialog information, the method further includes:
when the dialog information meets a pop-up condition, popping up a second option prompt containing a multi-option, wherein the pop-up condition comprises that the duration of a chat message in the dialog information which is continuously triggered exceeds a first preset duration, or the duration of a blank area of the dialog information which is continuously triggered exceeds a second preset duration;
and when the multi-selection option in the second option prompt is triggered, setting the attribute of each first short video file in the dialog information as selectable.
In one possible implementation, after determining the selected plurality of first short video files in the dialog information, the method further includes:
when the multiple options in the second option prompt are triggered, displaying a third option prompt containing splicing options;
when the splicing option in the third option prompt is triggered, receiving the splicing instruction generated when the splicing option is triggered.
In one possible implementation, the method further includes:
receiving an indication of the plurality of first short video files to forward;
and forwarding the plurality of first short video files one by one according to the received indication of forwarding the plurality of first short video files.
All the above optional technical solutions may be combined arbitrarily to form the optional embodiments of the present disclosure, and are not described herein again.
In the embodiment of the disclosure, the sending end can splice a plurality of selected first short video files in the session information into one second video file, so that video creation can be realized in the session information, chat experience is enriched, and the interest of chat is increased.
Fig. 2 is a flowchart illustrating a video file processing method applied in a transmitting end according to an exemplary embodiment. The transmitting end can be a smart phone, a tablet computer, a smart television, an e-book reader, a multimedia player, a laptop portable computer, a desktop computer and the like. As shown in fig. 2, the following steps are included.
In step S201, when the session information satisfies a pop-up condition, the sending end pops up a second option prompt including multiple options, where the pop-up condition includes that a duration of a chat message in the session information being continuously triggered exceeds a first preset duration, or a duration of a blank area of the session information being continuously triggered exceeds a second preset duration.
The multiple selection option is for selecting a plurality of first short video files. In a possible implementation manner, when a user wants to splice a plurality of first short video files in the dialog information, the user may select one chat message in the dialog information and trigger the chat message for a long time, so that the sending end pops up a second option prompt including multiple options, and at this time, the chat message is in a selected state by default. The chat message may be a voice message, a text message, or a video file, etc. That is, when the sending end detects that the duration of a chat message in the dialog messages continuously triggered exceeds a first preset duration, it is determined that the dialog messages satisfy the pop-up condition.
In another possible implementation manner, the user may also trigger a blank area in the dialog message for a long time, so that the sending end pops up a second option prompt including the multiple-option. That is, when the sending end detects that the duration of the continuous triggering of the blank area in the session information exceeds the second preset duration, it is determined that the session information meets the pop-up condition.
The dialog information may be a dialog box, a history message, or the like. The first preset time period and the second preset time period may be equal or unequal. In addition, the first preset duration and the second preset duration may be set and changed as needed, and in the embodiment of the present disclosure, neither the first preset duration nor the second preset duration is specifically limited. For example, the first preset duration is not equal to the second preset duration, the first preset duration is 2s, and the second preset duration is 3 s.
It should be noted that the second option prompt includes not only the multiple-choice option but also options such as copy, forward, collect, translate, delete, and the like. To prevent the second option prompt from overriding the content in the dialog information, the second option prompt is often disposed below the dialog information, and the second option prompt does not override any chat messages of the dialog information. In the embodiment of the present disclosure, the second option prompt may also be set at any position of the dialog information, and the second option prompt may be set to be transparent.
In step S202, when the multiple options in the second option prompt are triggered, the sending end sets the attribute of each first short video file in the dialog information to be selectable.
In this step, the sending end may set the attribute of each first short video file in the dialog information to be selectable, and at this time, the user may select not only a plurality of first short video files but also text information or voice information, so as to insert the text information corresponding to the selected text information or voice information into the spliced second video file.
In step S203, the transmitting end determines a plurality of selected first short video files in the dialog information.
The selected plurality of first short video files comprise short video files sent by the user and/or short video files sent by friend users of the conversation information.
In this step, the sending end not only obtains the selected plurality of first short video files, but also obtains the relevant information of each first short video file, so as to insert the relevant information of each first short video file into the spliced second video file in the following process. The related information of any first short video file comprises at least one of a sender, sending time, a group name of a packet corresponding to the session information or a user name of a user of any first short video file.
In this step, the sending end may further obtain the context information of each selected first short video file, so as to insert the context information of each first short video file into the spliced second video file in the following process. The context information of any first short video file comprises a first preset number of chat messages and/or a second preset number of chat messages of any first short video file. The chat message may be a voice message or a text message. When the chat message is a voice message, the sending end converts the voice message into a text message.
The first preset number and the second preset number may be equal or unequal. In addition, the first preset number and the second preset number may be set and changed as needed, and in the embodiment of the present disclosure, neither the first preset number nor the second preset number is specifically limited. For example, the first predetermined number is 2, and the second predetermined number is 3.
It should be noted that, in order to save traffic, the playing duration of the transmitted short video files is generally limited to not exceed 30s, and therefore, the total playing duration of the selected plurality of first short video files does not exceed 30 s. Correspondingly, in this step, after the sending end determines the selected plurality of first short video files, the total playing time length of the plurality of first short video files is determined, and when the total playing time length does not exceed a third preset time length, step S204 is executed; when the total playing time length exceeds a third preset time length, the sending end prompts that the total playing time length is limited, and the sending end requests to reselect the plurality of first short video files until the total playing time length of the plurality of first short video files selected by the user does not exceed the third preset time length.
The third preset time period may be set and changed as needed, and in the embodiment of the present disclosure, the third preset time period is not specifically limited. For example, the third preset time period may be 30s or 40s, etc.
In this step, when the sending end determines that the total playing time of the plurality of first short video files exceeds the third preset time, the user may not be prompted to reselect the first short video file, but the second short video files are subsequently spliced into the second video file, and then the second video file is edited, so that the playing time of the second video file does not exceed the third preset time.
In step S204, the sender displays a third option prompt including a splicing option.
It should be noted that, after the sender sets the attribute of each first short video file in the dialog information to be selectable in step 202, the sender displays a third option prompt including a splicing option. The splicing option is used to trigger a splicing instruction.
In step S205, when the splicing option in the third option prompt is triggered, the sending end receives a splicing instruction generated when the splicing option is triggered.
The third option prompt at least comprises a splicing option, and the third option prompt also comprises a splicing forwarding option. The splicing option and the splicing forwarding option can both trigger the splicing instruction. And when the splicing option is triggered, the sending end generates a splicing instruction, and when the splicing forwarding option is triggered, the sending end generates a splicing forwarding instruction.
It should be noted that, in the embodiment of the present disclosure, forwarding after a plurality of first short video files are spliced into a second video file can be achieved. And forwarding the plurality of first short video files one by one. Accordingly, the process may be:
the sending end receives the indication of forwarding the plurality of first short video files, and forwards the plurality of first short video files one by one according to the received indication of forwarding the plurality of first short video files.
In the embodiment of the present disclosure, a splicing forwarding manner and a bar-by-bar forwarding manner may be provided for a user, where the splicing forwarding manner refers to a manner in which multiple video files are spliced into one video file to be forwarded, and the bar-by-bar forwarding manner refers to a manner in which each video file is forwarded as one message content. When a user wants to splice a plurality of first short video files before forwarding, the user can trigger a splicing forwarding option; when the user wants to forward each first short video file as a message content, the user may trigger a forward-by-forward option.
When the sending end detects that the splicing option is triggered, the splicing instruction generated when the splicing option is triggered is received, and step S206 is executed.
In step S206, when receiving a splicing instruction for instructing to splice the short video files, the sending end splices the plurality of first short video files to obtain a second video file.
This step can be realized by the following steps (1) and (2), including:
(1): and the sending end determines the splicing sequence of each first short video file.
The sending end may use the sequence of the sending time of each first short video file as the splicing sequence of each first short video file, that is, the following first implementation manner. The sending end may also display a thumbnail of each first short video file, and the user manually adjusts the splicing order of each first short video file, that is, the following second implementation manner.
For the first implementation, the step may be:
the sending end determines the sending time of each first short video file, and determines the splicing sequence of each first short video file based on the sending time of each first short video file.
The sending end sequences each first short video file according to the sending time of each first short video file and the sequence of the sending time from near to far to obtain the splicing sequence of each first short video file; alternatively, the first and second electrodes may be,
and the sending end sequences each first short video file according to the sending time of each first short video file and the sequence of the sending time from far to near, so as to obtain the splicing sequence of each first short video file.
For the second implementation, the step may be:
the sending end determines the sending time of each first short video file, the thumbnail of each first short video file is displayed according to the sending time of each first short video file, the display sequence of each first short video file is adjusted according to the sequence of dragging the thumbnail of each first short video file by a user, and the adjusted display sequence of each first short video file is determined as the splicing sequence of each first short video file.
When the sending end displays the thumbnail of each first short video file, the sending end can display a fourth option prompt, and the fourth option prompt comprises the thumbnail of each first short video file. The user adjusts the display order of each first short video file in the fourth option prompt. The fourth option prompt can also comprise a splicing option; after the user adjusts the display sequence of each first short video file, the user can trigger the splicing option to trigger the sending end to perform splicing operation. And (3) when the sending end receives a splicing instruction generated by triggering a splicing button, acquiring the adjusted display sequence of each first short video file, determining the adjusted display sequence of each first short video file as the splicing sequence of each first short video file, and executing the step (2).
(2): and the sending end splices each first short video file based on the splicing sequence of each first short video file to obtain a second video file.
It should be noted that, because of the limitation of the total playing time, after the sending end splices each first short video file into a second video file, the sending end determines the playing time of the second video file; and when the playing time length exceeds a third preset time length, editing the second video file, so that the playing time length of the edited second multimedia does not exceed the third preset time length.
After the sending end splices a plurality of first short video files into one second video file, the sending end may further add text information to the second video file through the following steps S207 to S209.
In step S207, the transmitting end acquires text information to be inserted.
In this step, the user may manually input the text information to be inserted, i.e., the following first manner. The sending end may also use the text information of each first short video file context as the text information to be inserted, that is, the following second implementation manner. The sending end may also use the text information selected by the user in the dialog information as the text information to be inserted, i.e., the following third implementation manner. The sending end may also use the related information of each first short video file as the text information to be inserted, i.e., the following fourth implementation manner.
For the first implementation, the step may be:
the sending end displays an input box, and the input box is used for inputting character information to be inserted by a user. The user inputs the character information in the input box, and the sending end acquires the character information input in the input box.
The input text information can be text information of any language, and in order to further facilitate the user, the sending end can also display a translation button in the current display interface; the user can input the text information of any language in the input box, and the text information input by the user is translated into the text information of the selected language through the translation button. Correspondingly, after the sending end acquires the inputted text information in the input box, the method further comprises the following steps:
the sending end displays a translation button; and when a translation instruction generated when the translation button is triggered is received, displaying a fifth option prompt comprising a plurality of languages, acquiring the language selected by the user in the fifth option prompt, and translating the text information input by the user into the text information of the selected language.
For the second implementation, the step may be:
the sending end obtains the context information of each selected first short video file, and the context information of each first short video file is used as character information to be inserted. The context information of any first short video file comprises a first preset number of chat messages and/or a second preset number of chat messages of any first short video file. The chat message may be a voice message or a text message. When the chat message is a voice message, the sending end converts the voice message into a text message.
For the third implementation, the step may be:
the sending end obtains at least one piece of character information selected in the dialogue information, and takes the at least one piece of character information as character information to be inserted.
For the fourth implementation, the step may be:
and the sending end acquires the related information of each first short video file and takes the related information of each first short video file as character information to be inserted. The related information of any first short video file comprises at least one of a sender, sending time, a group name of a packet corresponding to the session information or a user name of a user of any first short video file.
It should be noted that, when the sending end obtains the text information to be inserted, the sending end may be implemented by at least one of the above manners.
In step S208, the transmitting end determines the insertion time range of the text message.
In this step, the sending end may set a preset insertion time range, and use the preset insertion time range as the insertion time range of the text message, that is, the following first manner. The sender may also allow the user to currently enter the insertion time range, i.e., the following second way. The sending end can also obtain the insertion time range set by the user through gesture operation, namely, the following third mode.
For the first implementation, the step may be:
the sending end obtains a preset insertion time range.
The preset insertion time range may be set and changed as needed, and in the embodiment of the present disclosure, the preset insertion time range is not specifically limited. For example, the predetermined insertion time may be in the range of 0 to 10 seconds.
For the second implementation, the step may be:
the sending end displays a first option prompt comprising a first input box and a second input box, wherein the first input box is used for inputting the insertion starting time, the second input box is used for inputting the insertion ending time, the insertion starting time input in the first input box and the insertion ending time input in the second input box are obtained, and the insertion starting time and the insertion ending time form an insertion time range.
To prevent the first option prompt from overriding the content in the dialog information, the first option prompt is often disposed below the dialog information, and the first option prompt does not override any chat messages of the dialog information. In the embodiment of the present disclosure, the first option prompt may also be set at any position of the dialog information, and the first option prompt may be set to be transparent.
For the third implementation manner, after the sending end splices the second video file, the user can preview the second video file, at this time, the sending end broadcasts the second video file, when the sending end broadcasts the start position where the user wants to insert the text information, the user can execute the first preset touch operation, and when the sending end broadcasts the end text in which the text information is inserted, the user can execute the second preset touch operation. Correspondingly, the steps can be as follows:
the method comprises the steps that a sending end plays a second video file, in the process of playing the second video file, when a first preset touch operation is detected, the current first playing time of the second video file is obtained, when a second preset touch operation is detected, the current second playing time of the second video file is obtained, and the first playing time and the second playing time form an insertion time range.
The first preset touch operation and the second preset touch operation may be the same or different. In addition, both the first preset touch operation and the second preset touch operation can be set and changed as needed, and in the embodiment of the present disclosure, neither the first preset touch operation nor the second preset touch operation is specifically limited. For example, the first predetermined touch operation is a click operation, and the second predetermined touch operation is also a click operation.
For example, when a user wants to insert character information into the 5 th to 15 th video files of the second video file, the user clicks a terminal screen of a sending end when the second video file is played to the 5 th video file; when the second video file is played to the 15 th s, the user clicks the terminal screen of the transmitting end again. The sending end obtains a first play time: 5s, second playing time: and 15s, forming an insertion time range from 5 th to 15 th.
In step S209, the transmitting end inserts the text information into the second video file based on the insertion time range.
And after the sending end inserts the character information into the second video file, displaying a receiving end list and storage options. The receiving list includes a plurality of receiving ends, and the receiving end may be a friend user of the user or a group in which the user is located. And the receiving ends in the receiving end list are sorted in the order of the contact frequency in a third preset time length before the current time from large to small, or the receiving ends in the receiving end list are sorted in the order of the latest continuous time from near to far, or the receiving ends in the receiving end list are sorted in a default order. The default sequence is the sequence of the initials of the names of the receiving end.
The third preset time length can be set and changed as required, and in the embodiment of the disclosure, the third preset time length is not specifically limited; for example, the third preset duration may be 1 week or 1 month, etc.
When the user wants to store or forward the second video file, the user may trigger an indication of saving and/or forwarding the second video file, and step S210 is performed.
In step S210, the sending end receives an instruction for saving and/or forwarding the second video file, and saves and/or forwards the second video file according to the received instruction for saving and/or forwarding the second video file.
The indication may be received by a user trigger during the splicing indication or after the second video file is obtained. When the indication is a splicing indication, the user trigger is received, and the indication can be a splicing forwarding instruction. When the indication is received by user triggering after the second video file is obtained, the sending end displays a storage and/or forwarding option; when the save and/or forward option is detected to be triggered, an indication of a second video file save and/or forward is received. The instruction may be a save instruction, a forward instruction, or a save and forward instruction.
When the indication is a save indication, the sending end saves and/or forwards the second video file according to the received indication for saving and/or forwarding the second video file, and the step for saving and/or forwarding the second video file may be:
and the sending end stores the second video file to the designated storage space. The designated storage space may be a storage space corresponding to the user in a system gallery, a favorite folder, or a cloud server. The storage location of the second video file is not particularly limited in the embodiments of the present disclosure.
And (II) when the indication is a forwarding indication, the user can select one or more receivers from the receiving end list. Correspondingly, the step of saving and/or forwarding the second video file by the sending end according to the received instruction for saving and/or forwarding the second video file may be:
and the sending end determines the user identification of the receiving end and forwards the second video file to the receiving end.
In the embodiment of the present disclosure, when a user wants to forward a plurality of video files, a sending end obtains a plurality of selected first short video files, splices the plurality of first short video files to obtain a second video file, and processes the second video file to a selected receiving end. Because the sending end splices a plurality of first short video files into a second video file, therefore, the receiving end only receives a second video file, only needs once opening operation, just can watch the content of a plurality of first short video files, has improved broadcast efficiency.
And (iii) when the indication is a save-and-forward indication, the user may select one or more recipients from the list of recipients. Correspondingly, the step of saving and/or forwarding the second video file by the sending end according to the received instruction for saving and/or forwarding the second video file may be:
and the sending end determines the user identification of the receiving end, forwards the second video file to the receiving end and stores the second video file to the designated storage space.
And when the sending end receives the indication, displaying a receiving end list. The receiving list includes a plurality of receiving ends, and the receiving end may be a friend user of the user or a group in which the user is located. The user may select one or more recipients from the list of recipients. The sending end obtains the user identification of the selected receiving end.
It should be noted that the sending end may forward the second video file to the receiving end, and then store the second video file in the designated storage space. The sending end may also store the second video file in the designated storage space first, and then forward the second video file to the receiving end. The sending end can also forward the second video file to the receiving end through two threads at the same time, and store the second video file to the designated storage space. In the embodiment of the present disclosure, the execution order of forwarding the second video file and saving the second video file is not particularly limited.
Since the embodiment of the present invention is applied to social applications, the step of forwarding the second video file to the receiving end by the sending end may be:
and the sending end sends a forwarding request to the social application server, wherein the forwarding request carries the second video file, the user identification of the sending end and the user identification of each receiving end. And the social application server receives the forwarding request sent by the sending terminal and processes the second video file to each selected receiving terminal according to the user identification of each receiving terminal. The sender of the second video file is a user of the sending end, and the receiver of the second video file is a user of the receiving end.
In the embodiment of the disclosure, the sending end splices a plurality of first short video files into a second video file, and processes the second video file to friends or stores the second video file in the sending end, so that the good time of the friends can be stored and edited instantly; and moreover, dialogue shows can be performed by using a method for sending video chatting, so that the chatting experience is enriched, and the chatting is more interesting.
In the embodiment of the disclosure, the sending end can splice a plurality of selected first short video files in the session information into one second video file, so that video creation can be realized in the session information, chat experience is enriched, and the interest of chat is increased.
Fig. 3 is a block diagram illustrating a video file processing apparatus according to an example embodiment. Referring to fig. 3, the apparatus includes: a first determination module 301 and a stitching module 302.
A first determining module 301 configured to determine a selected plurality of first short video files in the dialog information;
the splicing module 302 is configured to splice the plurality of first short video files to obtain a second video file when a splicing instruction for instructing to splice the video files is received.
In a possible implementation manner, the splicing module 302 is further configured to determine a splicing order of each first short video file, and splice each first short video file based on the splicing order of each first short video file to obtain a second video file.
In one possible implementation, the splicing module 302 is further configured to determine a transmission time of each first short video file, and determine a splicing order of each first short video file based on the transmission time of each first short video file; alternatively, the first and second electrodes may be,
the splicing module 302 is further configured to determine a transmission time of each first short video file, display a thumbnail of each first short video file according to the transmission time of each first short video file, adjust a display order of each first short video file according to an order in which the thumbnails of each first short video file are dragged by a user, and determine the adjusted display order of each first short video file as the splicing order of each first short video file.
In one possible implementation, referring to fig. 4, the apparatus further includes:
an obtaining module 303 configured to obtain text information to be inserted;
a second determining module 304 configured to determine an insertion time range of the text message;
an insertion module 305 configured to insert textual information into the second video file based on the insertion time range.
In one possible implementation manner, the obtaining module 303 is further configured to obtain text information input by a user; and/or the presence of a gas in the gas,
the obtaining module 303 is further configured to obtain context information of each selected first short video file, and use the context information of each first short video file as text information to be inserted, where the context information of any first short video file includes a first preset number of chat messages before and/or a second preset number of chat messages after any first short video file in the dialog information; and/or the presence of a gas in the gas,
the obtaining module 303 is further configured to obtain at least one piece of text information selected in the dialog information, and use the at least one piece of text information as text information to be inserted; and/or the presence of a gas in the gas,
the obtaining module 303 is further configured to obtain relevant information of each first short video file, and use the relevant information of each first short video file as text information to be inserted, where the relevant information of any first short video file includes at least one of a sender, a sending time, a group name of a packet corresponding to the session information, or a user name of the user of any video file.
In one possible implementation, the second determining module 304 is further configured to obtain a preset insertion time range; alternatively, the first and second electrodes may be,
a second determination module 304, further configured to display a first option prompt including a first input box and a second input box, the first input box configured to input an insertion start time, the second input box configured to input an insertion end time, obtain the insertion start time input in the first input box and the insertion end time input in the second input box, and combine the insertion start time and the insertion end time into an insertion time range; alternatively, the first and second electrodes may be,
the second determining module 304 is further configured to play a second video file, and in the process of playing the second video file, when a first preset touch operation is detected, obtain a current first playing time of the second video file, when a second preset touch operation is detected, obtain a current second playing time of the second video file, and combine the first playing time and the second playing time into an insertion time range.
In one possible implementation, referring to fig. 5, the apparatus further includes:
and the processing module 306 is configured to receive an instruction for saving and/or forwarding the second video file, and save and/or forward the second video file according to the received instruction for saving and/or forwarding the second video file.
In one possible implementation, referring to fig. 6, the apparatus further includes:
a pop-up module 307 configured to pop up a second option prompt including a multiple-option when the dialog message satisfies a pop-up condition, where the pop-up condition includes that a duration of a chat message in the dialog message being continuously triggered exceeds a first preset duration, or a duration of a blank area of the dialog message being continuously triggered exceeds a second preset duration;
a setting module 308 configured to set the attribute of each first short video file in the dialog information to selectable when the multiple-choice option in the second option prompt is triggered.
In one possible implementation, referring to fig. 7, the apparatus further includes:
a display module 309 configured to display a third option prompt including a forwarding option when the multiple option in the second option prompt is triggered;
the receiving module 310 is configured to, when the splicing option in the third option prompt is triggered, receive a splicing instruction generated when the splicing option is triggered.
In one possible implementation, the apparatus further includes:
and the forwarding module is used for receiving the instruction of forwarding the plurality of first short video files and forwarding the plurality of first short video files one by one according to the received instruction of forwarding the plurality of first short video files.
All the above optional technical solutions may be combined arbitrarily to form the optional embodiments of the present disclosure, and are not described herein again.
In the embodiment of the disclosure, the sending end can splice a plurality of selected first short video files in the session information into one second video file, so that video creation can be realized in the session information, chat experience is enriched, and the interest of chat is increased.
It should be noted that: in the video file processing apparatus provided in the foregoing embodiment, only the division of the functional modules is illustrated in the foregoing, and in practical applications, the above functions may be distributed by different functional modules according to needs, that is, the internal structure of the apparatus is divided into different functional modules to complete all or part of the above described functions. In addition, the video file processing apparatus and the video file processing method provided by the foregoing embodiments belong to the same concept, and specific implementation processes thereof are described in detail in the method embodiments and are not described herein again.
Fig. 8 is a block diagram illustrating a video file processing apparatus 400 according to an example embodiment. For example, the apparatus 400 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 8, the apparatus 400 may include one or more of the following components: processing components 402, memory 404, power components 406, multimedia components 408, audio components 410, input/output (I/O) interfaces 412, sensor components 414, and communication components 416.
The processing component 402 generally controls overall operation of the apparatus 400, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 402 may include one or more processors 420 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 402 can include one or more modules that facilitate interaction between the processing component 402 and other components. For example, the processing component 402 can include a multimedia module to facilitate interaction between the multimedia component 408 and the processing component 402.
The memory 404 is configured to store various types of data to support operations at the apparatus 400. Examples of such data include instructions for any application or method operating on the device 400, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 404 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power supply components 406 provide power to the various components of device 400. The power components 406 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 400.
The multimedia component 408 includes a screen that provides an output interface between the device 400 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 408 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the apparatus 400 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 410 is configured to output and/or input audio signals. For example, audio component 410 includes a Microphone (MIC) configured to receive external audio signals when apparatus 400 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 404 or transmitted via the communication component 416. In some embodiments, audio component 410 also includes a speaker for outputting audio signals.
The I/O interface 412 provides an interface between the processing component 402 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 414 includes one or more sensors for providing various aspects of status assessment for the apparatus 400. For example, the sensor assembly 414 may detect an open/closed state of the apparatus 400, the relative positioning of the components, such as a display and keypad of the apparatus 400, the sensor assembly 414 may also detect a change in the position of the apparatus 400 or a component of the apparatus 400, the presence or absence of user contact with the apparatus 400, orientation or acceleration/deceleration of the apparatus 400, and a change in the temperature of the apparatus 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 414 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 414 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 416 is configured to facilitate wired or wireless communication between the apparatus 400 and other devices. The apparatus 400 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 416 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 400 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described video file processing methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 404 comprising instructions, executable by the processor 420 of the apparatus 400 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (14)

1. A video file processing method is applied to a sending end, and comprises the following steps:
determining a plurality of selected first short video files in the conversation information, wherein the plurality of first short video files comprise short video files sent by users and/or short video files sent by friend users of the conversation information;
when a splicing instruction for indicating splicing of the short video files is received, splicing the plurality of first short video files to obtain a second video file;
acquiring character information to be inserted;
determining the insertion time range of the text information;
inserting the text information into the second video file based on the insertion time range;
receiving an indication of the second video file saving and/or forwarding;
saving and/or forwarding the second video file according to the received instruction for saving and/or forwarding the second video file;
wherein, the acquiring of the text information to be inserted comprises:
acquiring character information input by a user; and/or the presence of a gas in the gas,
obtaining context information of each selected first short video file, taking the context information of each first short video file as the character information to be inserted, wherein the context information of any first short video file comprises a first preset number of chat messages and/or a second preset number of chat messages of any first short video file in the conversation information; and/or the presence of a gas in the gas,
acquiring at least one piece of text information selected in the dialogue information, and taking the at least one piece of text information as the text information to be inserted; and/or the presence of a gas in the gas,
and acquiring the relevant information of each first short video file, and taking the relevant information of each first short video file as the character information to be inserted, wherein the relevant information of any first short video file comprises at least one of a sender, sending time, a group name of a group corresponding to the conversation information or a user name of a user of the first short video file.
2. The method of claim 1, wherein the splicing the plurality of first short video files to obtain a second video file comprises:
determining the splicing sequence of each first short video file;
and splicing each first short video file based on the splicing sequence of each first short video file to obtain a second video file.
3. The method of claim 2, wherein determining the order of splicing each first short video file comprises:
determining the sending time of each first short video file, and determining the splicing sequence of each first short video file based on the sending time of each first short video file; alternatively, the first and second electrodes may be,
determining the sending time of each first short video file, displaying the thumbnail of each first short video file according to the sending time of each first short video file, adjusting the display sequence of each first short video file according to the sequence of dragging the thumbnail of each first short video file by a user, and determining the adjusted display sequence of each first short video file as the splicing sequence of each first short video file.
4. The method of claim 1, wherein the determining the insertion time range of the text message comprises:
acquiring a preset insertion time range; alternatively, the first and second electrodes may be,
displaying a first option prompt including a first input box and a second input box, wherein the first input box is used for inputting an insertion starting time, the second input box is used for inputting an insertion ending time, the insertion starting time input in the first input box and the insertion ending time input in the second input box are obtained, and the insertion starting time and the insertion ending time are combined into the insertion time range; alternatively, the first and second electrodes may be,
and playing the second video file, acquiring a current first playing time of the second video file when a first preset touch operation is detected in the process of playing the second video file, acquiring a current second playing time of the second video file when a second preset touch operation is detected, and forming the first playing time and the second playing time into the insertion time range.
5. The method of claim 1, wherein prior to determining the selected plurality of first short video files in the dialog information, the method further comprises:
when the dialog information meets a pop-up condition, popping up a second option prompt containing a multi-option, wherein the pop-up condition comprises that the duration of continuously triggering one chat message in the dialog information exceeds a first preset duration, or the duration of continuously triggering a blank area of the dialog information exceeds a second preset duration;
and when the multi-selection option in the second option prompt is triggered, setting the attribute of each first short video file in the dialog information as selectable.
6. The method of claim 5, wherein after determining the selected plurality of first short video files in the dialog information, the method further comprises:
when the multiple options in the second option prompt are triggered, displaying a third option prompt containing a splicing option;
when the splicing option in the third option prompt is triggered, receiving the splicing instruction generated when the splicing option is triggered.
7. A video file processing apparatus, wherein the apparatus is applied to a transmitting end, and the apparatus comprises:
the first determining module is used for determining a plurality of selected first short video files in the conversation information, wherein the first short video files comprise short video files sent by users and/or short video files sent by friend users of the conversation information;
the splicing module is used for splicing the plurality of first short video files to obtain a second video file when a splicing instruction for indicating splicing of the short video files is received; acquiring character information to be inserted; determining the insertion time range of the text information; inserting the text information into the second video file based on the insertion time range;
the processing module is used for receiving an instruction for saving and/or forwarding the second video file and saving and/or forwarding the second video file according to the received instruction for saving and/or forwarding the second video file;
the splicing module is also used for acquiring the character information input by the user; and/or the presence of a gas in the gas,
the splicing module is further configured to obtain context information of each selected first short video file, use the context information of each first short video file as the text information to be inserted, where the context information of any first short video file includes a first preset number of preceding chat messages and/or a second preset number of following chat messages of any first short video file in the dialog information; and/or the presence of a gas in the gas,
the splicing module is further configured to acquire at least one piece of text information selected from the dialog information, and use the at least one piece of text information as the text information to be inserted; and/or the presence of a gas in the gas,
the splicing module is further configured to obtain relevant information of each first short video file, and use the relevant information of each first short video file as the text information to be inserted, where the relevant information of any first short video file includes at least one of a sender, a sending time, a group name of a group corresponding to the session information, or a user name of the user of the any first short video file.
8. The apparatus of claim 7,
the splicing module is further configured to determine a splicing sequence of each first short video file, and splice each first short video file based on the splicing sequence of each first short video file to obtain a second video file.
9. The apparatus of claim 8,
the splicing module is further configured to determine the sending time of each first short video file, and determine a splicing sequence of each first short video file based on the sending time of each first short video file; alternatively, the first and second electrodes may be,
the splicing module is further configured to determine the sending time of each first short video file, display a thumbnail of each first short video file according to the sending time of each first short video file, adjust the display order of each first short video file according to the order in which the thumbnails of each first short video file are dragged by a user, and determine the adjusted display order of each first short video file as the splicing order of each first short video file.
10. The apparatus of claim 7,
the second determining module is used for acquiring a preset insertion time range; alternatively, the first and second electrodes may be,
the second determining module is further configured to display a first option prompt including a first input box and a second input box, where the first input box is used to input an insertion start time, the second input box is used to input an insertion end time, the insertion start time input in the first input box and the insertion end time input in the second input box are obtained, and the insertion start time and the insertion end time are combined into the insertion time range; alternatively, the first and second electrodes may be,
the second determining module is further configured to play the second video file, acquire a current first play time of the second video file when a first preset touch operation is detected in a process of playing the second video file, acquire a current second play time of the second video file when a second preset touch operation is detected, and combine the first play time and the second play time into the insertion time range.
11. The apparatus of claim 7, further comprising:
the pop-up module is used for popping up a second option prompt containing multiple options when the conversation information meets a pop-up condition, wherein the pop-up condition comprises that the duration of continuously triggering one chat message in the conversation information exceeds a first preset duration, or the duration of continuously triggering a blank area of the conversation information exceeds a second preset duration;
and the setting module is used for setting the attribute of each first short video file in the dialog information as selectable when a multi-selection option in the second option prompt is triggered.
12. The apparatus of claim 11, further comprising:
the display module is used for displaying a third option prompt containing a splicing option when the multiple options in the second option prompt are triggered;
a receiving module, configured to receive, when the splicing option in the third option prompt is triggered, the splicing instruction generated when the splicing option is triggered.
13. A video file processing apparatus, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
determining a plurality of selected first short video files in the conversation information, wherein the plurality of first short video files comprise short video files sent by users and/or short video files sent by friend users of the conversation information;
when a splicing instruction for indicating splicing of the short video files is received, splicing the plurality of first short video files to obtain a second video file;
acquiring character information to be inserted;
determining the insertion time range of the text information;
inserting the text information into the second video file based on the insertion time range;
receiving an indication of the second video file saving and/or forwarding;
saving and/or forwarding the second video file according to the received instruction for saving and/or forwarding the second video file;
wherein, the acquiring of the text information to be inserted comprises:
acquiring character information input by a user; and/or the presence of a gas in the gas,
obtaining context information of each selected first short video file, taking the context information of each first short video file as the character information to be inserted, wherein the context information of any first short video file comprises a first preset number of chat messages and/or a second preset number of chat messages of any first short video file in the conversation information; and/or the presence of a gas in the gas,
acquiring at least one piece of text information selected in the dialogue information, and taking the at least one piece of text information as the text information to be inserted; and/or the presence of a gas in the gas,
and acquiring the relevant information of each first short video file, and taking the relevant information of each first short video file as the character information to be inserted, wherein the relevant information of any first short video file comprises at least one of a sender, sending time, a group name of a group corresponding to the conversation information or a user name of a user of the first short video file.
14. A computer-readable storage medium having a computer program stored thereon, the program when executed by a processor implementing the steps of:
determining a plurality of selected first short video files in the conversation information, wherein the plurality of first short video files comprise short video files sent by users and/or short video files sent by friend users of the conversation information;
when a splicing instruction for indicating splicing of the short video files is received, splicing the plurality of first short video files to obtain a second video file;
acquiring character information to be inserted;
determining the insertion time range of the text information;
inserting the text information into the second video file based on the insertion time range;
receiving an indication of the second video file saving and/or forwarding;
saving and/or forwarding the second video file according to the received instruction for saving and/or forwarding the second video file;
wherein, the acquiring of the text information to be inserted comprises:
acquiring character information input by a user; and/or the presence of a gas in the gas,
obtaining context information of each selected first short video file, taking the context information of each first short video file as the character information to be inserted, wherein the context information of any first short video file comprises a first preset number of chat messages and/or a second preset number of chat messages of any first short video file in the conversation information; and/or the presence of a gas in the gas,
acquiring at least one piece of text information selected in the dialogue information, and taking the at least one piece of text information as the text information to be inserted; and/or the presence of a gas in the gas,
and acquiring the relevant information of each first short video file, and taking the relevant information of each first short video file as the character information to be inserted, wherein the relevant information of any first short video file comprises at least one of a sender, sending time, a group name of a group corresponding to the conversation information or a user name of a user of the first short video file.
CN201710841908.9A 2017-09-18 2017-09-18 Video file processing method and device and computer readable storage medium Active CN107566892B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710841908.9A CN107566892B (en) 2017-09-18 2017-09-18 Video file processing method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710841908.9A CN107566892B (en) 2017-09-18 2017-09-18 Video file processing method and device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN107566892A CN107566892A (en) 2018-01-09
CN107566892B true CN107566892B (en) 2020-09-08

Family

ID=60981126

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710841908.9A Active CN107566892B (en) 2017-09-18 2017-09-18 Video file processing method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN107566892B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3912136A1 (en) * 2019-01-18 2021-11-24 Snap Inc. Systems and methods for generating personalized videos with customized text messages
CN111193960B (en) * 2019-09-27 2022-12-27 腾讯科技(深圳)有限公司 Video processing method and device, electronic equipment and computer readable storage medium
CN111405375B (en) * 2020-04-14 2022-01-07 出通科技(上海)有限公司 Video online interactive fusion generation and management method and device
CN114422468A (en) * 2020-10-12 2022-04-29 腾讯科技(深圳)有限公司 Message processing method, device, terminal and storage medium
CN112307252A (en) * 2020-10-29 2021-02-02 维沃移动通信有限公司 File processing method and device and electronic equipment
CN112905837A (en) * 2021-04-09 2021-06-04 维沃移动通信(深圳)有限公司 Video file processing method and device and electronic equipment
CN113473224B (en) * 2021-06-29 2023-05-23 北京达佳互联信息技术有限公司 Video processing method, video processing device, electronic equipment and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104244086A (en) * 2014-09-03 2014-12-24 陈飞 Video real-time splicing device and method based on real-time conversation semantic analysis
CN105049317A (en) * 2015-05-21 2015-11-11 腾讯科技(深圳)有限公司 Message forwarding method and apparatus
CN105141496A (en) * 2014-05-29 2015-12-09 腾讯科技(深圳)有限公司 Instant communication message playback method and device
CN106357509A (en) * 2016-08-31 2017-01-25 维沃移动通信有限公司 Method for checking received messages and mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020137507A1 (en) * 2001-03-20 2002-09-26 Techimage, Llp., System and method for providing automatic multimedia messages service

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105141496A (en) * 2014-05-29 2015-12-09 腾讯科技(深圳)有限公司 Instant communication message playback method and device
CN104244086A (en) * 2014-09-03 2014-12-24 陈飞 Video real-time splicing device and method based on real-time conversation semantic analysis
CN105049317A (en) * 2015-05-21 2015-11-11 腾讯科技(深圳)有限公司 Message forwarding method and apparatus
CN106357509A (en) * 2016-08-31 2017-01-25 维沃移动通信有限公司 Method for checking received messages and mobile terminal

Also Published As

Publication number Publication date
CN107566892A (en) 2018-01-09

Similar Documents

Publication Publication Date Title
CN107566892B (en) Video file processing method and device and computer readable storage medium
CN106791893B (en) Video live broadcasting method and device
CN106028166B (en) Live broadcast room switching method and device in live broadcast process
CN107908351B (en) Application interface display method and device and storage medium
CN109521918B (en) Information sharing method and device, electronic equipment and storage medium
CN106126025B (en) Interactive method and device for copying and pasting
CN109951379B (en) Message processing method and device
CN109451341B (en) Video playing method, video playing device, electronic equipment and storage medium
CN107423386B (en) Method and device for generating electronic card
CN109412929B (en) Method and device for adaptively adjusting conditions in instant messaging application and mobile terminal
CN108804179B (en) Method, device, terminal and storage medium for displaying notification bar message
CN108495168B (en) Bullet screen information display method and device
US11176192B2 (en) Method and apparatus for recalling image file, control method and apparatus for recalling image file, and mobile terminal
CN113300938A (en) Message sending method and device and electronic equipment
CN112291631A (en) Information acquisition method, device, terminal and storage medium
CN110704647A (en) Content processing method and device
CN108174269B (en) Visual audio playing method and device
CN104850643B (en) Picture comparison method and device
CN113988021A (en) Content interaction method and device, electronic equipment and storage medium
CN106447747B (en) Image processing method and device
CN109245992B (en) Request processing method and device, electronic equipment and storage medium
CN107948442B (en) Message management method, device and computer readable storage medium
CN109960444B (en) Method, device and equipment for presenting shortcut of application program
EP3866482A1 (en) Method and device for processing information
CN111049732B (en) Push message display method and device, electronic equipment and medium

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