mp4creator60.exe参数-hint的说明

本文转自:http://bbs.csdn.net/topics/110145566

hint只是在原有的视音频轨道上增加一些流化信息,因此它和是否能够快进快退没有关系,只和文件能否流化有关系。换句话说,没有hint过的mp4文件也是可以快进快退的。

hint的具体解释可以参考下面这段英文:
Hint tracks are a series of instructions in a mp4 container file that
tell a server how to transmit packets. Hint tracks always refer
to another track, most likely an audio or video media track.  

This series of instructions tells the server when to send the packet, 
what type of RTP header to add, if there is any extra data in the
packet, and how much data to send in the packet.  To save on space, 
a hint can contain a pointer to the media track, instead of duplicating
that data.

It will also tell what SDP to add for the track that is referenced.

So, a file that is hinted should have a media track, and an associated
hint track for that media track.  There are some mp4 container files
that just have hint tracks - these are called "fat hints" and are
usually not playable locally.  These are illegal in ISMA, so we won't
talk about them.

To create hint tracks for a mp4 file is fairly simple with the mp4creator
program.  Just execute the:
  mp4creator -hint=<track to hint track number> [-p <payload>] <mp4file>

For example:

[wmay@wmaytclinux2 content]$ mp4info xvid.mp4 
mp4info version 0.9.5.4
xvid.mp4:
Track Type Info
1 video MPEG-4 Simple @ L3, 3.695 secs, 627 kbps, 608x256 @ 23.00 fps
2 od Object Descriptors
3 scene BIFS

I would execute the:
  mp4creator -hint=1 xvid.mp4

and get:
[wmay@wmaytclinux2 content]$ mp4info xvid.mp4 
mp4info version 0.9.5.4
xvid.mp4:
Track Type Info
1 video MPEG-4 Simple @ L3, 3.695 secs, 627 kbps, 608x256 @ 23.00 fps
2 od Object Descriptors
3 scene BIFS

4 hint Payload MP4V-ES for track 1

下文转自:http://blog.csdn.net/bluebirdssh/article/details/6152928

正常的MP4文件应该是没有被流化,如果要被darwin stream server支持,必须hint该MP4文件。

  关于hint的解释,如下面一段英文:

  Hint tracks are a series of instructions in a mp4 container file that 
tell a server how to transmit packets. Hint tracks always refer 
to another track, most likely an audio or video media track.     
   This series of instructions tells the server when to send the packet,   
what type of RTP header to add, if there is any extra data in the 
packet, and how much data to send in the packet. To save on space,   
a hint can contain a pointer to the media track, instead of duplicating 
that data. 
   It will also tell what SDP to add for the track that is referenced.  
   So a file that is hinted should have a media track, and an associated 
hint track for that media track. There are some mp4 container files 
that just have hint tracks - these are called "fat hints" and are 
usually not playable locally. These are illegal in ISMA, so we won 't 
talk about them. 
   To create hint tracks for a mp4 file is fairly simple with the mp4creator 
program. Just execute the: 
    mp4creator   -hint= <track   to   hint   track   number>   <mp4file>

例如:

1)被hint之前mp4文件的信息,用mp4info查看文件信息如下:

mp4info  ./1.mp4 
mp4info version 1.6
./1.mp4:
Track   Type    Info
1       audio   MPEG-4 AAC LC, 662.165 secs, 121 kbps, 48000 Hz
2       video   H264 Main@5.1, 662.562 secs, 1756 kbps, 640x368 @ 29.970025 fps

2)hint 音频

mp4creator -hint=1  ./1.mp4

3)hint视频

 mp4creator -hint=2 ./2.mp4

4)查看hint之后的mp4文件信息

mp4info  ./1.mp4 
mp4info version 1.6
./1.mp4:
Track   Type    Info
1       audio   MPEG-4 AAC LC, 662.165 secs, 121 kbps, 48000 Hz
2       video   H264 Main@5.1, 662.562 secs, 1756 kbps, 640x368 @ 29.970025 fps
3       hint    Payload mpeg4-generic for track 1
4       hint    Payload H264 for track 2
 Tool: mp4creator 1.5.0.1




  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
流媒体添加索引 usage: MP4Creator <options> <mp4-file> Options: -aac-old-file-format Use old file format with 58 bit adts headers -aac-profile=[2|4] Force AAC to mpeg2 or mpeg4 profile -allow-avi-files Allow avi files -calcH263Bitrates Calculate and add bitrate information -create=<input-file> Create track from <input-file> input files can be of type: .263 .aac .amr .mp3 .divx .mp4v .m4v .cmp .xvid -encrypt[=<track-id>] Encrypt a track, also -E -extract=<track-id> Extract a track -delete=<track-id> Delete a track -force3GPCompliance Force making the file 3GP compliant. This disables ISM A compliance. -forceH263Profile=<profile> Force using H.263 Profile <profile> (default is 0) -forceH263Level=<level> Force using H.263 level <level> (default is 10) -H263CbrTolerance=<value> Define H.263 CBR tolerance of [value] (default: 10 %) -hint[=<track-id>] Create hint track, also -H -interleave Use interleaved audio payload format, also -I -list List tracks in mp4 file -make-isma-10-compliant Insert bifs and od tracks required for some ISMA playe rs (also -i) -mpeg4-video-profile=<level> Mpeg4 video profile override -mtu=<size> Maximum Payload size for RTP packets in hint track -optimize Optimize mp4 file layout -payload=<payload> Rtp payload type (use 3119 or mpa-robust for mp3 rfc 3119 support) -rate=<fps> Video frame rate, e.g. 30 or 29.97 -timescale=<ticks> Time scale (ticks per second) -use64bits Use for large files -use64bitstime Use for 64 Bit times (not QT player compatible) -variable-frame-rate Enable variable frame rate for mpeg4 video -verbose[=[1-5]] Enable debug messages -version Display version information
MP4Creator Version 1.6.1e-pre - by Crypto/DVBPortal 01-Jan-2009 --------------------------------------------------------------------------- This release includes the following components, in the indicated folders: mp4creator.exe - the muxer component readme.txt - the file you are just reading COPYING - the copying license AUTHORS - the original authors --------------------------------------------------------------------------- About this release: MP4Creator is the command line mp4 multiplexer tool from the mpeg4ip project. Since the mpeg4ip projects has stopped in Sep-2007, several community patches have been created for mp4creator. This project consolidates all patches to the original project files, to have the latest version which includes all features developed so far. Wich are: Nero and Quicktime chapters patch By: Ullrich Poll鋒ne (pollaehne) - 2007-10-03 11:22 contains infos from HandBrake and gpac to create/delete/convert Nero and Quicktime(iTunes/iPod) chapter markers in MP4 files Support for QuickTime Display Aspect Ratio patch By: Mark T (tuber99) - 2007-10-22 15:46 There are two new command-line params when adding a video track: -qth=xxx and -qtw=xxx Fix for "Video track has no data size" patch By: Crypto - 2008-05-25 16:38 Encodes containing B-frames need a edts/elst box combination Fix for missing C++ 2005 Runtime Libs SP1 By: Crypto - 2008-07-06 11:52 Project settings changed for statically linked C++ runtime Feature added for AC-3 support as of ISO/IEC 14496-12 Annex F By: Crypto - 2008-10-02 11:52 allows to multiplex AC-3 multi channel tracks conforming to the newly released ISO/IEC 14496-12 Annex F Fix for track name display (AC-3 track) By: Crypto - 2009-01-01 12:48 AC-3 tracks shown now as "surround" Fix for garbled compressor name display in Quicktime (MAC-Version) By: Crypto - 2009-01-01 12:48 AVC video tracks show now as H.264 --------------------------------------------------------------------------- Installation: No installation required. Copy all files to a directory of your choice. All included binary files made by Crypto/DVBPortal are digitally signed. You should verify the signature before installing them, for your own protection against forgery. --------------------------------------------------------------------------- Usage: This is the command line mp4 multiplexer tool from the mpeg4ip project. It is used to multiplex streams to the MP4 container -or - to demultiplex streams from an existing MP4 file. The updated mp4creator project home is located here: http://sourceforge.net/projects/mp4creator The original mp4creator is part of the mpeg4ip project located here: http://sourceforge.net/projects/mpeg4ip Please make sure to check out the full-featured GUI mp4muxer for mp4creator located here: http://www.dvbportal.de/projects/mp4muxer Enjoy! --------------------------------------------------------------------------- History: 01-Jan-2009 Fix for track name display (AC-3 track) Fix for garbled compressor name display in Quicktime (MAC-Version) 02-Oct-2008 AC-3 support as of ISO/IEC 14496-12 Annex F added 06-Jul-2008 Version 1.6.1c Fix for missing C++ 2005 Runtime Libs SP1 30-Jun-2008 Version 1.6.1b Nero and Quicktime chapters patch Support for QuickTime Display Aspect Ratio patch 05-Jun-2008 Initial branch release Version 1.6.1a Fix for "Video track has no data size" patch Any comments and feature requests are welcome. Please use our forum http://dvbportal.dyn1.de/forum ###

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值