Project

General

Profile

action #111398

Updated by dheidler over 2 years ago

A command like this can be used to capture still images from a V4L device: 

 ``` 
 mpv --demuxer-lavf-format=video4linux2 --demuxer-lavf-o-set=input_format=mjpeg --frames=1 -o /tmp/s.png /dev/video2 
 ``` 

 or this for non jpeg compressed yuv video: 
 ``` 
 mpv --frames=1 -o /tmp/s.png /dev/video2 
 ``` 

 Required hardware for first tests: 
 * HDMI Cable: https://www.reichelt.de/raspberry-pi-adapter-micro-hdmi-auf-hdmi-1m-schwarz-rpi-m-hdmi-hdmi2-p270099.html (normal HDMI for RPi3b(+) and miniHDMI for Zero2W) 
 * HDMI Capture device: https://www.reichelt.de/hdmi-video-capture-stick-usb-typ-a-delock-88307-p319564.html or https://smile.amazon.de/foo/dp/B08K43M3ZB/ 
 * USB Hub(s) (we don't have free ports at current worker): https://www.reichelt.de/usb-3-0-4-port-alu-hub-schwarz-icy-ib-hub1409u3-p218402.html 

 This could be used to ensure that the console - or even xserver is displaying anything via HDMI output. 

 This should help detecting issues like https://bugzilla.suse.com/show_bug.cgi?id=1198534

Back