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

📄 lavpipe.1

📁 Motion JPEG编解码器源代码
💻 1
字号:
.TH "lavpipe" "1" "2 June 2001" "MJPEG Linux Square" "MJPEG tools manual".SH "NAME"lavpipe \- creates raw YUV streams from pipe list scripts.SH "SYNOPSIS".B lavpipe.RB [ -o.IR num ].RB [ -n.IR num ].I pipe-list.SH "DESCRIPTION"lavpipe reads a script file called 'pipe list'that is of a similar structure as the edit lists thatcan be fed into lav2yuv.  For info about the pipe list formatsee below.The pipe list defines several video sources and filtersthat are combined by lavpipe to produce a single output YUVstream on stdout (which for example can be compressed andstored to disk via.BR mpeg2enc "(1) or " yuv2lav "(1)).".SH "OPTIONS"The command line options are used to output a specificpart of the resulting video stream.  That means you cantell lavpipe how many frames to skip and how many framesto deliver from that point on..TP.BI "-o " numThis is the frame offset of the output video. The first.I numframes of the resulting video simply are neither calculatednor written to stdout. This value defaults to 0..TP.BI "-n " numThis is the frame count. If the input files or streams definedin the pipe list script are long enough, the output will beof exactly.I numframes length. A value of 0 means that all frames until thelast one as defined in the pipe list will be written out, aslong as there's some input (0 is the default)..TP.I pipe-listThis is name of the pipe list file that lavpipe will 'execute'.For information about this file's format see below..TP.B -?Display a synopsis of the command syntax..SH "EXAMPLES".TPlavpipe -o 100 -n 25 film.pliwould calculate and output to stdout frames 100 to 124 asdefined in film.pli (in PAL this would be the 5th second ofthe film)..TPlavpipe input.pli | yuv2lav -q80 output.aviwould save the movie assembled by lavpipe as a single AVI file..SH "USAGE"In this section the format of lavpipe's input files the pipelist scripts is explained. If you need some examples or a moredetailed tutorial, please read the.BR mjpegtools "(1) manpage's section about".BR "CREATING MOVIE TRANSITIONS" ". and the file".I README.lavpipethat should be included in the distribution.Also feel free to contact us via the mailing list (see below).A pipe list contains of two parts: the YUV.B source listand after this, as many.B sequence descriptionsas wanted. It always begins with the following two lines:.TP.B LAV Pipe ListThis is the first line in every pipe list script. It is used asa simple test if lavpipe really was given a pipe list script andnot your PhD thesis as input..TP.BR NTSC | PALThis is the second line in every pipe list and can be either PALor NTSC, depending on what video standard you use. I don't rememberif this is used at the moment..PPNow follows the.BR "source list" :.TP.I numThis is the number of input commands. lavpipe will read the next.I numlines and interpret them as input stream commands..TP.IR command \ ( num \ times)This is a valid command line with two variables $o and $n thatwill be replaced by lavpipe with the offset and number of framesthat the program has to output. Example:.br.B lav2yuv -o $o -f $n input.avi.PP.RB "Thus, an example " "source list" " could look like this:".br.B 2.br.B lav2yuv -o $o -f $n scene1.avi.br.B lav2yuv -o $o -f $n scene2.aviafter this you can append as many.B sequence descriptionsas needed. Each of them is built up as follows:.TP.I numThe number of frames that this sequence will last..TP.I numThe number of inputs that will be used in this sequence.This number must of course be less than or equal to thenumber of inputs that are defined above..TP.IR idx " [" ofs "] (" num " times)"These are the indices to the sources that are definedat the beginning of the file (first source is 0) withan optional frame offset (i.e. sequence starts with.RI "frame number " ofs " of this input.) - this value"defaults to 0. Example:.br.B 0 150.TP.I commandThis is a valid command line to a YUV filter tool that reads.IR num " input streams and writes one output stream, combining"its inputs. Optionally, the filter tool can be given the two$o and $n variables that will be replaced by lavpipe as inthe source commands (see above). For further info read.IR README.lavpipe " or the documentation for the filter"programs (if available). An example filter could look like this:.br.B transist.flt -o 0 -O 255 -s $o -n $n -d 50.brAnd if the sequence only has one input that simply should becopied to the output, you can use a dash instead of a command line:.br.B -.PPAnd here's an example for a complete pipe list that implementsa transistion from scene1.avi to scene2.avi (remove the comments after #):.B LAV Pipe List.br.B PAL.br.B 2.br.B lav2yuv -o $o -f $n scene1.avi.br.B lav2yuv -o $o -f $n scene2.avi.br.BR 50   "            # first sequence: 50 frames".br.BR 1   "             #   contains one input:".br.BR "0 0" "           #     scene1.avi, offset 0".br.BR -   "             #   simple output".br.BR 25   "            # second sequence: 25 frames".br.BR 2   "             #   contains two inputs:".br.BR "0 50" "          #     scene1.avi, offset 50".br.BR 1   "             #     scene2.avi, offset 0".br.BR "transist.flt -o 0 -O 255 -s $o -n $n -d 50" " # transistion".br.BR 50   "            # third sequence: 50 frames".br.BR 1   "             #   contains one input:".br.BR "1 25" "          #     scene2.avi, offset 25".br.BR -   "             #   simple output".SH "BUGS"I'm sure there are enough of them. lavpipe often acceptsmalformed pipe lists and then writes out a video that wasall but intended - without warning..SH "NOTES"There are also some serious limitations in the system, suchas frame-by-frame processing. But as the goal when writinglavpipe was the simplicity of the pipeline, other tools willhave to be written to do more interesting tasks..brBut I want to note that it is very well possible to writea pipe list that combines several files, and then use thatpipe list as an input for another pipe list by simplyusing the lavpipe command in the source list (see above) -this can be already used to do some nice things, if youhave some nice filters..SH AUTHORThis man page was written by pHilipp Zabel..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\fP.TPFor more info, see our website at.I http://mjpeg.sourceforge.net.SH "SEE ALSO".BR lav2yuv (1),.BR lavplay (1),.BR lavrec (1),.BR mpeg2enc (1),.BR yuv2lav (1),.BR yuvscaler (1)

⌨️ 快捷键说明

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