OpenThermal / libseek-thermal

SEEK thermal compact camera driver supporting the thermal Compact, thermal CompactXR and and thermal CompactPRO
MIT License
293 stars 100 forks source link

Cannot work out image format #19

Closed fnoop closed 4 years ago

fnoop commented 6 years ago

Using seek_viewer with the --output argument, this uses OpenCV VideoWriter (and hence gstreamer) to output the frames through a provided gstreamer pipeline. A pipeline such as this should work (on a raspberry):

OUTPUT="appsrc ! queue ! autovideoconvert ! video/x-raw,format=I420 ! omxh264enc ! h264parse ! rtph264pay config-interval=1 pt=96 ! udpsink host=192.168.1.xxx port=5600 sync=false"

with the client pipeline:

gst-launch-1.0 -v udpsrc port=5600 buffer-size=0 caps="application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, payload=(int)96" ! application/x-rtp,encoding-name=H264,payload=96 ! rtph264depay ! queue ! avdec_h264 ! autovideosink sync=false

This is pretty standard gstreamer stuff. However for seek_viewer I cannot get it to work - I just get a green box with the odd flapping pixel. I've tried explicitly converting the output frame to RGB but no luck.

Any ideas? This would be a significant improvement as it allows realtime video over wifi such as would be used in search and rescue etc.

gitty8 commented 6 years ago

Any news here? Im interested in stream the image in realtime via wifi to a smartphone near by.

kristofbremen commented 6 years ago

I would be interested too

loicspace commented 5 years ago

Same

Bostwickenator commented 4 years ago

Does the v4l2 functionality solve for your usecase?

crabdancing commented 4 years ago

v4l2 solves the streaming concerns. You can stream to v4l2 and then stream from that to wherever via OBS, VLC or whatever else. I could write up a markdown walkthrough if needed! :)

fnoop commented 4 years ago

Would be great to have v4l2 support documented in the readme.

Bostwickenator commented 4 years ago

Documented, hope that helps.

fnoop commented 4 years ago

Thankyou :)