Example #1
0
rojline.set_property("gain", 12000)

#---------------------------------------------------------------------------------
rojolsa = Gst.ElementFactory.make("rojolsa", "olsa0")
pipeline.add(rojolsa)

#---------------------------------------------------------------------------------
fakesink = Gst.ElementFactory.make("fakesink", "sink0")
pipeline.add(fakesink)

########################################################################################
#  link...

import groj
groj.link(fakesrc, rojpointer, rojline, rojolsa, fakesink)

########################################################################################


ret = pipeline.set_state(Gst.State.PLAYING)
assert ret != Gst.StateChangeReturn.FAILURE, "error: play"

try:
    import signal
    signal.pause()
except KeyboardInterrupt:
    pipeline.set_state(Gst.State.NULL)
    print("CTRL-C")

Example #2
0
#rojscreen.set_property("mode", "lin")
rojscreen.set_property("mode", "log")
rojscreen.set_property("wscr", 888)
rojscreen.set_property("hscr", 800)
rojscreen.set_property("update", 10)
rojscreen.set_property("channel", 1)
rojscreen.set_property("oval", -30)

#---------------------------------------------------------------------------------
fakesink = Gst.ElementFactory.make("fakesink", "sink0")
pipeline.add(fakesink)

########################################################################################
#  link...

import groj
groj.link(fakesrc, rojload, rojparcel, rojreass, rojraster, rojkadr, rojscreen, fakesink)

########################################################################################

ret = pipeline.set_state(Gst.State.PLAYING)
assert ret != Gst.StateChangeReturn.FAILURE, "error: play"

try:
    import signal
    signal.pause()
except KeyboardInterrupt:
    pipeline.set_state(Gst.State.NULL)
    print("CTRL-C")

Example #3
0
#rojscreen.set_property("mode", "lin")
rojscreen.set_property("mode", "log")
rojscreen.set_property("wscr", 888)
rojscreen.set_property("hscr", 800)
rojscreen.set_property("update", 10)
rojscreen.set_property("channel", 1)
rojscreen.set_property("oval", -30)

#---------------------------------------------------------------------------------
fakesink = Gst.ElementFactory.make("fakesink", "sink0")
pipeline.add(fakesink)

########################################################################################
#  link...

import groj
groj.link(fakesrc, rojload, rojparcel, rojreass, rojraster, rojkadr, rojscreen,
          fakesink)

########################################################################################

ret = pipeline.set_state(Gst.State.PLAYING)
assert ret != Gst.StateChangeReturn.FAILURE, "error: play"

try:
    import signal
    signal.pause()
except KeyboardInterrupt:
    pipeline.set_state(Gst.State.NULL)
    print("CTRL-C")
Example #4
0
#rojscreen.set_property("mode", "lin")
rojscreen.set_property("mode", "log")
rojscreen.set_property("wscr", 1192)
rojscreen.set_property("hscr", 600)
rojscreen.set_property("update", 10)
rojscreen.set_property("channel", 1)
rojscreen.set_property("oval", -30)

#---------------------------------------------------------------------------------
fakesink = Gst.ElementFactory.make("fakesink", "sink0")
pipeline.add(fakesink)

########################################################################################
#  link...

import groj
groj.link(fakesrc, rojload, rojparcel, rojstft, rojconvert, rojkadr, rojscreen,
          fakesink)

########################################################################################

ret = pipeline.set_state(Gst.State.PLAYING)
assert ret != Gst.StateChangeReturn.FAILURE, "error: play"

try:
    import signal
    signal.pause()
except KeyboardInterrupt:
    pipeline.set_state(Gst.State.NULL)
    print("CTRL-C")
Example #5
0
#rojscreen.set_property("mode", "lin")
rojscreen.set_property("mode", "log")
#rojscreen.set_property("wscr", 1100)
rojscreen.set_property("hscr", 900)
rojscreen.set_property("update", 3)
rojscreen.set_property("channel", 1)
rojscreen.set_property("oval", -30)

#---------------------------------------------------------------------------------
fakesink = Gst.ElementFactory.make("fakesink", "sink0")
pipeline.add(fakesink)

########################################################################################
#  link...

import groj
groj.link(fakesrc, rojgener, rojnoise, rojfilter, rojparcel, rojstft,
          rojconvert, rojscreen, fakesink)

########################################################################################

ret = pipeline.set_state(Gst.State.PLAYING)
assert ret != Gst.StateChangeReturn.FAILURE, "error: play"

try:
    import signal
    signal.pause()
except KeyboardInterrupt:
    pipeline.set_state(Gst.State.NULL)
    print("CTRL-C")
Example #6
0
#rojscreen.set_property("wscr", 1100)
rojscreen.set_property("hscr", 900)
rojscreen.set_property("update", 3)
rojscreen.set_property("channel", 1)
rojscreen.set_property("oval", -30)


#---------------------------------------------------------------------------------
fakesink = Gst.ElementFactory.make("fakesink", "sink0")
pipeline.add(fakesink)

########################################################################################
#  link...

import groj
groj.link(fakesrc, rojgener, rojnoise, rojfilter, rojparcel, rojstft, rojconvert, rojscreen, fakesink)

########################################################################################


ret = pipeline.set_state(Gst.State.PLAYING)
assert ret != Gst.StateChangeReturn.FAILURE, "error: play"

try:
    import signal
    signal.pause()
except KeyboardInterrupt:
    pipeline.set_state(Gst.State.NULL)
    print("CTRL-C")

Example #7
0
rojscreen.set_property("mode", "log")
rojscreen.set_property("wscr", 987)
rojscreen.set_property("hscr", 900)
rojscreen.set_property("update", 10)
rojscreen.set_property("channel", 1)
rojscreen.set_property("oval", -30)

#---------------------------------------------------------------------------------
fakesink = Gst.ElementFactory.make("fakesink", "sink0")
pipeline.add(fakesink)

########################################################################################
#  link...

import groj
groj.link(fakesrc, rojload, rojparcel, rojtransform, rojconvert, rojscreen,
          fakesink)

########################################################################################

ret = pipeline.set_state(Gst.State.PLAYING)
assert ret != Gst.StateChangeReturn.FAILURE, "error: play"

try:
    import signal
    signal.pause()
except KeyboardInterrupt:
    pipeline.set_state(Gst.State.NULL)
    print("CTRL-C")
Example #8
0
File: kadr.py Project: dsp-box/gROJ
rojscreen.set_property("wscr", 1192)
rojscreen.set_property("hscr", 600)
rojscreen.set_property("update", 10)
rojscreen.set_property("channel", 1)
rojscreen.set_property("oval", -30)

# ---------------------------------------------------------------------------------
fakesink = Gst.ElementFactory.make("fakesink", "sink0")
pipeline.add(fakesink)

########################################################################################
#  link...

import groj

groj.link(fakesrc, rojload, rojparcel, rojstft, rojconvert, rojkadr, rojscreen, fakesink)

########################################################################################


ret = pipeline.set_state(Gst.State.PLAYING)
assert ret != Gst.StateChangeReturn.FAILURE, "error: play"


try:
    import signal

    signal.pause()
except KeyboardInterrupt:
    pipeline.set_state(Gst.State.NULL)
    print("CTRL-C")
Example #9
0
#rojscreen.set_property("mode", "lin")
rojscreen.set_property("mode", "log")
#rojscreen.set_property("wscr", 1100)
rojscreen.set_property("hscr", 1024)
rojscreen.set_property("update", 3)
rojscreen.set_property("channel", 1)
rojscreen.set_property("oval", -30)

#---------------------------------------------------------------------------------
fakesink = Gst.ElementFactory.make("fakesink", "sink0")
pipeline.add(fakesink)

########################################################################################
#  link...

import groj
groj.link(fakesrc, rojpointer, rojfilter, rojparcel, rojstft, rojconvert,
          rojscreen, fakesink)

########################################################################################

ret = pipeline.set_state(Gst.State.PLAYING)
assert ret != Gst.StateChangeReturn.FAILURE, "error: play"

try:
    import signal
    signal.pause()
except KeyboardInterrupt:
    pipeline.set_state(Gst.State.NULL)
    print("CTRL-C")
Example #10
0
#rojscreen.set_property("wscr", 1100)
rojscreen.set_property("hscr", 1024)
rojscreen.set_property("update", 3)
rojscreen.set_property("channel", 1)
rojscreen.set_property("oval", -30)


#---------------------------------------------------------------------------------
fakesink = Gst.ElementFactory.make("fakesink", "sink0")
pipeline.add(fakesink)

########################################################################################
#  link...

import groj
groj.link(fakesrc, rojpointer, rojfilter, rojparcel, rojstft, rojconvert, rojscreen, fakesink)

########################################################################################


ret = pipeline.set_state(Gst.State.PLAYING)
assert ret != Gst.StateChangeReturn.FAILURE, "error: play"

try:
    import signal
    signal.pause()
except KeyboardInterrupt:
    pipeline.set_state(Gst.State.NULL)
    print("CTRL-C")

Example #11
0
File: load.py Project: dsp-box/gROJ
rojscreen.set_property("mode", "log")
rojscreen.set_property("wscr", 987)
rojscreen.set_property("hscr", 900)
rojscreen.set_property("update", 10)
rojscreen.set_property("channel", 1)
rojscreen.set_property("oval", -30)

#---------------------------------------------------------------------------------
fakesink = Gst.ElementFactory.make("fakesink", "sink0")
pipeline.add(fakesink)

########################################################################################
#  link...

import groj
groj.link(fakesrc, rojload, rojparcel, rojtransform, rojconvert, rojscreen, fakesink)

########################################################################################



ret = pipeline.set_state(Gst.State.PLAYING)
assert ret != Gst.StateChangeReturn.FAILURE, "error: play"

try:
    import signal
    signal.pause()
except KeyboardInterrupt:
    pipeline.set_state(Gst.State.NULL)
    print("CTRL-C")
Example #12
0
rojline = Gst.ElementFactory.make("rojline", "line0")
pipeline.add(rojline)

rojline.set_property("gain", 12000)

#---------------------------------------------------------------------------------
rojolsa = Gst.ElementFactory.make("rojolsa", "olsa0")
pipeline.add(rojolsa)

#---------------------------------------------------------------------------------
fakesink = Gst.ElementFactory.make("fakesink", "sink0")
pipeline.add(fakesink)

########################################################################################
#  link...

import groj
groj.link(fakesrc, rojpointer, rojline, rojolsa, fakesink)

########################################################################################

ret = pipeline.set_state(Gst.State.PLAYING)
assert ret != Gst.StateChangeReturn.FAILURE, "error: play"

try:
    import signal
    signal.pause()
except KeyboardInterrupt:
    pipeline.set_state(Gst.State.NULL)
    print("CTRL-C")
Example #13
0
rojline.set_property("gain", 12000)

#---------------------------------------------------------------------------------
rojolsa = Gst.ElementFactory.make("rojolsa", "olsa0")
pipeline.add(rojolsa)

#---------------------------------------------------------------------------------
fakesink = Gst.ElementFactory.make("fakesink", "sink0")
pipeline.add(fakesink)

########################################################################################
#  link...

import groj
groj.link(fakesrc, rojgener, rojline, rojolsa, fakesink)

########################################################################################


ret = pipeline.set_state(Gst.State.PLAYING)
assert ret != Gst.StateChangeReturn.FAILURE, "error: play"

try:
    import signal
    signal.pause()
except KeyboardInterrupt:
    pipeline.set_state(Gst.State.NULL)
    print("CTRL-C")

Example #14
0
rojscreen.set_property("wscr", 1100)
rojscreen.set_property("hscr", 800)
rojscreen.set_property("update", 10)
rojscreen.set_property("channel", 1)
rojscreen.set_property("oval", -30)


#---------------------------------------------------------------------------------
fakesink = Gst.ElementFactory.make("fakesink", "sink0")
pipeline.add(fakesink)

########################################################################################
#  link...

import groj
groj.link(fakesrc, queue, rojgener, rojfilter0, rojline, rojfilter1, rojparcel, rojstft, rojconvert, rojscreen, fakesink)

########################################################################################


ret = pipeline.set_state(Gst.State.PLAYING)
assert ret != Gst.StateChangeReturn.FAILURE, "error: play"

try:
    import signal
    signal.pause()
except KeyboardInterrupt:
    pipeline.set_state(Gst.State.NULL)
    print("CTRL-C")