tcprobe -i "$mfilm"
tcprobe -i "$mfilm"
$ tcprobe -i 'f1.avi' [tcprobe] RIFF data, AVI video [avilib] V: 23.976 fps, codec=XVID, frames=35007, width=704, height=396 [avilib] A: 48000 Hz, format=0x55, bits=0, channels=2, bitrate=128 kbps, [avilib] 34996 chunks, 23361408 bytes, CBR [tcprobe] summary for f1.avi, (*) = not default, 0 = not detected import frame size: -g 704x396 [720x576] (*) frame rate: -f 23.976 [25.000] frc=1 (*) audio track: -a 0 [0] -e 48000,0,2 [48000,16,2] -n 0x55 [0x2000] (*) bitrate=128 kbps length: 35007 frames, frame_time=41 msec, duration=0:24:20.085
$ tcprobe -i Pelicula00.mpg [tcprobe] MPEG program stream (PS) [tcprobe] summary for Pelicula00.mpg, (*) = not default, 0 = not detected import frame size: -g 352x240 [720x576] (*) aspect ratio: 4:3 (*) frame rate: -f 23.976 [25.000] frc=1 (*) PTS=47721.8588, frame_time=41 ms, bitrate=104857 kbps audio track: -a 0 [0] -e 44100,16,2 [48000,16,2] -n 0x50 [0x2000] (*) PTS=141.6635, bitrate=128 kbps -D 1140783 --av_fine_ms 37 (frames & ms) [0] [0] Playing Pelicula00.mpg. VIDEO: MPEG1 352x240 (aspect 12) 23.976 fps 0.0 kbps ( 0.0 kbyte/s) AUDIO: 44100 Hz, 2 ch, 16 bit (0x10), ratio: 16000->176400 (128.0 kbit)
$ tcprobe -i "f1 - svcd.mpg" [tcprobe] MPEG program stream (PS) [tcprobe] summary for f1 - svcd.mpg, (*) = not default, 0 = not detected import frame size: -g 352x240 [720x576] (*) aspect ratio: 4:3 (*) frame rate: -f 29.970 [25.000] frc=4 (*) PTS=47721.8588, frame_time=33 ms, bitrate=1150 kbps audio track: -a 0 [0] -e 44100,16,2 [48000,16,2] -n 0x50 [0x2000] (*) bitrate=224 kbps
$ transcode -c1-6 -i VTS_04_1.VOB transcode v0.6.14 (C) 2001-2003 Thomas Oestreich, 2003-2004 T. Bitterberg [transcode] (probe) suggested AV correction -D 0 (0 ms) | AV 5 ms | 5 ms [transcode] auto-probing source VTS_04_1.VOB (ok) [transcode] V: import format | MPEG-2 (V=vob|A=vob) [transcode] V: AV demux/sync | (1) sync AV at initial MPEG sequence [transcode] V: import frame | 352x480 0.73:1 encoded @ 4:3 [transcode] V: bits/pixel | 0.355 [transcode] V: decoding fps,frc | 29.970,4 [transcode] V: Y'CbCr | YV12/I420 [transcode] A: import format | 0x50 MPEG layer-2 [48000,16,2] 192 kbps [transcode] A: export | disabled [transcode] V: encoding fps,frc | 29.970,4 [transcode] A: bytes per frame | 6408 (6406.400000) [transcode] A: adjustment | -1600@1000 [transcode] warning : no option -o found, encoded frames send to "/dev/null" [transcode] V: video buffer | 10 @ 352x480 [import_vob.so] v0.6.0 (2003-10-02) (video) MPEG-2 | (audio) MPEG/AC3/PCM | (subtitle) [export_null.so] v0.1.2 (2001-08-17) (video) null | (audio) null [import_vob.so] tccat -i "VTS_04_1.VOB" -t vob -d 0 -S 0 | tcdemux -a 0 -x mp3 -S 0 -M 1 -d 0 | tcextract -t vob -a 0 -x mp2 -d 0 | tcdecode -x mp2 -d 0 [import_vob.so] tccat -i "VTS_04_1.VOB" -t vob -d 0 -S 0 | tcdemux -s 0xc0 -x mpeg2 -S 0 -M 1 -d 0 | tcextract -t vob -a 0 -x mpeg2 -d 0 | tcdecode -x mpeg2 -d 0 -y yv12 encoding frame [5], 252.45 fps, 100.0%, ETA: 0:00:00, ( 0| 0| 3) clean up | frame threads | unload modules | cancel signal | internal threads | done [transcode] encoded 5 frames (0 dropped, 0 cloned), clip length 0.17 s
documented on: 2005.12.13
[transcode] V: import frame | 576x240 2.40:1 XXX: zoom=yes pre_clip=yes [transcode] V: pre clip frame | 576x450 (-106,0,-104,0) [transcode] V: zoom | 480x576 1.56:1 (Lanczos3) [import_mp3.so] MP3->PCM [import_mp3.so] tcextract -a 0 -i "lgc-unleashedxvid.avi" -x mp3 -d 0 | tcdecode -x mp3 -d 0 -z 48000 [import_af6.so] tcdecode -i "lgc-unleashedxvid.avi" -x af6video -y yv12 -d 0 [export_mpeg2enc.so] *** init-v *** ! [export_mp2enc.so] *** init-v *** ! [export_mpeg2enc.so] cmd=mpeg2enc -v 0 -I 0 -f 4 -F 3 -n p -a 2 -o "test.m2v" [export_mp2enc.so] (59/4096) cmd=mp2enc -v 0 -r 44100 -b 128 -s -o "test-.mpa"
-v|--verbose num
Set verbosity level to num. 0 = warnings and errors only, 1 = informa- tion as well, 2=really verbose.
-I|--interlace-mode 0|1|2
Set the sequence picture structure and block encoding type for MPEG-2 streams. By default, this value is inferred from the interlacing tag of the input stream. Setting 0 encodes frame-by-frame with support for interlaced video turned off, and specifies that progressive chroma sub- sampling has been used. Setting 1 encodes frame-by-frame with inter- lace-adapted motion compensation and block encoding, and specifies that interlaced chroma subsampling has been used. Setting 2 encodes inter- laced material field-by-field, which will produce more accurate results for highly textured interlaced material with lots of motion, at the expense of generally less efficiency.
This setting should match the interlaced-ness of the input stream, otherwise chroma artifacts may be generated when the MPEG stream is played back.
-f|--format 0 - Generic MPEG1. -f|--format 1 - Standard VCD. -f|--format 3 - Generic MPEG2. -f|--format 4 - Standard SVCD. -f|--format 8 - DVD MPEG-2 for 'dvdauthor' -f|--format 9 - DVD MPEG-2.
-F|--frame-rate num
Set the frame-rate of the output-stream. By default, this value is inferred from the input header. Currently only the standard MPEG rates are supported. Eventually more-or-less arbitrary rates will be possi- ble. 0 - illegal 1 - 24000.0/1001.0 (NTSC 3:2 pulldown converted FILM) 2 - 24.0 (NATIVE FILM) 3 - 25.0 (PAL/SECAM VIDEO / converted FILM) 4 - 30000.0/1001.0 (NTSC VIDEO) 5 - 30.0 6 - 50.0 (PAL FIELD RATE) 7 - 60000.0/1001.0 (NTSC FIELD RATE) 8 - 60.0
-n|--video-norm n|p|s
Force the input stream to be treated as NTSC|PAL|SECAM regardless of what the stream header might suggest. Basically this just sets the defaults for a bunch of other options.
-a|--aspect num
Set the playback aspect ratio code of the encoded video. By default, this value is inferred from the input header. 1 - 1 - 1:1 display 2 - 2 - 4:3 display 3 - 3 - 16:9 display 4 - 4 - 2.21:1 display
For MPEG-2 the specified aspect ratios are used directly. For MPEG-1 mpeg2enc infers the MPEG-1 pixel aspect code from the video norm specified and the specified playback aspect ratio.
mencvcd extra:
-s|--sequence-header-every-gop
This flag forces the encoder to generate a "sequence header" at the start of every group-of-pictures. This is needed by some player hard- ware to support fast forward/rewind/random access functions but is a waste of bits otherwise.
-s Force stereo output. A mono input signal is channel doubled before encoding to make it stereo. This is useful for many MPEG players which simply can't handle a non-stero signal.
documented on: 2005.08.13
dvdd=/mnt/tmp1/ dvdd=/lfs/cache11/my-caches/dvdrip/ys/vob/001
# == output name (root) oname= # == The output format (should based on the input, ie, vcd to vcd, dvd to svcd) ofmt1=vcd-ntsc ofmt2=1 ofmt3= ofmt1=svcd-ntsc ofmt2=4 ofmt3=-svcdout # == subtitle subopt='-J extsub=0' subopt= tcqopt='-c 10:0-15:0' tcqopt= rm -vf simage.* & svs dvdd subopt ofmt1 ofmt2 ofmt3 oname tcqopt # == dvd film time nice transcode -i "$dvdd" -T 1,-1 $tcqopt $subopt --export_prof $ofmt1 -o $oname- time nice mplex -f $ofmt2 -o $oname-%d.mpg $oname-.m2v $oname-.mpa # = pack of vcds seq -f '%02g' 3 5 echo 01 echo 1,-1 !! | xargsi echo time nice transcode -i "$dvdd" -T {} $tcqopt $subopt --export_prof $ofmt1 -o $oname-{}- | bash -x !! | xargsi echo time nice mplex -f $ofmt2 -o $oname-{}%d.mpg $oname-{}-.m2v $oname-{}-.mpa | bash -x rm *-.mp[av] & rm *-??1.mpg & tcprobe -i "$mfilm" mpgtx -i "$mfilm"
-c f1-f2[,f3-f4[, ... ] ] encode only frames f1-f2 [and f3-f4]. Default is to encode all available frames. Use this and you'll get statistics about remaining encoding time. The f[N] parameters may also be time- codes in the HH:MM:SS.FRAME format. Example: -c 500-0:5:01,:10:20-1:18:02.1
Will encode only from frame 500 to 5 minutes and 1 second and from 10 min, 20 sec to 1 hour, 18 min, 2 sec and one frame.
Note that transcode starts counting frames at 0 and excludes the last frame specified. That means that "-c 0-100" will encoded 100 frames starting at frame 0 up to frame 99
-T t[,c[,a]] select DVD title[,chapter[,angle]] [1,1,1]. Only a single chap- ter is transcoded. Use -T 1,-1 to trancode all chapters in a row. You can even specify chapter ranges.
--export_prof S Select an export profile {vcd, svcd, dvd} [none] If you set this meta option to one of the values below, transcode will adjust some internal paramaters as well as geome- try and clipping. If no export modules are specified, mpeg2enc for video and mp2enc for audio are used when compiled with mjpegtools support.
Valid values for S are vcd, vcd-pal, vcd-ntsc, svcd, svcd-pal, svcd-ntsc, dvd, dvd-pal and dvd-ntsc.
When one of the above is used, transcode will calculate the needed clipping and resizing values for you based on the import and export aspect ratio. This is especially handy if you want to encode a 16:9 DVD into a 4:3 SVCD for example. Transcode inter- nally then sets --pre_clip to add the black bars ("letterbox- ing").
If you use "vcd" instead of "vcd-pal" or "vcd-ntsc", transcode will make an educated guess if PAL or NTSC vcd is wanted. The same is true for "svcd" and "dvd". When the input file has no aspect ratio information at all, transcode guesses it based on the import frame sizes. You can set the import aspect ratio by giving --import_asr CODE.
--export_asr C set export aspect ratio code C [as input]
Valid codes for C are ---------------------- 1 1:1 2 4:3 3 16:9 4 2.21:1
Transcode provides a filter plugin, filter extsub.so, for elementary DVD subtitle rendering in connection with -x vob. Use it with
transcode [...] -J extsub=<options>
The option string looks as follows (all options default to 0):
s:h:t:f:w:a:b:p:q
s subtitle track id (0-31) Use tcprobe -H N with N>1 to find out if subtitle any packs are available in the program stream.
h offset of subtitle with respect to bottom of frame in rows Subtitles are placed at the bottom of the frame. Try this option to shift them up or down.
t global display start time correction in msec If you feel, subtitles are displayed not timely, adjust it with this option. This will affect all subtitles.
f fast rendering, i.e., no anti-aliasing (0=off, 1=on) Anti-aliasing of the font is performed by default. Switch it of (1) if your font is tiny and messed up by this feature.
w render on post-processing (0=off, 1=on) Setting this option to 1 will render the subtitle on post-processing instead of pre-processing. This may improve subtitle quality but makes no sense after extensive resizing of the frame.
a graylevel value a (0-255) b graylevel value b (0-255) Make another subtitle color visible with full intensity equal to 255. May lead to fatter fonts.
p assign subtitle color p [0-3] to graylevel value a q assign subtitle color q [0-3] to graylevel value b Shuffle the color assignment by choosing another subtitle color between 0 and 3. Useful for black fonts on white background.
documented on: 2004.10.29