Convert video to WebM using GStreamer

前端 未结 2 1985
感动是毒
感动是毒 2021-02-02 02:50

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

What is the GStreamer command

相关标签:
2条回答
  • 2021-02-02 03:32

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

    gst-launch-0.10 filesrc location=oldfile.ext ! decodebin name=demux ! queue ! ffmpegcolorspace ! vp8enc ! webmmux name=mux ! filesink location=newfile.webm demux. ! queue ! progressreport ! audioconvert ! audioresample ! vorbisenc ! mux.

    This will construct the following pipeline:

                   filesrc
                      |
                  decodebin
                    |   |
            +-------+   +-------+
            |                   |
            |                 queue
          queue                 |
            |             progressreport
            |                   |
    ffmpegcolorspace       audioconvert
            |                   |
            |             audioresample
          vp8enc                |
            |               vorbisenc
            |                   |
            +-------+   +-------+
                    |   |
                   webmmux
                      |
                   filesink
    
    0 讨论(0)
  • 2021-02-02 03:36

    If you have videos with no audio (such as videos from a service like VideoBlocks), remove the audio pipeline.

    0 讨论(0)
提交回复
热议问题