hint:
mp4box filename -hint
反hint则是:
mp4box filename -unhint
查看track:
mp4box filename -info
Content Authoring with MP4Box
原文链接:http://gpac.sourceforge.net/doc_mp4box.php
This page is dedicated to MP4Box, the GPAC command line swiss army knife. You will find here a detailed documentation on major switches of MP4Box. Not all tools are documented, so do not hesitate to look at the MP4Box usage by typing MP4Box -h.
General Considerations
File conversion
- RAW Formats and extensions:
- MPEG-4 Video (.cmp .m4v)
- MPEG-4 Audio ADTS-AAC (.aac) - ADIF or RAW formats not supported
- MPEG-1/2 Audio (.mp3)
- JPEG and PNG Images (.jpg .jpeg .m4v)
- H263 Video (.263 .h263)
- AVC/H264 Video (.264 .h264, .26l .h26l)
- AMR and AMR-WideBand Speech (.amr .awb)
- EVRC Speech (.evc)
- SMV Speech (.smv)
- NHNT (.media .info .nhnt)
- AV Containers and extensions:
- AVI (.avi) - Only MPEG-4 video and MP3 audio supported at the current time.
- MPEG-PS (.mpg .mpeg .vob) - Only MPEG-1/2 video and MPEG-1/2 audio supported at the current time.
- QCP (.qcp)
- XIPH OGG (.ogg) - EXPERIMENTAL and not relevant to any IsoMedia-based standards. Only Vorbis audio and Theora video supported.
- IsoMedia files (no extension checking)
- Text formats and extensions:
- SRT Subtitles (.srt)
- SUB Subtitles (.sub)
- QuickTime TeXML (.xml) - cf QT documentation
- GPAC Timed Text (.ttxt)
- -add inputFile#video: adds the first video track in inputFile. DOES NOT WORK for IsoMedia files.
- -add inputFile#audio: adds the first audio track in inputFile. DOES NOT WORK for IsoMedia files.
- -add inputFile#trackID=ID or -add inputFile#ID: adds the specified track. For IsoMedia files, ID is the track ID. For other media files, ID is the value indicated by MP4Box -info inputFile.
File Splitting and Concatenation
General File operations
- MP4Box -avi trackID file.mp4: exports track to avi (raw MPEG-4 video also possible).
- MP4Box -import file.avi dest.mp4: converts avi into MP4 and handles B-Frame correct import (packed bitstreams, n-Vops).
File hinting
- Prepare any mp4 for ISMA streaming: MP4Box -isma -hint myfile.mp4
- Prepare an mp4 optimized for server: MP4Box -hint -copy -tight myfile.mp4
- Prepare a complex mp4 with BIFS for streaming: MP4Box -ocr -iod -hint myfile.mp4
- Prepare any 3GP/MP4 for safe streaming: MP4Box -nosys -hint myfile.3gp
- Can I stream MP4 files created with MPEG4IP's mp4creator to GPAC?
It depends. mp4creator hints mp3 audio with MPA or MPA-robust payload formats, specific to mp3 streams. MPA-robust is not supported in GPAC and is not on the list of priorities, we strongly prefer working with RFC3640 payload for MPEG-4 streams. However if no MPA-robust payload is used, both players and hinters should interoperate.
- Can I stream MP4 files created with MP4Box to MPEG4IP player?
It depends. MPEG4IP works with ISMA / plain AV files, therefore you should first convert your file to ISMA before hinting.
- Can I stream complex MPEG-4 presentations created with MP4Box to any player ???
Yes and no. GPAC uses RFC3640 to stream MPEG-4 systems information, and most players don't accept that (they usually use their own format). Moreover RTSP servers as known today only understand simple synchronized presentations, and most MPEG-4 presentations have too complex timing for servers to handle. If you need to know more about that join us in our forum.
File Dumping and information
MP4Box has many dump functionalities, from simple track listing to more complete reporting of special tracks
Media track Extraction
MP4Box can extract media tracks in a variety of formats:MPEG-4 Systems, VRML and X3D Handling
ISMA Encryption and description
Misc