CN106610982A - Media file generation method and apparatus - Google Patents

Media file generation method and apparatus Download PDF

Info

Publication number
CN106610982A
CN106610982A CN201510691023.6A CN201510691023A CN106610982A CN 106610982 A CN106610982 A CN 106610982A CN 201510691023 A CN201510691023 A CN 201510691023A CN 106610982 A CN106610982 A CN 106610982A
Authority
CN
China
Prior art keywords
media file
audio
preset audio
file
described image
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.)
Pending
Application number
CN201510691023.6A
Other languages
Chinese (zh)
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201510691023.6A priority Critical patent/CN106610982A/en
Priority to PCT/CN2016/073957 priority patent/WO2016184193A1/en
Publication of CN106610982A publication Critical patent/CN106610982A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/40Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
    • G06F16/43Querying
    • G06F16/432Query formulation
    • G06F16/433Query formulation using audio data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/40Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
    • G06F16/43Querying
    • G06F16/432Query formulation
    • G06F16/434Query formulation using image data, e.g. images, photos, pictures taken by a user
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/40Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
    • G06F16/44Browsing; Visualisation therefor
    • G06F16/447Temporal browsing, e.g. timeline

Abstract

The invention provides a media file generation method and apparatus. The method comprises the steps of obtaining a preset audio in a shooting mode; shooting an image on a time point of a time axis of the preset audio; establishing a mapping relationship between the shot image and the time point on the time axis of the preset audio; and generating a media file carrying an image and a preset identifier, wherein the preset identifier is used for indicating that the image and the preset audio have a mapping relationship. Through the media file generation method and apparatus, the problem of poor user experience caused by isolation of shooting and audio file addition in time in related technologies is solved; the synchronization of shooting and audio file addition in time is realized; and the user experience is improved.

Description

Media file generation method and device
Technical field
The present invention relates to the communications field, in particular to a kind of media file generation method and device.
Background technology
In current technique for taking, image file is can be only generated when taking pictures, it is impossible to image file is added during taking pictures Plus audio recording, and the letter such as word, audio frequency can only be added to photo by the software for editing in later stage after taking pictures and completing Breath.This photo generating process and audio-frequency information adding procedure situation mutually isolated in time, causes user in the later stage When adding audio-frequency information for photo, already without the sensation and excitement during shooting photo so that the process taken pictures lacks It is interesting.
Problem for audio file caused poor user experience mutually isolated in time is taken pictures and added in correlation technique, Not yet propose effective solution at present.
The content of the invention
The invention provides a kind of media file generation method and device, at least to solve sound of taking pictures in correlation technique and add The problem of poor user experience caused by frequency file is mutually isolated in time.
According to an aspect of the invention, there is provided a kind of media file generation method, including:Under screening-mode, obtain Take preset audio;Time point photographs images on the time shaft of the preset audio;Set up shoot described image with The mapping relations of the time point on the time shaft of the preset audio;Generation carries described image and pre- bidding The media file of knowledge, wherein, the default mark is closed for indicating that described image and the preset audio have the mapping System.
Alternatively, obtaining the preset audio includes:According to the store path of user input, read the store path and refer to The audio file for showing;Audio file described in editing, obtains the preset audio.
Alternatively, shooting described image includes:Receive the instruction for indicating the generation media file;According to for referring to Show the instruction for generating the media file, described in the time point photographs on the time shaft of the preset audio Image.
Alternatively, generation carries described image and the media file of the default mark includes:Receive edit instruction, Wherein, the edit instruction be used for adjust described image with the time shaft of the preset audio time point it is right Should be related to, and update the mapping relations;Generation carries the media file of described image and the default mark, Wherein, it is described default to identify for indicating that described image and the preset audio deposit the mapping relations in the updated.
Alternatively, generation carries described image and the media file of the default mark also includes:Generate the matchmaker Body file, wherein, the media file is to carry described image, the preset audio, mapping relations and described One media file of default mark.
Alternatively, after the media file for carrying described image and the default mark is generated, methods described is also Including:File is read, and judges whether the file is the media file for carrying the default mark;Judging In the case of being the media file for carrying the default mark to the file, the broadcasting preset audio, and During the time point being played on the time shaft of the preset audio, according to the mapping relations corresponding figure is shown Picture.
Alternatively, described image includes 3-D view.
According to another aspect of the present invention, a kind of media file generating means are additionally provided, including:Acquisition module, uses In under screening-mode, preset audio is obtained;Taking module, for the time point on the time shaft of the preset audio Photographs images;Module is set up, for setting up the institute on the time shaft of the described image for shooting with the preset audio State the mapping relations of time point;Generation module, for generating the media file for carrying described image and default mark, its In, it is described default to identify for indicating that described image has the mapping relations with the preset audio.
Alternatively, the acquisition module includes:Reading unit, it is described for according to the store path of user input, reading The audio file that store path is indicated;Editing unit, for audio file described in editing, obtains the preset audio.
Alternatively, the taking module includes:First receiving unit, for receiving for indicating to generate the media file Instruction;Shooting unit, for according to the instruction that the media file is generated for instruction, in the institute of the preset audio State the time point photographs described image on time shaft.
Alternatively, the generation module includes:Second receiving unit, for receiving edit instruction, wherein, the editor Instruct for adjusting the corresponding relation of the time point on the time shaft of the described image with the preset audio, and update The mapping relations;Signal generating unit, for generating the media file for carrying described image and the default mark, Wherein, it is described default to identify for indicating that described image and the preset audio deposit the mapping relations in the updated.
Alternatively, the generation module is additionally operable to;The media file is generated, wherein, the media file is to carry One media file of described image, the preset audio, the mapping relations and the default mark.
Alternatively, described device also includes:First processing module, for reading file, and judges that whether the file is Carry the media file of the default mark;Second processing module, for determining the file to carry In the case of the media file of the default mark, the preset audio is played, and be played to the preset audio The time shaft on the time point when, show corresponding image according to the mapping relations.
By the present invention, using under screening-mode, preset audio is obtained;Time point on the time shaft of preset audio Photographs images;The mapping relations of the time point set up on the time shaft of the image and preset audio for shooting;Generation is carried The media file of image and default mark, wherein, there are mapping relations for indicating image and preset audio in default mark Mode, solves and asking for audio file caused poor user experience mutually isolated in time is taken pictures and added in correlation technique Topic, realizes and takes pictures and add audio file synchronization in time, improves Consumer's Experience.
Description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the part of the application, the present invention Schematic description and description be used for explain the present invention, do not constitute inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of media file generation method according to embodiments of the present invention;
Fig. 2 is the structured flowchart of media file generating means according to embodiments of the present invention;
Fig. 3 is the alternative construction block diagram one of media file generating means according to embodiments of the present invention;
Fig. 4 is the alternative construction block diagram two of media file generating means according to embodiments of the present invention;
Fig. 5 is the alternative construction block diagram three of media file generating means according to embodiments of the present invention;
Fig. 6 is the alternative construction block diagram four of media file generating means according to embodiments of the present invention;
Fig. 7 is the structured flowchart of the media file generating means according to alternative embodiment of the present invention;
Fig. 8 is the schematic diagram of the 3D photographic methods according to alternative embodiment of the present invention;
Fig. 9 is the schematic diagram one of the media file generation method according to alternative embodiment of the present invention;
Figure 10 is the schematic diagram two of the media file generation method according to alternative embodiment of the present invention;
Figure 11 is the schematic diagram of the 3D photo browsing methods according to alternative embodiment of the present invention.
Specific embodiment
Below with reference to accompanying drawing and in conjunction with the embodiments describing the present invention in detail.It should be noted that in the feelings not conflicted Under condition, the feature in embodiment and embodiment in the application can be mutually combined.
It should be noted that description and claims of this specification and term " first ", " second " in above-mentioned accompanying drawing Etc. being object for distinguishing similar, without for describing specific order or precedence.
A kind of media file generation method is provided in the present embodiment, and Fig. 1 is media file according to embodiments of the present invention The flow chart of generation method, as shown in figure 1, the flow process comprises the steps:
Step S102, under screening-mode, obtains preset audio;
Step S104, the time point photographs images on the time shaft of preset audio;
Step S106, the mapping relations of the time point set up on the time shaft of the image and preset audio for shooting;
Step S108, generation carries the media file of image and default mark, wherein, mark is preset for indicating figure As there are mapping relations with preset audio.
By above-mentioned steps, under exposal model, the preset audio of user's selection is got, playing the same of preset audio When shooting image, obtain corresponding relation of the image in audio frequency for shooting, the time point set up on preset audio time shaft with The mapping relations of image, regeneration carries image and the mark for indicating to there are mapping relations between image and preset audio Media file.It can be seen that, using above-mentioned steps, solve and take pictures in correlation technique and add audio file phase in time Mutually the problem of the caused poor user experience of isolation, realizes and takes pictures and add audio file synchronization in time, improves Consumer's Experience.
It should be noted that in embodiments of the invention and alternative embodiment, media file is referred to and stores media format File, can store a kind of file of media format, for example, image file, audio file, or deposit The file of media form has been stored up, for example, video file, multimedia file (file that image, audio frequency are stored simultaneously).
Alternatively, said method can apply to user equipment, for example, mobile phone, panel computer, camera apparatus, and Equipment of image taking etc. can be carried out.
Alternatively, in above-mentioned steps S102, preset audio can pass through the audio file that editor imports and obtain, can be with According to the store path of user input, the audio file under store path is read, then editing is carried out to audio file, obtained Preset audio, for example, under screening-mode, points out user to select the store path of audio file, is selected according to user The store path selected obtains audio file, then provides the user the editing options to audio file, such as, it is right to pass through The beginning label of audio frequency and the movement of end mark are intercepted to audio file, and after intercepting, or user Audition is provided and is edited again, editing is carried out to audio file according to the editor of user, obtain preset audio.It can be seen that, By above-mentioned steps, it is possible to use family enters edlin to audio file to obtain preset audio according to hobby, improves user Experience Degree, while solving take pictures in correlation technique and add audio file caused Consumer's Experience mutually isolated in time Poor problem, realizes and takes pictures and add audio file synchronization in time, improves Consumer's Experience.
Alternatively, in above-mentioned steps S104, the control for indicating generation media file can be shown under exposal model Part, receives user by the instruction that triggers that above-mentioned control sends for indicating to generate media file, and according to for referring to Show the instruction for generating media file, the time point photographs images on the time shaft of preset audio.It can be seen that, by above-mentioned Step can provide the user the selection for whether generating media file, in the case where user selects to generate media file, Time point photographs images on the time shaft of preset audio, otherwise, are directly shot, and improve the Experience Degree of user.
Alternatively, in above-mentioned steps S108, user can be to the image of the shooting of foundation and the time shaft of preset audio On the mapping relations of time point enter edlin, receiving for adjusting time point on time shaft of the image with preset audio Corresponding relation, and update after the edit instruction of mapping relations, generation carries image and for indicating image with default sound Frequency deposits the media file of the default mark of mapping relations in the updated, for example, provides the user and mapping relations are compiled The control collected, such as, user can drag the image of shooting to other times point on the time shaft of preset audio, receive To after the edit instruction of user operation, by according to the image for shooting with the time shaft of preset audio time point it is new corresponding Relation updates mapping relations, and generation carries the image of shooting and for indicating to be deposited in the updated between image and audio frequency The media file of the default mark of mapping relations.It can be seen that, by above-mentioned steps, user can be to the mapping of image and audio frequency Relation enters edlin, and according on specific time point of the hobby on preset audio time shaft specific image is shown, improves The Experience Degree of user.
Alternatively, in above-mentioned steps S108, the media file of generation can be and meanwhile carry image, preset audio, One media file of mapping relations and default mark, for example, in the image that the first area storage of media file shoots, Preset audio is stored in the second area of media file, in the 3rd region storage mapping relation of media file, in media text 4th region of part is stored for indicating that image and preset audio have the default mark of mapping relations.It can be seen that, clearance is above-mentioned Step, image, preset audio, mapping relations, default mark can be incorporated in one media file, it is to avoid by The call error caused by storage image respectively and audio frequency are possible, while improve the degree of polymerization of resource, allows users to To higher Experience Degree.
Alternatively, after above-mentioned steps S108, media file can be checked, and is carried according to media file Default mark read the mapping relations that default mark is indicated, show corresponding on the corresponding time point for playing preset audio Image, for example, judges whether the file for reading is the media file for carrying default mark, is determining file to take In the case of media file with default mark, preset audio is played, and be played on the time shaft of preset audio During time point, according to mapping relations corresponding image is shown;Can be to determine the file of reading to carry pre- bidding In the case of the media file of knowledge, prompt the user whether to select to play preset audio, when user selects to play preset audio, In the time point being played on the time shaft of preset audio, corresponding image is shown according to mapping relations, selected in user When not playing preset audio, image is directly displayed.It can be seen that, by above-mentioned steps, allow user listening to preset audio While image browsing, while having provided the user the selection for whether playing preset audio, improve user experience.
Alternatively, the image of above-mentioned shooting can be 3-D view.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-described embodiment Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but a lot In the case of the former be more preferably embodiment.Based on such understanding, technical scheme is substantially in other words to existing There is the part that technology contributes to embody in the form of software product, the computer software product is stored in one In storage medium (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal equipment (can Being mobile phone, computer, server, or network equipment etc.) method that performs each embodiment of the invention.
Additionally provide a kind of media file generating means in the present embodiment, the device is used to realizing above-described embodiment and preferably Embodiment, had carried out repeating no more for explanation.As used below, term " module " can be realized making a reservation for The software of function and/or the combination of hardware.Although the device described by following examples is preferably realized with software, It is hardware, or the realization of the combination of software and hardware is also may and to be contemplated.
Fig. 2 is the structured flowchart of media file generating means according to embodiments of the present invention, as shown in Fig. 2 the device bag Include:Acquisition module 22, taking module 24, module 26 and generation module 28 are set up, wherein, acquisition module 22 is used In under screening-mode, preset audio is obtained;Taking module 24, for the time point on the time shaft of preset audio Shooting image;Module 26 is set up, coupled to taking module 24, for setting up the time of the image for shooting and preset audio The mapping relations of the time point on axle;Generation module 28, coupled to setting up module 26, for generate carry image and The media file of default mark, wherein, there are mapping relations for indicating image and preset audio in default mark.
Fig. 3 is the alternative construction block diagram one of media file generating means according to embodiments of the present invention, as shown in figure 3, can Selection of land, above-mentioned acquisition module 22 includes:Reading unit 32 and editing unit 34, wherein, reading unit 32 is used for According to the store path of user input, the audio file that store path is indicated is read;Editing unit 34, it is single coupled to reading Unit 32, for editing audio file, obtains preset audio.
Fig. 4 is the alternative construction block diagram two of media file generating means according to embodiments of the present invention, as shown in figure 4, can Selection of land, above-mentioned taking module 24 includes:First receiving unit 42 and shooting unit 44, wherein, the first receiving unit 42, for receiving the instruction for indicating generation media file;Shooting unit 44, coupled to the first receiving unit 42, For according to the instruction that media file is generated for instruction, the time point photographs images on the time shaft of preset audio.
Fig. 5 is the alternative construction block diagram three of media file generating means according to embodiments of the present invention, as shown in figure 5, can Selection of land, above-mentioned generation module 28 includes:Second receiving unit 52 and signal generating unit 54, wherein, the second receiving unit 52, for receiving edit instruction, wherein, edit instruction is used to adjust image with time point on the time shaft of preset audio Corresponding relation, and update mapping relations;Signal generating unit 54, coupled to the second receiving unit 52, carries for generating The media file of image and default mark, wherein, default mark deposits reflecting in the updated for indicating image and preset audio Penetrate relation.
Alternatively, above-mentioned generation module 28 be additionally operable to generate media file, wherein, media file for carry image, One media file of preset audio, mapping relations and default mark.
Fig. 6 is the alternative construction block diagram four of media file generating means according to embodiments of the present invention, as shown in fig. 6, can Selection of land, said apparatus also include:First processing module 62 and Second processing module 64, wherein, first processing module 62, Coupled to generation module 28, for reading file, and judge whether file is the media file for carrying default mark;The Two processing modules 64, coupled to first processing module 62, for being the media that carry default mark file is determined In the case of file, preset audio is played, and in the time point being played on the time shaft of preset audio, according to mapping Relation shows corresponding image.
It should be noted that above-mentioned modules can be by software or hardware to realize, for the latter, Ke Yitong Cross in the following manner realization, but not limited to this:Above-mentioned module is respectively positioned in same processor;Or, above-mentioned module distinguishes position In multiple processors.
Embodiments of the invention additionally provide a kind of software, and the software is used to perform in above-described embodiment and preferred embodiment The technical scheme of description.
Embodiments of the invention additionally provide a kind of storage medium.In the present embodiment, above-mentioned storage medium can be set It is used to perform the program code of following steps for storage:
Step S102, under screening-mode, obtains preset audio;
Step S104, the time point photographs images on the time shaft of preset audio;
Step S106, the mapping relations of the time point set up on the time shaft of the image and preset audio for shooting;
Step S108, generation carries the media file of image and default mark, wherein, mark is preset for indicating figure As there are mapping relations with preset audio.
Alternatively, in the present embodiment, above-mentioned storage medium can be including but not limited to:USB flash disk, read-only storage (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as For RAM), portable hard drive, magnetic disc or CD etc. are various can be with the medium of store program codes.
In order that the description of the embodiment of the present invention is clearer, it is described with reference to alternative embodiment and illustrates.
Alternative embodiment of the present invention is described as 3-D view with shooting image as a example by (i.e. 3D photos).Need explanation , the image of shooting can also be two dimensional image, and this is not restricted in the present embodiment.
The file creating apparatus that alternative embodiment of the present invention is provided include:Left and right image unit, audio frequency receiving unit, 3D The parts such as image-generating unit, graphics/audio processing unit, memory cell, display unit, audio playing unit.
In addition, in file creating apparatus, additionally providing a kind of exposal model, can wrap in the main interface of the exposal model Include:Addition recording, the function choosing-item of addition music.
The media file generation method that alternative embodiment of the present invention is provided comprises the steps:
Step 12, when two options are not turned on, directly pass through left and right camera and generates 3D photos when shooting photo;
Step 14, when addition sound-recording function is opened, while shooting 3D photos, there is the beginning of recording and knot in interface Beam switch, while 3D photos are shot, recording audio information, and photo and audio-frequency information are carried out into the corresponding (phase of mapping When in above-mentioned first mapping relations), binding is preserved;
Step 16, when addition music function is opened, selects the music (equivalent to above-mentioned preset audio) for needing addition, And the shooting of 3D photos is carried out, or corresponding 3D photos are selected, one or multiple pictures can be selected, while Photo and music information are set up into mapping relations, binding is preserved.
When checking photo by 3D display screens, for the photo for having audio frequency and music information, by specific icon (phase When in above-mentioned default mark) it is identified.What alternative embodiment of the present invention was provided checks that the method for image comprises the steps:
Step 22, for not having tagged 3D photos, is directly checked by 3D display screens;
Step 24, for tagged photo, if user is not desired to listening to audio information (equivalent to above-mentioned preset audio), Opening audio frequency is not clicked on, checking for 3D photos is directly carried out;
Step 26, for tagged 3D photos, if user thinks listening to audio information, clicks on icon and opens, if The audio-frequency information recorded, then while checking 3D pictures, playback information;If music file, then play While music, photographic intelligence is shown, multiple or one are shown automatically.
Alternative embodiment of the present invention is illustrated below in conjunction with the accompanying drawings.
Alternative embodiment of the present invention mainly passes through left and right image unit, audio frequency receiving unit, 3D image-generating units, image Audio treatment unit, memory cell, display unit, audio playing unit etc. realize that a kind of 3D with audio-frequency function is clapped According to method, change the current situation that media format is single, content is scattered, be that user brings more preferable Consumer's Experience.
Alternative embodiment of the present invention provides a kind of media file generating means, and Fig. 7 is according to alternative embodiment of the present invention The structured flowchart of media file generating means, as shown in fig. 7, the device includes:
Left and right image unit 702, for shooting the photo of left and right camera;
Audio frequency receiving unit 704, for adding audio-frequency information;
3D image-generating units 706, coupled to left and right image unit 702, at the photo that shoots left and right camera Reason, obtains 3D rendering;
Graphics/audio processing unit 708, coupled to audio frequency receiving unit 704 and 3D image-generating units 706, for by 3D Photo and audio frequency set up correspondence mappings relation;
Memory cell 710, coupled to graphics/audio processing unit 708, for the 3D photos and audio-frequency information of storage binding;
Display unit 712, coupled to memory cell 710, for showing 3D rendering;
Audio playing unit 714, coupled to memory cell 710, for playing audio file;
Alternative embodiment of the present invention provides a kind of 3D photographic methods based on above-mentioned media file generation method.Fig. 8 It is the schematic diagram of the 3D photographic methods according to alternative embodiment of the present invention, as shown in figure 8, the method is comprised the following steps:
Step S802, into 3D exposal models, if audio file need not be added, directly carries out the bat of 3D photos Take the photograph;
Step S804, if to add recorded message, opens addition recording option, while 3D photos are shot, When starting recording audio, audio frequency receiving unit is enabled, and records related audio-frequency information, and recording completes to terminate manually, Or reach specific duration terminate automatically recording;
Step S806, if to add music information, opens addition music option, selects the music for needing addition, Then one or multiple 3D photos can be shot, one or multiple 3D photos is either selected from existing picture library.
Alternative embodiment of the present invention provides a kind of media file generation method.Fig. 9 is according to alternative embodiment of the present invention The schematic diagram one of media file generation method, as shown in figure 9, the method is comprised the following steps:
Step S902, opens camera, into 3D exposal models;
Step S904, judges whether to add audio-frequency information;
Step S906, if without audio-frequency information, directly shooting 3D photos and being preserved;
Step S908, if addition audio-frequency information, judges whether to add music file;
Step S910, if without music file, adding recorded message, starts recording, starts to take pictures, and reaches and sets The duration End of Tape put, or can manually terminate recording;
Step S912, if addition music file, select the music to be added, music can be carried out after selection F.F., The auditions such as retrogressing operation;
Step S914, starts to take pictures in the music point of addition, can be continuously shot multiple pictures, intercepts at the end of taking pictures Music terminates.
Alternative embodiment of the present invention combines the generation method of 3D photos, there is provided a kind of media file generation method.Giving birth to During into 3D photos, the photo of two views in left and right can be obtained by left and right camera, and two views have been carried out Process, obtain 3D rendering and audio file, Figure 10 is the media file generation method according to alternative embodiment of the present invention Schematic diagram two, as shown in Figure 10, the method is comprised the following steps:
Step S1002, by left camera left view photo is shot;
Step S1004, by right camera right view photo is shot;
Step S1006, by binocular stereo vision algorithm, using the left and right view for obtaining, calculates and obtains three-dimensional depth Information generates 3D photos, and file is stored in the form of multidimensional coding, while inserting audio-frequency information as many dimensions Coding;
Step S1008, by the coding of the data of 3D photos and voice data multidimensional integration is carried out, in original 3D photos Increase one-dimensional for audio information in multidimensional data matrix, whole data are carried out to unify to store and read.
After the completion of obtaining 3D photos and addition audio file, related information is processed, set up 3D photos and sound The mapping relations of frequency, are got up photographic intelligence and audio-frequency information binding by corresponding mapping form, are unifiedly stored to In memory cell.
A kind of browsing method of 3D photos is additionally provided in alternative embodiment of the present invention, wherein, the 3D in the present embodiment Photo refers to the media file of generation according to embodiments of the present invention.Figure 11 is the 3D photos according to alternative embodiment of the present invention The schematic diagram of browsing method, as shown in figure 11, the method is comprised the following steps:
Step S1102, opens picture library, checks 3D photos;
Step S1104, judges that the photo comprising audio-frequency information in storage can whether comprising audio-frequency information in 3D photos There is a mark bit-identify, also have special icon mark in the breviary display interface of photo;
Step S1106, by 3D display units, shows that 3D photos are checked;
Step S1108, judges that audio file is recorded message or music information, and two kinds of different audio-frequency informations are in storage When be distinguished by by mark;
Step S1110, if recorded message, user can be played out by the playback switch on interface, if beaten Playback switch is opened, then while 3D photos are shown, plays the audio-frequency information recorded, audio frequency is cut automatically after finishing playing Next group is changed to, or user can also be manually switched to next group;
Step S1112, if audio file is music information, the playback switch that user again may be by interface is carried out Play, after opening switch, while music is played, show or multiple 3D photos of binding, music After the completion of automatically switch to next group, or user can also manually be switched to next group.
In sum, by the above embodiment of the present invention and alternative embodiment, a kind of file generated pattern has been increased newly, it is first Shooting, storage and the display of photo (such as 3D photos) can be first realized, and audio-frequency information can be added for photo, So that the information of media article more enriches true to nature;Secondly it is the audio-frequency information of photo addition, recording and music can be included Two kinds of forms, and for different forms has different operation and handling process, with more preferable autgmentability and easy-to-use Property;In addition the correspondence mappings relation of photo and audio-frequency information is set up, binding process, storage is carried out and is shown so that one group Media information has higher integrality;And when audio frequency and photo are bound, a photo is limited as incessantly, can also be Multiple pictures, for the information of binding forms one group of content, when broadcasting is shown with more abundant form;It is finally right Analyze and has been processed in the detailed information such as classification, duration for increasing audio file so that whole process more completely with Comprehensively.
Obviously, those skilled in the art should be understood that above-mentioned each module of the invention or each step can be with general Realizing, they can be concentrated on single computing device computing device, or be distributed in multiple computing devices and constituted Network on, alternatively, they can be realized with the executable program code of computing device, it is thus possible to by they Storage is performed in the storage device by computing device, and in some cases, can be held with the order being different from herein The shown or described step of row, or they are fabricated to respectively each integrated circuit modules, or will be many in them Individual module or step are fabricated to single integrated circuit module to realize.So, the present invention is not restricted to any specific hardware Combine with software.
The preferred embodiments of the present invention are the foregoing is only, the present invention is not limited to, for the technology of this area For personnel, the present invention can have various modifications and variations.It is all within the spirit and principles in the present invention, made it is any Modification, equivalent, improvement etc., should be included within the scope of the present invention.

Claims (13)

1. a kind of media file generation method, it is characterised in that include:
Under screening-mode, preset audio is obtained;
Time point photographs images on the time shaft of the preset audio;
The mapping of the time point set up on described image and the time shaft of the preset audio for shooting is closed System;
Generation carries the media file of described image and default mark, wherein, it is described default to identify for indicating State image and there are the mapping relations with the preset audio.
2. method according to claim 1, it is characterised in that obtaining the preset audio includes:
According to the store path of user input, the audio file that the store path is indicated is read;
Audio file described in editing, obtains the preset audio.
3. method according to claim 1, it is characterised in that shooting described image includes:
Receive the instruction for indicating the generation media file;
According to the instruction that the media file is generated for instruction, the institute on the time shaft of the preset audio State time point photographs described image.
4. method according to claim 1, it is characterised in that generation carries described image and the default mark The media file includes:
Receive edit instruction, wherein, the edit instruction be used for adjust described image with described in the preset audio The corresponding relation of the time point on time shaft, and update the mapping relations;
Generation carries the media file of described image and the default mark, wherein, the default mark is used The mapping relations in the updated are deposited in instruction described image and the preset audio.
5. method according to claim 1, it is characterised in that generation carries described image and the default mark The media file also includes:
Generate the media file, wherein, the media file for carry described image, the preset audio, One media file of the mapping relations and the default mark.
6. method according to any one of claim 1 to 5, it is characterised in that generation carry described image and After the media file of the default mark, methods described also includes:
File is read, and judges whether the file is the media file for carrying the default mark;
Determining in the case that the file is the media file for carrying the default mark, playing described Preset audio, and in the time point being played on the time shaft of the preset audio, reflected according to described The relation of penetrating shows corresponding image.
7. method according to any one of claim 1 to 5, it is characterised in that described image includes 3-D view.
8. a kind of media file generating means, it is characterised in that include:
Acquisition module, under screening-mode, obtaining preset audio;
Taking module, for the time point photographs images on the time shaft of the preset audio;
Set up module, for set up on the described image and the time shaft of the preset audio that shoot it is described when Between put mapping relations;
Generation module, for generating the media file for carrying described image and default mark, wherein, it is described default Identify for indicating that described image has the mapping relations with the preset audio.
9. device according to claim 8, it is characterised in that the acquisition module includes:
Reading unit, for according to the store path of user input, reading the audio file that the store path is indicated;
Editing unit, for audio file described in editing, obtains the preset audio.
10. device according to claim 8, it is characterised in that the taking module includes:
First receiving unit, for receiving the instruction for indicating the generation media file;
Shooting unit, for according to the instruction that the media file is generated for instruction, in the institute of the preset audio State the time point photographs described image on time shaft.
11. devices according to claim 8, it is characterised in that the generation module includes:
Second receiving unit, for receiving edit instruction, wherein, the edit instruction be used for adjust described image with The corresponding relation of the time point on the time shaft of the preset audio, and update the mapping relations;
Signal generating unit, for generating the media file for carrying described image and the default mark, wherein, It is described default to identify for indicating that described image and the preset audio deposit the mapping relations in the updated.
12. devices according to claim 8, it is characterised in that the generation module is additionally operable to:
Generate the media file, wherein, the media file for carry described image, the preset audio, One media file of the mapping relations and the default mark.
13. devices according to any one of claim 8 to 12, it is characterised in that described device also includes:
First processing module, for reading file, and judges whether the file is to carry the default mark The media file;
Second processing module, for being the media file that carries the default mark the file is determined In the case of, play the preset audio, and be played on the time shaft of the preset audio it is described when Between when putting, show corresponding image according to the mapping relations.
CN201510691023.6A 2015-10-22 2015-10-22 Media file generation method and apparatus Pending CN106610982A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510691023.6A CN106610982A (en) 2015-10-22 2015-10-22 Media file generation method and apparatus
PCT/CN2016/073957 WO2016184193A1 (en) 2015-10-22 2016-02-17 Method and apparatus for generating media files

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510691023.6A CN106610982A (en) 2015-10-22 2015-10-22 Media file generation method and apparatus

Publications (1)

Publication Number Publication Date
CN106610982A true CN106610982A (en) 2017-05-03

Family

ID=57319303

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510691023.6A Pending CN106610982A (en) 2015-10-22 2015-10-22 Media file generation method and apparatus

Country Status (2)

Country Link
CN (1) CN106610982A (en)
WO (1) WO2016184193A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111935395A (en) * 2020-06-29 2020-11-13 联想(北京)有限公司 Video file generation method and electronic equipment
CN112422808A (en) * 2019-08-23 2021-02-26 阿里巴巴集团控股有限公司 Method and device for acquiring photos and processing media objects

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1767549A (en) * 2004-10-28 2006-05-03 乐金电子(中国)研究开发中心有限公司 Mobile communication terminal with moving image picking up function and picking up method thereof
CN103702180A (en) * 2014-01-14 2014-04-02 北京奇艺世纪科技有限公司 Media file playing method and device
CN104065869A (en) * 2013-03-18 2014-09-24 三星电子株式会社 Method for displaying image combined with playing audio in an electronic device
CN104253943A (en) * 2014-09-04 2014-12-31 广东欧珀移动通信有限公司 Video shooting method and device using mobile terminal
US9141682B1 (en) * 2013-03-25 2015-09-22 Amazon Technologies, Inc. Resolving conflicts within saved state data

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107547702A (en) * 2013-01-28 2018-01-05 联想(北京)有限公司 A kind of information processing method, device, electronic equipment and storage medium
KR101518294B1 (en) * 2013-05-07 2015-05-07 주식회사 인코렙 Media Recorded with Multi-Track Media File, Method and Apparatus for Editing Multi-Track Media File
CN104683677B (en) * 2013-11-26 2019-06-18 深圳富泰宏精密工业有限公司 Increase the system and method for voice description for photo
CN104052935B (en) * 2014-06-18 2017-10-20 广东欧珀移动通信有限公司 A kind of video editing method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1767549A (en) * 2004-10-28 2006-05-03 乐金电子(中国)研究开发中心有限公司 Mobile communication terminal with moving image picking up function and picking up method thereof
CN104065869A (en) * 2013-03-18 2014-09-24 三星电子株式会社 Method for displaying image combined with playing audio in an electronic device
US9141682B1 (en) * 2013-03-25 2015-09-22 Amazon Technologies, Inc. Resolving conflicts within saved state data
CN103702180A (en) * 2014-01-14 2014-04-02 北京奇艺世纪科技有限公司 Media file playing method and device
CN104253943A (en) * 2014-09-04 2014-12-31 广东欧珀移动通信有限公司 Video shooting method and device using mobile terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112422808A (en) * 2019-08-23 2021-02-26 阿里巴巴集团控股有限公司 Method and device for acquiring photos and processing media objects
CN112422808B (en) * 2019-08-23 2023-05-19 阿里巴巴集团控股有限公司 Photo acquisition method, media object processing device and electronic equipment
CN111935395A (en) * 2020-06-29 2020-11-13 联想(北京)有限公司 Video file generation method and electronic equipment

Also Published As

Publication number Publication date
WO2016184193A1 (en) 2016-11-24

Similar Documents

Publication Publication Date Title
AU2001241645B2 (en) Communication system and method including rich media tools
US8526778B2 (en) Apparatus and method for photographing and editing moving image
CN104869467B (en) Information output method, device and system in media play
US20060056796A1 (en) Information processing apparatus and method and program therefor
CN106530371A (en) Method and device for editing and playing animation
KR19980042574A (en) Information processing apparatus, information processing method and medium for use in 3D virtual reality space sharing system
CN109120997A (en) Method for processing video frequency, device, terminal and medium
CN107995482B (en) Video file processing method and device
CN109151595A (en) Method for processing video frequency, device, terminal and medium
CN107302671A (en) Material splicing processing method and device, electronic equipment and storage medium
CN107977184A (en) A kind of method for playing music and device based on virtual reality technology
CN107785037A (en) Use the method, system and medium of audio time code synchronized multimedia content
JP2010268195A (en) Video content editing program, server, apparatus and method
CN106610982A (en) Media file generation method and apparatus
CN108616768B (en) Synchronous playing method and device of multimedia resources, storage position and electronic device
CN108882004A (en) Video recording method, device, equipment and storage medium
CN106851424A (en) Video broadcasting method and device
CN105472297B (en) Video interaction method, system and device
CN105472299B (en) Video interaction method, system and device
US20020089645A1 (en) Producing a soundtrack for moving picture sequences
JP3743321B2 (en) Data editing method, information processing apparatus, server, data editing program, and recording medium
JP7445272B1 (en) Video processing method, video processing system, and video processing program
CN109151568A (en) Method for processing video frequency and Related product
KR101421066B1 (en) System and method for providing Multi-media contents with audio file, computer readable medium having computer program recorded therefor
JP7342087B2 (en) video creation program

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20170503

RJ01 Rejection of invention patent application after publication