http://blog.csdn.net/qq_19079937/article/details/43191211Inside the MP4 structure, the HDLR field (specifically in ROOT->MOOV->TRAK->MDIA->HDLR) contains the stream is a video or audio or letter.FFmpeg Code:In the FFmpeg code, use the Codec->codec_type in the stream to determine what kind of flow the stream is.The 12th part of the ISO_IEC_14496 International standard is marked as follows:In the MP4 file, search 6C (hexadecimal number of HDLR), from wh
LIGHTTPD is a lightweight Web server that is very good for building video servers and consumes very little resources.The LIGHTTPD supports the FLV video module by default and does not support the MP4 module. The H264 module needs to be added when compiling the installation. This will allow the MP4 to be supported.H264 Configuration Reference: Http://h264.code-shop.com/trac/wiki/Mod-H264-Streaming-Lighttpd-Version2Below to configure:Download software:Download the lighttpd:http://download.lighttpd
audio, unaddressable, Android3.0 +)
MPEG-4 (SP)
•
3GPP (. 3gp)
VP8
• (Android2.3.3 +)
Only Android4.0 and above can be streamed
1. WebM (. webm) 2. Matroska(.mkv, Android4.0 +)
Video Encoding suggestions
Table 2 lists the video encoding Profile and parameter examples supported by the Android media framework. In addition to these encoding parameters, the available video recording Profile of the device can be used as a proxy for
encapsulated in box (corresponding to the atom in QuickTime), that is, the MP4 file is made up of several boxes, each box has a length and type, and each box can also contain a separate sub box (called Container box).
A MP4 file will first have a "Ftyp" type of box, as a MP4 format flag and contains some information about the file, then there will be a "moov" type of box (Movie box), it is a container box, The sub Box contains the media's metadata in
file, then there will be a "moov" type of box (Movie box), it is a container box, The sub Box contains the media's metadata information, and the MP4 file's media data is contained in the "Mdat" type of box (Midia Data box), and the box is container box, which can have multiple You can also not (when the media data all refer to other files), the structure of the media data is described by metadata.
4 MP4 box is stored in big-endian mode. In general,
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.