Change channel by path

2006-05-06
2013-03-22
  • Maestroarmero
    Maestroarmero
    2006-05-06

    HI, I don't know if this is project is still alive, but I've recently have started using it.

    I use to have a camserv server with a little mod (I made) so depending on the URL (CAM1 or CAM2) it will switch to the composite video or the SVHS.

    I've tried to do this with camsource but is furthermore complex.

    Any clue on how to do it?

    Thx in advance to every body,
    regards
    Alejandro

     
    • dash
      dash
      2006-06-26

      Have you tried specifying the same device in two camdev sections?

      <camdev name="ch12" active="yes">
          <plugin>input_v4l</plugin>
          <path>/dev/video0</path>
          <width>max</width>
          <height>max</height>
          <fps>15</fps>
          <channel>12</channel>
          <norm>auto</norm>
      </camdev>

      <camdev name="ch22" active="yes">
          <plugin>input_v4l</plugin>
          <path>/dev/video0</path>
          <width>max</width>
          <height>max</height>
          <fps>15</fps>
          <channel>22</channel>
          <norm>auto</norm>
      </camdev>

      Then, add vpaths as follows under the http module
      <module name="http" active="yes">
      <port>9192</port>

      <vpath active="yes">
          <grabdev>ch12</grabdev>
          <path>/ch12</path>
      </vpath>
      <vpath active="yes">
          <grabdev>ch22</grabdev>
          <path>/ch22</path>
      </vpath>
      </module>

      Then all you'd have to do is go to http://<server>:9192/ch12 or http://<server>:9192/ch22