Streaming webcam to .ts file: link error

Arjen Veenhuizen arjen at
Wed May 3 06:17:23 UTC 2017

x264enc only takes the following formats on its sink pad:

Try to insert a videoconvert between the caps and the encoder and don't
forget to insert an h264parse between encoder and mpegtsmux. Furthermore,
your pipeline could use a queue in front of the encoder.

All in all, your pipeline should look like this:
gst-launch-1.0 -e -v v4l2src device="/dev/video0" !
'video/x-raw,format=YUYV,framerate=25/1,width=640,height=360' ! videoconvert
! queue ! x264enc bitrate=498 ! h264parse ! mpegtsmux ! filesink

View this message in context:
Sent from the GStreamer-devel mailing list archive at

More information about the gstreamer-devel mailing list