wk@mama ~ $ transcode -i bike-pro.mpeg -M 3 -ympeg2enc,mp2enc -F 3,"-b 4000 -q 1" -b 224 -o fertich transcode v1.0.2 (C) 2001-2003 Thomas Oestreich, 2003-2004 T. Bitterberg libdvdread: Using libdvdcss version 1.2.9 for DVD access libdvdread: Can't open file VIDEO_TS.IFO. [transcode] (probe) suggested AV correction -D 0 (0 ms) | AV 0 ms | 0 ms [transcode] auto-probing source bike-pro.mpeg (ok) [transcode] V: import format | MPEG (V=mpeg2|A=mp3) [transcode] V: AV demux/sync | (3) sync AV at initial PTS [transcode] V: import frame | 352x288 1.22:1 encoded @ 4:3 [transcode] V: bits/pixel | 0.710 [transcode] V: decoding fps,frc | 25.000,3 [transcode] V: Y'CbCr | YV12/I420 [transcode] A: import format | 0x50 MPEG layer-2 [44100,16,2] 224 kbps [transcode] A: export format | 0x50 MPEG layer-2 [44100,16,2] 224 kbps [transcode] V: encoding fps,frc | 25.000,3 [transcode] A: bytes per frame | 7056 (7056.000000) [transcode] A: adjustment | 0@1000 [transcode] V: IA32/AMD64 accel | sse3 (sse3 sse2 sse 3dnowext 3dnow mmxext mmx asm C) tc_memcpy: using sse for memcpy [transcode] V: video buffer | 10 @ 352x288 [import_mp3.so] v0.1.4 (2003-08-04) (audio) MPEG [import_mpeg2.so] v0.4.0 (2003-10-02) (video) MPEG2 [export_mp2enc.so] v1.0.10 (2004-09-27) (audio) MPEG 1/2 [export_mpeg2enc.so] v1.1.10 (2003-10-30) (video) MPEG 1/2 [import_mp3.so] MP3->PCM [import_mp3.so] tcextract -a 0 -i "bike-pro.mpeg" -x mp2 -d 0 | tcdecode -x mp2 -d 0 -z 0 [import_mpeg2.so] tcextract -x mpeg2 -i "bike-pro.mpeg" -d 0 | tcdecode -x mpeg2 -d 0 -y yv12 [export_mpeg2enc.so] *** init-v *** ! [export_mp2enc.so] *** init-v *** ! [export_mpeg2enc.so] cmd=mpeg2enc -v 0 -I 0 -q 3 -f 3 -4 2 -2 3 -b 1800 -s -F 3 -n p -a 8 -o "fertich.m2v" -b 4000 -q 1 [export_mp2enc.so] (48/4096) cmd=mp2enc -v 0 -r 44100 -b 224 -s -o "fertich.mpa" tc_memcpy: using sse for memcpy (extract_mpeg2.c) missing start code at 0x1214 (extract_mpeg2.c) incorrect zero-byte padding detected - ignored tc_memcpy: using sse for memcpy (extract_mp3.c) missing start code at 0x1214 (extract_mp3.c) incorrect zero-byte padding detected - ignored [decode_mpeg2.c] libmpeg2 0.4.0b loop decoder [decode_mpeg2.c] libmpeg2 acceleration: 3dnow **ERROR: [mpeg2enc] For MPEG-2, aspect ratio code 8 is illegal --verbose|-v num Level of verbosity. 0 = quiet, 1 = normal 2 = verbose/debug --format|-f fmt Set pre-defined mux format fmt. [0 = Generic MPEG1, 1 = standard VCD, 2 = user VCD, 3 = Generic MPEG2, 4 = standard SVCD, 5 = user SVCD, 6 = VCD Stills sequences, 7 = SVCD Stills sequences, 8|9 = DVD] --aspect|-a num Set displayed image aspect ratio image (default: 2 = 4:3) [1 = 1:1, 2 = 4:3, 3 = 16:9, 4 = 2.21:1] --frame-rate|-F num Set playback frame rate of encoded video (default: frame rate of input stream) 0 = Display frame rate code table --video-bitrate|-b num Set Bitrate of compressed video in KBit/sec (default: 1152 for VCD, 2500 for SVCD, 7500 for DVD) --nonvideo-bitrate|-B num Non-video data bitrate to assume for sequence splitting calculations (see also --sequence-length). --quantisation|-q num Image data quantisation factor [1..31] (1 is best quality, no default) When quantisation is set variable bit-rate encoding is activated and the --bitrate value sets an *upper-bound* video data-rate --output|-o pathname Pathname of output file or fifo (REQUIRED!!!) --target-still-size|-T size Size in KB of VCD stills --interlace-mode|-I num Sets MPEG 2 motion estimation and encoding modes: 0 = Progressive (non-interlaced)(Movies) 1 = Interlaced source material (video) 2 = Interlaced source material, per-field-encoding (video) --motion-search-radius|-r num Motion compensation search radius [0..32] (default 16) --reduction-4x4|-4 num Reduction factor for 4x4 subsampled candidate motion estimates [1..4] [1 = max quality, 4 = max. speed] (default: 2) --reduction-2x2|-2 num Reduction factor for 2x2 subsampled candidate motion estimates [1..4] [1 = max quality, 4 = max. speed] (default: 3) --min-gop-size|-g num Minimum size Group-of-Pictures (default depends on selected format) --max-gop-size|-G num Maximum size Group-of-Pictures (default depends on selected format) If min-gop is less than max-gop, mpeg2enc attempts to place GOP boundaries to coincide with scene changes --closed-gop|-c All Group-of-Pictures are closed. Useful for authoring multi-angle DVD --force-b-b-p|-P Preserve two B frames between I/P frames when placing GOP boundaries --quantisation-reduction|-Q num Max. quantisation reduction for highly active blocks [0.0 .. 4.0] (default: 0.0) --quant-reduction-max-var|-X num Luma variance below which quantisation boost (-Q) is used [0.0 .. 2500.0](default: 0.0) --video-buffer|-V num Target decoders video buffer size in KB (default 46) --video-norm|-n n|p|s Tag output to suit playback in specified video norm (n = NTSC, p = PAL, s = SECAM) (default: PAL) --sequence-length|-S num Place a sequence boundary in the video stream so they occur every num Mbytes once the video is multiplexed with audio etc. N.b. --non-video-bitrate is used to the bitrate of the other data that will be multiplexed with this video stream --3-2-pulldown|-p Generate header flags for 3-2 pull down of 24fps movie material --intra_dc_prec|-D [8..11] Set number of bits precision for DC (base colour) of blocks in MPEG-2 --reduce-hf|-N num [0.0..2.0] Reduce hf resolution (increase quantization) by num (default: 0.0) --keep-hf|-H Maximise high-frequency resolution - useful for high quality sources and/or high bit-rates) --sequence-header-every-gop|-s Include a sequence header every GOP if the selected format doesn't do so by default. --no-dummy-svcd-SOF|-d Do not generate dummy SVCD scan-data for the ISO CD image generator "vcdimager" to fill in. --playback-field-order|-z b|t Force setting of playback field order to bottom or top first --multi-thread|-M num Activate multi-threading to optimise throughput on a system with num CPU's [0..32], 0=no multithreading, (default: 0) --correct-svcd-hds|-C Force SVCD horizontal_display_size to be 480 - standards say 540 or 720 But many DVD/SVCD players screw up with these values. --no-constraints Deactivate constraints for maximum video resolution and sample rate. Could expose bugs in the software at very high resolutions! --no-altscan-mpeg2 Deactivate the use of the alternate block pattern for MPEG-2. This is A work-around for a Bug in an obscure hardware decoder. --dualprime-mpeg2 Turn ON use of dual-prime motion compensation. Default is OFF unless this option is used --custom-quant-matrices|-K kvcd|tmpgenc|default|hi-res|file=inputfile|help Request custom or userspecified (from a file) quantization matrices --unit-coeff-elim|-E num Skip picture blocks which appear to carry little information because they code to only unit coefficients. The number specifies how aggresively this should be done. A negative value means DC coefficients are included. Reasonable values -40 to 40 --b-per-refframe| -R 0|1|2 The number of B frames to generate between each I/P frame --cbr|-u For MPEG-2 force the use of (suboptimal) ConstantBitRate (CBR) encoding --help|-? Print this lot out! Broken pipe pwk@mama ~ $ **ERROR: [mp2enc] Error reading wave data sh: line 1: 22300 Broken pipe tcextract -a 0 -i "bike-pro.mpeg" -x mp2 -d 0 22301 | tcdecode -x mp2 -d 0 -z 0 sh: line 1: 22302 Broken pipe tcextract -x mpeg2 -i "bike-pro.mpeg" -d 0 22303 | tcdecode -x mpeg2 -d 0 -y yv12