Skip to content

Instantly share code, notes, and snippets.

@Riebart
Created June 25, 2025 03:07
Show Gist options
  • Save Riebart/d29cc07c828282d7d30a750a71a138ad to your computer and use it in GitHub Desktop.
Save Riebart/d29cc07c828282d7d30a750a71a138ad to your computer and use it in GitHub Desktop.
Getting the video and image data from a USB infrared camera
# Quirks source: https://forums.raspberrypi.com/viewtopic.php?t=376245
ffmpeg -input_format yuyv422 -video_size 256x196 -i /dev/video0 -pix_fmt yuyv422 -f rawvideo - | ffplay -pixel_format gray16le -video_size 256x196 -f rawvideo -i - -vf 'signalstats, split [main][secondary]; [main] normalize=smoothing=10, format=pix_fmts=rgb48, pseudocolor=p=inferno
sudo nano /etc/modprobe.d/uvcvideo.conf
#type: options uvcvideo quirks=0x02
#ctrl + x then enter to save
#reboot
#check that it worked with : cat /sys/module/uvcvideo/parameters/quirks
#should read as "2"
#then have a crack at it, should work :)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment