本文介绍了使用GStreamer将视频转换为WebM的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

GStreamer 的文档令人困惑.这仍然不是诉诸 StackOverflow.com 的借口,但仍然:

Documentation for GStreamer is confusing. This is still no excuse for resorting to StackOverflow.com, but still:

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

What is the GStreamer command line to convert any video file (from any format) to WebM (+WebM audio)?

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

我被困在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,却不知道该如何处理.

I'm getting a WARNING: erroneous pipeline: link without source element with no idea how to to get this thing going.

这真令人沮丧.

请帮助,谢谢. :)

推荐答案

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

You have the pipeline elements all out of order and you have syntax errors when dealing with named elements. Try something like this:

这将构建以下管道:


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

这篇关于使用GStreamer将视频转换为WebM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-05 05:24