|
|
Line 135: |
Line 135: |
| In order to capture 10 buffers and save them in a file, you can run the following pipelines: | | In order to capture 10 buffers and save them in a file, you can run the following pipelines: |
|
| |
|
| *3280x2464 | | *3840x2160 |
|
| |
|
| <pre style="background:#d6e4f1"> | | <pre style="background:#d6e4f1"> |
| gst-launch-1.0 -v v4l2src device=/dev/video0 num-buffers=10 ! "video/x-bayer, format=rggb, width=3280, height=2464" ! filesink location=test_3280x2464.bayer | | GST_DEBUG=*v4l2*:6 gst-launch-1.0 -v v4l2src device=/dev/video0 num-buffers=10 ! "video/x-bayer, format=bggr, width=3840, height=2160" ! filesink location=test_3840x2160.raw |
| </pre> | | </pre> |
|
| |
|
Line 144: |
Line 144: |
|
| |
|
| <pre > | | <pre > |
| ./raw2rgbpnm -f SGRBG10 -s 3296x2464 -b 5.0 -n test_3280x2464.bayer output_3280x2464 | | ./raw2rgbpnm -f SGRBG12 -s 3840x2160 -b 5.0 -n test_3840x2160.bayer output_3840x2160 |
| </pre> | | </pre> |
|
| |
|
| *1920x1080
| |
| <pre style="background:#d6e4f1">
| |
| gst-launch-1.0 -v v4l2src device=/dev/video0 num-buffers=10 ! "video/x-bayer, format=rggb, width=1920, height=1080" ! filesink location=test_1920x1080.bayer
| |
| </pre>
| |
|
| |
| Check the buffers with:
| |
|
| |
| <pre >
| |
| ./raw2rgbpnm -f SGRBG10 -s 1920x1080 -b 5.0 -n test_1920x1080.bayer output_1920x1080
| |
| </pre>
| |
|
| |
| *1280x720
| |
|
| |
| <pre style="background:#d6e4f1">
| |
| gst-launch-1.0 -v v4l2src device=/dev/video0 num-buffers=10 ! "video/x-bayer, format=rggb, width=1280, height=720" ! filesink location=test_1280x720.bayer
| |
| </pre>
| |
|
| |
| Check the buffers with:
| |
|
| |
| <pre >
| |
| ./raw2rgbpnm -f SGRBG10 -s 1280x720 -b 5.0 -n test_1280x720.bayer output_1280x720
| |
| </pre>
| |
|
| |
| *1640x1232 (Binning x2)
| |
|
| |
| <pre style="background:#d6e4f1">
| |
| gst-launch-1.0 -v v4l2src device=/dev/video0 num-buffers=10 ! "video/x-bayer, format=rggb, width=1640, height=1232" ! filesink location=test_1640x1232.bayer
| |
| </pre>
| |
|
| |
| Check the buffers with:
| |
|
| |
| <pre >
| |
| ./raw2rgbpnm -f SGRBG10 -s 1664x1232 -b 5.0 -n test_1640x1232.bayer output_1640x1232
| |
| </pre>
| |
|
| |
| *820x616 (Binning x4)
| |
|
| |
| <pre style="background:#d6e4f1">
| |
| gst-launch-1.0 -v v4l2src device=/dev/video0 num-buffers=10 ! "video/x-bayer, format=rggb, width=820, height=616" ! filesink location=test_820x616.bayer
| |
| </pre>
| |
|
| |
| Check the buffers with:
| |
|
| |
| <pre >
| |
| ./raw2rgbpnm -f SGRBG10 -s 832x616 -b 5.0 -n test_820x616.bayer output_820x616
| |
| </pre>
| |
|
| |
|
| ==== Nvcamerasrc ==== | | ==== Nvcamerasrc ==== |
|
| |
|
| *3280x2464 | | *3840x2160 |
| | |
| <pre style="background:#d6e4f1">
| |
| gst-launch-1.0 nvcamerasrc sensor-id=0 fpsRange="21 21" ! 'video/x-raw(memory:NVMM), width=(int)3280, height=(int)2464, format=(string)I420, framerate=(fraction)21/1' ! autovideosink
| |
| </pre>
| |
| | |
| *1920x1080
| |
| | |
| <pre style="background:#d6e4f1">
| |
| gst-launch-1.0 nvcamerasrc sensor-id=0 fpsRange="30 30" ! 'video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, format=(string)I420, framerate=(fraction)30/1' ! autovideosink
| |
| </pre>
| |
| | |
| *1640x1232
| |
| | |
| <pre style="background:#d6e4f1">
| |
| gst-launch-1.0 nvcamerasrc sensor-id=0 fpsRange="30 30" ! 'video/x-raw(memory:NVMM), width=(int)1640, height=(int)1232, format=(string)I420, framerate=(fraction)30/1' ! autovideosink
| |
| </pre>
| |
| | |
| This is an image captured with the above pipeline:
| |
| | |
| [[Image:Sony_IMX219_capture.JPG|thumb|center|800px|IMX219 capture with nvcamerasrc. Camera aimed at computer monitor on left which is reflecting the wall and ceiling shown on the right.]]
| |
| | |
| | |
| *1280x720
| |
| | |
| <pre style="background:#d6e4f1">
| |
| gst-launch-1.0 nvcamerasrc sensor-id=0 fpsRange="30 30" ! 'video/x-raw(memory:NVMM), width=(int)1280, height=(int)720, format=(string)I420, framerate=(fraction)30/1' ! autovideosink
| |
| </pre>
| |
| | |
| *820x616
| |
|
| |
|
| <pre style="background:#d6e4f1"> | | <pre style="background:#d6e4f1"> |
| gst-launch-1.0 nvcamerasrc sensor-id=0 fpsRange="30 30" ! 'video/x-raw(memory:NVMM), width=(int)820, height=(int)616, format=(string)I420, framerate=(fraction)30/1' ! autovideosink | | gst-launch-1.0 nvcamerasrc sensor-id=0 fpsRange="30 30" ! 'video/x-raw(memory:NVMM), width=(int)3840, height=(int)2160, format=(string)I420, framerate=(fraction)30/1' ! autovideosink |
| </pre> | | </pre> |
|
| |
|