⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mplex.1

📁 Motion JPEG编解码器源代码
💻 1
字号:
.TH "mplex" "1" "2 June 2001" "MJPEG Tools Team" "MJPEG tools manual".SH "NAME".LP .br mplex \- MPEG 1/2 program/system stream multiplexer.br .SH "SYNOPSIS".B mplex.RB [ -v|--verbose.IR num ].RB [ -b|--video-buffer.IR video_buffer_size_kB [,.IR video_buffer_size_kB ...] ].RB [ -L|--lpcm-params.IR params [,.IR params ... ] ].RB [ -r|--muxed-bitrate.IR muxed_bitrate_kbps ].RB [ -l|--mux-limit .IR num ].RB [ -O|--sync-offset.IR num[\fBms\fP|\fBs\fP|\fBpts\fP] ].RB [ -f|--format.IR format_code ].RB [ -V|--vbr].RB [ -s|--sector-size.IR sector_size_B ].RB [ -p|--packets-per-pack.IR num ].RB [ -h|--system-headers ].RB [ -S|--max-segment-size.IR output_filesize_limit_MB ].RB [ -M|--split-segment].RB [ -?|--help ].BI -o|--output \ output_filename_pattern \ input_file....SH "DESCRIPTION"Mplex is a general-purpose audio/video multiplexer for MPEG-1/MPEG-2.It accepts one or more MPEG-1/2 video stream, MPEG layer I/II/III, DTS, AC3 and LPCM audio streams and multiplexes them into a combinedprogram/system stream according to the constraints specified.  Manydifferent types of output structure are supported along with presetsfor standard VCD and SVCD streams.  These latter can be burned to CDusing tools such as \fBvcdimager\fP(1) and played in stand-aloneplayers.It is also capable of automatically splitting the output stream intochunks of a specified size either independently or at sequence end/startpoints in the input video stream..SH "GENERAL FUNCTION LETTERS".TP.BI -o|--output \ output_filename_patternThis mandatory option sets the pattern for the name(s) of output files.An integer format code (e.g. %d) in the name is replaced by the number ofthe file generated (see \fBprintf\fP(3))..TP.BI -v|--verbose \ numSet verbosity level to \fInum\fP: 0 - warnings and errors only, 1 - information as well, 2 - really verbose..TP.B -?|--helpDisplay a synopsis of the command syntax..br.SH "FUNCTION LETTERS".TP.BI -f|--format \ format_codeThis command allows one of a number of convenient preset outputformats or generic MPEG1 or MPEG2 output to be selected. For the generic formats other function letters can be used to control manyaspects of the multiplexed stream.  For VCD/SVCD/DVD compliant outputthe corresponding formats \fImust\fR be used as the standards require themultiplexer to enforce a variety of special constraints on the structureof the output stream..IP 0 - Generic MPEG1.  A simple general-purpose MPEG1 format primarily suitablefor software decoders.  Buffer sizes and VBR must be specified.Bit-rate can be auto-detected. 1 - VCD.  Standard VCD.  Overrides other option settings. 2 - User VCD.  VCD format but buffer size, bit rate and VBR can be setmanually. 3 - Generic MPEG2.  Like 0 except MPEG2. 4 - SVCD.  Standard SVCD.  Overrides other option settings. 5 - User-rate SVCD.  SVCD format but buffer size bit rate and VBR can be set. 6 - VCD Stills stream (mixed mode with hi-res and standard-res image streams	 multiplexed are supported). 7 - SVCD Stills stream. 8 - DVD (with NAV sectors). Don't get too excited.  This is really a very minimal mux format.  It includes empty versions of the peculiar VOBU start sectors DVD VOB's include.  This is enough to persuade some hardware players to play the stream but is a long way from full DVD authoring. 9 - DVD.  As above but without the empty VOBU sectors..TP.BI -W|--workarounds \ workaround_flag\  \fR [, \fIworkaround_flag\fR ...].brA comma-seperated list of flags that set special work-arounds for whatare suspected to be parser Bugs in widely used players. No workarounds are (currently) implemented but history suggests this may change quickly ;-).TP.BI -r|--mux-bitrate \ numThe total (non VBR) / peak (VBR) bit-rate of the output stream in kBits/sec. If unspecified and not set by a preset it is automaticallycalculated from the input stream..TP.BI -b|--video-buffer \ numlistA comma-seperateed list of video decoder buffer sizes in KB for thevideo streams (given in the order the video streams appear on thecommand line).  The default is 46KB the (tiny) size specified for VCD.The size to use for SVCD is the (more reasonable) 230KB.  If you areencoding for a half-decent software decoder it makes sense to pushthis up to 500K or more..TP.BI -L|--lpcm-params.I samples_per_sec:channels:bits_per_sample.br[,.I samples_per_sec:channels:bits_per_sample...].brA comma-seperated list of paramter sets for the lpcm audio streams(given in the order the lpcm streams appear on the command line).Each parameter set comprises the sampling rate in Hz, the number ofchannels, and the number of bits per sample seperated by colons.  Forexample, the default 48kHz two-channel 16-bit audio would be specifiedas 48000:2:16..IPNote: these parameters are necessary because mplex expects raw LPCMaudio data without any headers.  That is: for each sample point agroup of 16,20, or 24 bit amplitude values, one for eachchannel. Amplitude values are signed with the constituent bytes inbig-endian (most significant bytes first) order.  For 20 bitsamples I am not sure but what documentation I have suggests suchsamples are padded at the lsb end so that they byte-align at the mostsignificant bits..TP.BI -l|--mux-limit \ numMultiplex limit.  Multiplex only the specified number of seconds.Useful for tuning and debugging..TP.BI -O|--sync-offset \ num[\fBms\fP|\fBs\fP|\Bmpt\fP]Set the presentation timestamp offset of video stream w.r.t. audio stream (video-audio) in mSec.   This flag is used to produce a stream with synchronisedaudio/video when one stream started before/after the other.  This is commonwhen transcoding as the synchronisation information is typically lost duringthe (seperate) decoding/encoding of audio and video..IPBy appending 's', 'ms' or 'mpt' the offset can given in seconds,milliseconds or MPEG clock ticks (1/90000th of a second) respectively.If no suffix is given milliseconds are assumed..TP.B -V|--vbrSet variable bit rate multiplexing.  This is needed to multiplex variablebit-rate video streams correctly..TP.BI -s|--sector-size \ numThis option specifies the sector size of the output stream in bytes..TP.BI -p|--packets-per-pack \ numThis option specifies the number of packets per pack in the output stream..TP.BI -S|--max-segment-size \ numThis option specifies the maximum size of output files in MBytes (2^10)When the limit is reached a  new file is started.The default is (0) unlimited..IPNote: This option is .I notfor splitting a long video across multiple VCD's or SVCD's.It simply splits a single long sequence into in a way that preventsbits of a video GOP(group of pictures) or audio frame being splitbetween chunks.  This is fine for formats like thatused for DVDs where all stream parameters appear every GOP.  However,for VCD / SVCD it won't work as the players expect each file to start a new MPEG sequence.For VCD / SVCD a different technique is used.  If mplex encounters asequence break (sequence end followed by start) in the input videostream it starts a new output stream and file at the sequence start.Thus to split a long video across VCD's/SVCD's you have to get theMPEG video encoder to introduce sequence splits at the right points(see mpeg2enc(1) for details of how to do this)..TP.B -M|--ignore-seqend-markersThis flag makes mplex ignore sequence end markers embedded in thefirst video stream instead of switching to a new output file.  This issometimes useful splitting a long stream in files based on a -S limitthat doesn't need a run-in/run-out like (S)VCD..TP.B -h|--system-headersA system header is generated in every pack rather than just in the first..SH "DIAGNOSTIC OUTPUT"When multiplexing using mplex you may get warning or error messagescomplaining about buffer underflow.  This means that the bit-rate youhave specified is simply too low to permit the video and audio to beplayed back without skipping.  The fix is to either reduce thedata-rate of the input material or increased the output stream bit-rate..SH "BUGS"The multiplexer should handle MPEG(5.1) audio..SH AUTHORThis man page was written by Andrew Stevens..brIf you have questions, remarks, problems or you just want to contactthe developers, the main mailing list for the MJPEG\-tools is:  \fImjpeg\-users@lists.sourceforge.net\fPFor more info, see our website at  \fIhttp://mjpeg.sourceforge.net\fP.SH "SEE ALSO".BR mpeg2enc "(1), " mp2enc "(1), " lavrec "(1), " lavplay "(1), ".BR lav2yuv "(1), " lav2wav "(1), " yuvscaler "(1)"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -