Changes between Version 14 and Version 15 of linux/media


Ignore:
Timestamp:
08/29/2019 06:21:44 PM (5 years ago)
Author:
Tim Harvey
Comment:

update instructions and source for media-ctl-setup script

Legend:

Unmodified
Added
Removed
Modified
  • linux/media

    v14 v15  
    275275Installation:
    276276{{{#!bash
    277 wget http://dev.gateworks.com/docs/linux/media/media-ctl-setup
     277wget https://raw.githubusercontent.com/Gateworks/media-ctl-setup/master/media-ctl-setup
    278278chmod +x media-ctl-setup
    279279}}}
     
    284284v4l2-ctl --device /dev/v4l-subdev14 --set-standard NTSC
    285285./media-ctl-setup adv7180 > setup
    286 /bin/sh setup
     286source ./setup
    287287}}}
    288288 * Analog CVBS PAL capture
     
    290290v4l2-ctl --device /dev/v4l-subdev14 --set-standard PAL
    291291./media-ctl-setup adv7180 > setup
    292 /bin/sh setup
     292source ./setup
    293293}}}
    294294 * Digital HDMI capture
    295295{{{#!bash
    296296./media-ctl-setup tda1997x > setup
    297 /bin/sh setup
    298 }}}
     297source ./setup
     298}}}
     299
     300Note in the above examples we 'source' the setup script instead of executing it so that it can exports variables like the video capture device to the DEVICE env variable which can be used in further examples below.
    299301
    300302Note 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).