8

GStreamer的文档令人困惑。这仍然不是求助于StackOverflow.com的借口,但仍然:

将任何视频文件(从任何格式)转换为 WebM(+WebM 音频)的GStreamer命令行是什么?

这是我能找到的唯一带有示例的文档

我被困在某个地方gst-launch-0.10 webmmux name=mux ! filesrc location=oldfile.ext ! filesink location=newfile.webm ! name=demux ! demux. ! ffmpegcolorspace ! vp8enc ! queue ! mux.video_0 ! demux. ! progressreport ! audioconvert ! audiorate ! vorbisenc ! queue ! mux.audio_0

WARNING: erroneous pipeline: link without source element不知道如何让这件事继续下去。

这很令人沮丧。

请帮忙,谢谢。:)

4

2 回答 2

18

您的管道元素全部乱序,并且在处理命名元素时出现语法错误。尝试这样的事情:

gst-launch-0.10 filesrc location=oldfile.ext !解码箱名称=demux !队列 !ffmpeg色彩空间!vp8enc!webmmux 名称=多路复用器!文件接收器位置=newfile.webm demux。!队列 !进度报告 !音频转换!音频重采样!伏比生!多路复用器。

这将构建以下管道:

               文件rc
                  |
              解码器
                | |
        +-------+ +-------+
        | |
        | 队列
      队列 |
        | 进度报告
        | |
ffmpegcolorspace 音频转换
        | |
        | 音频重采样
      vp8enc |
        | 伏比生
        | |
        +-------+ +-------+
                | |
               webmmux
                  |
               文件接收器
于 2011-01-10T18:15:23.237 回答
1

如果您有没有音频的视频(例如来自 VideoBlocks 等服务的视频),请移除音频管道。

于 2011-05-14T02:09:10.710 回答