Ppmtompeg User Manual(0) Ppmtompeg User Manual(0) (NAME) ppmtompeg - MPEG-1 (SYNOPSIS) ppmtompeg [options] parameter-file (DESCRIPTION) Netpbm(1) . ppmtompeg MPEG-1 . MPEG-1 Video CD (VCD) . ppmtompeg . DVD MPEG-2 . MPEG-4 Divx . . () ppmtompeg MPEG-1 . Mencoder Mplayer . PM2V MPEG-2 . Mplayer ( Netpbm ) : PNM MPEG. param_file . . MPEG-1 . Introduction to MPEG Compression FAQ . (OPTIONS) -gop -combine_gops -frames -combine_frames . -stat stat_file ppmtompeg stat_file . : (bpb) (bpf) (spf) (bps). I P B . -quiet num_seconds ppmtompeg num_seconds ( ). ppmtompeg . 0 ( ). . -realquiet ppmtompeg . stdin . -quiet Netpbm . -no_frame_summary ppmtompeg . -float_dct ppmtompeg DCT . -gop gop_num ppmtompeg GOP ( GOP 0 ). . .gop.gop_num . ppmtompeg . -combine_gops ppmtompeg GOP MPEG . ppmtompeg . SIZE GOP ( ). GOP ppmtompeg ( -gop) gop . GOP -- INPUT_DIR INPUT END_INPUT GOP_INPUT_DIR GOP_INPUT GOP_END_INPUT . GOP .gop.gop_num gop_num 0 . GOP GOP (-gop) MPEG (-combine_gops) . -frames first_frame last_frame ppmtompeg first_frame last_frame ( ) . . .frame.frame_num. GOP . ( GOP_SIZE ). MPEG ppmtompeg -combine_frames . -combine_frames ppmtompeg MPEG ( ppmtompeg -frames ) MPEG . GOP . SIZE GOP_SIZE ( ). -- INPUT_DIR INPUT END_INPUT FRAME_INPUT_DIR FRAME_INPUT FRAME_END_INPUT . .frame.frame_num frame_num 0 . -nice ppmtompeg (remote) (nice) . ( ppmtompeg . ). "man nice" ..TP -max_machines num_machines ppmtompeg num_machines (slave) . -snr ppmtompeg (SNR) . SNR (Y U V) SNR (Y U V) . (Y) . SNR 10*log( / ) . SNR 20*log(255/RMSE) . ppmtompeg . -mse ppmtompeg (MSE) . -snr . -bit_rate_info rate_file ppmtompeg rate_file . I I . -mv_histogram ppmtompeg . -- P B B. . (0,0) . -debug_sockets ppmtompeg ppmtompeg <#parallel> . -debug_machines ppmtompeg ppmtompeg <#parallel> . (PARAMETER FILE) ( -combine_gops -combine_frames): PATTERN pattern () I P B . pattern I P B . : PATTERN IBBPBBPBBPBBPBB : I P B <#ipb> . OUTPUT output file MPEG . INPUT_DIR directory () . directory . . . directory (null) . ppmtompeg : INPUT_DIR stdin INPUT ( ) END_INPUT . INPUT END_INPUT . . single_star_expr [x-y] . single_star_expr * . x y ( ) . tennis*.ppm [12-15] tennis12.ppm tennis13.ppm tennis14.ppm tennis15.ppm . (zero-padding) . football.*.ppm [001-130] football.001.ppm football.002.ppm ... football.009.ppm football.010.ppm ... football.130.ppm . : single_star_expr [x-y+s] s . football.*.ppm [001-130+4] football.001.ppm football.005.ppm football.009.ppm football.013.ppm . . Bourne Shell : `cat myfilelist` ( INPUT_DIR) ppmtompeg INPUT/END_INPUT . BASE_FILE_FORMAT {PPM | PNM | YUV | JPEG | JMOVIE} ppmtompeg : PNM YUV JPEG(v4) JMOVIE. ( ). . PPM PNM . . PPM PNM . INPUT_CONVERT conversion_command . : INPUT_CONVERT * conversion_command BASE_FILE_FORMAT . ppmtompeg INPUT END_INPUT ( ) . ppmtompeg '*' . gif : INPUT_CONVERT giftopnm * a.Y a.U a.V ( subsample U V ) : INPUT_CONVERT cat *.Y *.U *.V stdin INPUT_CONVERT * . SIZE widthxheight width height . ppmtompeg SIZE . YUV SIZE . ppmtompeg SIZE . YUV_SIZE widthxheight SIZE . YUV_FORMAT {ABEKAS | PHILLIPS | UCB | EYUV | pattern} BASE_FILE_FORMAT YUV . YUV . GOP_SIZE n n (Group of Pictures GOP) . GOP I ppmtompeg GOP n GOP I . GOP ( PATTERN ). Group Of Pictures <#gop> . SLICES_PER_FRAME n n . MPEG . SLICES_PER_FRAME . PIXEL {FULL | HALF} . . RANGE n n . ( n*2 ). PSEARCH_ALG {EXHAUSTIVE | TWOLEVEL | SUBSAMPLE | LOGARITHMIC} ppmtompeg () P . . EXHAUSTIVE LOGARITHMIC . TWOLEVEL ( PIXEL ). BSEARCH_ALG {SIMPLE | CROSS2 | EXHAUSTIVE} ppmtompeg () B . SIMPLE . CROSS2 . EXHAUSTIVE n (n-squared) ( CROSS2 SIMPLE ). IQSCALE n n qscale I. Qscale <#qscale> . PQSCALE n n qscale P. Qscale <#qscale> . BQSCALE n n qscale B. Qscale <#qscale> . REFERENCE_FRAME {ORIGINAL | DECODED} ppmtompeg . . ( ). ORIGINAL qscale ( QSCALE ). () -------------------------------------------------------------------- Reference Compression Speed Quality I Quality P Quality B Decoded 1000 1000 1000 969 919 Original 885 1373 1000 912 884 : FORCE_ENCODE_LAST_FRAME . Netpbm 10.26 ( ) ppmtompeg B B . ( I Frames, P Frames, B Frames <#ipb> .) ppmtompeg FORCE_ENCODE_LAST_FRAME . NIQTABLE (non-intra) . ppmtompeg . NIQTABLE . ..TP IQTABLE NIQTABLE (intra quantization table) . ASPECT_RATIO ratio (aspect ratio) ppmtompeg MPEG . . ratio 1.0 0.6735 0.7031 0.7615 0.8055 0.8437 0.8935 0.9157 0.9815 1.0255 1.0695 1.0950 1.1575 1.2015 . FRAME_RATE rate (frame rate) ppmtompeg MPEG . . rate 23.976 24 25 29.97 30 50 59.94 60 . BIT_RATE rate (CBR Constant Bit Rate) . rate . BUFFER_SIZE size ppmtompeg MPEG Video Buffering Verifier (VBV) . (Video Verifying Buffer) . ppmtompeg VBV VBV . WARN_VBV_UNDERFLOW ppmtompeg (underflow) . WARN_VBV_OVERFLOW ppmtompeg (overflow) . WARN_VBV_UNDERFLOW WARN_VBV_OVERFLOW BUFFER_SIZE . Netpbm 10.26 ( ) . ppmtompeg . (parallel) : PARALLEL END PARALLEL ppmtompeg . Parallel Operation <#parallel> . END PARALLEL PARALLEL . PARALLEL_TEST_FRAMES n (master) (slave) . n slave . . ppmtompeg . . FORCE_I_ALIGN ppmtompeg . slave ppmtompeg slave . PARALLEL_TIME_CHUNKS t (master) slave t . master ( PARALLEL_TEST_FRAMES ) . slave . t (load balancing) . . PARALLEL_TIME_CHUNKS PARALLEL_CHUNK_TAPER PARALLEL_PERFECT . PARALLEL_CHUNK_TAPER . PARALLEL_CHUNK_TAPER master PARALLEL_TIME_CHUNKS master . . slave slave . PARALLEL_TIME_CHUNKS PARALLEL_CHUNK_TAPER PARALLEL_PERFECT . PARALLEL_CHUNK_TAPER . PARALLEL_PERFECT ppmtompeg . master slave slave . slave slave . . slave . slave (burst) Combine Server Combine Server . PARALLEL_TIME_CHUNKS PARALLEL_CHUNK_TAPER PARALLEL_PERFECT . PARALLEL_CHUNK_TAPER . RSH remote_shell_command ppmtompeg remote_shell_command . rsh . ssh . ppmtompeg : ssh remote.host.com -l username shellcommand. .rhosts SSH . . HP rsh (restricted shell) remsh . FORCE_I_ALIGN slave ( PATTERN ). I slave I . FORCE_I_ALIGN ppmtompeg ( ). ppmtompeg . KEEP_TEMP_FILES ppmtompeg Combine Server . -frames . (debugging) ..sp . Netpbm 10.26 ( ) . (Parameter File Notes) -combine_gops SIZE OUTPUT . GOP -- INPUT_DIR INPUT END_INPUT GOP_INPUT_DIR GOP_INPUT GOP_END_INPUT . GOP ppmtompeg .gop.gop_num gop_num 0 . -combine_frames SIZE GOP_SIZE OUTPUT . -- INPUT_DIR INPUT END_INPUT FRAME_INPUT_DIR FRAME_INPUT FRAME_END_INPUT . .frame.frame_num frame_num 0 . . # . INPUT END_INPUT . -combine_gops -combine_frames . (case-sensitive) . ( INPUT ... END INPUT) . ppmtompeg stdin B . ( ppmtompeg B_FRAME_RUN frame.c ). (GENERAL USAGE INFORMATION) Qscale (qscale) . Qscale . qscale I P B . qscale IQSCALE PQSCALE BSCALE . qscale 1 31 . . (peak signal-to-noise ratio) : (signal-to-noise formula) MSE (mean squared error) . Flower garden: Qscale (Quality) ---------------------------------------- Qscale I Frames P Frames B Frames 1 43.2 46.3 46.5 6 32.6 34.6 34.3 11 28.6 29.5 30.0 16 26.3 26.8 28.6 21 24.7 25.0 27.9 26 23.5 23.9 27.5 31 22.6 23.0 27.3 Qscale (Compression) ---------------------------------------- Qscale I Frames P Frames B Frames 1 2 2 2 6 7 10 15 11 11 18 43 16 15 29 97 21 19 41 173 26 24 56 256 31 28 73 330 (motion vector) . P B . . P : Exhaustive TwoLevel SubSample Logarithmic. B : Exhaustive Cross2 Simple. TwoLevel Logarithmic P Cross2 Simple B . : P () ------------------------------------------------------------------------------------ #smallbetter 1 #largefaster 2 #largebetter 3 Exhaustive 1000 1000 1000 SubSample 1008 2456 1000 TwoLevel 1009 3237 1000 Logarithmic 1085 8229 998 B () ------------------------------------------------------------------------------------ #smallbetter 1 #largefaster 2 #largebetter 3 Exhaustive 1000 1000 1000 Cross2 975 1000 996 Simple 938 1765 991 1 . 2 . 3 . Simple . PSEARCH_ALG BSEARCH_ALG . << >> (GOP Group of Pictures) . MPEG GOP . GOP GOP_SIZE . GOP I . GOP . -gop . ppmtompeg -combine_gops GOP . (Slices) (slice) . . . . . SLICES_PER_FRAME . MPEG . H SLICES_PER_FRAME H/16 . ( ) . : MPEG MPEG . (Search Window) ppmtompeg (motion vectors) . . RANGE PIXEL . I P B MPEG-1 MPEG I P B . ( <<>> MPEG ). I ( <<>> intra) . P ( <<>> predictive) I P . B ( <<>> bidirectional) I P . I ( ) I P ( ). . IBPBP ppmtompeg . . : I/P/B () --------------------------------------------------------------------------------- I 1000 1000 1000 P 409 609 969 B 72 260 919 ( qscale ) IBBPBBPBBPBBPBB . PATTERN . MPEG B ( ) B ppmtompeg I . Netpbm 10.26 ( ) ppmtompeg B FORCE_ENCODE_LAST_FRAME . MPEG MPEG-1 B I P . IBBP MPEG-1 I . MPEG-1 P . MPEG-1 B . INPUT_DIR INPUT END_INPUT BASE_FILE_FORMAT SIZE YUV_FORMAT INPUT_CONVERT . OUTPUT . (Statistics) ppmtompeg . -stat -snr -mv_histogram -quiet -no_frame_summary -bit_rate_info . (PARALLEL OPERATION) ppmtompeg MPEG . . << >> . ppmtompeg-par.gif PARALLEL ( ) END_PARALLEL . . : machine user executable ppmtompeg ( ). : REMOTE machine user executable parameter file -max_machines ppmtompeg . -max_machines ppmtompeg . . . ppmtompeg . ( NFS (mountpoint) (mount) ). SIZE . ppmtompeg (master) . << >> (combine server) << >> (decode server) << />> (i/o servers) . ( ) (slave) . . slave MPEG . . (remote shell) slave . rsh RSH . ppmtompeg slave . TCP . (port) TCP (bind) . . PARALLEL_TEST_FRAMES PARALLEL_TIME_CHUNKS PARALLEL_PERFECT slave . -nice slave (nice) . CPU ( ) . ppmtompeg () : --------------------------------------- Machine Type Macroblocks per second1 HP 9000/755 280 DEC 3000/400 247 HP 9000/750 191 Sparc 10 104 DEC 5000 68 1 x . . 10 MB/s (CPU) . . (slaves) -- REMOTE -- . / (I/O) . YUV PPM JPEG . -debug_machines . -debug_sockets . (AUTHORS) o Kevin Gong - keving@cs.berkeley.edu o Ketan Patel - kpatel@cs.berkeley.edu o Dan Wallach - dwallach@cs.berkeley.edu o Darryl Brown - darryl@cs.berkeley.edu o Eugene Hung - eyhung@cs.berkeley.edu o Steve Smoot - smoot@cs.berkeley.edu (DOCUMENT SOURCE) Netpbm 'makeman' HTML . : http://netpbm.sourceforge.net/doc/ppmtompeg.html netpbm documentation 23 July 2006 Ppmtompeg User Manual(0)