Streaming webcam to .ts file: link error

Nicolas Dufresne nicolas at ndufresne.ca
Wed May 3 16:32:22 UTC 2017


Le mardi 02 mai 2017 à 14:39 -0700, Dystroxic a écrit :
> So from this, we see that it's using YUYV format. So then I try to
> run this
> command:
> 
> gst-launch-1.0 -e -v v4l2src device="/dev/video0" !
> 'video/x-raw,format=YUYV,framerate=25/1,width=640,height=360' !
> x264enc
> bitrate=498 ! mpegtsmux ! filesink location=video1.ts

V4L2 YUYV matches YUY2 in GStreamer. This is the most common webcam
format, so it's better to try and remember. In general though, don't
add format= in your filter, GStreamer will figure-it out for your. You
may need a videoconvert element between the v4l2src and x264enc due to
format incompatibility. See gst-inspect-1.0 x264enc for more details.

regards,
Nicolas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170503/13b5ed0d/attachment.sig>


More information about the gstreamer-devel mailing list