640x480 shown full in 320x240

ciphered1
2014-05-23
2014-05-26
  • ciphered1

    ciphered1 - 2014-05-23

    Hi Peter,

    Is there a way to show a 640x480 geometry feed in a 320x240? I want to scale it down mainly and show it all without using cutouts. Will be good as a preview

    My geometries are as follow:

    main geo:
    907 720

    total 4 feeds:

    feed add 1 Feed #1
    feed geometry 1 640 480
    feed live 1
    feed scale 1 1 2
    feed par 1 1 1
    feed socket 1 /tmp/feed1-control-pipe

    feed add 2 Feed #2
    feed geometry 2 640 480
    feed live 2
    feed scale 2 1 2
    feed par 2 1 1
    feed socket 2 /tmp/feed2-control-pipe

    feed add 3 Feed #3
    feed geometry 3 640 480
    feed live 3
    feed scale 3 1 2
    feed par 3 1 1
    feed socket 3 /tmp/feed3-control-pipe

    feed add 4 Feed
    feed geometry 4 640 480
    feed live 4
    feed scale 4 1 1
    feed socket 4 /tmp/feed4-control-pipe

    So mainly feed 4 needs to be shows in 640x480, the others in 320x240 but actually showing the whole content of the feed but in a smaller scale.

     
    Last edit: ciphered1 2014-05-23
    • Peter Maersk-Moller

      Hi C.

      Try this ini file

          require version 0.4.3
      
          # Listen on port 9999 for command control connections
          system control port 9999
      
          # Set system Geometry to 1024x576
          system geometry 907 720 ARGB
      
          # Set system frame rate to 24
          system frame rate 24
      
          # Set output control socket
          system socket /tmp/mixer1
      
          # Set feed idle time - feed 0 will always be idle. If no file is given,
          # idle image will be all black.
          feed add 1 Feed #1
          feed geometry 1 640 480
          feed shift 1 660 0
          feed live 1
          feed scale 1 1 3
          #feed par 1 1 1
          feed socket 1 /tmp/feed1-control-pipe
          feed idle 1 100 ../frames/dead-640x480.bgra
      
          feed add 2 Feed #2
          feed geometry 2 640 480
          feed shift 2 660 160
          feed live 2
          feed scale 2 1 3
          #feed par 2 1 1
          feed socket 2 /tmp/feed2-control-pipe
          feed idle 2 100 ../frames/dead-640x480.bgra
      
          feed add 3 Feed #3
          feed geometry 3 640 480
          feed shift 3 660 320
          feed live 3
          feed scale 3 1 3
          #feed par 3 1 1
          feed socket 3 /tmp/feed3-control-pipe
          feed idle 3 100 ../frames/dead-640x480.bgra
      
          feed add 4 Feed #4
          feed geometry 4 640 480
          feed shift 0 0 0
          feed live 4
          feed scale 4 1 1
          feed socket 4 /tmp/feed4-control-pipe
          feed idle 4 100 ../frames/dead-640x480.bgra
      
          stack 0 4 1 2 3
      
       
  • ciphered1

    ciphered1 - 2014-05-26

    Hi Peter,

    That works fine, seems the scale parameter is the way to go. Thanks

    Now, i am trying to integrate some keystroke to change the positions of the feeds.

    Example when 1 is pressed, the main 640x480 window will display Feed1, and Feed4 will go into Feed1's old window which is 320x240.
    Next, if 2 is pressed, Feed1 will go into the 320x240 window of feed2 and Feed2 will go into the main window.

    Any idea how to achieve these dynamics?

    Thanks again.

     
    • Peter Maersk-Moller

      Remember: New topic needs a new thread for others to be able to search and navigate the forum. When they can navigate, I may help many by answering a question. Otherwise I just help one person.

      Regards

       

Anonymous
Anonymous

Cancel  Add attachments