CN106506335A - The method and device of sharing video frequency file - Google Patents

The method and device of sharing video frequency file Download PDF

Info

Publication number
CN106506335A
CN106506335A CN201610990308.4A CN201610990308A CN106506335A CN 106506335 A CN106506335 A CN 106506335A CN 201610990308 A CN201610990308 A CN 201610990308A CN 106506335 A CN106506335 A CN 106506335A
Authority
CN
China
Prior art keywords
file
video file
word message
video
temporal information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610990308.4A
Other languages
Chinese (zh)
Other versions
CN106506335B (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 CN201610990308.4A priority Critical patent/CN106506335B/en
Publication of CN106506335A publication Critical patent/CN106506335A/en
Application granted granted Critical
Publication of CN106506335B publication Critical patent/CN106506335B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/52User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail for supporting social networking services
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/26Speech to text systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/10Multimedia information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/278Subtitling

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computational Linguistics (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Computing Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Present disclose provides a kind of method and device of sharing video frequency file, belongs to Internet technical field.Methods described includes:Obtain the first video file to be shared;According to the voice data that first video file includes, the corresponding subtitle file of the voice data, the Word message that the subtitle file is included temporal information and associated with the temporal information is generated;The subtitle file is inserted in first video file, the second video file is obtained;Second video file is sent to social networking application server, so that the second video file described in the server share.The disclosure not only includes view data and voice data due to second video file, also includes caption information, therefore increased the quantity of information of the second video file.

Description

The method and device of sharing video frequency file
Technical field
A kind of it relates to Internet technical field, more particularly to method and device of sharing video frequency file.
Background technology
With the development of Internet technology, the function of social networking application is more and more;Social networking application not only has chat feature, Also there is the functions such as sharing video frequency fragment;For example, social networking application provides the user an information display platform, and user can be by certainly The video segment that oneself shoots shares the information display platform, and good friend user can watch the piece of video from the information display platform Section.
At present, user terminal is opened photographic head and proceeds by shooting, obtains video segment, sends to social networking application server The video segment;The video segment is published to the information display platform by social networking application server.
Content of the invention
For overcoming problem present in correlation technique, the disclosure to provide a kind of method and device of sharing video frequency file, institute State technical scheme as follows:
According to the first aspect of the embodiment of the present disclosure, there is provided a kind of method of sharing video frequency file, methods described include:
Obtain the first video file to be shared;
According to the voice data that first video file includes, the corresponding subtitle file of the voice data, institute is generated State the Word message that subtitle file is included temporal information and associated with the temporal information;
The subtitle file is inserted in first video file, the second video file is obtained;
Second video file is sent to social networking application server, so that the second video text described in the server share Part.
In the embodiment of the present disclosure, terminal obtains the first video file to be shared, and generates the corresponding captions of the voice data File, and the subtitle file is inserted in first video file, generates the second video file, to social networking application send this second Video file, by the social networking application server share second video file.As second video file not only includes figure As data and voice data, also include caption information, therefore increased the quantity of information of the second video file.
In a kind of possible implementation, methods described also includes:
Obtain the special video effect template that user selects;
For each pixel that the every two field picture in second video file includes, according to the special video effect mould Plate, processes to the first view data of the pixel, obtains the second view data, by described first image data modification For second view data.
In the embodiment of the present disclosure, the special video effect that terminal can be to select according to user carries out spy to the second video file Effect process, meets user's request, improves user's viscosity.
In a kind of possible implementation, the voice data included according to first video file generates institute The corresponding subtitle file of voice data is stated, including:
According to the voice messaging in the voice data, the temporal information of the voice messaging is obtained;
The voice messaging is recognized, the first Word message is obtained, the temporal information and first Word message is associated;
By the temporal information and first Word message, the subtitle file is constituted.
In the embodiment of the present disclosure, terminal can pass through to recognize the voice messaging in voice data, obtain the voice messaging pair The first Word message that answers and temporal information, the subtitle file include temporal information and the first Word message, improve captions File inserts the accuracy of the first video file.
In a kind of possible implementation, the identification voice messaging obtains the first Word message, including:
The voice messaging is recognized, the second Word message is obtained;
Show that text window, the text window include second Word message;
If detecting the operation that user revises the character that second Word message includes, will be described revised Second Word message is defined as first Word message.
In the embodiment of the present disclosure, terminal shows that text window, text window include the second Word message, and user can be at this The second Word message is revised in text window, so as to improve the accuracy of the first Word message.
In a kind of possible implementation, methods described also includes:
When the languages for detecting first Word message are different from predetermined system languages, to first Word message Carry out languages conversion;Or,
When detecting the translation button in current interface and being triggered, languages conversion is carried out to first Word message.
In the embodiment of the present disclosure, terminal can also carry out languages conversion to the first Word message, so as to can in subtitle file To include the Word message of different language, the quantity of information of the second video file is further increased, user's viscosity is improve.
In a kind of possible implementation, described by described for subtitle file insertion the first video file, obtain Second video file, including:
According to the temporal information, the Word message is inserted in first video file, described second is obtained and is regarded Frequency file.
In the embodiment of the present disclosure, according to temporal information, Word message is inserted in the first video file, it is ensured that the time believes Breath and the synchronization of Word message.
According to the second aspect of the embodiment of the present disclosure, there is provided a kind of device of sharing video frequency file, described device include:
First acquisition module, for obtaining the first video file to be shared;
Generation module, for the voice data included according to first video file, generates the voice data corresponding Subtitle file, the Word message that the subtitle file is included temporal information and associated with the temporal information;
Insertion module, for inserting the subtitle file in first video file, obtains the second video file;
Sending module, for sending second video file to social networking application server, so that the server share Second video file.
In a kind of possible implementation, described device also includes:
Second acquisition module, for obtaining the special video effect template of user's selection;
Processing module, for each pixel included for the every two field picture in second video file, according to The special video effect template, processes to the first view data of the pixel, obtains the second view data,
Modified module, for by described first image data modification be second view data.
In a kind of possible implementation, the generation module is used for according to the voice messaging in the voice data, Obtain the temporal information of the voice messaging;The voice messaging is recognized, the first Word message is obtained, the temporal information is associated With first Word message;By the temporal information and first Word message, the subtitle file is constituted.
In a kind of possible implementation, the generation module is used for recognizing the voice messaging, obtains the second word Information;Show that text window, the text window include second Word message;If detecting user revises described second The operation of the character that Word message includes, then be defined as the first word letter by revised second Word message Breath.
In a kind of possible implementation, described device also includes:
Modular converter, for when the languages for detecting first Word message are different from predetermined system languages, to institute Stating the first Word message carries out languages conversion;Or, when detecting the translation button in current interface and being triggered, to described One Word message carries out languages conversion.
In a kind of possible implementation, the insertion module is used for, according to the temporal information, the word being believed In breath insertion first video file, second video file is obtained.
According to the third aspect of the embodiment of the present disclosure, there is provided a kind of device of sharing video frequency file, including:
Processor;
For storing the memorizer of processor executable;
Wherein, the processor is configured to:Obtain the first video file to be shared;According to first video file Including voice data, generate the corresponding subtitle file of the voice data, the subtitle file include temporal information and with institute State the Word message of temporal information association;The subtitle file is inserted in first video file, the second video text is obtained Part;Second video file is sent to social networking application server, so that the second video file described in the server share.
The technical scheme that embodiment of the disclosure is provided can include following beneficial effect:In the embodiment of the present disclosure, terminal Obtain the first video file to be shared, generate the corresponding subtitle file of the voice data, and by the subtitle file insert this In one video file, the second video file is generated, second video file is sent to social networking application, is serviced by the social networking application Second video file shared by device.As second video file not only includes view data and voice data, also include captions Information, therefore increased the quantity of information of the second video file.
It should be appreciated that above general description and detailed description hereinafter are only exemplary and explanatory, not The disclosure can be limited.
Description of the drawings
Accompanying drawing herein is merged in description and constitutes the part of this specification, shows the enforcement for meeting the disclosure Example, and the principle for being used for explaining the disclosure together with description.
Fig. 1 is a kind of method flow diagram of the sharing video frequency file according to an exemplary embodiment;
Fig. 2 is a kind of method flow diagram of the sharing video frequency file according to an exemplary embodiment;
Fig. 3 is a kind of block diagram of the device of the sharing video frequency file according to an exemplary embodiment;
Fig. 4 is a kind of block diagram of the device of the sharing video frequency file according to an exemplary embodiment;
Fig. 5 is a kind of block diagram of the device of the sharing video frequency file according to an exemplary embodiment;
Fig. 6 is a kind of block diagram of the device 400 of the sharing video frequency file according to an exemplary embodiment.
Specific embodiment
Purpose, technical scheme and advantage for making the disclosure is clearer, below in conjunction with accompanying drawing to disclosure embodiment party Formula is described in further detail.
Here in detail exemplary embodiment will be illustrated, its example is illustrated in the accompanying drawings.Explained below is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the disclosure.Conversely, they be only with as appended by The example of consistent apparatus and method in terms of some that described in detail in claims, the disclosure.
In correlation technique, when user to be shared the information display platform of social networking application by the video segment that oneself shoots, eventually After end obtains video segment, directly the video segment is sent to social networking application server;Social networking application server is by the piece of video Section is published to the information display platform.Due to only including view data and voice data in the video segment;So as to cause to share The quantity of information that includes of video segment less.
In the embodiment of the present disclosure, terminal obtains the first video file to be shared, and generates the corresponding captions of the voice data File, and the subtitle file is inserted in first video file, generates the second video file, to social networking application send this second Video file, by the social networking application server share second video file.As second video file not only includes figure As data and voice data, also include caption information, therefore increased the quantity of information of the second video file.
Fig. 1 is a kind of method flow diagram of the sharing video frequency file according to an exemplary embodiment, the sharing video frequency The method of file is applied to terminal, as shown in figure 1, comprising the following steps.
In a step 101, the first video file to be shared is obtained.
In a step 102, the voice data for being included according to first video file, generates the corresponding captions of the voice data File, the Word message that the subtitle file is included temporal information and associated with the temporal information.
In step 103, the subtitle file is inserted in first video file, obtains the second video file.
At step 104, send second video file to social networking application server so that the server share this second Video file.
In a kind of possible implementation of the embodiment of the present disclosure, the method also includes:
Obtain the special video effect template that user selects;
For each pixel that the every two field picture in second video file includes, according to the special video effect template, First view data of the pixel is processed, the second view data is obtained, by first view data be revised as this Two view data.
In a kind of possible implementation of the embodiment of the present disclosure, according to the voice data that first video file includes, raw Into the corresponding subtitle file of the voice data, including:
According to the voice messaging in the voice data, the temporal information of the voice messaging is obtained;
The voice messaging is recognized, the first Word message is obtained, the temporal information and first Word message is associated;
By the temporal information and first Word message, the subtitle file is constituted.
In a kind of possible implementation of the embodiment of the present disclosure, the voice messaging is recognized, obtain the first Word message, wrapped Include:
The voice messaging is recognized, the second Word message is obtained;
Show that text window, text window include second Word message;
If detecting the operation that user revises the character that second Word message includes, by this revised second Word message is defined as first Word message.
In a kind of possible implementation of the embodiment of the present disclosure, the method also includes:
When the languages for detecting first Word message are different from predetermined system languages, first Word message is carried out Languages are changed;Or,
When detecting the translation button in current interface and being triggered, languages conversion is carried out to first Word message.
In a kind of possible implementation of the embodiment of the present disclosure, the subtitle file is inserted in first video file, is obtained To the second video file, including:
According to the temporal information, the Word message is inserted in first video file, obtain second video file.
In the embodiment of the present disclosure, terminal obtains the first video file to be shared, and generates the corresponding captions of the voice data File, and the subtitle file is inserted in first video file, generates the second video file, to social networking application send this second Video file, by the social networking application server share second video file.As second video file not only includes figure As data and voice data, also include caption information, therefore increased the quantity of information of the second video file.
Above-mentioned all optional technical schemes, can be using the alternative embodiment for arbitrarily combining to form the disclosure, and here is no longer Repeat one by one.
Fig. 2 is a kind of method flow diagram of the sharing video frequency file according to an exemplary embodiment, the sharing video frequency The method of file is applied to terminal, as shown in Fig. 2 comprising the following steps.
In step 201, terminal obtains the first video file to be shared.
In this step, the first video file can be shared with good friend user by social networking application by user, it is also possible to logical Cross social networking application and the first video file is shared information display platform.If user passes through social networking application by the first video file Be shared with good friend user, then user with show in the toolbar of the dialog box of good friend user that first shares button and second and share and press Button;If video file is shared information display platform by social networking application by user, show the in information display platform One shares button and second shares button.Wherein, first shares button for triggering terminal display video selection interface, Yong Huke To select the first video file to be shared in the video selection interface;Second shares button shows shooting for triggering terminal Interface, user can shoot the first video file to be shared in the shooting interface.
Accordingly, this step can be:Terminal detects first when sharing button and being triggered, and shows video selection interface, The video selection interface includes the thumbnail of the video file for having been stored in terminal, and user is from the thumbnail of video file for acquisition The video file of selection, using the video file of the selection as the first video file to be shared.Or,
Terminal detects second when sharing button and being triggered, and opens photographic head and proceeds by shooting, current shooting is obtained It is video file as the first video file to be shared.
In a kind of possible implementation of the embodiment of the present disclosure, the video that terminal can also be shared for the good friend user of user File adds subtitle file, then step 201 could alternatively be:
Terminal obtains video file to be played, using the video file as the first video file, the video to be played File is the video file that good friend user shares.
As the first video file only includes voice data and view data, namely the information that the first video file includes Amount is less, and in order to increase the quantity of information that the first video file includes, terminal can be the first video by following steps 202-203 File adds subtitle file.
In step 202., the voice data that terminal includes according to first video file, generates the voice data corresponding Subtitle file, the Word message that the subtitle file is included temporal information and associated with the temporal information.
In this step, terminal can obtain the voice data in first video file, and extract in the voice data Voice messaging;Terminal generates subtitle file according to the voice messaging by following steps 2021-2022.
In step 2021, terminal obtains the temporal information of the voice messaging according to the voice messaging in the voice data; The terminal recognition voice messaging, obtains the first Word message, associates the temporal information and first Word message.
In this step, terminal obtains the step of the temporal information of the voice messaging according to the voice messaging in the voice data Suddenly can be:The voice messaging is cut into multiframe voice messaging according to preset duration by terminal, the every frame in multiframe voice messaging The duration of voice messaging is not more than the preset duration;Terminal is obtained per frame voice messaging in the audio frequency by speech recognition technology Corresponding temporal information in data, will in the voice data, corresponding temporal information constitutes the voice messaging per frame voice messaging Temporal information.
Wherein, preset duration can be arranged as required to and change, and the embodiment of the present disclosure is not done specifically to preset duration Limit.For example, preset duration can be 25 milliseconds, 0.1 millisecond, 1 second etc..
Determine per the corresponding temporal information of frame voice messaging in voice messaging, in this step for the ease of subsequent terminal, The corresponding relation of the temporal information in terminal storage voice messaging per frame voice messaging and per frame voice messaging.
In the embodiment of the present disclosure, the voice messaging can be converted into the voice messaging by speech recognition technology by terminal Corresponding Word message;As the corresponding Word message of the voice messaging there may be error character, therefore, terminal recognition language Message ceases, and can be realized by following steps 2021a-2021c the step of obtain the first Word message.
In step 2021a, the terminal recognition voice messaging obtains the second Word message.
Terminal extracts the phonetic feature sequence in the voice messaging per frame voice messaging, by the voice per frame voice messaging Characteristic sequence is mated with acoustic model, special according to the speech recognition algorithm in acoustic model and the voice per frame voice messaging Sequence is levied, is determined per the corresponding Word message of frame voice messaging, the second text will be constituted by corresponding Word message per frame voice messaging Word information.
Wherein, the second Word message includes multiple characters, and terminal can store corresponding to for every frame voice messaging and character Relation, after being easy to, according to per frame voice messaging, acquisition is per the corresponding character of frame voice messaging for terminal.
In step 2021b, terminal shows that text window, text window include second Word message.
Intuitively check for the ease of user and revise the error character in second Word message, terminal can be current Display interface shows text window, and by second word-information display in text window, user can be in text window The character that the second Word message of middle correction includes.
Check that the second Word message, terminal can also carry out branch's process to the second Word message for the ease of user, will The second word-information display after process is in text window.
Due to terminal storage in voice messaging per frame voice messaging and temporal information corresponding relation, and per frame voice Information and the corresponding relation of character, therefore, the second Word message of terminal-pair carries out the step of branch is processed and can be:
Terminal can be from the corresponding relation of every frame voice messaging and temporal information, when obtaining corresponding per frame voice messaging Between information;Terminal is obtained per the corresponding character of frame voice messaging, and then really from the corresponding relation of every frame voice messaging and character The corresponding temporal information of each character in fixed second Word message, according to the corresponding temporal information of each character, determines the second text The time interval of adjacent character in word information, will be temporally first less than continuous multiple characters of prefixed time interval for time interval Order is arranged in a row afterwards.Wherein, a character can often be included in row Word message, it is also possible to including multiple characters.
After the second Word message of terminal-pair carries out branch's process, the temporal information of often row Word message can also be obtained, Show the temporal information of the Word message in text window.
In this step, quickly check that the error character in the second Word message, terminal can be opened for the ease of user The function of checking spelling with grammer is opened, by checking spelling and the algorithm in grammatical function, in the second Word message of detection whether There is error character;If terminal detects there is error character in the second Word message, terminal identifies in text window Error character in two Word messages.
In a kind of possible implementation that the embodiment of the present disclosure is provided, terminal can show in the text window of social networking application Show confirming button, when user revises the error character in the second Word message or determines that the second Word message does not have erroneous words Fu Shi, user can click on the confirming button and obtain revised second Word message with triggering terminal.It is true that terminal detects this Determine after button is triggered, execution step 2021c.
In step 2021c, if a terminal detects that user revises the operation of the character that second Word message includes, Then revised second Word message is defined as first Word message by terminal.
If terminal is not detected by the operation that user revises the character that second Word message includes, terminal is direct Second Word message is defined as the first Word message.
In step 2022, the temporal information and first Word message are constituted the subtitle file by terminal.
In this step, often time of the row Word message in video data in the subtitle file, is stored in the first Word message Information and the corresponding relation of the row Word message, therefore, the subtitle file includes:First Word message, temporal information and first Every corresponding relation of the row Word message with temporal information in Word message.
The disclosure is implemented in a kind of possible implementation for providing, and terminal can be with the languages of the first Word message of automatic detection Whether identical with predetermined system languages;If the languages of the first Word message are different with predetermined system languages, can to this first Word message carries out languages conversion.Also will the first translating words information be corresponding 3rd Word message of predetermined system languages.
In this step, read for the ease of user, terminal is inserted into the 3rd Word message in the subtitle file.
The disclosure is implemented in a kind of possible implementation for providing, and terminal shows translation button in current display interface, User can carry out languages conversion by clicking on the translation button triggering terminal to the first Word message.When detect the translation by When button is triggered, terminal shows that languages selection interface, the languages selection interface include multiple languages;Obtain the language that user selects Kind, it is corresponding 4th Word message of languages that user selects by the first translating words information.
In this step, read for the ease of user, terminal is inserted into the 4th Word message in the subtitle file.
For example, the languages of the first Word message are Chinese, and the languages that user selects are English, then the first word is turned over by terminal It is translated into the 4th Word message of English languages.
In step 203, terminal inserts the subtitle file in first video file, obtains the second video file.
The Word message that the subtitle file is included temporal information and associated with the temporal information, therefore, this step can be: Terminal is inserted the Word message in first video file, obtains the second video file according to temporal information.
Wherein, terminal obtains every two field picture that the first video file includes;Terminal is obtained often composes a piece of writing in the first Word message Word information, according to the row Word message, from the corresponding relation of every row Word message and temporal information, obtains the row Word message Temporal information, i.e., the row Word message in the first video file corresponding initial time and terminate the time.Further, terminal is obtained Take the target two field picture in the corresponding initial time of row Word message and termination time interval in the first video file;Terminal will The row Word message is inserted in the target two field picture in the first video file, obtains second video file.
In a kind of possible implementation that the embodiment of the present disclosure is provided, user browses the corresponding text of voice data for convenience Word information, terminal the row Word message can be shifted to an earlier date the first Preset Time before the initial time of the row Word message and shown Show, or the row Word message is postponed the disappearance of the second Preset Time after the termination time of the row Word message.Therefore, eventually End is inserted the Word message in first video file according to temporal information, the step of obtain the second video file can be:
Terminal obtains every two field picture that the first video file includes;Terminal obtains every row Word message in the first Word message Corresponding initial time and termination time in the first video file;The initial time is deducted the first Preset Time by terminal, is obtained To the very first time, the termination time is added the second Preset Time, obtained for the second time by terminal;Terminal is obtained in the first video file Every two field picture in the interval of the very first time and the second time;The row Word message is inserted in the first video file by terminal In every two field picture in the interval of one time and the second time, second video file is obtained.
In the embodiment of the present disclosure, in order to lift visual effect when user browses video file, terminal can provide video Special effective function, user can select the special video effect of the video file in sharing video frequency file;Terminal is selected according to user Special video effect, is processed to the view data in the second video file.This step can pass through following steps 204-205 reality Existing.
In step 204, terminal obtains the special video effect template that user selects.
In this step, terminal can show in the current interface of social networking application that special video effect button, terminal detect this When special video effect button is triggered, terminal shows that various video specially good effect template, user can select a kind of video special as needed Effect template, terminal obtain the special video effect template that user selects, execution step 205.
Wherein, special video effect template according to user setup and can be changed, the embodiment of the present disclosure to special video effect template simultaneously It is not especially limited.For example, special video effect template can be clouded glass effect, classic effect, black and white effect etc..
In step 205, for each pixel that the every two field picture in second video file includes, terminal according to The special video effect template, processes to the first view data of the pixel, obtains the second view data, by first image Data modification is second view data.
The corresponding algorithm of every kind of special video effect template in terminal storage various video specially good effect template, in this step, eventually End is processed to the first view data of the pixel according to the special video effect template, the step of obtain the second view data Can be:
Terminal obtains the corresponding algorithm of special video effect template that user selects, according to the special video effect template pair that user selects The algorithm that answers, is processed to the first view data, obtains the second view data.
For example, special video effect template is illustrated by taking clouded glass effect as an example, and the corresponding algorithm of clouded glass effect can be Gaussian Blur algorithm.For each pixel in every two field picture, terminal extracts the first view data of the pixel, to this First view data carries out Gaussian Blur process, i.e., by Gaussian function, determine the weight matrix of the pixel, according to the pixel First view data of point and weight matrix, determine the second view data of the pixel;In the second video file, terminal will First view data of each pixel per two field picture is revised as the second view data.
In step 206, terminal sends second video file to social networking application server, so that the server share should Second video file.
In the embodiment of the present disclosure, the first video file can be shared with good friend user by social networking application by user, namely First video file can also be shared information display platform by social networking application by the first implementation below, user, I.e. following second implementation.
For the first implementation, this step can be:Terminal sends the second video text to social networking application server Part, the ID of good friend user;Second video file and good friend user that social networking application server receiving terminal sends Second video file, according to the ID of the good friend user, is sent to the corresponding terminal of good friend user by ID.
Certainly, terminal can also be shared second video file in group, if second video file is shared To in group, then this step can be:Terminal sends the second video file, the group identification to social networking application server;Social Second video file and group identification that application server receiving terminal sends, according to the group identification, by second video File is sent to the corresponding terminal of the user that include in the group.
For second implementation, this step can be:Terminal sends the user of the user to social networking application server Mark and second video file;The ID of the user that social networking application server receiving terminal sends and second video File, according to the ID of the user, second video file is shared in the information display platform of the user.
Wherein, ID can be user account that user is registered in social networking application server in advance etc..
In the embodiment of the present disclosure, before terminal sends second video file to social networking application server, terminal can be The current interface of social networking application provides preview button, and when terminal detects user's triggering preview button, this second is regarded by terminal Frequency file shows on a terminal screen, for user's preview.
In a kind of possible implementation that the embodiment of the present disclosure is provided, the second video file of terminal storage, in order to follow-up Share or watch second video file.
In the embodiment of the present disclosure, terminal obtains the first video file to be shared, and generates the corresponding captions of the voice data File, and the subtitle file is inserted in first video file, generates the second video file, to social networking application send this second Video file, by the social networking application server share second video file.As second video file not only includes figure As data and voice data, also include caption information, therefore increased the quantity of information of the second video file.
Fig. 3 is a kind of block diagram of the device of the sharing video frequency file according to an exemplary embodiment.With reference to Fig. 3, should Device includes the first acquisition module 301, generation module 302, insertion module 303 and sending module 304.
First acquisition module 301 is configured to obtain the first video file to be shared;
Generation module 302 is configured to the voice data included according to first video file, generates the voice data pair The subtitle file that answers, the Word message that the subtitle file is included temporal information and associated with the temporal information;
Insertion module 303 is configured to insert the subtitle file in first video file, obtains the second video file;
Sending module 304 is configured to send second video file to social networking application server, so that the server point Enjoy second video file.
In a kind of possible implementation, as shown in figure 4, the device also includes:
Second acquisition module 305, is configured to obtain the special video effect template that user selects;
Processing module 306, is configured to each pixel included for the every two field picture in second video file, According to the special video effect template, the first view data of the pixel is processed, the second view data is obtained;
Modified module 307, is configured to for first view data to be revised as second view data.
In a kind of possible implementation, the generation module 302 is configured to be believed according to the voice in the voice data Breath, obtains the temporal information of the voice messaging;Recognize the voice messaging, obtain the first Word message, associate the temporal information and First Word message;By the temporal information and first Word message, the subtitle file is constituted.
In a kind of possible implementation, the generation module 302 is configured to recognize the voice messaging, obtains the second text Word information;Show that text window, text window include second Word message;If detecting user revises second word The operation of the character that information includes, then be defined as first Word message by revised second Word message.
In a kind of possible implementation, as shown in figure 5, the device also includes:
Modular converter 308, be configured as detecting first Word message languages different from predetermined system languages when, Languages conversion is carried out to first Word message;Or, when detecting the translation button in current interface and being triggered, to this One Word message carries out languages conversion.
In a kind of possible implementation, the insertion module 303 is configured to according to the temporal information, by the word letter Breath is inserted in first video file, obtains second video file.
In the embodiment of the present disclosure, terminal obtains the first video file to be shared, and generates the corresponding captions of the voice data File, and the subtitle file is inserted in first video file, generates the second video file, to social networking application send this second Video file, by the social networking application server share second video file.As second video file not only includes figure As data and voice data, also include caption information, therefore increased the quantity of information of the second video file.
Above-mentioned all optional technical schemes, can be using the alternative embodiment for arbitrarily combining to form the disclosure, and here is no longer Repeat one by one.
It should be noted that:Above-described embodiment provide sharing video frequency file device in sharing video frequency file, only with The division of above-mentioned each functional module is illustrated, and in practical application, can distribute above-mentioned functions by not as desired With functional module complete, will the internal structure of device be divided into different functional modules, with complete described above all Or partial function.In addition, the device of the sharing video frequency file of above-described embodiment offer is that method is implemented with sharing video frequency file Example belongs to same design, and which implements process and refers to embodiment of the method, repeats no more here.
Fig. 6 is a kind of block diagram of the device 400 of the sharing video frequency file according to an exemplary embodiment.For example, fill It can be mobile phone to put 400, and computer, digital broadcast terminal, messaging devices, game console, tablet device are medical Equipment, body-building equipment, personal digital assistant etc..
With reference to Fig. 6, device 400 can include following one or more assemblies:Process assembly 402, memorizer 404, power supply Component 406, multimedia groupware 408, audio-frequency assembly 410, input/output (I/O) interface 412, sensor cluster 414, Yi Jitong Letter component 416.
The integrated operation of 402 usual control device 400 of process assembly, such as with display, call, data communication, phase The associated operation of machine operation and record operation.Process assembly 402 can refer to execute including one or more processors 420 Order, to complete all or part of step of above-mentioned method.Additionally, process assembly 402 can include one or more modules, just Interaction between process assembly 402 and other assemblies.For example, process assembly 402 can include multi-media module, many to facilitate Interaction between media component 408 and process assembly 402.
Memorizer 404 is configured to store various types of data to support the operation in device 400.These data are shown Example includes the instruction of any application program for operating on device 400 or method, and contact data, telephone book data disappear Breath, picture, video etc..Memorizer 404 can be by any kind of volatibility or non-volatile memory device or their group Close and realize, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM) erasable are compiled Journey read only memory (EPROM), programmable read only memory (PROM), read only memory (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 406 provides electric power for the various assemblies of device 400.Power supply module 406 can include power management system System, one or more power supplys, and other generate, manage and distribute the component that electric power is associated with for device 400.
Multimedia groupware 408 is included in the screen of one output interface of offer between described device 400 and user.One In a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch screen, to receive the input signal from user.Touch panel includes one or more touch sensings Device is with the gesture on sensing touch, slip and touch panel.The touch sensor can not only sensing touch or sliding action Border, but also detect and the touch or slide related persistent period and pressure.In certain embodiments, many matchmakers Body component 408 includes a front-facing camera and/or post-positioned pick-up head.When device 400 be in operator scheme, such as screening-mode or During video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and Post-positioned pick-up head can be a fixed optical lens system or there is focusing and optical zoom capabilities.
Audio-frequency assembly 410 is configured to output and/or input audio signal.For example, audio-frequency assembly 410 includes a Mike Wind (MIC), when device 400 is in operator scheme, such as call model, logging mode and speech recognition mode, mike is matched somebody with somebody It is set to reception external audio signal.The audio signal for being received can be further stored in memorizer 404 or via communication set Part 416 sends.In certain embodiments, audio-frequency assembly 410 also includes a speaker, for exports audio signal.
I/O interfaces 412 are to provide interface between process assembly 402 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock Determine button.
Sensor cluster 414 includes one or more sensors, comments for providing the state of various aspects for device 400 Estimate.For example, sensor cluster 414 can detect the opening/closed mode of device 400, and the relative localization of component is for example described Display and keypad of the component for device 400, sensor cluster 414 can be with 400 1 components of detection means 400 or device Position change, user is presence or absence of with what device 400 was contacted, 400 orientation of device or acceleration/deceleration and device 400 Temperature change.Sensor cluster 414 can include proximity transducer, be configured to detect when without any physical contact The presence of object nearby.Sensor cluster 414 can also include optical sensor, such as CMOS or ccd image sensor, for into Used in as application.In certain embodiments, the sensor cluster 414 can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure transducer or temperature sensor.
Communication component 416 is configured to facilitate the communication of wired or wireless way between device 400 and other equipment.Device 400 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.In an exemplary enforcement In example, communication component 416 receives the broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 416 also includes near-field communication (NFC) module, to promote junction service.Example Such as, NFC module can be based on RF identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, Bluetooth (BT) technology and other technologies are realizing.
In the exemplary embodiment, device 400 can be by one or more application specific integrated circuits (ASIC), numeral letter Number processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing above-mentioned sharing video frequency file Method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided Such as include that the memorizer 404 for instructing, above-mentioned instruction can be executed by the processor 420 of device 400 to complete said method.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..When the instruction in the storage medium is by the computing device of terminal so that terminal can be held The method of the above-mentioned sharing video frequency file of row.
Those skilled in the art will readily occur to its of the disclosure after considering description and putting into practice invention disclosed herein Its embodiment.The application is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes or Person's adaptations follow the general principle of the disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.Description and embodiments be considered only as exemplary, the true scope of the disclosure and spirit by following Claim is pointed out.
It should be appreciated that the disclosure is not limited to the precision architecture for being described above and being shown in the drawings, and And various modifications and changes can carried out without departing from the scope.The scope of the present disclosure is only limited by appended claim.

Claims (13)

1. a kind of method of sharing video frequency file, it is characterised in that methods described includes:
Obtain the first video file to be shared;
According to the voice data that first video file includes, the corresponding subtitle file of the voice data, the word is generated The Word message that curtain file is included temporal information and associated with the temporal information;
The subtitle file is inserted in first video file, the second video file is obtained;
Second video file is sent to social networking application server, so that the second video file described in the server share.
2. method according to claim 1, it is characterised in that methods described also includes:
Obtain the special video effect template that user selects;
For each pixel that the every two field picture in second video file includes, according to the special video effect template, First view data of the pixel is processed, the second view data is obtained, by described first image data modification is Second view data.
3. method according to claim 1, it is characterised in that the audio frequency number included according to first video file According to, the corresponding subtitle file of the voice data is generated, including:
According to the voice messaging in the voice data, the temporal information of the voice messaging is obtained;
The voice messaging is recognized, the first Word message is obtained, the temporal information and first Word message is associated;
By the temporal information and first Word message, the subtitle file is constituted.
4. method according to claim 3, it is characterised in that the identification voice messaging, obtains the first word letter Breath, including:
The voice messaging is recognized, the second Word message is obtained;
Show that text window, the text window include second Word message;
If detecting the operation that user revises the character that second Word message includes, by described revised second Word message is defined as first Word message.
5. method according to claim 3, it is characterised in that methods described also includes:
When the languages for detecting first Word message are different from predetermined system languages, first Word message is carried out Languages are changed;Or,
When detecting the translation button in current interface and being triggered, languages conversion is carried out to first Word message.
6. method according to claim 1, it is characterised in that described the subtitle file is inserted the first video text In part, the second video file is obtained, including:
According to the temporal information, the Word message is inserted in first video file, obtain the second video text Part.
7. a kind of device of sharing video frequency file, it is characterised in that described device includes:
First acquisition module, for obtaining the first video file to be shared;
Generation module, for the voice data included according to first video file, generates the corresponding word of the voice data Curtain file, the Word message that the subtitle file is included temporal information and associated with the temporal information;
Insertion module, for inserting the subtitle file in first video file, obtains the second video file;
Sending module, for sending second video file to social networking application server, so that described in the server share Second video file.
8. device according to claim 7, it is characterised in that described device also includes:
Second acquisition module, for obtaining the special video effect template of user's selection;
Processing module, for each pixel included for the every two field picture in second video file, according to described Special video effect template, processes to the first view data of the pixel, obtains the second view data,
Modified module, for by described first image data modification be second view data.
9. device according to claim 7, it is characterised in that the generation module is used for according in the voice data Voice messaging, obtains the temporal information of the voice messaging;The voice messaging is recognized, the first Word message is obtained, institute is associated State temporal information and first Word message;By the temporal information and first Word message, the captions text is constituted Part.
10. device according to claim 9, it is characterised in that the generation module is used for recognizing the voice messaging, obtains To the second Word message;Show that text window, the text window include second Word message;If detecting user to repair The operation of the character that just described second Word message includes, then be defined as described by revised second Word message One Word message.
11. devices according to claim 9, it is characterised in that described device also includes:
Modular converter, for when the languages for detecting first Word message are different from predetermined system languages, to described One Word message carries out languages conversion;Or, when detecting the translation button in current interface and being triggered, to the described first text Word information carries out languages conversion.
12. devices according to claim 7, it is characterised in that the insertion module is used for according to the temporal information, will The Word message is inserted in first video file, obtains second video file.
13. a kind of devices of sharing video frequency file, it is characterised in that include:
Processor;
For storing the memorizer of processor executable;
Wherein, the processor is configured to:Obtain the first video file to be shared;Included according to first video file Voice data, generate the corresponding subtitle file of the voice data, the subtitle file include temporal information and with described when Between information association Word message;The subtitle file is inserted in first video file, the second video file is obtained;To Social networking application server sends second video file, so that the second video file described in the server share.
CN201610990308.4A 2016-11-10 2016-11-10 The method and device of sharing video frequency file Active CN106506335B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610990308.4A CN106506335B (en) 2016-11-10 2016-11-10 The method and device of sharing video frequency file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610990308.4A CN106506335B (en) 2016-11-10 2016-11-10 The method and device of sharing video frequency file

Publications (2)

Publication Number Publication Date
CN106506335A true CN106506335A (en) 2017-03-15
CN106506335B CN106506335B (en) 2019-08-30

Family

ID=58323904

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610990308.4A Active CN106506335B (en) 2016-11-10 2016-11-10 The method and device of sharing video frequency file

Country Status (1)

Country Link
CN (1) CN106506335B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106851401A (en) * 2017-03-20 2017-06-13 惠州Tcl移动通信有限公司 A kind of method and system of automatic addition captions
CN108063722A (en) * 2017-12-20 2018-05-22 北京时代脉搏信息技术有限公司 Video data generating method, computer readable storage medium and electronic equipment
CN108289244A (en) * 2017-12-28 2018-07-17 努比亚技术有限公司 Video caption processing method, mobile terminal and computer readable storage medium
WO2018192242A1 (en) * 2017-04-19 2018-10-25 腾讯科技(深圳)有限公司 Video playback method and device, and storage medium
CN108924583A (en) * 2018-07-19 2018-11-30 腾讯科技(深圳)有限公司 Video file generation method and its equipment, system, storage medium
CN108962220A (en) * 2018-07-26 2018-12-07 北京小米移动软件有限公司 Multimedia file plays the text display method and device under scene
CN109257659A (en) * 2018-11-16 2019-01-22 北京微播视界科技有限公司 Subtitle adding method, device, electronic equipment and computer readable storage medium
CN110708589A (en) * 2017-11-30 2020-01-17 腾讯科技(深圳)有限公司 Information sharing method and device, storage medium and electronic device
CN111355978A (en) * 2018-12-21 2020-06-30 北京字节跳动网络技术有限公司 Video file processing method and device, mobile terminal and storage medium
CN111355960A (en) * 2018-12-21 2020-06-30 北京字节跳动网络技术有限公司 Method and device for synthesizing video file, mobile terminal and storage medium
CN113207032A (en) * 2021-04-29 2021-08-03 读书郎教育科技有限公司 System and method for increasing subtitles by recording videos in intelligent classroom

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103402100A (en) * 2013-08-23 2013-11-20 北京奇艺世纪科技有限公司 Video processing method and mobile terminal
CN105845129A (en) * 2016-03-25 2016-08-10 乐视控股(北京)有限公司 Method and system for dividing sentences in audio and automatic caption generation method and system for video files
CN105898169A (en) * 2015-08-19 2016-08-24 乐视网信息技术(北京)股份有限公司 Video processing method and device
CN106101767A (en) * 2016-07-28 2016-11-09 维沃移动通信有限公司 A kind of screen recording method and mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103402100A (en) * 2013-08-23 2013-11-20 北京奇艺世纪科技有限公司 Video processing method and mobile terminal
CN105898169A (en) * 2015-08-19 2016-08-24 乐视网信息技术(北京)股份有限公司 Video processing method and device
CN105845129A (en) * 2016-03-25 2016-08-10 乐视控股(北京)有限公司 Method and system for dividing sentences in audio and automatic caption generation method and system for video files
CN106101767A (en) * 2016-07-28 2016-11-09 维沃移动通信有限公司 A kind of screen recording method and mobile terminal

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106851401A (en) * 2017-03-20 2017-06-13 惠州Tcl移动通信有限公司 A kind of method and system of automatic addition captions
US10893333B2 (en) 2017-04-19 2021-01-12 Tencent Technology (Shenzhen) Company Limited Video playing method, device and storage
WO2018192242A1 (en) * 2017-04-19 2018-10-25 腾讯科技(深圳)有限公司 Video playback method and device, and storage medium
CN110708589A (en) * 2017-11-30 2020-01-17 腾讯科技(深圳)有限公司 Information sharing method and device, storage medium and electronic device
CN108063722A (en) * 2017-12-20 2018-05-22 北京时代脉搏信息技术有限公司 Video data generating method, computer readable storage medium and electronic equipment
CN108289244A (en) * 2017-12-28 2018-07-17 努比亚技术有限公司 Video caption processing method, mobile terminal and computer readable storage medium
CN108924583A (en) * 2018-07-19 2018-11-30 腾讯科技(深圳)有限公司 Video file generation method and its equipment, system, storage medium
CN108924583B (en) * 2018-07-19 2021-12-17 腾讯科技(深圳)有限公司 Video file generation method, device, system and storage medium thereof
CN108962220A (en) * 2018-07-26 2018-12-07 北京小米移动软件有限公司 Multimedia file plays the text display method and device under scene
CN108962220B (en) * 2018-07-26 2021-03-09 北京小米移动软件有限公司 Text display method and device in multimedia file playing scene
CN109257659A (en) * 2018-11-16 2019-01-22 北京微播视界科技有限公司 Subtitle adding method, device, electronic equipment and computer readable storage medium
CN111355960A (en) * 2018-12-21 2020-06-30 北京字节跳动网络技术有限公司 Method and device for synthesizing video file, mobile terminal and storage medium
CN111355960B (en) * 2018-12-21 2021-05-04 北京字节跳动网络技术有限公司 Method and device for synthesizing video file, mobile terminal and storage medium
CN111355978A (en) * 2018-12-21 2020-06-30 北京字节跳动网络技术有限公司 Video file processing method and device, mobile terminal and storage medium
CN113207032A (en) * 2021-04-29 2021-08-03 读书郎教育科技有限公司 System and method for increasing subtitles by recording videos in intelligent classroom

Also Published As

Publication number Publication date
CN106506335B (en) 2019-08-30

Similar Documents

Publication Publication Date Title
CN106506335A (en) The method and device of sharing video frequency file
CN107025419B (en) Fingerprint template inputting method and device
CN107767864B (en) Method and device for sharing information based on voice and mobile terminal
CN112752047A (en) Video recording method, device, equipment and readable storage medium
CN104731688B (en) Point out the method and device of reading progress
CN108962220B (en) Text display method and device in multimedia file playing scene
CN105389296A (en) Information partitioning method and apparatus
CN104391711B (en) A kind of method and device that screen protection is set
CN111382748B (en) Image translation method, device and storage medium
CN112069952A (en) Video clip extraction method, video clip extraction device, and storage medium
CN106547850B (en) Expression annotation method and device
CN105279499A (en) Age recognition method and device
CN105511777B (en) Session display method and device on touch display screen
CN106603381B (en) Method and device for processing chat information
CN109766473B (en) Information interaction method and device, electronic equipment and storage medium
CN105095366A (en) Method and device for processing character messages
CN110730360A (en) Video uploading and playing methods and devices, client equipment and storage medium
CN112200040A (en) Occlusion image detection method, device and medium
CN106331328B (en) Information prompting method and device
CN109145878B (en) Image extraction method and device
CN106375178A (en) Message display method and device based on instant messaging
CN113936697B (en) Voice processing method and device for voice processing
CN113343675A (en) Subtitle generating method and device for generating subtitles
CN105487799A (en) Content conversion method and device
CN108600625A (en) Image acquiring method and device

Legal Events

Date Code Title Description
C06 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