the typical users on Internet I think.
Get the Flash Player (9.0.115 or above) to see this video.
At the end of this article I packed up some troubles that I 'd counted before, and I also provided their answers for convenience. Hope that they may also be useful for you.
= Concise F. A. Q for working with H.264 in Flash Player =
Q:Why can't I play the demo in my browser !?A:Adobe Flash Player 9 update 3 (9.0.115 or abve) and related plug-in are required. plz refer to here for further
hierarchical relationship as the Windows registry, and the ' + ' can be clicked to expand and see the internal structure. The ftyp,moov,mvhd,trak,mdat in the image are called box in MP4. The basic structure of box is made up of box header + box data.As there are many box types in the official MP4 agreement, there are articles on the web explaining the role of each box. It's not listed here. Next we are talking about the principle of file dragging wil
') {
unsigned int(8) data[];}
Calculate the free space box size:
Size occupies 32 bits, 4 bytes;
Type occupies 32 bits, 4 bytes;
Each data occupies 8 bits and 1 byte;
3. Media Data box
Aligned (8) Class mediadatabox extends box ('mdat '){
Bit (8) data [];
}
Calculate the size of the media data box:
Size occupies 32 bits, 4 bytes;
Type occupies 32 bits, 4 bytes;
Each data occupies 8 bits and 1 byte;
4. Movie box
Aligned (8) Class moviebox extends box ('
Android MediaPlayer error code
Public static final int MEDIA_ERROR_IO
Added in API level 17 File or network related operation errors.
Constant Value:-1004 (0xfffffc14)
Public static final int MEDIA_ERROR_MALFORMED
Added in API level 17 Bitstream is not conforming to the related coding standard or file spec.
Constant Value:-1007 (0xfffffc11)
Public static final int MEDIA_ERROR_NOT_VALID_FOR_PROGRESSIVE_PLAYBACK
Added in API level 3 The video is streamed and its container is not valid
chronological order.
The 3GP file is composed of a series of box (atom) files. The structure of each box is 4-byte size, 4-byte type, and some data. Use
Mp4info: view the data layout of the 3GP file, for example:
For example, ftyp indicates the file version information, and mdat stores text, audio and video data. You may ask how to find the audio and video data.
What? The sub-box Trak in moov box stores the attribute descriptions of audio and vi
logo!
(If there is audio data, it will be intertwined with the video data, but our goal is to encode the video stream in real time and do not need to process the audio, therefore, when initializing mediarecorder, I do not want mediarecorder. setaudiosource, so there is no audio data .)
3. Complete the capture. Mediarecorder should return to the file header to fill the file header. However, because it is not a real file relationship, it cannot be returned to the header. Therefore, the file head
each frame),STSC (the relationship table between frames and chunk),Mvhd (length and other information),Mdat (bare data),Moov and so on.
The specific structure, including the meaning of each atom, the size and meaning of each field, allows you to see the resources on the network (preferably the Atom's Field table).Like what:(ii) Programme implementationThe second solution can be implemented using ringdroid, an open source project.Ringdroid is mai
The mediaelement of Silverlight can be played in a precise frame, but there are significant differences in different browsers and different video format packages. (There are even a lot of bugs, especially downloadprogress this function)
After repeated experiments, we found a way to achieve progressive download and accurate frame positioning, and after a simple test, in IE and chrome are basic functions normally.
Use H.264+AAC encoding, MP4 encapsulation.
accordance with the specified frame rate, the other is the synchronization between streams, the main task is to ensure the different media flow between the time relationship, such as audio and video relationship (Lipsync)
For fixed-rate media, such as fixed-frame-rate video or fixed bitrate audio, time information (frame rate or bitrate) can be placed at the file header (header), such as Avi's HDRL List, MP4 's Moov box, and a relatively complex scen
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.