Linux Commands Examples

A great documentation place for Linux commands

tcdecode

read multimedia streams from medium, decode to raw format and print to standard output


see also : avifix - avisync - avimerge - avisplit - tcprobe - tcscan - tccat - tcdemux - tcextract - transcode

Synopsis

tcdecode

-i name [ -x codec ] [ -t package ] [ -g WxH ] [ -s c,f,r ] [ -C s-e ] [ -y codec ] [ -Y ] [ -Q mode ] [ -A flag ] [ -d verbosity ] [ -v ]


add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!

examples

0

The command
tcdecode -i foo.mp3 -x mp3
decodes an MPEG audio stream and prints raw PCM data to stdout.

The command
tcextract -i foo.avi -x mp3 | tcdecode -x mp3
extracts an MPEG audio track from the AVI-file foo.avi and pipes the frames into the decoder


description

tcdecode is part of and usually called by transcode.
However, it can also be used independently.
tcdecode
reads source (from stdin if not explicitely defined) and prints on the standard output.

options

-i name

Specify input source. If ommited, stdin is assumed. tcdecode reads streams from file or from stdin.

-g WxH

video frame width and height [720x576]

-C s-e

decode and print out only this frame interval (video) or bytes (audio) [all].

-x codec

source codec, if not detected of reading from stdin. This option also specifies video and audio context of the source for decoding. Currently, supported parameter for codec are

Image grohtml-14371.png

-t package

Currently only argument supported is "lavc". Use the codec by -x from this package. Available (-x) codecs for lavc are: mpeg2, divx3, divx, divx4, mp42, mjpg, rv10, svq1, svq3, vp3, 4xm, wmv1, wmv2, hfyu, indeo3, h263p, h263i

-y codec

target codec. tcdecode only decodes to raw format suitable for transcode. Valid option parameter for codec are

Image grohtml-14372.png

-s c,f,r

audio gain for AC3 downmixing [1.0,1.0,1.0]

-Y

decoded Digital Video (raw) YUV frame is in YUY2 (packet) format using libdv. Downsample frame to YV12. PAL users should compile libdv with --with-pal-yuv=YV12 to avoid this option [off]

-A flag

audio flag for AC3/A52 decoder [none]. This flag determines the down-mixing configuration. Valid choices for flag are determined by the following bits set:

Image grohtml-14373.png

Add those numbers to turn multiple options on.
-Q
mode

decoding quality. Certain codecs, e.g., DV with libdv allow for changing this parameter if speed is prefered over quality. Valid parameter are 1=fastest-5=best [5].

-d level

With this option you can specify a bitmask to enable different levels of verbosity (if supported). You can combine several levels by adding the corresponding values:

Image grohtml-14374.png

-v

Print version information and exit.

copyright

tcdecode is Copyright (C) by Thomas Oestreich.

notes

tcdecode is a front end for decoding various sources and is used in transcode(1)’s import modules.


see also

avifix , avisync , avimerge , avisplit , tcprobe , tcscan , tccat , tcdemux , tcextract , tcdecode, transcode


authors

tcdecode was written by Thomas Oestreich
<ostreich[:at:]theorie.physik[:dot:]uni-goettingen.de> with contributions from many others. See AUTHORS for details.

How can this site be more helpful to YOU ?


give  feedback