groupgets / purethermal1-uvc-capture

USB Video Class capture examples for PureThermal 1 / PureThermal 2 FLIR Lepton Dev Kit
125 stars 81 forks source link

how to work with the purethermal2 module? #11

Closed spk921 closed 5 years ago

spk921 commented 5 years ago

I am using the purethermal2 module and got the following error messages. when I ran following command: gst-launch-1.0 v4l2src device=/dev/video0 ! videoconvert ! xvimagesink

spk921@spk ~/git/build-GetThermal-Desktop-Debug/debug $ gst-launch-1.0 v4l2src device=/dev/video0 ! videoconvert ! xvimagesink Setting pipeline to PAUSED ... Pipeline is live and does not need PREROLL ... Setting pipeline to PLAYING ... New clock: GstSystemClock libv4l2: error set_fmt gave us a different result then try_fmt! ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Device '/dev/video0' cannot capture in the specified format Additional debug info: gstv4l2object.c(3482): gst_v4l2_object_set_format_full (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Tried to capture in YV12, but device returned format UYVY Execution ended after 0:00:00.011516541 Setting pipeline to PAUSED ... Setting pipeline to READY ... Setting pipeline to NULL ... Freeing pipeline ...

spk921 commented 5 years ago

It works with following comand: gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,format=UYVY \ ! videoscale ! video/x-raw,width=640,height=480 ! videoconvert ! ximagesink