CN105049920A - Method and device for recording multimedia files - Google Patents

Method and device for recording multimedia files Download PDF

Info

Publication number
CN105049920A
CN105049920A CN201510449606.8A CN201510449606A CN105049920A CN 105049920 A CN105049920 A CN 105049920A CN 201510449606 A CN201510449606 A CN 201510449606A CN 105049920 A CN105049920 A CN 105049920A
Authority
CN
China
Prior art keywords
file
multimedia file
data
medium data
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
CN201510449606.8A
Other languages
Chinese (zh)
Other versions
CN105049920B (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.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology 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 Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201510449606.8A priority Critical patent/CN105049920B/en
Publication of CN105049920A publication Critical patent/CN105049920A/en
Application granted granted Critical
Publication of CN105049920B publication Critical patent/CN105049920B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4334Recording operations

Abstract

The embodiment of the invention provides a method and a device for recording multimedia files. The method comprises the following steps of: setting recording parameters while receiving a multimedia file recording request, wherein the recording parameters include a data source, a coding format and a file output format, and the file output format is set to be a transport stream TS format; acquiring multimedia data through the data source; coding the multimedia data according to the coding format; packaging the coded multimedia data in a first multimedia file according to the transport stream TS format; and when the size of the first multimedia file exceeds a preset file size threshold, packaging the coded multimedia data in a second multimedia file according to the transport stream TS format. According to the embodiment of the invention, time delay is reduced greatly, packaging efficiency in the recording process is improved greatly, an abnormal stop phenomenon during the recording process is avoided, and a problem of frame loss caused while switching is relieved effectively.

Description

A kind of method for recording of multimedia file and device
Technical field
The present invention relates to multimedia technical field, particularly relate to a kind of method for recording of multimedia file and a kind of record device of multimedia file.
Background technology
Along with the fast development of mobile communication technology, mobile communication terminal is also more and more higher in the utilization rate of each side such as work, study, daily interchange of people, can say, mobile communication terminal is that people live an indispensable part.
Video recording is a common function of mobile communication terminal, recording due to program (as literature and art joint performance) waits the process of video recording very long, and the form of memories (SD card) most is at present FAT32, the restriction of Single document maximum storage is 4G, therefore, usually need to be divided into multiple multimedia file to record.
Due to the restriction of system, when multimedia file switches, generally need the operation stopping recording instrument, then restart recording instrument, carry out the recording of new multimedia file.
Current mobile communication terminal, the multimedia file of a lot of recording is all MPEG-4 form, all data in the file of MPEG-4 form are all contained in box, that is the file of MPEG-4 form is made up of several box, each box has type and length, box can be interpreted as a data object block.
Media information and the data of the file of MPEG-4 form are separately deposited, namely all positions of each frame data must be parsed before wanting to obtain data, what this frame information deposited by the file of MPEG-4 form is be placed in this box of stbl, and real data are placed in this box of mdat.
At the end of document recording, need to produce a header information at the file of MPEG-4 form, used in order to player plays file.
Visible, the file structure of MPEG-4 form is complicated, makes the multimedia file of MPEG-4 form when the encapsulation of recording, needs to spend long time, and time delay is very large, and the phenomenon easily causing card to pause when recording continuously, causes frame losing during switching.
Summary of the invention
In view of the above problems, the embodiment of the present invention is proposed to provide a kind of method for recording of a kind of multimedia file solved the problem with overcoming the problems referred to above and the record device of corresponding a kind of multimedia file.
In order to solve the problem, the embodiment of the invention discloses a kind of method for recording of multimedia file, comprising:
When receiving the recording request of multimedia file, arrange recording parameter, wherein, described recording parameter comprises data source, coded format, file output form, and described file output formatting is transport stream TS form;
Multi-medium data is gathered by described data source;
According to described coded format, described multi-medium data is encoded;
Multi-medium data after coding is packaged into the first multimedia file according to described transport stream TS form;
When described first multimedia file exceedes default file size threshold value, the multi-medium data after coding is packaged into the second multimedia file according to described transport stream TS form.
Preferably, described the multi-medium data step that is packaged into the first multimedia file according to described transport stream TS form after coding to be comprised:
In the filename of described multimedia file setup time information.
Preferably, described temporal information comprises encapsulation initial time, encapsulation deadline;
The described step to described multimedia file information setup time comprises:
When starting to encapsulate multimedia file, in the filename of described multimedia file, current time is configured to encapsulate initial time;
When completing encapsulation multimedia file, in the filename of described multimedia file, current time is configured to encapsulate the deadline.
Preferably, also comprise:
When all multimedia files have encapsulated, generating configuration file;
Wherein, described configuration file comprises the sub-information of file of file total information and each multimedia file;
The sub-information of described file sorts according to temporal information, comprises the duration information, at least one in routing information that calculate based on described temporal information;
At least one in total duration information that the duration information that described file total information comprises cumulative each multimedia file obtains, video name, video pictures size.
Preferably, described arrange record parameter step before, described method also comprises:
Create multi-media recording object MediaRecorder;
By described multi-media recording object MediaRecorder Object Creation multi-media recording Service Instance StageFrightRecorder.
Preferably, the described step recording parameter that arranges comprises:
By described multi-media recording object MediaRecorder, recording parameter is set;
Wherein, in the Java layer of operating system, what described multi-media recording object MediaRecorder had a transport stream TS form arranges interface.
Preferably, described data source comprises camera and/or microphone, and described multi-medium data comprises video data and/or voice data;
The described step by described data source collection multi-medium data comprises:
By preset camera source class CameraSource from camera collection video data;
And/or,
Voice data is gathered from microphone by preset audio-source class AudioSource.
Preferably, describedly according to described coded format, the step that described multi-medium data is encoded to be comprised:
Encoder OMXCodec is created by described multi-media recording Service Instance StageFrightRecorder;
Described multi-medium data is encoded according to described coded format by described encoder OMXCodec.
Preferably, described the multi-medium data step that is packaged into the first multimedia file according to described transport stream TS form after coding to be comprised:
By described multi-media recording Service Instance StageFrightRecorder, the preset transport stream object MPEG2TSWriter that writes is arranged synthesizer MediaWriter;
By described synthesizer MediaWriter, described multi-medium data is encapsulated as the first multimedia file of described transport stream TS form.
The embodiment of the invention also discloses a kind of record device of multimedia file, comprising:
Record parameter setting module, during for receiving the recording request of multimedia file, arrange recording parameter, wherein, described recording parameter comprises data source, coded format, file output form, and described file output formatting is transport stream TS form;
Multi-medium data acquisition module, for gathering multi-medium data by described data source;
Multi-medium data coding module, for encoding to described multi-medium data according to described coded format;
First multi-medium data package module, for being packaged into the first multimedia file by the multi-medium data after coding according to described transport stream TS form;
Second multi-medium data package module, for when judging that described first multimedia file exceedes default file size threshold value, is packaged into the second multimedia file by the multi-medium data after coding according to described transport stream TS form.
Preferably, described multi-medium data package module comprises:
Temporal information configuration submodule, in the filename of described multimedia file setup time information.
Preferably, described temporal information comprises encapsulation initial time, encapsulation deadline;
Described temporal information configuration submodule comprises:
Encapsulation initial time dispensing unit, for when starting to encapsulate multimedia file, in the filename of described multimedia file, is configured to current time encapsulate initial time;
Encapsulation deadline dispensing unit, for when completing encapsulation multimedia file, in the filename of described multimedia file, is configured to current time encapsulate the deadline.
Preferably, also comprise:
Configuration file generation module, for when all multimedia files have encapsulated, generating configuration file;
Wherein, described configuration file comprises the sub-information of file of file total information and each multimedia file;
The sub-information of described file sorts according to temporal information, comprises the duration information, at least one in routing information that calculate based on described temporal information;
At least one in total duration information that the duration information that described file total information comprises cumulative each multimedia file obtains, video name, video pictures size.
Preferably, also comprise:
Record Object Creation module, for creating multi-media recording object MediaRecorder;
Record Service Instance creation module, for by described multi-media recording object MediaRecorder Object Creation multi-media recording Service Instance StageFrightRecorder.
Preferably, described recording parameter setting module comprises:
Object arranges submodule, for arranging recording parameter by described multi-media recording object MediaRecorder;
Wherein, in the Java layer of operating system, what described multi-media recording object MediaRecorder had a transport stream TS form arranges interface.
Preferably, described data source comprises camera and/or microphone, and described multi-medium data comprises video data and/or voice data;
Described multi-medium data acquisition module comprises:
Video data acquiring submodule, for by preset camera source class CameraSource from camera collection video data;
And/or,
Audio data collecting submodule, for gathering voice data by preset audio-source class AudioSource from microphone.
In one preferred embodiment of the invention, described multi-medium data coding module 503 can comprise following submodule:
Encoder creates submodule, for creating encoder OMXCodec by described multi-media recording Service Instance StageFrightRecorder;
Encoder encodes submodule, for being encoded to described multi-medium data according to described coded format by described encoder OMXCodec.
Preferably, described multi-medium data package module comprises:
Synthesizer arranges submodule, for the preset transport stream object MPEG2TSWriter that writes being arranged synthesizer MediaWriter by described multi-media recording Service Instance StageFrightRecorder;
Synthesizer encapsulation submodule, for being encapsulated as the first multimedia file of described transport stream TS form by described multi-medium data by described synthesizer MediaWriter.
The embodiment of the present invention comprises following advantage:
The multi-medium data that data source gathers by the embodiment of the present invention after coding, be packaged into the multimedia file of multiple transport stream TS form, because transport stream TS form is simple, without the need to the encapsulation operation of complexity, greatly reduce time delay, substantially increasing the packaging efficiency when recording, avoiding the Caton phenomenon in recording process, effectively alleviating the frame losing problem when switching.
The embodiment of the present invention increases MPEG2TSWriter object in StageFrightRecorder framework, provides the write support of the transport stream TS of local file system, achieves the generation of the multimedia file of transport stream TS form.
Accompanying drawing explanation
Fig. 1 is the flow chart of steps of the method for recording embodiment 1 of a kind of multimedia file of the present invention;
Fig. 2 is the flow chart of steps of the method for recording embodiment 2 of a kind of multimedia file of the present invention;
Fig. 3 is the flow chart of steps of the player method embodiment 1 of a kind of multimedia file of the present invention;
Fig. 4 is the flow chart of steps of the player method embodiment 2 of a kind of multimedia file of the present invention;
Fig. 5 is the structured flowchart of the record device embodiment of a kind of multimedia file of the present invention
Fig. 6 is the structured flowchart of the playing device embodiment of a kind of multimedia file of the present invention.
Embodiment
For enabling above-mentioned purpose of the present invention, feature and advantage become apparent more, and below in conjunction with the drawings and specific embodiments, the present invention is further detailed explanation.
With reference to Fig. 1, show the flow chart of steps of the method for recording embodiment 1 of a kind of multimedia file of the present invention, specifically can comprise the steps:
Step 101, when receiving the recording request of multimedia file, arranges recording parameter;
It should be noted that, the embodiment of the present invention can be applied to the mobile communication equipment with camera, such as, and mobile phone, panel computer, intelligent wearable device (as intelligent watch) etc.
Certainly, the embodiment of the present invention can also be applied to other-end equipment, and as intelligent television, intelligent camera etc., the embodiment of the present invention is not limited this.
These mobile communication equipments can support the operating system such as WindowsPhone, Android (Android), IOS, Windows mostly, usually can run the application of recorded video, as camera application, realize recording function.
In specific implementation, the recording request of multimedia file can refer to the instruction that the carrying out that the modes such as the control (as video recording control) that user is specified by camera application click send is recorded a video.
Make when receiving recording request, then recording parameter can be set.Wherein, record parameter and can comprise data source (DataSource), coded format, file output form;
Furthermore, file output formatting is transport stream TS form.
Below several concepts that transport stream TS form relates to are introduced:
ES (ElementaryStream): substantially flow, the continuous bit stream of the audio frequency of not segmentation, video or other information.
PES (PacketElementalStream): the basic stream ES section of being divided into, and add the elementary stream that the packing of corresponding header file is formed.
TS (TransportStream): transport stream, will have the single data flow of one or more PES combination (compound) of common time base or independent time reference.
Certainly, above-mentioned recording parameter just exemplarily, when implementing the embodiment of the present invention, can arrange other according to actual conditions and record parameter, such as, record by resolution, video frame rate, file output, etc., the embodiment of the present invention is not limited this.In addition, except above-mentioned recording parameter, those skilled in the art can also adopt other to record parameter according to actual needs, and the embodiment of the present invention is not also limited this.
Step 102, gathers multi-medium data by described data source;
When starting recorded video, original multi-medium data can be gathered by data source, such as, video data, voice data.
Step 103, encodes to described multi-medium data according to described coded format;
Multi-medium data is encoded, refers to by specific compress technique, as H.261, H.263 etc., the file transform of certain video format is become the mode of another kind of video format file.
Step 104, is packaged into the first multimedia file by the multi-medium data after coding according to described transport stream TS form.
One of feature of transport stream TS form requires all can independently decode from arbitrary fragment of video flowing.
Structurally, can comprise the transport stream packets (referred to as TS bag) that a series of regular length is 188Bytes in each transfer stream file, the TS bag expanded can also comprise timestamp.
The load that each TS wraps packet header of being grown by 4Bytes and 184Bytes thereafter forms, and the load of 184Bytes is useful information space, for transmitting encoded video/audio data flow.
In one preferred embodiment of the invention, step 104 can comprise following sub-step:
Sub-step S11, in the filename of described multimedia file setup time information.
The multimedia file of transport stream TS form is stream data, does not have special file header, otherwise the requirement can decoded can not meeting from whenever.
But this also brings another one problem, be exactly the bad calculating of video length that the multimedia file of each segmentation keeps.
Therefore, in embodiments of the present invention, in filename setup time information, calculate to facilitate the video length of the multimedia file of segmentation.
Specifically, namely temporal information is comprised in the formation of the filename of multimedia file.
In actual applications, temporal information can comprise encapsulation initial time (namely starting to encapsulate the time of multimedia file), encapsulation deadline (namely completing the time of encapsulation multimedia file);
When starting to encapsulate multimedia file, in the filename of multimedia file, current time is configured to encapsulate initial time;
When completing encapsulation multimedia file, in the filename of multimedia file, current time is configured to encapsulate the deadline.
Such as, certain multimedia file on January 1st, 2015 01:00 start encapsulation, then now can to this multimedia file configuration file " videoclip1_201501010100.ts " by name, if this multimedia file on January 1st, 2015 01:10 start encapsulation, then can be revised as " videoclip1_201501010100_201501010110.ts " the filename of multimedia file.
Step 105, when described first multimedia file exceedes default file size threshold value, is packaged into the second multimedia file by the multi-medium data after coding according to described transport stream TS form.
In embodiments of the present invention, multimedia file can be divided according to file size threshold value, prescribe a time limit when document size reaches the upper of file size threshold value, the application of real-time informing recorded video, carry out the encapsulation of next multimedia file, until recorded.
Namely a complete video, can record into multiple multimedia file.
The multi-medium data that data source gathers by the embodiment of the present invention after coding, be packaged into the multimedia file of multiple transport stream TS form, because transport stream TS form is simple, without the need to the encapsulation operation of complexity, greatly reduce time delay, substantially increasing the packaging efficiency when recording, avoiding the Caton phenomenon in recording process, effectively alleviating the frame losing problem when switching.In one preferred embodiment of the invention, the method can also comprise the steps:
Step 106, when all multimedia files have encapsulated, generating configuration file;
In embodiments of the present invention, a complete video can record into multiple multimedia file, this complete video can be defined by the operation of user, as, receive recording request in the application of recorded video and terminate the multimedia file that encapsulates between the request of recording and be considered as a complete video.
When all multimedia files (comprising the first multimedia file, the second multimedia file) of a complete video complete encapsulation, generate corresponding configuration file, can be XML (ExtensibleMarkupLanguage, extend markup language) etc. form, for controlling the broadcasting of multiple multimedia file.
Wherein, described configuration file comprises the sub-information of file of file total information and each multimedia file;
The sub-information of described file sorts according to temporal information, comprises the duration information, at least one in routing information that calculate based on described temporal information;
At least one in total duration information that the duration information that described file total information comprises cumulative each multimedia file obtains, video name, video pictures size.
The example of configuration file can be as follows:
Wherein, BaseInfos is file total information, i.e. the video information of whole video.
Name in BaseInfos is video name, i.e. the title of whole video, can be named when recording at operation interface by user;
Duration in BaseInfos is total duration information;
SegmentCount in BaseInfos is the quantity of multimedia file;
Width in BaseInfos is the width of video pictures, High is the height of video pictures, jointly for characterizing video pictures size.
Segment is the sub-information of file, the i.e. video information of multimedia file.
Name in Segment is the filename of multimedia file;
Duration in Segment is the duration information of multimedia file;
FilePath in Segment is the routing information of multimedia file.
With reference to Fig. 2, show the flow chart of steps of the method for recording embodiment 2 of a kind of multimedia file of the present invention, the method embodiment can be applied in android system, android system is a kind of based on the freedom of Linux and the operating system of open source code, roughly can be divided into four layers, be application layer (Applications), application framework layer (ApplicationFramework), system cloud gray model storehouse layer (Libraries) and Linux kernel central layer (LinuxKernel) respectively from high level to low layer.
The method embodiment specifically can comprise the steps:
Step 201, creates multi-media recording object MediaRecorder;
Android system be linux system on add Java Virtual Machine Dalvik, and on Dalvik virtual machine, built the ApplicationFramework of a JAVA, application program runs on the ApplicationFramework based on JAVA, therefore, roughly ApplicationFramework can be divided into Java layer and Native layer.
In embodiments of the present invention, the application of recorded video at the MediaRecorder object of an establishment Java layer, can realize recording and video recording.
Step 202, by described multi-media recording object MediaRecorder Object Creation multi-media recording Service Instance StageFrightRecorder;
MediaRecorder creates recording Service Instance---StageFrightRecorder to liking by the recording service module MPS of application framework layer, controls the recording of multimedia file.
Wherein, StagefrightRecorder is the entity object for recording operation that MPS creates.
By the interprocess communication of AIDL Interface realization between the application of recorded video and MPS, in order to camera application and development is convenient, android system provides packaged help class.
Application as recorded video realizes exchanging with MPS with MediaRecorderClient by MediaRecorder object.
MediaRecorder to as if operate in recorded video the process space of application inside, represent MPS, MediaRecorderClient operates in the application representing recorded video inside the multimedia server process space.
Step 203, arranges recording parameter by described multi-media recording object MediaRecorder;
Record parameter and can comprise data source, coded format, file output form, this file output format is set to transport stream TS form;
In the embodiment of the present invention, in order to realize the recording of the multimedia file of transport stream TS form, expand at the Java layer of operating system.
Specifically, in the Java layer of operating system, what multi-media recording object MediaRecorder had a transport stream TS form arranges interface, and multi-media recording object MediaRecorder can to arrange interface by transport stream TS formatting be output format by this.
Step 204, by preset camera source class CameraSource from camera collection video data;
In embodiments of the present invention, data source comprises camera, and multi-medium data comprises video data, then can by CameraSource from camera collection video data, as yuv data.
Step 205, gathers voice data by preset audio-source class AudioSource from microphone.
In embodiments of the present invention, data source comprises microphone, and multi-medium data comprises voice data, then can gather voice data by AudioSource from microphone, as PCM data.
Step 206, creates encoder OMXCodec by described multi-media recording Service Instance StageFrightRecorder;
Step 207, is encoded to described multi-medium data according to described coded format by described encoder OMXCodec;
The Multimedia Data Transmission process recorded is message-driven, and the message of data source generation multi-medium data is injected into the message queue of OMXCodec.
OMXCodec detects that this message can call the read function of MediaSource to obtain video data, voice data, and encode according to the coded format of setting, compressed video data, voice data are the data of various coded format.
Step 208, arranges synthesizer MediaWriter by described multi-media recording Service Instance StageFrightRecorder by the preset transport stream object MPEG2TSWriter that writes;
Step 209, is encapsulated as the first multimedia file of described transport stream TS form by described multi-medium data by described synthesizer MediaWriter.
In the embodiment of the present invention, in order to realize the recording of the multimedia file of transport stream TS form, expand at the Native layer of operating system.
StagefringRecorder can judge the file output form arranged, if transport stream TS form, then create MPEG2TSWriter object as MediaWriter, the video data compressed, voice data are written in multimedia file according to transport stream TS form.
In addition, in order to meet the storage of the multimedia file of transport stream TS form, the function of the embodiment of the present invention to MPEG2TSWriter is expanded, achieve document size measuring ability, thus can notify that key-course does file handover operation when writing data and reaching the file size threshold value of setting.
In Android original design, the object output of transport stream TS is Network Interface Unit, and the embodiment of the present invention increases MPEG2TSWriter object in StageFrightRecorder framework, provide the write support of the transport stream TS of local file system, achieve the generation of the multimedia file of transport stream TS form.
With reference to Fig. 3, show the flow chart of steps of the player method embodiment 1 of a kind of multimedia file of the present invention, specifically can comprise the steps:
Step 301, searches formerly for the configuration file that the multimedia file of multiple transport stream TS form generates;
In embodiments of the present invention, the same complete video of the plurality of multimedia file ownership, formerly for the plurality of multimedia file generating configuration file.
In specific implementation, multiple multimedia file is a complete video in interface display, when user waits operation to trigger the broadcasting of the plurality of multimedia file by clicking, can be searched formerly for the configuration file that the multimedia file of multiple transport stream TS form generates according to the information (as title) of this complete video by playing controller VideoController.
Be generally the forms such as XML due to configuration file, therefore, playing controller VideoController can give configuration file resolver VideoListParser and resolve after reading configuration file.
Step 302, the sub-information of the file of file reading total information and each multimedia file from described configuration file;
Document parser VideoListParser can resolve class (belonging to JavaAPI interface) by the XML inheriting Java and the resolution logic realizing oneself completes.
After document parser VideoListParser receives configuration file, can resolve configuration file, the file total information in acquisition configuration file and the sub-information of file of each multimedia file.
Furthermore, document parser VideoListParser first can resolve root node, obtains the file total information of this complete video, and then each byte point of one parsing, obtain the sub-information of file, and the sub-information of file after resolving is put into preservation in a set.
In specific implementation, the title of multimedia file can be configured with temporal information;
The sub-information of file sorts according to temporal information, comprises the duration information, at least one in routing information that calculate based on temporal information;
At least one in total duration information that the duration information that file total information comprises cumulative each multimedia file obtains, video name, video pictures size.
After resolving, the data structure of the sub-information of file of file total information and each multimedia file is with configuration file similar, returns playing controller VideoController by document parser VideoListParser.
Step 303, calls the multimedia file of transport stream TS form described in player plays according to the sub-information of file of file total information and each multimedia file.
In specific implementation, playing controller VideoController calls player MyVideoView, and corresponding file total information and the sub-information of file are sent to player MyVideoView, controls player MyVideoView and plays corresponding multimedia file.
Wherein, player MyVideoView can realize with reference to android system play control VideoView, furthermore, is that multimedia player MediaPlayer and surface window SurfaceView realize.
In one preferred embodiment of the invention, step 303 can comprise following sub-step:
Sub-step S21, is sent to player by least part of file total information and carries out initialization operation;
In embodiments of the present invention, at least part of file total information can be delivered to player MyVideoView by playing controller VideoController, and player MyVideoView can carry out initialization operation according to this file total information.
As, total duration information is sent to player MyVideoView by playing controller VideoController, generate corresponding playing progress bar with player MyVideoView at its UI (UserInterface, user interface), point out the playing progress rate of whole video file;
And/or,
And for example, video name is sent to player MyVideoView by playing controller VideoController, and player MyVideoView can show at its UI;
And/or,
Playing controller VideoController by video pictures size to player MyVideoView, to adjust the size of player, i.e. the length of initialization initialization surface window SurfaceView and width.
Sub-step S22, when initialization has operated, is sent to player by the routing information of first multimedia file, plays from described routing information reading multimedia file to call player.
After operation to be initiated completes, it is first multimedia file that playing controller VideoController can arrange broadcast source.
Specifically, the routing information of first multimedia file is sent to player MyVideoView by the setDatasource method that playing controller VideoController can call MediaPlayer.
To the Surface passing to MediaPlayer binding after video decode, i.e. initialized SurfaceView (Surface is corresponding one piece of screen buffer, each window corresponding Surface, a SurfaceView are drawn on Surface), play and start.
In another preferred embodiment of the invention, step 303 can comprise following sub-step:
Sub-step S31, when receive multimedia file that player sends finish event time, the routing information of next multimedia file is sent to player, reads multimedia file from described routing information play to call player.
If current multimedia file finishes, then player MyVideoView can send and finish event oncomplete notice playing controller VideoController, playing controller VideoController is according to sequence, the next multimedia file of current multimedia file will be positioned at, broadcast source is set, carries out played in order.
In another preferred embodiment of the invention, step 303 can comprise following sub-step:
Sub-step S41, receives the positioning action message that player sends; Described positioning action message comprises some positioning time being arranged in total duration information;
Sub-step S42, searches the multimedia file belonging to point described positioning time;
Sub-step S43, calculates the time offset of the duration information of point described positioning time in affiliated multimedia file;
Sub-step S44, is sent to player by the routing information of described multimedia file and time offset, reads multimedia file, plays from described time offset to call player from described routing information.
In embodiments of the present invention, broadcast point by dragging the playing progress bar in the UI of player MyVideoView, can drag to and putting delta by user positioning time, and triggered location seek operates.
Player MyVideoView, when location seek operation being detected, sends message informing playing controller VideoController.
The positioning time that playing controller VideoController operates according to location seek puts delta and each total duration information, namely confirm that putting delta positioning time is the time period belonging to which multimedia file, responds corresponding position by this multimedia file.
Such as, when recording, recorded three multimedia files, the duration information of the first two multimedia file is 10 minutes, and the duration information of the 3rd multimedia file is 5 minutes, and namely total duration information is 25 minutes.
If it is the 21st minute that user locates some positioning time that seek operates, within the 21st minute, belonging to the 3rd multimedia file, is the 1st minute in the time offset of the 3rd multimedia file.
The embodiment of the present invention is by reading the sub-information of file of file total information in configuration file and each multimedia file, call the multimedia file of the multiple transport stream TS form of player plays, because transport stream TS form is simple, decapsulation without the need to complexity operates, substantially increasing the deblocking efficiency when playing, avoiding the Caton phenomenon in playing process.
With reference to Fig. 4, show the flow chart of steps of the player method embodiment 2 of a kind of multimedia file of the present invention, specifically can comprise the steps:
Step 401, reads multimedia file by routing information;
If being provided with certain multimedia file by setDataSource method is broadcast source DataSource, then can the queue of opening timing device, and send (post) AsyncPrepare event, multimedia file itself can be read according to the routing information of this multimedia file.
Step 402, is separated multimedia file by transmission flow demultiplexing device MPEG2TSExtractor, obtains video data stream and audio data stream;
Create demodulation multiplexer MediaExtractor according to DataSource, carry out A/V (Audio/Video, video data stream/audio data stream) and be separated.
Furthermore, sp<MediaExtractor>extractor=M ediaExtractor::Create (dataSource) can be passed through; Realize the establishment of MediaExtractor.
MediaExtractor::Create (dataSource) can create different digital independent objects according to different data contents.
In embodiments of the present invention, in order to carry out A/V separation to the multimedia file of transport stream TS form, can create transmission flow demultiplexing device MPEG2TSExtractor is MediaExtractor.
Step 403, extracts video data frame by track of video mVideoTrack from described video data stream;
Step 404, extracts audio data frame by audio track mAudioTrack from described audio data stream;
When AsyncPrepare event is triggered, finishSetDataSource_l can be called and create VideoTrack and AudioTrack.
FinishSetDataSource_l judges medium type, such as http, rtsp by URI prefix, or local file etc.URI can pass through
MVideoTrack and mAudioTrack represents a track of video and audio track respectively, for extracting frame of video and audio frame.
MVideoTrack and mAudioTrack, when onPrepareAsyncEvent event is triggered, is separated by MediaExtractor.
Step 405, is decoded to described video data frame by Video Decoder mVideoSource;
Step 406, is decoded to described audio data frame by audio decoder mAudioSource;
Step 407, is exported decoded video data frame by video renderer mVideoRenderer;
Step 408, plays the audio data frame after mAudioPlayer broadcast decoder by audio frequency.
MVideoTrack and mAudioTrack can generate these two audio/video decoders of mVideoSource and mAudioSource by calling initVideoDecoder () and initAudioDecoder ().
MVideoSource can think the encapsulation of a Video Decoder, and play up for mVideoRenderer for generation of video image, the data source of mVideoSource is then provided by mVideoTrack.
MVideoSource carries out format conversion to the video of having decoded, and the form that Android uses is RGB565, and issues display module and carry out Image Rendering.
Read the data of a frame frame by the read method of mVideoSource after mVideoSource decoding, be put in mVideoBuffer, render (mVideoBuffer) method finally by mVideoRenderer is sent to display module video data and shows.
MAudioSource also can think the encapsulation of an audio decoder, and play for mAudioPlayer for generation of video image, the data source of mAudioPlayer is provided by mAudioTrack.
It should be noted that, for embodiment of the method, in order to simple description, therefore it is all expressed as a series of combination of actions, but those skilled in the art should know, the embodiment of the present invention is not by the restriction of described sequence of movement, because according to the embodiment of the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in specification all belongs to preferred embodiment, and involved action might not be that the embodiment of the present invention is necessary.
With reference to Fig. 5, show the structured flowchart of the record device embodiment of a kind of multimedia file of the present invention, specifically can comprise as lower module:
Record parameter setting module 501, during for receiving the recording request of multimedia file, arrange recording parameter, wherein, described recording parameter comprises data source, coded format, file output form, and described file output formatting is transport stream TS form;
Multi-medium data acquisition module 502, for gathering multi-medium data by described data source;
Multi-medium data coding module 503, for encoding to described multi-medium data according to described coded format;
First multi-medium data package module 504, for being packaged into the first multimedia file by the multi-medium data after coding according to described transport stream TS form;
Second multi-medium data package module 505, for when judging that described first multimedia file exceedes default file size threshold value, is packaged into the second multimedia file by the multi-medium data after coding according to described transport stream TS form.
In one preferred embodiment of the invention, described multi-medium data package module 504 can comprise following submodule:
Temporal information configuration submodule, in the filename of described multimedia file setup time information.
In a kind of preferred exemplary of the embodiment of the present invention, described temporal information can comprise encapsulation initial time, encapsulation deadline;
Described temporal information configuration submodule can comprise as lower unit:
Encapsulation initial time dispensing unit, for when starting to encapsulate multimedia file, in the filename of described multimedia file, is configured to current time encapsulate initial time;
Encapsulation deadline dispensing unit, for when completing encapsulation multimedia file, in the filename of described multimedia file, is configured to current time encapsulate the deadline.
In one preferred embodiment of the invention, this device can also comprise as lower module:
Configuration file generation module, for when all multimedia files have encapsulated, generating configuration file;
Wherein, described configuration file comprises the sub-information of file of file total information and each multimedia file;
The sub-information of described file sorts according to temporal information, comprises the duration information, at least one in routing information that calculate based on described temporal information;
At least one in total duration information that the duration information that described file total information comprises cumulative each multimedia file obtains, video name, video pictures size.
In one preferred embodiment of the invention, this device can also comprise as lower module:
Record Object Creation module, for creating multi-media recording object MediaRecorder;
Record Service Instance creation module, for by described multi-media recording object MediaRecorder Object Creation multi-media recording Service Instance StageFrightRecorder.
In one preferred embodiment of the invention, described recording parameter setting module 501 can comprise following submodule:
Object arranges submodule, for arranging recording parameter by described multi-media recording object MediaRecorder;
Wherein, in the Java layer of operating system, what described multi-media recording object MediaRecorder had a transport stream TS form arranges interface.
In one preferred embodiment of the invention, described data source can comprise camera and/or microphone, and described multi-medium data can comprise video data and/or voice data;
Described multi-medium data acquisition module 502 can comprise following submodule:
Video data acquiring submodule, for by preset camera source class CameraSource from camera collection video data;
And/or,
Audio data collecting submodule, for gathering voice data by preset audio-source class AudioSource from microphone.
In one preferred embodiment of the invention, described multi-medium data coding module 503 can comprise following submodule:
Encoder creates submodule, for creating encoder OMXCodec by described multi-media recording Service Instance StageFrightRecorder;
Encoder encodes submodule, for being encoded to described multi-medium data according to described coded format by described encoder OMXCodec.
In one preferred embodiment of the invention, described multi-medium data package module 504 can comprise following submodule:
Synthesizer arranges submodule, for the preset transport stream object MPEG2TSWriter that writes being arranged synthesizer MediaWriter by described multi-media recording Service Instance StageFrightRecorder;
Synthesizer encapsulation submodule, for being encapsulated as the first multimedia file of described transport stream TS form by described multi-medium data by described synthesizer MediaWriter.
With reference to Fig. 6, show the structured flowchart of the playing device embodiment of a kind of multimedia file of the present invention, this device can comprise playing controller 610, configuration file resolver 620 and player 630;
Described playing controller 610 can comprise as lower module:
Configuration file searches module 611, for searching formerly for the configuration file that the multimedia file of multiple transport stream TS form generates;
Transmit control module 612, broadcasts for calling player according to the sub-information of file of file total information and each multimedia file the multimedia file that 630 put described transport stream TS form;
Described configuration file resolver 620 can comprise as lower module:
Information reading submodule 621, for the sub-information of file of file reading total information and each multimedia file from described configuration file.
In specific implementation, the title of described multimedia file is configured with temporal information;
The sub-information of described file sorts according to temporal information, comprises the duration information, at least one in routing information that calculate based on described temporal information;
At least one in total duration information that the duration information that described file total information comprises cumulative each multimedia file obtains, video name, video pictures size.
In one preferred embodiment of the invention, described transmit control module 612 can comprise following submodule:
Initialization submodule, carries out initialization operation at least part of file total information is sent to player 630;
First broadcast source arranges submodule, for when initialization operation completes, the routing information of first multimedia file is sent to player 630, plays from described routing information reading multimedia file to call player 630.
In a kind of example of the embodiment of the present invention, described initialization submodule can comprise as lower unit:
Progress bar generation unit, for total duration information is sent to player 630, to generate playing progress bar;
And/or,
Video name display unit, shows for video name being sent to player 630;
And/or,
Player adjustment unit, for by video pictures size to player 630, to adjust the size of player 630.
In another preferred embodiment of the invention, described transmit control module 612 can comprise following submodule:
Second broadcast source arranges submodule, for receive player 630 send multimedia file finish message time, the routing information of next multimedia file is sent to player 630, plays from described routing information reading multimedia file to call player 630.
In another preferred embodiment of the invention, described transmit control module 612 can comprise following submodule:
Positioning action message sink submodule, for receiving the positioning action message that player 630 sends; Described positioning action message comprises some positioning time being arranged in total duration information;
File ownership searches submodule, for searching the multimedia file belonging to point described positioning time;
Time offset calculating sub module, for calculating the time offset of the duration information of point described positioning time in affiliated multimedia file;
3rd broadcast source arranges submodule, for the routing information of described multimedia file and time offset are sent to player 630, read multimedia file, plays from described time offset to call player 630 from described routing information.
In one preferred embodiment of the invention, described player 630 can comprise as lower module:
Multimedia file reading submodule, for reading multimedia file by routing information;
File separation module, for being separated multimedia file by transmission flow demultiplexing device MPEG2TSExtractor, obtains video data stream and audio data stream;
Video data frame extraction module, for extracting video data frame by track of video mVideoTrack from described video data stream;
Audio data frame read module, for extracting audio data frame by audio track mAudioTrack from described audio data stream;
Video decoding module, for decoding to described video data frame by Video Decoder mVideoSource;
Audio decoder module, for decoding to described audio data frame by audio decoder mAudioSource;
Video Output Modules, for exporting decoded video data frame by video renderer mVideoRenderer;
Audio playing module, for playing the audio data frame after mAudioPlayer broadcast decoder by audio frequency.
For device embodiment, due to itself and embodiment of the method basic simlarity, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
Each embodiment in this specification all adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar part mutually see.
Those skilled in the art should understand, the embodiment of the embodiment of the present invention can be provided as method, device or computer program.Therefore, the embodiment of the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the embodiment of the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) of computer usable program code.
The embodiment of the present invention describes with reference to according to the flow chart of the method for the embodiment of the present invention, terminal equipment (system) and computer program and/or block diagram.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can being provided to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing terminal equipment to produce a machine, making the instruction performed by the processor of computer or other programmable data processing terminal equipment produce device for realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing terminal equipment, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be loaded on computer or other programmable data processing terminal equipment, make to perform sequence of operations step to produce computer implemented process on computer or other programmable terminal equipment, thus the instruction performed on computer or other programmable terminal equipment is provided for the step realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
Although described the preferred embodiment of the embodiment of the present invention, those skilled in the art once obtain the basic creative concept of cicada, then can make other change and amendment to these embodiments.So claims are intended to be interpreted as comprising preferred embodiment and falling into all changes and the amendment of embodiment of the present invention scope.
Finally, also it should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operating space, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or terminal equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or terminal equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the terminal equipment comprising described key element and also there is other identical element.
Above to the method for recording of a kind of multimedia file provided by the present invention and a kind of record device of multimedia file, be described in detail, apply specific case herein to set forth principle of the present invention and execution mode, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (10)

1. a method for recording for multimedia file, is characterized in that, comprising:
When receiving the recording request of multimedia file, arrange recording parameter, wherein, described recording parameter comprises data source, coded format, file output form, and described file output formatting is transport stream TS form;
Multi-medium data is gathered by described data source;
According to described coded format, described multi-medium data is encoded;
Multi-medium data after coding is packaged into the first multimedia file according to described transport stream TS form;
When described first multimedia file exceedes default file size threshold value, the multi-medium data after coding is packaged into the second multimedia file according to described transport stream TS form.
2. method according to claim 1, is characterized in that, describedly the multi-medium data step that is packaged into the first multimedia file according to described transport stream TS form after coding is comprised:
In the filename of described multimedia file setup time information.
3. method according to claim 2, is characterized in that, described temporal information comprises encapsulation initial time, encapsulation deadline;
The described step to described multimedia file information setup time comprises:
When starting to encapsulate multimedia file, in the filename of described multimedia file, current time is configured to encapsulate initial time;
When completing encapsulation multimedia file, in the filename of described multimedia file, current time is configured to encapsulate the deadline.
4. the method according to claim 1 or 2 or 3, is characterized in that, also comprise:
When all multimedia files have encapsulated, generating configuration file;
Wherein, described configuration file comprises the sub-information of file of file total information and each multimedia file;
The sub-information of described file sorts according to temporal information, comprises the duration information, at least one in routing information that calculate based on described temporal information;
At least one in total duration information that the duration information that described file total information comprises cumulative each multimedia file obtains, video name, video pictures size.
5. the method according to claim 1 or 2 or 3, is characterized in that, described arrange record parameter step before, described method also comprises:
Create multi-media recording object MediaRecorder;
By described multi-media recording object MediaRecorder Object Creation multi-media recording Service Instance StageFrightRecorder.
6. method according to claim 5, is characterized in that, the described step recording parameter that arranges comprises:
By described multi-media recording object MediaRecorder, recording parameter is set;
Wherein, in the Java layer of operating system, what described multi-media recording object MediaRecorder had a transport stream TS form arranges interface.
7. method according to claim 5, is characterized in that, described data source comprises camera and/or microphone, and described multi-medium data comprises video data and/or voice data;
The described step by described data source collection multi-medium data comprises:
By preset camera source class CameraSource from camera collection video data;
And/or,
Voice data is gathered from microphone by preset audio-source class AudioSource.
8. method according to claim 5, is characterized in that, describedly comprises the step that described multi-medium data is encoded according to described coded format:
Encoder OMXCodec is created by described multi-media recording Service Instance StageFrightRecorder;
Described multi-medium data is encoded according to described coded format by described encoder OMXCodec.
9. method according to claim 5, is characterized in that, describedly the multi-medium data step that is packaged into the first multimedia file according to described transport stream TS form after coding is comprised:
By described multi-media recording Service Instance StageFrightRecorder, the preset transport stream object MPEG2TSWriter that writes is arranged synthesizer MediaWriter;
By described synthesizer MediaWriter, described multi-medium data is encapsulated as the first multimedia file of described transport stream TS form.
10. a record device for multimedia file, is characterized in that, comprising:
Record parameter setting module, during for receiving the recording request of multimedia file, arrange recording parameter, wherein, described recording parameter comprises data source, coded format, file output form, and described file output formatting is transport stream TS form;
Multi-medium data acquisition module, for gathering multi-medium data by described data source;
Multi-medium data coding module, for encoding to described multi-medium data according to described coded format;
First multi-medium data package module, for being packaged into the first multimedia file by the multi-medium data after coding according to described transport stream TS form;
Second multi-medium data package module, for when judging that described first multimedia file exceedes default file size threshold value, is packaged into the second multimedia file by the multi-medium data after coding according to described transport stream TS form.
CN201510449606.8A 2015-07-27 2015-07-27 A kind of method for recording and device of multimedia file Active CN105049920B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510449606.8A CN105049920B (en) 2015-07-27 2015-07-27 A kind of method for recording and device of multimedia file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510449606.8A CN105049920B (en) 2015-07-27 2015-07-27 A kind of method for recording and device of multimedia file

Publications (2)

Publication Number Publication Date
CN105049920A true CN105049920A (en) 2015-11-11
CN105049920B CN105049920B (en) 2018-08-10

Family

ID=54456043

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510449606.8A Active CN105049920B (en) 2015-07-27 2015-07-27 A kind of method for recording and device of multimedia file

Country Status (1)

Country Link
CN (1) CN105049920B (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105872745A (en) * 2015-12-21 2016-08-17 乐视致新电子科技(天津)有限公司 Extension method and device of input data sources
CN106302996A (en) * 2016-07-29 2017-01-04 腾讯科技(深圳)有限公司 Message display method and device
CN106341636A (en) * 2016-09-29 2017-01-18 珠海全志科技股份有限公司 Android system-based continuous recording system and method
CN106791536A (en) * 2016-11-30 2017-05-31 青岛海信移动通信技术股份有限公司 The recording player method and terminal of multimedia file
CN106899880A (en) * 2015-12-19 2017-06-27 联芯科技有限公司 The method and system that multi-medium data segmentation is preserved
CN108076377A (en) * 2017-12-26 2018-05-25 浙江大华技术股份有限公司 A kind of storage of video, playback method, device, electronic equipment and storage medium
CN108153873A (en) * 2017-12-22 2018-06-12 深圳Tcl新技术有限公司 Compression method, television set and the readable storage medium storing program for executing of recorded file
WO2019023967A1 (en) * 2017-08-02 2019-02-07 深圳传音通讯有限公司 Video recording method and video recording device based on intelligent terminal
CN110996029A (en) * 2019-12-19 2020-04-10 山东广电信通网络运营有限公司 Dark visit video recording method and device, terminal and storage medium
CN111294321A (en) * 2018-12-07 2020-06-16 北京字节跳动网络技术有限公司 Information processing method and device
CN112969043A (en) * 2021-04-28 2021-06-15 北京优幕科技有限责任公司 Media file generation and playing method and equipment
WO2021213181A1 (en) * 2020-04-24 2021-10-28 华为技术有限公司 Video processing method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101136683A (en) * 2007-09-28 2008-03-05 上海广电通讯网络有限公司 Civil defence warning information and signal satellite distribution system
CN101951387A (en) * 2010-09-30 2011-01-19 海信集团有限公司 Method and device for transmitting stream media
CN102523411A (en) * 2011-12-31 2012-06-27 青岛海信宽带多媒体技术有限公司 Code stream recording method
EP2528347A1 (en) * 2011-05-26 2012-11-28 Vodafone IP Licensing limited Media sharing
CN102821308A (en) * 2012-06-04 2012-12-12 西安交通大学 Multi-scene streaming media courseware recording and direct-broadcasting method
WO2014145624A1 (en) * 2013-03-15 2014-09-18 General Instrument Corporation Dlna/dtcp stream conversion for secure media playback
CN104581205A (en) * 2015-01-14 2015-04-29 深圳市同洲电子股份有限公司 Sending end, receiving end and video transmission method and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101136683A (en) * 2007-09-28 2008-03-05 上海广电通讯网络有限公司 Civil defence warning information and signal satellite distribution system
CN101951387A (en) * 2010-09-30 2011-01-19 海信集团有限公司 Method and device for transmitting stream media
EP2528347A1 (en) * 2011-05-26 2012-11-28 Vodafone IP Licensing limited Media sharing
CN102523411A (en) * 2011-12-31 2012-06-27 青岛海信宽带多媒体技术有限公司 Code stream recording method
CN102821308A (en) * 2012-06-04 2012-12-12 西安交通大学 Multi-scene streaming media courseware recording and direct-broadcasting method
WO2014145624A1 (en) * 2013-03-15 2014-09-18 General Instrument Corporation Dlna/dtcp stream conversion for secure media playback
CN104581205A (en) * 2015-01-14 2015-04-29 深圳市同洲电子股份有限公司 Sending end, receiving end and video transmission method and system

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
李叶: "基于TS流的数字电视播出系统的研究与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *
温伟: "Android多媒体框架下Stagefright的功能扩展", 《太赫兹科学与电子信息》 *
高凯: "《深入浅出Android软件开发教程》", 31 May 2015, 北京:清华大学出版社 *

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106899880A (en) * 2015-12-19 2017-06-27 联芯科技有限公司 The method and system that multi-medium data segmentation is preserved
CN106899880B (en) * 2015-12-19 2020-02-18 联芯科技有限公司 Method and system for storing multimedia data in segments
CN105872745A (en) * 2015-12-21 2016-08-17 乐视致新电子科技(天津)有限公司 Extension method and device of input data sources
CN106302996B (en) * 2016-07-29 2020-01-31 腾讯科技(深圳)有限公司 Message display method and device
CN106302996A (en) * 2016-07-29 2017-01-04 腾讯科技(深圳)有限公司 Message display method and device
CN106341636A (en) * 2016-09-29 2017-01-18 珠海全志科技股份有限公司 Android system-based continuous recording system and method
CN106791536A (en) * 2016-11-30 2017-05-31 青岛海信移动通信技术股份有限公司 The recording player method and terminal of multimedia file
WO2019023967A1 (en) * 2017-08-02 2019-02-07 深圳传音通讯有限公司 Video recording method and video recording device based on intelligent terminal
CN108153873A (en) * 2017-12-22 2018-06-12 深圳Tcl新技术有限公司 Compression method, television set and the readable storage medium storing program for executing of recorded file
CN108076377A (en) * 2017-12-26 2018-05-25 浙江大华技术股份有限公司 A kind of storage of video, playback method, device, electronic equipment and storage medium
CN111294321B (en) * 2018-12-07 2022-07-26 北京字节跳动网络技术有限公司 Information processing method and device
CN111294321A (en) * 2018-12-07 2020-06-16 北京字节跳动网络技术有限公司 Information processing method and device
CN110996029A (en) * 2019-12-19 2020-04-10 山东广电信通网络运营有限公司 Dark visit video recording method and device, terminal and storage medium
WO2021213181A1 (en) * 2020-04-24 2021-10-28 华为技术有限公司 Video processing method and device
CN113766160A (en) * 2020-04-24 2021-12-07 华为技术有限公司 Video processing method and device
CN112969043B (en) * 2021-04-28 2021-08-24 北京优幕科技有限责任公司 Media file generation and playing method and equipment
CN112969043A (en) * 2021-04-28 2021-06-15 北京优幕科技有限责任公司 Media file generation and playing method and equipment

Also Published As

Publication number Publication date
CN105049920B (en) 2018-08-10

Similar Documents

Publication Publication Date Title
CN105049920A (en) Method and device for recording multimedia files
TWI679885B (en) Method and apparatus for generating media data
RU2689140C1 (en) Method, device and computer program for encapsulating segmented synchronized multimedia data
JP6643430B2 (en) Playback apparatus, playback method, and program
CN105049904A (en) Play method and play device of multi-media files
TWI692974B (en) Storage of virtual reality video in media files
TW201838419A (en) Signalling of video content including sub-picture bitstreams for video coding
CN103069799B (en) Signaling is used for the data of multiplex video component
JP6461141B2 (en) Method, apparatus and computer program for encapsulating partitioned timed media data with general signaling for encoding dependencies
CN105744382B (en) Method and apparatus for emitting encoded video data
CN105744295B (en) The sequence data collection for being used for crossfire transmitting video data is provided
TWI489843B (en) Arranging sub-track fragments for streaming video data
KR102254414B1 (en) Method, device, and computer program for encapsulating and parsing timed media data
TWI699115B (en) Improved restricted scheme design for video
TWI659319B (en) Method and device for sample grouping signaling in file formats
KR20200051718A (en) Method, device, and computer program for generating timed media data
WO2020093931A1 (en) Subtitle data processing method, apparatus and device, and computer storage medium
US20200388304A1 (en) Synchronously playing method and device of media file, and storage medium
CN110545491A (en) Network playing method, device and storage medium of media file
US8688737B2 (en) Method and apparatus for generating and reproducing media object-based metadata
US20210409818A1 (en) Media access function for scene descriptions
CN110999309A (en) Generation device, reproduction device, generation method, reproduction method, control program, and recording medium
TW201909647A (en) Enhanced area orientation encapsulation and visual independent high-efficiency video writing media data file
TW202234896A (en) Method and apparatus for generating media data
TW201818727A (en) Systems and methods for signaling missing or corrupted video data

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant