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
The specific steps for the server to increase the MIME type mapping setting in MP4 format are: Right-click Computer Management Services and Applications Internet Information Services (IIS) Manager select the IIS Web site that you developed click Add in the upper right corner of the MIME type under IIS options. Enter ". mp4" in the "Extension" box, enter "Application/octet-stream" in the "MIME type" box, an
1, using ffmpeg extract MP4 h264 Code stream Write file method online There are many, do not know, please refer to the Raytheon Blog: http://blog.csdn.net/leixiaohua1020/article/details/11800877
2, but the file is a problem, the first can certainly play, but there will be a great chance to appear in the flower screen
A, first talk about the solution
In fact, it i
Calculate the playback duration of an MP4 file. You can obtain the timescale and duration values in the mvhd box:
Playback duration = duration/timescale
The Unit is seconds ).
The following describes the structure of mvhd.Movie header atoms-mvhd
Movie header atom defines the features of the entire movie, such as time scale and duration. Its atom type is 'mvhd '.
The mvhd structure is as follows:
The fields
After the video is uploaded successfully, the returned m3u8 file cannot be found, but the uploaded MP4 file can be found. How can this problem be solved? For example, if the m3u8 file cannot be found after the upload is successful, you can find the MP4
Objectivethe MP4 video file Encapsulation format is based on the QuickTime container format definition, so referencing the QuickTime format definition is helpful for understanding the MP4 file format. The MP4 file format is a very
Please help to see this php download MP4 file problem, the file download is not complete
function Dl_file ($file) { $len = FileSize ($file); $filename = basename ($file); $file
wrapped. Default value is 0.
This option is useful to avoid to fill the disk with many segment files, and limits the maximum number of segment files WR Itten to disk Towrap. (The number of slices is set to start overwriting, if set to 0 will not overwrite, the default value is 0.) This option avoids storing too many slices on disk and can limit the number of slices written to disk.
' Start_number number '
Start The playlist sequence number from number. Default value is 0. (The value of sequence
At present, there have been a lot of summaries on the MP4 file format on the network. I will not copy the summary from others here. If you want to get started, Baidu will have a lot of such content.Article. Here we will introduce one of the MP4 file structures rarely involved in other articles, namely, fragment
How to play the rmvb mp4 mkv video file in Fedora 22?
This is a problem that occurs after the Fedora system is installed. There is a tutorial on how to solve the problem of playing rmvb video in Fedora 21 on the Internet. In fact, Fedora 22 is also applicable, but Fedora 22 changes Yum to dnf, so you only need to change the command.
Simply install the rpmfusion source.
Sudo dnf install -- nogpgcheck http
Libswresample 0. 17.104/0. 17.104
Libpostproc 52. 3.100/52. 3.100
Hyper fast Audio and Video encoder
usage:ffmpeg [Options] [[infile Options]-I infile] ... {[outfile options] outfile} ...
Use-h to get all help or, even better, run ' mans ffmpeg '
PHP calls ffmpeg transcoding video
Copy Code code as follows:
$cmd = ' ffmpeg-i uploadfile/video/test.wmv-c:v libx264-strict-2 uploadfile/mp4/test.mp4 ';
EXEC ($cmd, $st
') {
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 ('moov '){
}
Calculate the mov
Send a summary post for the information used in the previous period.
The first is the most convincing ISO standard documentation:
ISO/IEC 14496-12, coding of audio-visual objects-ISO base media file format
ISO/IEC 14496-14, coding of audio-visual objects-MP4 File Format
Here are a full set of standard documents related to ISO/IEC 14496 and
Please refer to the question of downloading MP4 files in PHP. the file download is incomplete.
function dl_file($file){ $len = filesize($file); $filename = basename($file); $file_extension = strtolower(substr(strrchr($filename,"."),1)); switch( $file_extension )
What file is MP4?
MP4 is a very popular video format, I believe that everyone has seen the MP4 format of the video or film it? Today, many of the movies circulated online are MP4 format, with its good versatility in any media player can be smooth playback. But in fact, from
The company's project needs to merge one image and one MP3 audio file into MP4 and play the video on HTML5. It was originally thought to be a very simple matter, so a simple FFMPEG command was quickly written for execution.
FFmpeg-I 2.mp3-F image2-I 3.jpg-acodec AAC-strict-2-vcodec libx264-ar 22050-AB 128 K-AC 2-y 4.mp4
At the beginning, the merged
When you use OPENCV to process a video, you cannot open a. mp4 file. Later the solution is to use Ffmpeg.exe to transcode the MP4 file to AVI file, and then processed. However, the transcoding process is relatively slow. Later view OpenCV source code, found that it is also u
For an example of a MP4 length of 10 seconds, the structure may be as follows:
Type:ftyp, size:24Type:mdat, size:8884701Type:mdat, size:136125Type:moov, size:4656 1 Ftyp
A Ftyp describes the type of file, indicating which format it conforms to. It's usually MP4 format. There are many types of media that conform to this document, and the type of box entry is diffe
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.