euskadi
February 17, 2020, 4:10pm
13
I’ve seen in your other topic you’ve moved on with your dt and have now driver reporting Y10 format as expected.
So you may first try to record 100 frames with v4l2-ctl as Y10 and save to file:
v4l2-ctl --set-fmt-video=width=1920,height=1080,pixelformat=Y10 --stream-mmap -d /dev/video0 --set-ctrl bypass_mode=0 --stream-count=100 --stream-to=test.Y10
Note that this may result in a huge size, so cd to an external disk before trying this.
This would be saved into 16 bits per pixel (19201080 2 = 4147200 bytes per frame).
So you would just try :
gst-launch-1.0 filesrc location=test.Y10 blocksize=4147200 ! video/x-raw,format=GRAY16_LE, width=1920, height=1080, framerate=30/1 ! videoconvert ! xvimagesink
If this works, you would just have to modify the driver for providing Y16 if you want to use it in gstreamer from v4l2src plugin.
I’ve given support to Y16 and I’m able to stream it with the qV4L2 tool (although a bit darker, but probably due to bit allignment). Thanks for the tips!