fosslc/freeseer — Issue #158: Not Loading Video Mixer Input: Desktop-Linux Source from config
Author: lmestor
Created: 2011-12-20 07:32:39+00:00
State: open

freeseer-record doesn't seem to load the video input settings from freeseer-config. When loading the video mixer input from freeseer-record upon the press of the Standby button, input type will always be set to video/x-raw-rgb and framerate to 10.

class DesktopLinuxSrc(IVideoInput):
name = "Desktop-Linux Source"
input_type = "video/x-raw-rgb"
framerate = 10
resolution = "NOSCALE"

def get_videoinput_bin(self):
"""
Return the video input object in gstreamer bin format.
"""
bin = gst.Bin() # Do not pass a name so that we can load this input more than once.

videosrc = gst.element_factory_make("ximagesrc", "videosrc")
bin.add(videosrc)

# Video Rate
videorate = gst.element_factory_make("videorate", "videorate")
bin.add(videorate)
videorate_cap = gst.element_factory_make("capsfilter",
"video_rate_cap")
print '%s, framerate=%d/1' % (self.input_type, self.framerate)
videorate_cap.set_property("caps",
gst.caps_from_string('%s, framerate=%d/1' % (self.input_type, self.framerate)))
bin.add(videorate_cap)
# --- End Video Rate