| Linha 34: | Linha 34: | ||
-inter duration | -inter duration | ||
interleaves media data in chunks of the maximum specified duration (expressed in milliseconds) and prepare file for HTTP/FTP streaming. By default MP4Box always stores with 0.5 second interleaving. An interleaving value of '0' stores without interleaving (meta-data then track after track). | interleaves media data in chunks of the maximum specified duration (expressed in milliseconds) and prepare file for HTTP/FTP streaming. By default MP4Box always stores with 0.5 second interleaving. An interleaving value of '0' stores without interleaving (meta-data then track after track). | ||
intercala dados de media em pedaços de durações especificadas máximas (expressadas em milesegundos) e prepara o arquivo para streaming HTTP/FTP. Por default MP4Box sempre armazena 0,5 segundos | |||
NOTE: Track Edit Lists are ignored when performing interleaving. | NOTE: Track Edit Lists are ignored when performing interleaving. | ||
-flat | -flat | ||
Edição das 22h30min de 23 de fevereiro de 2012
Descrição
MP4Box - MPEG-4 Caixa de ferramentas do sistema SYNOPSE
MP4Box [opções] arquivo [opções]
MP4Box é uma ferramenta de comando de linha multi-propósito para criar e editar apresentações MPEG-4 Systems e manipular arquivos ISO-mídia (MP4, 3GP, MOV).
MP4Box suporta a conversão de arquivos de vários formatos "crús" e IsoMedia / AVI / MPEG-PS / OGG containers, arquivos hint para RTP streaming para servidores de streaming compatíveis com QuickTime, intercalando arquivo, fragmentação de arquivos e extração de track.
MP4Box também fornece ferramentas dump usados para inspecionar layout de arquivo, faixas hint RTP, informações SDP, composição de cena. Também pode ser usado para converter para e de BT/XMT-A/VRML/X3D.
MP4Box também possui codificadores MPEG-4 Systems e decodificadores para BIFs e ferramentas de OD.
MP4Box não espera nenhuma ordem específica nas opções no prompt.
Obtendo ajuda com MP4Box
-h [type]
imprime a tela de ajuda. "type" pode ser um dos "general", "hint", "import", "encode", "extract", "dump", "swf", "meta", "crypt", "format" para ajuda específica.
-version
imprime a versão do MP4Box.
-nodes
lista os MPEG-4 nós sistemas suportados na versão MP4Box corrente.
-node NodeName
imprime a sintaxe do nó. Cada campo é listado como informação de eventType fieldType fieldName defaultValue e quantização de field e quantização de limites se houver.
Opções Gerais
-inter duration
interleaves media data in chunks of the maximum specified duration (expressed in milliseconds) and prepare file for HTTP/FTP streaming. By default MP4Box always stores with 0.5 second interleaving. An interleaving value of '0' stores without interleaving (meta-data then track after track). intercala dados de media em pedaços de durações especificadas máximas (expressadas em milesegundos) e prepara o arquivo para streaming HTTP/FTP. Por default MP4Box sempre armazena 0,5 segundos
NOTE: Track Edit Lists are ignored when performing interleaving.
-flat
stores file with all media data first, non interleaved. If used when creating a new file, no temporary file is created (faster storage).
-frag duration
fragments file using ISO-Media movie fragments. Tracks will be fragmented so that no track run exceeds the specified duration (expressed in milliseconds). Disables interleaving.
-out <filename>
specifies output file name.
-tmp <dirname>
specifies driectory for temporary storage. If not set, temporary storage is OS-dependent.
-nosys
removes all MPEG-4 Systems information from the file but keeps an empty IOD for MPEG-4 Profile@Level indications.
-isma
rewrites the file as an ISMA 1.0 Audio/Video file (all systems info rewritten) with proper clock references.
-ismax
rewrites the file as an ISMA 1.0 Audio/Video file (all systems info rewritten) with ISMA clock references (streams not explicetly synchronized). NOTE: Seeking may be broken with some players (in ISMA, audio and video streams do not depend on main scene clock).
-3gp
rewrites the file as a 3GP file (no more MPEG-4 Systems specific info). This option is turned on by default when input file extension is .3gp or .3g2.
-cprt string
adds string copyright notice to file.
-chap chap_file
adds chapter information contained in chap_file to movie. For more details on chapter file syntax, cf http://gpac.sourceforge.net/auth_mp4box.php.
-rem trackID
removes given track from file - can be specified multiple times.
-new
forces creation of a new destination file.
-lang [tkID=]LAN
sets the language of all tracks or the given track. LAN is the ISO 639-2 3 character code.
-delay [tkID=]delay_ms
sets the delay in milliseconds of all tracks or the given track. LAN is the ISO 639-2 3 character code.
-split time_in_seconds
splits in files of desired maximum duration. This will remove all MPEG-4 Systems media.
-splits size_in_kilobytes
splits in files of desired maximum size. This will remove all MPEG-4 Systems media.
-splitx start:end
extracts a new file from specified start to end times (in seconds). This will remove all MPEG-4 Systems media. When input file is an ISO-Media file (QT, MP4, 3GP), if no output is specified THE INPUT FILE IS OVERWRITTEN.
HINTING OPTIONS
-hint
hint the file for RTP/RTSP sessions. Payload type is automatically detected and configured unless forced through one of MPEG-4 Generic RTP payload.
-mtu size
specifies Maximum Transmission Unit size in bytes (eg maximum RTP packet size). Default size is 1500 bytes (Ethernet MTU). This must be choosen carefully: specifying too large packets will result in undesired packet fragmentation at UDP layer while specifying too small packets will result in RTP header overhead.
-copy
forces hinted data to be copied to the hint track instead of simply referenced. This speeds up RTP packet construction at the server side but results in much bigger files.
-tight
performs sample-based interleaving of media tracks and hint tracks. This should reduce disk seeks at server side (depending on server implementation) but results in a bigger file.
-multi [maxptime]
enables Access Units concatenation in RTP packets if possible. maxptime is optional and specifies the maximum packet duration in milliseconds (default 100).
-rate ck_rate
specifies the rtp rate in Hz when no default rate for payload. Default value is 90000 (MPEG rtp rates).
-mpeg4
forces usage of the MPEG-4 generic payload whenever possible. Media tracks without a mapping to MPEG-4 Systems cannot use this.
-latm
forces usage of the LATM payload for AAC audio.
-static
enables usage of static RTP payload IDs for streams with official payload IDs. By default MP4Box always uses dynamic payload IDs for maximum interoperability, some players having troubles with static ones.
MPEG-4 Generic Payload Options (Experts only)
-ocr forces all media tracks in the file to be served synchronized. This is needed because most streaming servers don't support desynchronized tracks in a single file. Be extremelly carefull when designing MPEG-4 interactive presentations for streaming since you will have to take care of the streaming server capabilities... MP4Box generates warnings when the file timeline can be ambiguously interpreted by the server. -rap signals Access Units random access flag in RTP packets. This is usually only needed for streaming of MPEG-4 Systems streams. -ts signals Access Units Time Stamps (CTS and DTS) in RTP packets. -size signals Access Units size in RTP packets. -idx signals Access Units indexes (sequence numbers) in RTP packets. -multi enables Access Units concatenation in RTP packets (-ts, -size and -idx are selected if needed). -iod prevents system tracks embedding in IOD (ISMA-like IOD) when generating in SDP. MP4Box automatically detects ambiguous (ISMA/non-ISMA) files but nobody's perfect. This shouldn't be used with -isma option. -sdp_ex string
adds string to movie SDP or track SDP (tkID:string, where tkID is the OD of the hint track or its media track). This takes care of SDP line reordering, but not of SDP content validity.
-unhint
removes all hint tracks and other hinting info from the file.