Vrec.py, Vrecb.py:
- call v.SetParam() after v.BindGLWindow()
- turn of dithering in mono/grey mode
- use prefposition to place the top left corner at (150, 150)
(so that the video remains visible during recording)
- default width is 256
Vcopy.py: correct typos; more verbose output.
OldVcopy.py: new name for Jack's old grabbing Vcopy.py.
Vstat.py: print values of all video parameters.
diff --git a/Demo/sgi/video/Vcopy.py b/Demo/sgi/video/Vcopy.py
index f9c954a..e8d4f55 100755
--- a/Demo/sgi/video/Vcopy.py
+++ b/Demo/sgi/video/Vcopy.py
@@ -166,6 +166,7 @@
sys.stderr.write(outfilename + ': I/O error: ' + `msg` + '\n')
return 1
+ print '=== input file ==='
vin.printinfo()
vout.setinfo(vin.getinfo())
@@ -187,7 +188,6 @@
if not ypf: ypf = vout.ypf
newpf = (xpf, ypf)
vout.setpf(newpf)
- scale = 1
if newwidth and newheight:
scale = 1
@@ -221,6 +221,7 @@
newwidth = newwidth / vout.xpf
newheight = newheight / vout.ypf
+ print '=== output file ==='
vout.printinfo()
vout.writeheader()
@@ -251,13 +252,14 @@
inwidth, inheight, newwidth, newheight)
if flip:
x0, y0 = 0, 0
- x1, y1 = newwidth-1, neheight-1
+ x1, y1 = newwidth-1, newheight-1
if vin.upside_down <> vout.upside_down:
y1, y0 = y0, y1
if vin.mirror_image <> vout.mirror_image:
x1, x0 = x0, x1
data = imageop.crop(data, vout.bpp/8, \
newwidth, newheight, x0, y0, x1, y1)
+ print 'Writing frame', nout
vout.writeframe(tout, data, cdata)
nout = nout + 1