CN105049904B - A kind of playing method and device of multimedia file - Google Patents
A kind of playing method and device of multimedia file Download PDFInfo
- Publication number
- CN105049904B CN105049904B CN201510449528.1A CN201510449528A CN105049904B CN 105049904 B CN105049904 B CN 105049904B CN 201510449528 A CN201510449528 A CN 201510449528A CN 105049904 B CN105049904 B CN 105049904B
- Authority
- CN
- China
- Prior art keywords
- file
- information
- multimedia file
- player
- multimedia
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
- H04N21/4408—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving video stream encryption, e.g. re-encrypting a decrypted video stream for redistribution in a home network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/45—Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
- H04N21/462—Content or additional data management, e.g. creating a master electronic program guide from data received from the Internet and a Head-end, controlling the complexity of a video stream by scaling the resolution or bit-rate based on the client capabilities
- H04N21/4621—Controlling the complexity of the content stream or additional data, e.g. lowering the resolution or bit-rate of the video stream for a mobile client with a small screen
Abstract
The embodiment of the invention provides a kind of playing method and devices of multimedia file, this method comprises: searching the configuration file formerly generated for the multimedia file of multiple transport stream TS formats;The file sub-information of file total information and each multimedia file is read from the configuration file;The multimedia file of transport stream TS format described in player plays is called according to file total information and the file sub-information of each multimedia file.The embodiment of the present invention substantially increases the deblocking efficiency when playing, and avoids the Caton phenomenon in playing process.
Description
Technical field
The present invention relates to multimedia technical fields, more more particularly to the playback method and one kind of a kind of multimedia file
The playing device of media file.
Background technique
With the rapid development of mobile communication technology, mobile communication terminal is each in the work of people, study, daily exchange etc.
The utilization rate of aspect is also higher and higher, it may be said that mobile communication terminal is that people live indispensable a part.
Video recording is a common function of mobile communication terminal, since program (such as literature and art joint performance) records the process of video recording
It is very long, and the format of most of memory (SD card) is FAT32 at present, the limitation of single file maximum storage is 4G, therefore,
It is recorded it is generally necessary to be divided into multiple multimedia files.
Since the limitation of system generally requires the operation for stopping recording tool, then open again in multimedia file switching
Dynamic recording tool, carries out the recording of new multimedia file.
Current mobile communication terminal, the multimedia file much recorded all are MPEG-4 formats, MPEG-4 format
All data in file are incorporated into box, that is to say, that the file of MPEG-4 format is made of several box, and each box has
Box can be interpreted as a data object block by type and length.
The media information and data of the file of MPEG-4 format are to separate storage, that is, want to have to solve before obtaining data
It is precipitated all positions of each frame data, the file of MPEG-4 format stores being placed in this box of stbl of this frame information,
And true data are placed in this box of mdat.
At the end of document recording, need to generate a header information in the file of MPEG-4 format, in case player is broadcast
It puts used in file.
As it can be seen that the file structure of MPEG-4 format is complicated, so that deblocking of the multimedia file of MPEG-4 format in broadcasting
It when dress, needs to take a long time, time delay is very big, the phenomenon that be easy to causeing Caton in continuous play.
Summary of the invention
In view of the above problems, the embodiment of the present invention is proposed in order to provide a kind of a kind of multimedia text for overcoming the above problem
The playback method of part and a kind of corresponding playing device of multimedia file.
To solve the above-mentioned problems, the embodiment of the invention discloses a kind of playback methods of multimedia file, comprising:
Search the configuration file formerly generated for the multimedia file of multiple transport stream TS formats;
The file sub-information of file total information and each multimedia file is read from the configuration file;
Transport stream TS described in player plays is called according to file total information and the file sub-information of each multimedia file
The multimedia file of format.
Preferably, the title of the multimedia file is configured with temporal information;
The file sub-information sorts according to temporal information, including calculated based on the temporal information duration information, road
At least one of diameter information;
The file total information include add up each multimedia file duration information obtain total duration information, video name
At least one of title, video pictures size.
Preferably, described to call player plays institute according to file total information and the file sub-information of each multimedia file
The step of stating the multimedia file of transport stream TS format include:
At least partly file total information it will be sent to player and initialize;
When initialization operation is completed, the routing information of first multimedia file is sent to player, is broadcast with calling
Device is put to play out from routing information reading multimedia file.
Preferably, at least partly file total information is sent to what player initialized by the playing controller
Step includes:
Total duration information is sent to player, to generate playing progress bar;
And/or
Video name is sent to player to be shown;
And/or
By in video pictures size to player, to adjust the size of player.
Preferably, described to call player plays institute according to file total information and the file sub-information of each multimedia file
The step of stating the multimedia file of transport stream TS format include:
When the message that the multimedia file for receiving player transmission finishes, by the road of next multimedia file
Diameter information is sent to player, is played out with calling player to read multimedia file from the routing information.
Preferably, described to call player plays institute according to file total information and the file sub-information of each multimedia file
The step of stating the multimedia file of transport stream TS format include:
Receive the positioning operation message that player is sent;It include being located in total duration information in the positioning operation message
Positioning time point;
Search multimedia file belonging to the positioning time point;
Calculate the time offset of duration information of the positioning time point in affiliated multimedia file;
The routing information of the multimedia file and time offset are sent to player, to call player from described
Routing information reads multimedia file, plays since the time offset.
Preferably, described to call player plays institute according to file total information and the file sub-information of each multimedia file
The step of stating the multimedia file of transport stream TS format include:
Passage path information reads multimedia file;
Multimedia file is separated by transmission flow demultiplexing device MPEG2TSExtractor, obtains video data stream
And voice data stream;
Video data frame is extracted from the video data stream by track of video mVideoTrack;
Audio data frame is extracted from the voice data stream by audio track mAudioTrack;
The video data frame is decoded by Video Decoder mVideoSource;
The audio data frame is decoded by audio decoder mAudioSource;
It is exported by video renderer mVideoRenderer by decoded video data frame;
Audio data frame after playing mAudioPlayer broadcast decoder by audio.
The embodiment of the invention also discloses a kind of playing device of multimedia file, described device include playing controller,
Configuration file resolver and player:
Wherein, the playing controller includes:
Configuration file searching module is formerly matched for what the multimedia file of multiple transport stream TS formats generated for searching
Set file;
Playing control module, for calling player according to the file sub-information of file total information and each multimedia file
Play the multimedia file of the transport stream TS format;
The configuration file resolver includes:
Information reading submodule, for reading the text of file total information and each multimedia file from the configuration file
Part sub-information.
Preferably, the title of the multimedia file is configured with temporal information;
The file sub-information sorts according to temporal information, including calculated based on the temporal information duration information, road
At least one of diameter information;
The file total information include add up each multimedia file duration information obtain total duration information, video name
At least one of title, video pictures size.
Preferably, the playing control module includes:
Initialization submodule, for that at least partly file total information will be sent to player and initialize;
Submodule is arranged in first broadcast source, is used for when initialization operation is completed, by the path of first multimedia file
Information is sent to player, is played out with calling player to read multimedia file from the routing information.
Preferably, the initialization submodule includes:
Progress bar generation unit, for total duration information to be sent to player, to generate playing progress bar;
And/or
Video name display unit is shown for video name to be sent to player;
And/or
Player adjustment unit, for by video pictures size to player, to adjust the size of player 630.
Preferably, the playing control module includes:
Submodule is arranged in second broadcast source, the message for finishing in the multimedia file for receiving player transmission
When, the routing information of next multimedia file is sent to player, to call player more from routing information reading
Media file plays out.
Preferably, the playing control module includes:
Positioning operation message sink submodule, for receiving the positioning operation message for playing and sending;The positioning operation disappears
It include the positioning time point in total duration information in breath;
File ownership searches submodule, for searching multimedia file belonging to the positioning time point;
Time offset computational submodule, for calculating duration of the positioning time point in affiliated multimedia file
The time offset of information;
Submodule is arranged in third broadcast source, for the routing information of the multimedia file and time offset to be sent to
Player, to call player to read multimedia file from the routing information, be played since the time offset.
Preferably, the player includes:
Multimedia file reading submodule reads multimedia file for passage path information;
File separation module, for being divided by transmission flow demultiplexing device MPEG2TSExtractor multimedia file
From acquisition video data stream and voice data stream;
Video data frame extraction module, for being extracted from the video data stream by track of video mVideoTrack
Video data frame;
Audio data frame read module, for being extracted from the voice data stream by audio track mAudioTrack
Audio data frame;
Video decoding module, for being decoded by Video Decoder mVideoSource to the video data frame;
Audio decoder module, for being decoded by audio decoder mAudioSource to the audio data frame;
Video Output Modules, for being exported by video renderer mVideoRenderer by decoded video data
Frame;
Audio playing module, for passing through the audio data frame after audio broadcasting mAudioPlayer broadcast decoder.
The embodiment of the present invention includes following advantages:
The embodiment of the present invention is believed by reading file of file total information and each multimedia file in configuration file
Breath calls the multimedia file of the multiple transport stream TS formats of player plays, since transport stream TS format is simple, without complexity
Decapsulation operation, substantially increases the deblocking efficiency when playing, avoids the Caton phenomenon in playing process.
Detailed description of the invention
Fig. 1 is a kind of step flow chart of the method for recording embodiment 1 of multimedia file of the invention;
Fig. 2 is a kind of step flow chart of the method for recording embodiment 2 of multimedia file of the invention;
Fig. 3 is a kind of step flow chart of the playback method embodiment 1 of multimedia file of the invention;
Fig. 4 is a kind of step flow chart of the playback method embodiment 2 of multimedia file of the invention;
Fig. 5 is a kind of structural block diagram of the record device embodiment of multimedia file of the invention
Fig. 6 is a kind of structural block diagram of the playing device embodiment of multimedia file of the invention.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, with reference to the accompanying drawing and specific real
Applying mode, the present invention is described in further detail.
Referring to Fig.1, a kind of step flow chart of the method for recording embodiment 1 of multimedia file of the invention is shown, is had
Body may include steps of:
Step 101, when receiving the recording request of multimedia file, parameter is recorded in setting;
It should be noted that the embodiment of the present invention can be applied to the mobile communication equipment with camera, for example, hand
Machine, tablet computer, intelligent wearable device (such as smartwatch).
Certainly, the embodiment of the present invention can also be applied to other terminal devices, such as smart television, intelligent camera,
The embodiments of the present invention are not limited thereto.
These mobile communication equipments can support WindowsPhone, Android (Android), IOS, Windows etc. mostly
Operating system can usually run the application of recorded video, such as camera application, realize recording function.
In the concrete realization, the recording request of multimedia file can refer to what user was specified by camera application click
The instruction record a video that control (such as video recording control) mode issues.
Make when receiving recording request, then recording parameter can be set.Wherein, recording parameter may include data source
(DataSource), coded format, file output format;
Furthermore, file output format is set as transport stream TS format.
Several concepts that transport stream TS format is related to are introduced below:
ES (Elementary Stream): basic flow, the continuous bit stream of the audio not being segmented, video or other information.
PES (Packet Elemental Stream): basic flow ES is divided into section, and is packaged plus corresponding header file
The elementary stream of formation.
TS (Transport Stream): transport stream, by one with common time base or independent time reference or
Single data flow made of multiple PES combinations (compound).
Certainly, above-mentioned recording parameter is intended only as example, in implementing the embodiments of the present invention, can set according to the actual situation
It sets other and records parameter, for example, resolution ratio, video frame rate, file output recording, etc., the embodiment of the present invention is not subject to this
Limitation.In addition, those skilled in the art can also be joined using other recordings according to actual needs other than above-mentioned recording parameter
Number, the embodiment of the present invention are also without restriction to this.
Step 102, multi-medium data is acquired by the data source;
When starting recorded video, original multi-medium data can be acquired by data source, for example, video data, sound
Frequency evidence.
Step 103, the multi-medium data is encoded according to the coded format;
Multi-medium data is encoded, is referred to by specific compress technique, such as H.261, H.263, by some video
The file of format is converted into the mode of another video format file.
Step 104, the multi-medium data after coding is encapsulated according to the transport stream TS format to the first multimedia text
Part.
One of the characteristics of transport stream TS format is to require all to be independently to decode since any segment of video flowing
's.
Structurally, a series of transport stream packets that regular lengths are 188Bytes be may include in each transfer stream file
(referred to as TS packet), the TS packet expanded can also include timestamp.
Each TS packet is made of the packet header of 4Bytes long and the load of 184Bytes thereafter, and the load of 184Bytes is to have
With information space, for transmitting encoded video/audio data flow.
In one preferred embodiment of the invention, step 104 may include following sub-step:
Sub-step S11, the setup time information in the filename of the multimedia file.
The multimedia file of transport stream TS format is stream data, without special file header, be not otherwise able to satisfy from appoint
When time starts decoded to require.
But this also brings another question, be exactly each segmentation multimedia file keep video length it is bad
It calculates.
Therefore, in embodiments of the present invention, the setup time information in filename, to facilitate the multimedia file of segmentation
Video length calculates.
Specifically, i.e., include temporal information in the composition of the filename of multimedia file.
In practical applications, temporal information may include encapsulate initial time (start encapsulate multimedia file when
Between), encapsulation the deadline (i.e. complete encapsulation multimedia file time);
When starting to encapsulate multimedia file, in the filename of multimedia file, current time is configured to encapsulate
Begin the time;
When completing to encapsulate multimedia file, in the filename of multimedia file, current time is configured to encapsulate
At the time.
For example, some multimedia file starts to encapsulate in 01:00 on January 1st, 2015, then it at this time can be to multimedia text
Part configuration file is entitled " videoclip1_201501010100.ts ", if the multimedia file is in 01:10 on January 1st, 2015
Start to encapsulate, then " videoclip1_201501010100_ can be revised as to the filename of multimedia file
201501010110.ts”。
Step 105, when first multimedia file is more than preset file size threshold value, by more matchmakers after coding
Volume data is encapsulated according to the transport stream TS format to the second multimedia file.
In embodiments of the present invention, multimedia file can be divided according to file size threshold value, when document size reaches text
When the upper limit of part size threshold value, the application of real-time informing recorded video, carries out the encapsulation of next multimedia file, until record
System is completed.
That is a complete video, can record into multiple multimedia files.
The multi-medium data that the embodiment of the present invention acquires data source after coding, is packaged into multiple transport stream TS formats
Multimedia file, without complicated encapsulation operation, greatly reduce time delay since transport stream TS format is simple, greatly improve
Packaging efficiency when recording, avoids the Caton phenomenon in recording process, and the frame losing problem in switching is effectively relieved.
In one preferred embodiment of the invention, this method can also include the following steps:
Step 106, when all multimedia files, which encapsulate, to be completed, configuration file is generated;
In embodiments of the present invention, a complete video can record into multiple multimedia files, the complete video
It can be defined by the operation of user, e.g., receive recording request in the application of recorded video and terminate the request recorded
Between the multimedia file that encapsulates be considered as a complete video.
All multimedia files (including first multimedia file, the second multimedia file) of one complete video are completed
When encapsulation, corresponding configuration file is generated, can be XML (Extensible Markup Language, extensible markup language
Speech) etc. formats, for controlling the broadcasting of multiple multimedia files.
It wherein, include the file sub-information of file total information and each multimedia file in the configuration file;
The file sub-information sorts according to temporal information, including calculated based on the temporal information duration information, road
At least one of diameter information;
The file total information include add up each multimedia file duration information obtain total duration information, video name
At least one of title, video pictures size.
The example of configuration file can be such that
Wherein, BaseInfos is file total information, i.e., the video information of entire video.
Name in BaseInfos is video name, i.e., the title of entire video can operate when recording
It is named by user at interface;
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, the height that High is video pictures, is provided commonly for table
Levy video pictures size.
Segment is file sub-information, 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.
Referring to Fig. 2, a kind of step flow chart of the method for recording embodiment 2 of multimedia file of the invention is shown, it should
Embodiment of the method can be applied in android system, and android system is a kind of freedom based on Linux and open-source generation
Code operating system, can substantially be divided into four layers, be respectively from high level to low layer application layer (Applications),
Application framework layer (Application Framework), system Runtime Library layer (Libraries) and Linux kernel central layer
(Linux Kernel)。
This method embodiment can specifically include following steps:
Step 201, multi-media recording object MediaRecorder is created;
Android system be linux system on increase Java Virtual Machine Dalvik, and on Dalvik virtual machine
The Application Framework of a JAVA is built, application program is the Application based on JAVA
It is run on Framework, therefore, Application Framework can be substantially divided into Java layers and Native
Layer.
In embodiments of the present invention, the application of recorded video can be in MediaRecorder pairs of one Java layers of creation
As realizing recording and video recording.
Step 202, by the multi-media recording object MediaRecorder Object Creation multi-media recording Service Instance
StageFrightRecorder;
MediaRecorder object is to record service in fact by the recording service module MPS creation of application framework layer
Example --- StageFrightRecorder controls the recording of multimedia file.
Wherein, StagefrightRecorder is the entity object for recording operation of MPS creation.
Interprocess communication is realized by AIDL interface between the application and MPS of recorded video, for camera application and development
Convenient, android system provides packaged help class.
It is realized such as the application of recorded video by MediaRecorder object and MediaRecorderClient and is handed over MPS
Stream.
MediaRecorder object is to represent MPS inside the process space for the application for operating in recorded video,
MediaRecorderClient operates in the application that recorded video is represented inside the multimedia server process space.
Step 203, it is arranged by the multi-media recording object MediaRecorder and records parameter;
Recording parameter may include data source, coded format, file output format, and this document output format is set as transmitting
Flow TS format;
In the embodiment of the present invention, in order to realize transport stream TS format multimedia file recording, in operating system
Java layers are extended.
Specifically, multi-media recording object MediaRecorder has transport stream TS in the Java layer of operating system
The setting interface of format, multi-media recording object MediaRecorder can be set transport stream TS format by the setting interface
It is set to output format.
Step 204, video data is acquired from camera by preset camera source class CameraSource;
In embodiments of the present invention, data source includes camera, and multi-medium data includes video data, then can pass through
CameraSource acquires video data, such as yuv data from camera.
Step 205, audio data is acquired from microphone by preset audio-source class AudioSource.
In embodiments of the present invention, data source includes microphone, and multi-medium data includes audio data, then can pass through
AudioSource acquires audio data, such as PCM data from microphone.
Step 206, encoder is created by the multi-media recording Service Instance StageFrightRecorder
OMXCodec;
Step 207, the multi-medium data is encoded according to the coded format by the encoder OMXCodec;
The multi-medium data transmission process of recording is message-driven, and the message that data source generates multi-medium data is injected
The message queue of OMXCodec.
OMXCodec detects that the message can call the read function of MediaSource to obtain video data, audio
Data are encoded according to the coded format of setting, compressed video data, the data that audio data is various coded formats.
Step 208, preset is write into transport stream pair by the multi-media recording Service Instance StageFrightRecorder
As synthesizer MediaWriter is arranged in MPEG2TSWriter;
Step 209, the multi-medium data is encapsulated as the transport stream TS format by the synthesizer MediaWriter
Multimedia file.
In the embodiment of the present invention, in order to realize transport stream TS format multimedia file recording, in operating system
Native layers are extended.
StagefringRecorder may determine that the file output format of setting is then created if it is transport stream TS format
MPEG2TSWriter object is built as MediaWriter, by the video data compressed, audio data according to transport stream TS lattice
Formula is written in multimedia file.
In addition to this, in order to meet transport stream TS format multimedia file storage, the embodiment of the present invention pair
The function of MPEG2TSWriter is extended, and realizes document size detection function, to reach the text of setting in write-in data
Control layer can be notified to do file handover operation when part size threshold value.
The output object of transport stream TS is network interface device in Android original design, and the embodiment of the present invention exists
Increase MPEG2TSWriter object in StageFrightRecorder frame, provides the transport stream TS of local file system
Write-in is supported, the generation of the multimedia file of transport stream TS format is realized.
Referring to Fig. 3, a kind of step flow chart of the playback method embodiment 1 of multimedia file of the invention is shown, is had
Body may include steps of:
Step 301, the configuration file formerly generated for the multimedia file of multiple transport stream TS formats is searched;
In embodiments of the present invention, multiple multimedia file belongs to the same complete video, and it is more to be formerly directed to this
A multimedia file generates configuration file.
In the concrete realization, multiple multimedia files are a complete video in interface display, when user passes through click
It, can be complete according to this by playing controller VideoController when equal operations trigger the broadcasting of multiple multimedia file
Video information (such as title) search formerly for multiple transport stream TS formats multimedia file generate configuration file.
Since configuration file is generally the formats such as XML, playing controller VideoController reads configuration text
After part, configuration file resolver VideoListParser can be given and parsed.
Step 302, the file sub-information of file total information and each multimedia file is read from the configuration file;
Document parser VideoListParser (can belong to Java API to connect by inheriting the XML parsing class of Java
Mouthful) and realize that the resolution logic of oneself is completed.
After document parser VideoListParser receives configuration file, configuration file can be parsed, be obtained
The file sub-information of file total information and each multimedia file in configuration file.
Furthermore, document parser VideoListParser can first parse root node, obtain this complete view
The file total information of frequency, then parses each byte point again, obtains file sub-information, and by the file sub-information after parsing
It is put into a set and saves.
In the concrete realization, the title of multimedia file can be configured with temporal information;
File sub-information sorts according to temporal information, including calculated based on temporal information duration information, in routing information
At least one;
File total information include add up each multimedia file duration information obtain total duration information, video name,
At least one of video pictures size.
The data structure of file total information and the file sub-information of each multimedia file is with configuration file structure after parsing
It is similar, playing controller VideoController is returned to by document parser VideoListParser.
Step 303, it is called described in player plays according to file total information and the file sub-information of each multimedia file
The multimedia file of transport stream TS format.
In the concrete realization, playing controller VideoController calls player MyVideoView, will be corresponding
File total information and file sub-information are sent to player MyVideoView, and control player MyVideoView plays corresponding
Multimedia file.
Wherein, player MyVideoView can be realized with reference to android system play control VideoView, further
For, it is that multimedia player MediaPlayer and surface window SurfaceView is realized.
In one preferred embodiment of the invention, step 303 may include following sub-step:
Sub-step S21 at least partly file total information will be sent to player and initialize;
In embodiments of the present invention, playing controller VideoController can send at least partly file total information
To player MyVideoView, player MyVideoView can be initialized according to this document total information.
Such as, total duration information is sent to player MyVideoView by playing controller VideoController, to broadcast
It puts device MyVideoView and generates corresponding playing progress bar in its UI (User Interface, user interface), prompt entire view
The playback progress of frequency file;
And/or
For another example, video name is sent to player MyVideoView by playing controller VideoController, is played
Device MyVideoView can be shown in its UI;
And/or
Playing controller VideoController, to player MyVideoView, will be broadcast in video pictures size with adjustment
Put the size of device, the i.e. length and width of initialization initialization surface window SurfaceView.
The routing information of first multimedia file is sent to broadcasting when initialization operation is completed by sub-step S22
Device is played out with calling player to read multimedia file from the routing information.
After the completion of operation to be initiated, it is more than first that broadcast source, which can be set, in playing controller VideoController
Media file.
Specifically, playing controller VideoController can call the setDatasource of MediaPlayer
The routing information of first multimedia file is sent to player MyVideoView by method.
To the Surface, that is, the SurfaceView initialized for passing to MediaPlayer binding after video decoding
(Surface has corresponded to one piece of screen buffer, and the corresponding Surface of each window, SurfaceView is to be drawn in
On Surface), broadcasting starts.
In another preferred embodiment of the invention, step 303 may include following sub-step:
Sub-step S31, when the finishing event of multimedia file for receiving player transmission, by next more matchmakers
The routing information of body file is sent to player, is broadcast with calling player to read multimedia file from the routing information
It puts.
If current multimedia file finishes, player MyVideoView can send the event of finishing
Oncomplete notifies that playing controller VideoController, playing controller VideoController, will according to sequence
Positioned at next multimedia file of current multimedia file, broadcast source is set, carries out played in order.
In another preferred embodiment of the invention, step 303 may include following sub-step:
Sub-step S41 receives the positioning operation message that player is sent;It include when being located at total in the positioning operation message
Positioning time point in long message;
Sub-step S42 searches multimedia file belonging to the positioning time point;
Sub-step S43 calculates the time migration of duration information of the positioning time point in affiliated multimedia file
Amount;
The routing information of the multimedia file and time offset are sent to player by sub-step S44, are broadcast with calling
Device is put to play from routing information reading multimedia file, since the time offset.
In embodiments of the present invention, user can by drag player MyVideoView UI in playing progress bar,
Broadcast point is dragged into positioning time point delta, triggering positioning seek operation.
Player MyVideoView sends message informing playing controller when detecting positioning seek operation
VideoController。
Playing controller VideoController is according to the positioning time point delta that operates of positioning seek and each
Total duration information, i.e. confirmation positioning time point delta is the period for belonging to which multimedia file, by the multimedia file
It is responsive to corresponding position.
For example, when recording, recorded three multimedia files, the duration information of the first two multimedia file is 10 points
Clock, the duration information of third multimedia file are 5 minutes, i.e. total duration information is 25 minutes.
If it is the 21st minute that user, which positions the positioning time point that seek is operated, belong within the 21st minute the more matchmakers of third
Body file is the 1st minute in the time offset of third multimedia file.
The embodiment of the present invention is believed by reading file of file total information and each multimedia file in configuration file
Breath calls the multimedia file of the multiple transport stream TS formats of player plays, since transport stream TS format is simple, without complexity
Decapsulation operation, substantially increases the deblocking efficiency when playing, avoids the Caton phenomenon in playing process.
Referring to Fig. 4, a kind of step flow chart of the playback method embodiment 2 of multimedia file of the invention is shown, is had
Body may include steps of:
Step 401, passage path information reads multimedia file;
It, can be with if being provided with some multimedia file by setDataSource method is broadcast source DataSource
Opening timing device queue, and (post) AsyncPrepare event is issued, it can be according to the path of the multimedia file
Information reads multimedia file itself.
Step 402, multimedia file is separated by transmission flow demultiplexing device MPEG2TSExtractor, depending on
Frequency data stream and voice data stream;
Demultiplexer MediaExtractor is created according to DataSource, carries out A/V (Audio/Video, video data
Stream/voice data stream) separation.
Furthermore, sp<MediaExtractor>extractor=MediaExtractor: can be passed through:
Create(dataSource);To realize the creation of MediaExtractor.
MediaExtractor::Create (dataSource) can create different data according to different data contents
Reading object.
In embodiments of the present invention, in order to which the multimedia file to transport stream TS format carries out A/V separation, biography can be created
Defeated stream demultiplexer MPEG2TSExtractor is MediaExtractor.
Step 403, video data frame is extracted from the video data stream by track of video mVideoTrack;
Step 404, audio data frame is extracted from the voice data stream by audio track mAudioTrack;
When AsyncPrepare event is triggered, finishSetDataSource_l can be called to create
VideoTrack and AudioTrack.
FinishSetDataSource_l judges medium type, such as http, rtsp, or local text by URI prefix
Part etc..URI can pass through
MVideoTrack and mAudioTrack respectively represents a track of video and audio track, for extracting video frame
And audio frame.
MVideoTrack and mAudioTrack when onPrepareAsyncEvent event is triggered, by
MediaExtractor is separated.
Step 405, the video data frame is decoded by Video Decoder mVideoSource;
Step 406, the audio data frame is decoded by audio decoder mAudioSource;
Step 407, it is exported by video renderer mVideoRenderer by decoded video data frame;
Step 408, the audio data frame after mAudioPlayer broadcast decoder is played by audio.
MVideoTrack and mAudioTrack can by call initVideoDecoder () and
The two audio/video decoders of initAudioDecoder () Lai Shengcheng mVideoSource and mAudioSource.
MVideoSource may be considered the encapsulation of a Video Decoder, supply for generating video image
MVideoRenderer rendering, the data source of mVideoSource are then provided by mVideoTrack.
MVideoSource formats the video decoded, and the format that Android is used is RGB565, concurrently
Image Rendering is carried out to display module.
The data for reading a frame frame after mVideoSource decoding by the read method of mVideoSource, are put into
In mVideoBuffer, video data is sent finally by render (mVideoBuffer) method of mVideoRenderer
It is shown to display module.
MAudioSource is it is also assumed that be the encapsulation of an audio decoder, for generating video image confession
MAudioPlayer is played, and the data source of mAudioPlayer is provided by mAudioTrack.
It should be noted that for simple description, therefore, it is stated as a series of action groups for embodiment of the method
It closes, but those skilled in the art should understand that, embodiment of that present invention are not limited by the describe sequence of actions, because according to
According to the embodiment of the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art also should
Know, the embodiments described in the specification are all preferred embodiments, and the related movement not necessarily present invention is implemented
Necessary to example.
Referring to Fig. 5, a kind of structural block diagram of the record device embodiment of multimedia file of the invention is shown, specifically may be used
To include following module:
Parameter setting module 501 is recorded, when for receiving the recording request of multimedia file, parameter is recorded in setting,
In, the recording parameter includes data source, coded format, file output format, and the file output format is set as transport stream
TS format;
Multi-medium data acquisition module 502, for acquiring multi-medium data by the data source;
Multi-medium data coding module 503, for being encoded according to the coded format to the multi-medium data;
First multi-medium data package module 504, for the multi-medium data after encoding according to the transport stream TS
Format is encapsulated to the first multimedia file;
Second multi-medium data package module 505, for judging that first multimedia file is more than preset file
When size threshold value, the multi-medium data after coding is encapsulated according to the transport stream TS format to the second multimedia file.
In one preferred embodiment of the invention, the multi-medium data package module 504 may include following submodule
Block:
Temporal information configures submodule, for the setup time information in the filename of the multimedia file.
In a preferred example of an embodiment of the present invention, the temporal information may include encapsulation initial time, encapsulation
Deadline;
The temporal information configuration submodule may include such as lower unit:
Encapsulate initial time configuration unit, for start encapsulate multimedia file when, in the text of the multimedia file
In part name, encapsulation initial time is configured by current time;
Deadline configuration unit is encapsulated, is used for when completing to encapsulate multimedia file, in the text of the multimedia file
In part name, the encapsulation deadline is configured by current time.
In one preferred embodiment of the invention, which can also include following module:
Configuration file generation module, for generating configuration file when all multimedia files encapsulate completion;
It wherein, include the file sub-information of file total information and each multimedia file in the configuration file;
The file sub-information sorts according to temporal information, including calculated based on the temporal information duration information, road
At least one of diameter information;
The file total information include add up each multimedia file duration information obtain total duration information, video name
At least one of title, video pictures size.
In one preferred embodiment of the invention, which can also include following module:
Object Creation module is recorded, for creating multi-media recording object MediaRecorder;
Service Instance creation module is recorded, for more by the multi-media recording object MediaRecorder Object Creation
Media record Service Instance StageFrightRecorder.
In one preferred embodiment of the invention, the recording parameter setting module 501 may include following submodule:
Submodule is arranged in object, records parameter for being arranged by the multi-media recording object MediaRecorder;
Wherein, in the Java layer of operating system, the multi-media recording object MediaRecorder has transport stream TS
The setting interface of format.
In one preferred embodiment of the invention, the data source may include camera and/or microphone, described more
Media data may include video data and/or audio data;
The multi-medium data acquisition module 502 may include following submodule:
Video data acquiring submodule is regarded for being acquired by preset camera source class CameraSource from camera
Frequency evidence;
And/or
Audio data collecting submodule, for acquiring audio from microphone by preset audio-source class AudioSource
Data.
In one preferred embodiment of the invention, the multi-medium data coding module 503 may include following submodule
Block:
Encoder creates submodule, for being created by the multi-media recording Service Instance StageFrightRecorder
Encoder OMXCodec;
Encoder encoding submodule is used for by the encoder OMXCodec according to the coded format to the multimedia
Data are encoded.
In one preferred embodiment of the invention, the multi-medium data package module 504 may include following submodule
Block:
Submodule is arranged in synthesizer, and being used for will be pre- by the multi-media recording Service Instance StageFrightRecorder
That sets writes transmission flow object MPEG2TSWriter setting synthesizer MediaWriter;
Synthesizer encapsulates submodule, for the multi-medium data to be encapsulated as institute by the synthesizer MediaWriter
State the first multimedia file of transport stream TS format.
Referring to Fig. 6, a kind of structural block diagram of the playing device embodiment of multimedia file of the invention, the device are shown
It may include playing controller 610, configuration file resolver 620 and player 630;
Wherein, the playing controller 610 may include following module:
Configuration file searching module 611 is formerly generated for the multimedia file of multiple transport stream TS formats for searching
Configuration file;
Playing control module 612 is broadcast for the file sub-information calling according to file total information and each multimedia file
It puts device and broadcasts 630 multimedia files for putting the transport stream TS format;
The configuration file resolver 620 may include following module:
Information reading submodule 621, for reading file total information and each multimedia file from the configuration file
File sub-information.
In the concrete realization, the title of the multimedia file is configured with temporal information;
The file sub-information sorts according to temporal information, including calculated based on the temporal information duration information, road
At least one of diameter information;
The file total information include add up each multimedia file duration information obtain total duration information, video name
At least one of title, video pictures size.
In one preferred embodiment of the invention, the playing control module 612 may include following submodule:
Initialization submodule, for that at least partly file total information will be sent to player 630 and initialize;
Submodule is arranged in first broadcast source, is used for when initialization operation is completed, by the path of first multimedia file
Information is sent to player 630, is played out with calling player 630 to read multimedia file from the routing information.
In a kind of example of the embodiment of the present invention, the initialization submodule may include such as lower unit:
Progress bar generation unit, for total duration information to be sent to player 630, to generate playing progress bar;
And/or
Video name display unit is shown for video name to be 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, the playing control module 612 may include following submodule:
Submodule is arranged in second broadcast source, for what is finished in the multimedia file for receiving the transmission of player 630
When message, the routing information of next multimedia file is sent to player 630, to call player 630 from the path
Information reads multimedia file and plays out.
In another preferred embodiment of the invention, the playing control module 612 may include following submodule:
Positioning operation message sink submodule, for receiving the positioning operation message of the transmission of player 630;The positional operand
Make to include the positioning time point in total duration information in message;
File ownership searches submodule, for searching multimedia file belonging to the positioning time point;
Time offset computational submodule, for calculating duration of the positioning time point in affiliated multimedia file
The time offset of information;
Submodule is arranged in third broadcast source, for the routing information of the multimedia file and time offset to be sent to
Player 630, to call player 630 to read multimedia file from the routing information, be broadcast since the time offset
It puts.
In one preferred embodiment of the invention, the player 630 may include following module:
Multimedia file reading submodule reads multimedia file for passage path information;
File separation module, for being divided by transmission flow demultiplexing device MPEG2TSExtractor multimedia file
From acquisition video data stream and voice data stream;
Video data frame extraction module, for being extracted from the video data stream by track of video mVideoTrack
Video data frame;
Audio data frame read module, for being extracted from the voice data stream by audio track mAudioTrack
Audio data frame;
Video decoding module, for being decoded by Video Decoder mVideoSource to the video data frame;
Audio decoder module, for being decoded by audio decoder mAudioSource to the audio data frame;
Video Output Modules, for being exported by video renderer mVideoRenderer by decoded video data
Frame;
Audio playing module, for passing through the audio data frame after audio broadcasting mAudioPlayer broadcast decoder.
For device embodiment, since it is basically similar to the method embodiment, related so being described relatively simple
Place illustrates referring to the part of embodiment of the method.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with
The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can provide as method, apparatus or calculate
Machine program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and
The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can be used one or more wherein include computer can
With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code
The form of the computer program product of implementation.
The embodiment of the present invention be referring to according to the method for the embodiment of the present invention, terminal device (system) and computer program
The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions
In each flow and/or block and flowchart and/or the block diagram in process and/or box combination.It can provide these
Computer program instructions are set to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals
Standby processor is to generate a machine, so that being held by the processor of computer or other programmable data processing terminal devices
Capable instruction generates for realizing in one or more flows of the flowchart and/or one or more blocks of the block diagram
The device of specified function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing terminal devices
In computer-readable memory operate in a specific manner, so that instruction stored in the computer readable memory generates packet
The manufacture of command device is included, which realizes in one side of one or more flows of the flowchart and/or block diagram
The function of being specified in frame or multiple boxes.
These computer program instructions can also be loaded into computer or other programmable data processing terminal devices, so that
Series of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented processing, thus
The instruction executed on computer or other programmable terminal equipments is provided for realizing in one or more flows of the flowchart
And/or in one or more blocks of the block diagram specify function the step of.
Although the preferred embodiment of the embodiment of the present invention has been described, once a person skilled in the art knows bases
This creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted as
Including preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning
Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrap
Those elements are included, but also including other elements that are not explicitly listed, or further includes for this process, method, article
Or the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limited
Element, it is not excluded that there is also other identical elements in process, method, article or the terminal device for including the element.
The broadcasting of the playback method and a kind of multimedia file of a kind of multimedia file provided by the present invention is filled above
It sets, is described in detail, used herein a specific example illustrates the principle and implementation of the invention, above
The explanation of embodiment is merely used to help understand method and its core concept of the invention;Meanwhile for the general skill of this field
Art personnel, according to the thought of the present invention, there will be changes in the specific implementation manner and application range, in conclusion this
Description should not be construed as limiting the invention.
Claims (10)
1. a kind of playback method of multimedia file characterized by comprising
Search the configuration file formerly generated for the multimedia file of multiple transport stream TS formats;Wherein, the configuration file
For controlling the broadcasting of multiple multimedia files;
The file sub-information of file total information and each multimedia file is read from the configuration file;The file total information
The total duration information and video name that duration information including each multimedia file that adds up obtains;The file sub-information according to
Temporal information sequence in the title configuration of the multimedia file, including the duration information calculated based on the temporal information;
Transport stream TS format described in player plays is called according to file total information and the file sub-information of each multimedia file
Multimedia file.
2. the method according to claim 1, wherein
The file sub-information further includes the routing information calculated based on the temporal information;
The file total information further include add up each multimedia file duration information obtain video pictures size.
3. method according to claim 1 or 2, which is characterized in that described according to file total information and each multimedia text
The file sub-information of part calls the step of multimedia file of transport stream TS format described in player plays to include:
At least partly file total information it will be sent to player and initialize;
When initialization operation is completed, the routing information of first multimedia file is sent to player, to call player
Multimedia file is read from the routing information to play out.
4. according to the method described in claim 3, it is characterized in that, the playing controller will at least partly file total information be sent out
The step of the initializing is sent to player to include:
Total duration information is sent to player, to generate playing progress bar;
And/or
Video name is sent to player to be shown;
And/or
By in video pictures size to player, to adjust the size of player.
5. according to the method described in claim 2, it is characterized in that, described according to file total information and each multimedia file
File sub-information call player plays described in transport stream TS format multimedia file the step of include:
When the message that the multimedia file for receiving player transmission finishes, the path of next multimedia file is believed
Breath is sent to player, is played out with calling player to read multimedia file from the routing information.
6. according to the method described in claim 2, it is characterized in that, described according to file total information and each multimedia file
File sub-information call player plays described in transport stream TS format multimedia file the step of include:
Receive the positioning operation message that player is sent;It include the positioning in total duration information in the positioning operation message
Time point;
Search multimedia file belonging to the positioning time point;
Calculate the time offset of duration information of the positioning time point in affiliated multimedia file;
The routing information of the multimedia file and time offset are sent to player, to call player from the path
Information reads multimedia file, plays since the time offset.
7. method described according to claim 1 or 2 or 4 or 5 or 6, which is characterized in that described according to file total information and each
The file sub-information of multimedia file calls the step of multimedia file of transport stream TS format described in player plays to include:
Passage path information reads multimedia file;
Multimedia file is separated by transmission flow demultiplexing device MPEG2TSExtractor, obtains video data stream and sound
Frequency data stream;
Video data frame is extracted from the video data stream by track of video mVideoTrack;
Audio data frame is extracted from the voice data stream by audio track mAudioTrack;
The video data frame is decoded by Video Decoder mVideoSource;
The audio data frame is decoded by audio decoder mAudioSource;
It is exported by video renderer mVideoRenderer by decoded video data frame;
Audio data frame after playing mAudioPlayer broadcast decoder by audio.
8. a kind of playing device of multimedia file, which is characterized in that described device includes playing controller, configuration file parsing
Device and player:
Wherein, the playing controller includes:
Configuration file searching module, for searching the configuration formerly generated for the multimedia file of multiple transport stream TS formats text
Part;Wherein, the configuration file is used to control the broadcasting of multiple multimedia files;
Playing control module, for calling player plays according to the file sub-information of file total information and each multimedia file
The multimedia file of the transport stream TS format;The file total information includes that the add up duration information of each multimedia file obtains
The total duration information and video name obtained;The file sub-information is believed according to the time in the title configuration of the multimedia file
Breath sequence, including the duration information calculated based on the temporal information;
The configuration file resolver includes:
Information reading submodule, for reading file of file total information and each multimedia file from the configuration file
Information.
9. device according to claim 8, which is characterized in that
The file sub-information further includes the routing information calculated based on the temporal information;
The file total information further include add up each multimedia file duration information obtain video pictures size.
10. device according to claim 8, which is characterized in that the playing control module includes:
Initialization submodule, for that at least partly file total information will be sent to player and initialize;
Submodule is arranged in first broadcast source, is used for when initialization operation is completed, by the routing information of first multimedia file
It is sent to player, is played out with calling player to read multimedia file from the routing information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510449528.1A CN105049904B (en) | 2015-07-27 | 2015-07-27 | A kind of playing method and device of multimedia file |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510449528.1A CN105049904B (en) | 2015-07-27 | 2015-07-27 | A kind of playing method and device of multimedia file |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105049904A CN105049904A (en) | 2015-11-11 |
CN105049904B true CN105049904B (en) | 2019-05-31 |
Family
ID=54456029
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510449528.1A Active CN105049904B (en) | 2015-07-27 | 2015-07-27 | A kind of playing method and device of multimedia file |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105049904B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108429931A (en) * | 2017-02-14 | 2018-08-21 | 优酷网络技术(北京)有限公司 | A kind of method for broadcasting multimedia file and device |
CN109587517B (en) * | 2018-12-07 | 2022-02-18 | 咪咕视讯科技有限公司 | Multimedia file playing method and device, server and storage medium |
CN110798731A (en) * | 2019-11-15 | 2020-02-14 | 北京字节跳动网络技术有限公司 | Video data processing method and device, electronic equipment and computer readable medium |
CN112312162B (en) * | 2020-10-16 | 2022-11-08 | 安擎(天津)计算机有限公司 | Video server for transmitting video stream |
CN112383723B (en) * | 2020-11-12 | 2023-05-26 | 云南腾云信息产业有限公司 | Video switching method and device and computer equipment |
CN112770174A (en) * | 2020-12-30 | 2021-05-07 | 稿定(厦门)科技有限公司 | Video file streaming method and device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7116894B1 (en) * | 2002-05-24 | 2006-10-03 | Digeo, Inc. | System and method for digital multimedia stream conversion |
CN101202900A (en) * | 2007-03-12 | 2008-06-18 | 深圳市同洲电子股份有限公司 | Method for switching living broadcast and playback of digital television and video server |
CN101951387A (en) * | 2010-09-30 | 2011-01-19 | 海信集团有限公司 | Method and device for transmitting stream media |
CN102413358A (en) * | 2011-08-12 | 2012-04-11 | 青岛海信传媒网络技术有限公司 | Storage and playing method, device and system of streaming media file |
CN104410930A (en) * | 2014-11-07 | 2015-03-11 | 青岛海信宽带多媒体技术有限公司 | A method and device for controlling playing speed of transport stream TS media file |
CN104702978A (en) * | 2015-03-18 | 2015-06-10 | 青岛海信宽带多媒体技术有限公司 | Video data locating method and network playing equipment |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080250101A1 (en) * | 2007-04-05 | 2008-10-09 | Matsushita Electric Industrial Co., Ltd. | Multimedia data transmitting apparatus and multimedia data receiving apparatus |
-
2015
- 2015-07-27 CN CN201510449528.1A patent/CN105049904B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7116894B1 (en) * | 2002-05-24 | 2006-10-03 | Digeo, Inc. | System and method for digital multimedia stream conversion |
CN101202900A (en) * | 2007-03-12 | 2008-06-18 | 深圳市同洲电子股份有限公司 | Method for switching living broadcast and playback of digital television and video server |
CN101951387A (en) * | 2010-09-30 | 2011-01-19 | 海信集团有限公司 | Method and device for transmitting stream media |
CN102413358A (en) * | 2011-08-12 | 2012-04-11 | 青岛海信传媒网络技术有限公司 | Storage and playing method, device and system of streaming media file |
CN104410930A (en) * | 2014-11-07 | 2015-03-11 | 青岛海信宽带多媒体技术有限公司 | A method and device for controlling playing speed of transport stream TS media file |
CN104702978A (en) * | 2015-03-18 | 2015-06-10 | 青岛海信宽带多媒体技术有限公司 | Video data locating method and network playing equipment |
Non-Patent Citations (2)
Title |
---|
Android多媒体框架下Stagefright的功能扩展;温伟;《太赫兹科学与电子信息学报》;20131030(第5期);全文 |
MPEG-2传输流解复用器的设计与实现;高鹏;《计算机工程与应用》;20060511;第42卷(第9期);全文 |
Also Published As
Publication number | Publication date |
---|---|
CN105049904A (en) | 2015-11-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105049920B (en) | A kind of method for recording and device of multimedia file | |
CN105049904B (en) | A kind of playing method and device of multimedia file | |
TWI679885B (en) | Method and apparatus for generating media data | |
TW201838419A (en) | Signalling of video content including sub-picture bitstreams for video coding | |
TWI699115B (en) | Improved restricted scheme design for video | |
WO2020155964A1 (en) | Audio/video switching method and apparatus, and computer device and readable storage medium | |
US11695932B2 (en) | Temporal alignment of MPEG and GLTF media | |
JP2007012112A (en) | Data recording device and method thereof, program, and recording medium | |
CN111669645B (en) | Video playing method and device, electronic equipment and storage medium | |
US20090007208A1 (en) | Program, data processing method, and system of same | |
US10978109B2 (en) | Synchronously playing method and device of media file, and storage medium | |
KR20090041772A (en) | Method and apparatus for manipulating media object in media player | |
KR20230028291A (en) | Media access using scene descriptions | |
CN102819851B (en) | Method for implementing sound pictures by using computer | |
WO2023207119A1 (en) | Immersive media processing method and apparatus, device, and storage medium | |
US8688737B2 (en) | Method and apparatus for generating and reproducing media object-based metadata | |
CN103152607A (en) | Video superfast rough editing method | |
CN102955809A (en) | Method and system for editing and playing media files | |
US7664373B2 (en) | Program, data processing method, and system of same | |
US10484725B2 (en) | Information processing apparatus and information processing method for reproducing media based on edit file | |
CN115086282A (en) | Video playing method, device and storage medium | |
KR20230101907A (en) | Method and apparatus for MPEG DASH to support pre-roll and mid-roll content during media playback | |
CN117241062A (en) | Video synthesis method and device, storage medium and electronic equipment | |
CN117692681A (en) | Video stream playing method, device, equipment and readable storage medium | |
CA3214082A1 (en) | Auxiliary mpds for mpeg dash to support prerolls, midrolls and endrolls with stacking properties |
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 | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11 Patentee after: Qingdao Hisense Mobile Communication Technology Co.,Ltd. Address before: 266071 No. 11 Jiangxi Road, Shinan District, Qingdao, Shandong Province Patentee before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd. |