使用GStreamer将视频转换为WebM

Ory*_*and 8 video video-encoding gstreamer webm

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知道如何让这件事情继续下去.

这非常令人沮丧.

请帮忙,谢谢.:)

cdh*_*wie 17

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

gst-launch-0.10 filesrc location = oldfile.ext!decodebin name = demux!排队!ffmpegcolorspace!vp8enc!webmmux name = mux!filesink location = newfile.webm demux.!排队!进度报告 !audioconvert!听觉样本!vorbisenc!MUX.

这将构建以下管道:

               filesrc
                  |
              decodebin
                |   |
        +-------+   +-------+
        |                   |
        |                 queue
      queue                 |
        |             progressreport
        |                   |
ffmpegcolorspace       audioconvert
        |                   |
        |             audioresample
      vp8enc                |
        |               vorbisenc
        |                   |
        +-------+   +-------+
                |   |
               webmmux
                  |
               filesink