Welcome to Firefly
中文
Firefly文档中心
最近更新: 2026-08-27 07:36:09

播放本地文件

GStreamer 通用使用方法

4.2 播放本地文件

最简单的播放方法:

gst-play-1.0 test.mp4

使用 playbin:

gst-launch-1.0 playbin uri=file:///absolute/path/test.mp4

使用 uridecodebin 并指定视频输出:

gst-launch-1.0 uridecodebin uri=file:///absolute/path/test.mp4 \
  ! autovideosink

文件 URI 应使用绝对路径,并写成 file:///path/to/file。

本页目录