如何从v4l2录制视频并使用gstreamer解码为vp9?

时间:2016-11-04 15:25:41

标签: gstreamer v4l2 vp9

我的管道
gst-launch-1.0 v4l2src device=/dev/video1 ! video/x-raw,width=640,height=480 ! avdec_vp9 ! filesink location=vid.webm

会出错:
WARNING: erroneous pipeline: could not link v4l2src0 to avdec_vp9-0

怎么了?

1 个答案:

答案 0 :(得分:0)

管道工程:
gst-launch-1.0 -v v4l2src device=/dev/video0 ! video/x-raw,format=YUY2,width=640,height=480,framerate=30/1 ! videoconvert ! vp9enc ! webmmux ! filesink location='raw_dual.webm' sync=false