← 返回命令列表

Linux command

gst-transcoder-1.0 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

Transcode a video file

gst-transcoder-1.0 file:///[path/to/input.mp4] file:///[path/to/output.webm]

Transcode with a specific encoding format

gst-transcoder-1.0 file:///[path/to/input.mp4] file:///[path/to/output.mkv] "[encoding_format]"

Transcode and resize

gst-transcoder-1.0 -s [1280x720] file:///[path/to/input.mp4] file:///[path/to/output.mp4]

Transcode with a specific video framerate

gst-transcoder-1.0 -f [30/1] file:///[path/to/input.mp4] file:///[path/to/output.mp4]

List all available encoding targets

gst-transcoder-1.0 -l

Limit CPU usage

gst-transcoder-1.0 -c [50] file:///[path/to/input.mp4] file:///[path/to/output.mp4]

说明

gst-transcoder-1.0 is a command-line tool that transcodes multimedia streams from one format to another using the GStreamer framework. It reads from an input URI, processes the media, and writes to an output URI in the specified encoding format. The encoding format can be specified explicitly as a serialization string (e.g. muxer_caps:video_caps:audio_caps), as a named target from .gep profile files, or omitted entirely to let the tool guess the format from the output file extension. The tool uses the GStreamer Transcoder API internally, leveraging decodebin and encodebin elements for automatic format detection and encoding.

参数

-h, --help
Show help options.
--help-all
Show all help options.
--help-gst
Show GStreamer-specific options.
-c, --cpu-usage _PERCENT_
Target CPU usage percentage for the transcoding process.
-l, --list-targets
List all available encoding targets and exit.
-s, --size _WxH_
Set the output video frame size (e.g. 1280x720).
-r, --audio-rate _HZ_
Set the audio sampling rate in Hz.
-f, --framerate _FRACTION_
Set the video framerate as a fraction (e.g. 24/1) or a single number (e.g. 24).
-v, --video-encoder _ENCODER_
Specify the video encoder element to use.

FAQ

What is the gst-transcoder-1.0 command used for?

gst-transcoder-1.0 is a command-line tool that transcodes multimedia streams from one format to another using the GStreamer framework. It reads from an input URI, processes the media, and writes to an output URI in the specified encoding format. The encoding format can be specified explicitly as a serialization string (e.g. muxer_caps:video_caps:audio_caps), as a named target from .gep profile files, or omitted entirely to let the tool guess the format from the output file extension. The tool uses the GStreamer Transcoder API internally, leveraging decodebin and encodebin elements for automatic format detection and encoding.

How do I run a basic gst-transcoder-1.0 example?

Run `gst-transcoder-1.0 file:///[path/to/input.mp4] file:///[path/to/output.webm]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -h, --help do in gst-transcoder-1.0?

Show help options.