Linux Video Stream Processing Tool - Examples
Keywords: DVD, digital video, DV, encoder, divx, DivX;-), lame, source, posix, avifile, opendivx, codec, linux, AC3, program stream, video, audio, transcode, decoder, stream, YV12

Command line options:
'transcode -h' prints a list of available command line options: `-i name input file/directory/device/mountpoint/host name
-H n auto-probe n MB of source (0=off) [1]
-p file read audio stream from separate file [off]
-x vmod[,amod] video[,audio] import modules [null]
-a a[,v] extract audio[,video] track [0,0]
-e r[,b[,c]] PCM audio stream parameter [48000,16,2]
-E r[,b[,c]] audio output samplerate, bits, channels [as input]
-n 0xnn import audio format id [0x2000]
-N 0xnn export audio format id [0x55]
-b b[,vbr[,q]] audio encoder bitrate kBits/s[,vbr[,quality]] [128,0,5]
--no_audio_adjust disable audio frame sample adjustment [off]
--no_bitreservoir disable lame bitreservoir [off]
-g wxh RGB video stream frame size [720x576]
--export_asr C set export aspect ratio code C [as input]
--import_asr C set import aspect ratio code C [auto]
--keep_asr try to keep aspect ratio (only with -Z) [off]
-f rate[,frc] output video frame rate[,frc] [25.000,0] fps
--export_frc F set export frame rate code F [as input]
-o file output file name
-m file write audio stream to separate file [off]
-y vmod[,amod] video[,audio] export modules [null]
-F codec encoder parameter strings [module dependent]
--avi_limit N split output AVI file after N MB [2048]
-d swap bytes in audio stream [off]
-s g[,c[,f[,r]]] increase volume by gain,[center,front,rear] [off,1,1,1]
-u m[,n] use m framebuffer[,n threads] for AV processing [10,1]
-A use AC3 as internal audio codec [off]
-V use YV12/I420 as internal video codec [off]
-J f1[,f2[,...]] apply external filter plugins [off]
-P flag pass-through flag (0=off|1=V|2=A|3=A+V) [0]
-D num sync video start with audio frame num [0]
--av_fine_ms t AV fine-tuning shift t in millisecs [autodetect]
-M mode demuxer PES AV sync mode (0=off|1=PTS only|2=full) [1]
-O flush lame mp3 buffer on encoder stop [off]
-r n[,m] reduce video height/width by n[,m] [off]
-B n[,m[,M]] resize to height-n*M rows [,width-m*M] columns [off,32]
-X n[,m[,M]] resize to height+n*M rows [,width+m*M] columns [off,32]
-Z wxh resize to w columns, h rows with filtering [off]
--zoom_filter string use filter string for video resampling -Z [Lanczos3]
-C mode enable anti-aliasing mode (1-3) [off]
--antialias_para w,b center pixel weight, xy-bias [0.333,0.500]
-I mode enable de-interlacing mode (1-3) [off]
-K enable b/w mode [off]
-G val gamma correction (0.0-10.0) [off]
-z flip video frame upside down [off]
-l mirror video frame [off]
-k swap red/blue (Cb/Cr) in video frame [off]
-j t[,l[,b[,r]]] select frame region by clipping border [off]
-Y t[,l[,b[,r]]] select (encoder) frame region by clipping border [off]
--pre_clip t[,l[,b[,r]]] select initial frame region by clipping border [off]
--post_clip t[,l[,b[,r]]] select final frame region by clipping border [off]
-w b[,k[,c]] encoder bitrate[,keyframes[,crispness]] [(6000 for MPEG 1/2, 1800 for others),250,100]
--video_max_bitrate maximum bitrate when encoding variable bitrate MPEG-2 streams
-R n[,f1[,f2]] enable multi-pass encoding (0-3) [0,divx4.log,pcm.log]
-Q n[,m] encoding[,decoding] quality (0=fastest-5=best) [5,5]
--divx_quant min,max divx encoder min/max quantizer [2,31]
--divx_rc p,rp,rr divx encoder rate control parameter [2000,10,20]
-c f1-f2 encode only frames f1-f2 [all]
-t n,base split output to base%03d.avi with n frames [off]
--dir_mode base process directory contents to base-%03d.avi [off]
--frame_interval N select only every Nth frame to be exported [1]
-U base process DVD in chapter mode to base-ch%02d.avi [off]
-T t[,c[-d][,a]] select DVD title[,chapter(s)[,angle]] [1,1,1]
-W n,m[,file] autosplit and process part n of m (VOB only) [off]
--cluster_percentage use percentage mode for cluster encoding -W [off]
--cluster_chunks a-b process chunk range instead of selected chunk [off]
-S unit[,s1-s2] process program stream unit[,s1-s2] sequences [0,all]
-L n seek to VOB stream offset nx2kB [0]
--import_v4l n[,id] channel number and station number or name [0]
--record_v4l a-b recording time interval in seconds [off]
--duration hh:mm:ss limit v4l recording to this duration [off]
--pulldown set MPEG 3:2 pulldown flags on export [off]
--encode_fields enable field based encoding (if supported) [off]
--nav_seek file use VOB navigation file [off]
--psu_mode process VOB in PSU, -o is a filemask incl. %d [off]
--psu_chunks a-b process only selected units a-b for PSU mode [all]
--no_split encode to single file in chapter/psu mode [off]
--ts_pid 0xnn transport video stream pid [0]
--a52_drc_off disable liba52 dynamic range compression [enabled]
--a52_demux demux AC3/A52 to separate channels [off]
--a52_dolby_off disable liba52 dolby surround [enabled]
--print_status N[,use_cr] print status every N frames / use CR or NL [1,1]
--progress_off disable progress meter status line [off]
--write_pid file write pid of signal thread to "file" [off]
--accel type enforce IA32 acceleration for type [autodetect]
-q level verbosity (0=quiet,1=info,2=debug) [1]
-h this usage message
-v print version
--more_help param more help on named parameter
`

Last modified: Sun Dec 8 19:29:47 Europe/Berlin 2002