在gstreamer中采样视频文件编码

我可以使用以下管道对测试视频进行编码和解码:

gst-launch-0.10 -v videotestsrc num-buffers=2000 ! TIVidenc1 codecName=h264enc engineName=codecServer ! filesink location=sample.264

gst-launch-0.10 -v filesrc location=sample.264 ! TIViddec2 codecName=h264dec engineName=codecServer ! filesink location=sample.raw

但我无法使用以下管道对sample.raw等示例原始视频文件进行编码:

  • gst-launch-0.10 -v filesrc location = sample.raw num-buffers = 2000! TIVidenc1 codecName = h264enc engineName = codecServer! filesink位置= sample.264

    错误:无法创建视频编码器h264enc

  • gst-launch-0.10 -v filesrc location = sample.raw num-buffers = 2000! video / x-raw-yuv,width = 320,height = 240,framerate = 30! TIVidenc1 codecName = h264enc engineName = codecServer! filesink位置= sample.264

    错误:无法将filesrc0链接到tividenc10


  • 您将需要filesource元素后面的videoparse元素。 这为编码器提供适当的解析和媒体类型提供。

    链接地址: http://www.djcxy.com/p/7645.html

    上一篇: sample video file encoding in gstreamer

    下一篇: gstreamer add textoverlay in c++