sample video file encoding in gstreamer
I can encode and decode a test video with following pipelines:
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
but I can't encode a sample raw video file like sample.raw with following pipelines:
gst-launch-0.10 -v filesrc location=sample.raw num-buffers=2000 ! TIVidenc1 codecName=h264enc engineName=codecServer ! filesink location=sample.264
ERROR: failed to create video encoder 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 location=sample.264
ERROR: could not link filesrc0 to tividenc10
You will need the videoparse element after the filesource element. This takes care of the proper parsing and media type offering for the encoder.
链接地址: http://www.djcxy.com/p/7646.html上一篇: GStreamer中没有元素“ffmpegcolorspace”
下一篇: 在gstreamer中采样视频文件编码