2

我已经使用来自以下链接的 .msi 文件在 Windows 上安装了 GStreamer - gstreamer-1.0-x86-1.2.0.msigstreamer-1.0-devel-x86-1.2.0.msi
我可以运行以下命令并播放 .webm视频文件没有任何问题。gst-launch-1.0 playbin uri="file:///D:/gstreamer_sample_media/sintel_trailer-480p.webm"

但是当我尝试使用以下命令播放测试 .mts 文件时:

gst-launch-1.0 playbin uri="file:///D:/MyTestMedia/Test1.mts"

出现以下错误:

Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Missing element: MPEG-2 Transport Stream demuxer
WARNING: from element /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: No dec
oder available for type 'video/mpegts, systemstream=(boolean)true, packetsize=(i
nt)192'.
Additional debug info:
gsturidecodebin.c(930): unknown_type_cb (): /GstPlayBin:playbin0/GstURIDecodeBin
:uridecodebin0
ERROR: from element /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecode
Bin:decodebin0: Your GStreamer installation is missing a plug-in.
Additional debug info:
gstdecodebin2.c(3896): gst_decode_bin_expose (): /GstPlayBin:playbin0/GstURIDeco
deBin:uridecodebin0/GstDecodeBin:decodebin0:
no suitable plugins found
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...

我知道要能够播放 .mts 文件,我必须安装 gst-plugins-bad-1.2.0 插件并且缺少“MPEG-2 传输流解复用器”元素。

问题是我不知道如何在 Windows 7 或 Windows 8 操作系统(32 位或 64 位版本)中执行此操作。

我下载了以下文件 gst-plugins-base-1.2.0gst-plugins-good-1.2.0gst-plugins-bad-1.2.0gst-plugins-ugly-1.2.0。但是 Windows 的预编译 .dll 文件不在其中。我也尝试为 Windows 编译它们,但对于 gst-plugins-base 中的某些项目只能这样做,而且编译 gst-plugins-bad 似乎需要付出很多努力,而我现在无法这样做。

是否有任何链接可以下载 gst-plugins-bad for windows 的预构建 .dll?如果我们将它们下载到必须复制它们的位置,以便 gst-launch-1.0.exe 可以识别它们?是否只需要将它们复制到E:\gstreamer\1.0\x86\bin安装 gstreamer 的位置?

先感谢您。

4

2 回答 2

5

您可能对 gstreamer SDK 进行了“典型”安装。

重新安装并确保在安装前选择“完整”功能。这应该包括 gst-plugins-bad 包。

于 2013-10-11T08:24:22.580 回答
0

您是否考虑过使用 gstreamer-sdk?它可以在GStreamer.com上找到。官方版本仅为 0.10,但您可以在邮件列表中轻松找到 1.x 的构建:这里是 1.2

于 2013-10-02T11:55:28.457 回答