问题描述
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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!