Template:AM62 JPEG: Difference between revisions

From Variscite Wiki
No edit summary
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
* {{{2}}} {{{3}}}x{{{4}}}@{{{5}}}fps:
* {{{2}}} {{{3}}}x{{{4}}}:
  # media-ctl --set-v4l2 '"ov5640 0-003c":0 [fmt:UYVY8_1X16/{{{3}}}x{{{4}}}@1/{{{5}}}]'
{{#vardefine:MEDIA_BUS_FMT|{{#ifexpr: {{#var:YOCTO_VERSION}} < 4.1 | UYVY8_1X16 | YUYV8_1X16}}}}
  # media-ctl --set-v4l2 '"ov5640 0-003c":0 [fmt:{{#var:MEDIA_BUS_FMT}}/{{{3}}}x{{{4}}}@1/{{{5}}}]'
  # XDG_RUNTIME_DIR="/run/user/0" gst-launch-1.0 v4l2src device={{{1}}} num-buffers=5 ! video/x-raw,width={{{3}}},height={{{4}}} ! jpegenc ! multifilesink max-files=1 location=/tmp/test_{{{3}}}x{{{4}}}.jpg
  # XDG_RUNTIME_DIR="/run/user/0" gst-launch-1.0 v4l2src device={{{1}}} num-buffers=5 ! video/x-raw,width={{{3}}},height={{{4}}} ! jpegenc ! multifilesink max-files=1 location=/tmp/test_{{{3}}}x{{{4}}}.jpg
</includeonly>
</includeonly>

Latest revision as of 19:09, 10 April 2024