Changes between Version 8 and Version 9 of linux/media


Ignore:
Timestamp:
02/26/2019 10:31:07 PM (4 years ago)
Author:
Tim Harvey
Comment:

added more examples for linux-media pipeline setup

Legend:

Unmodified
Added
Removed
Modified
  • linux/media

    v8 v9  
    279279
    280280Examples:
    281  * Analog CVBS capture
    282 {{{#!bash
     281 * Analog CVBS NTSC capture
     282{{{#!bash
     283v4l2-ctl --device /dev/v4l-subdev14 --set-standard NTSC
    283284./media-ctl-setup adv7180 > setup
    284285/bin/sh setup
    285286}}}
     287 * Analog CVBS PAL capture
     288{{{#!bash
     289v4l2-ctl --device /dev/v4l-subdev14 --set-standard PAL
     290./media-ctl-setup adv7180 > setup
     291/bin/sh setup
     292}}}
    286293 * Digital HDMI capture
    287294{{{#!bash
     
    289296/bin/sh setup
    290297}}}
     298
     299Note that it is required that you re-run the {{{media-ctl-setup}}} script and its generated output commands whenever the input source changes (ie Analog NTSC->PAL or HDMI input format (resolution/colorspace/framerate).
     300
     301To detect when the input changes on a capture source you can catch the {{{V4L2_EVENT_SOURCE_CHANGE}}} event via the {{{VIDIOC_DQEVENT}}} ioctl - see https://www.linuxtv.org/downloads/v4l-dvb-apis-old/vidioc-dqevent.html
    291302
    292303