← 返回命令列表

Linux command

gst-play-1.0 命令

文件

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

常用示例

Play a media file

gst-play-1.0 [path/to/file.mp4]

Play multiple files

gst-play-1.0 [file1.mp3] [file2.mp3] [file3.mp3]

Play all media files in a directory

gst-play-1.0 [path/to/directory]

Play a file with a specific video sink

gst-play-1.0 --videosink=ximagesink [path/to/file.mp4]

Play files in shuffle order

gst-play-1.0 --shuffle [file1.mp3] [file2.mp3] [file3.mp3]

Play a file with gapless playback enabled

gst-play-1.0 --gapless [file1.mp3] [file2.mp3]

Play a stream from a URI

gst-play-1.0 [https://example.com/stream.mp3]

Play a file at half volume

gst-play-1.0 --volume=0.5 [path/to/file.mp3]

说明

gst-play-1.0 is a command line playback testing tool that uses GStreamer's playbin element to play audio and video files. It accepts individual files, directories (which are traversed recursively), and URIs as input. The tool provides interactive keyboard controls during playback for pausing, seeking, adjusting volume, changing playback speed, and switching between audio, video, and subtitle tracks. It supports gapless playback for seamless transitions between tracks and can play media from local files or network streams.

参数

--audiosink=_SINK_
Use the specified audio sink instead of autoaudiosink.
--videosink=_SINK_
Use the specified video sink instead of autovideosink.
--volume=_VOLUME_
Set initial playback volume. 0.0 is silent, 1.0 is unchanged (default).
--shuffle
Play files in random order.
--no-interactive
Disable interactive keyboard control.
--gapless
Enable gapless (seamless) playback between tracks.
-v, --verbose
Output status information and property notifications.
-q, --quiet
Suppress all output except errors.
--use-playbin3
Use the playbin3 pipeline instead of the default playbin.
--wait-on-eos
Keep the last video frame displayed after playback ends instead of closing.
--flags
Control playback behavior via the playbin flags property.
--version
Print version information and exit.
--help
Show available options and exit.

FAQ

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

gst-play-1.0 is a command line playback testing tool that uses GStreamer's playbin element to play audio and video files. It accepts individual files, directories (which are traversed recursively), and URIs as input. The tool provides interactive keyboard controls during playback for pausing, seeking, adjusting volume, changing playback speed, and switching between audio, video, and subtitle tracks. It supports gapless playback for seamless transitions between tracks and can play media from local files or network streams.

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

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

What does --audiosink=_SINK_ do in gst-play-1.0?

Use the specified audio sink instead of autoaudiosink.