Permalink
Browse files

fixed shifted video position

  • Loading branch information...
1 parent 8afd8a4 commit c4f357b59b8cc9a6c9df503b7c1b1a188904ecbe Jan-Christoph Borchardt committed Jul 20, 2010
Showing with 7 additions and 4 deletions.
  1. +7 −4 pongo.py
View
@@ -76,15 +76,18 @@ def runBash(cmd):
if arg == "nocam":
cam = False
cam_opacity = 0
- if arg == "shift":
- cam_x -= cam_w
if arg == "left":
cam_x = 0
- if arg == "shift":
- cam_x += cam_w * 2
if arg == "top":
cam_y = 0
+for arg in sys.argv:
+ if arg == "shift":
+ if cam_x == 0:
+ cam_x += cam_w
+ else:
+ cam_x -= cam_w
+
p = gst.parse_launch("""videomixer name = mix ! ffmpegcolorspace ! queue ! theoraenc ! oggmux name = mux ! filesink location = %s
istximagesrc name = xsrc use-damage = false ! videorate ! video/x-raw-rgb,framerate = 10/1 ! ffmpegcolorspace ! videoscale method = 1 ! video/x-raw-yuv,width = %d,height = %d ! mix.sink_0

0 comments on commit c4f357b

Please sign in to comment.