Example #1
0
 def __init__(self, device_id="/dev/video0", v4l_version=""):
     self.description = "V4L source"
     if v4l_version == "1":
         v4l_version = ""
     self.type = "video"
     sbin = "v4l%ssrc device=%s" %(v4l_version, device_id)
     VideoSource.__init__(self, sbin)
Example #2
0
 def __init__(self, device_id="ip"):
     self.description = "Elphel 353 optimized source"
     self.type = "video"
     # TODO: grab real current resolution using web calls
     output_caps = "video/x-raw-yuv, format=(fourcc)I420, width=(int)1920, height=(int)1088, framerate=(fraction)25/1"
     sbin = 'rtspsrc location=rtsp://%s:554 protocols=0x00000001 latency=10 ! rtpjpegdepay ! jpegdec ! videorate name=videorate ! %s' %(device_id, output_caps)
     VideoSource.__init__(self, sbin)
Example #3
0
 def __init__(self, device_id="0", filename=None):
     self.description = "Video DV (Firewire) source"
     self.type = "video_source"
     if filename is not None:
         dumper_str = "tee name=dump_tee ! queue ! filesink location=%s dump_tee. !" %filename
     else:
         dumper_str = ""
     v_caps = "video/x-raw-yuv, format=(fourcc)I420, width=(int)720, height=(int)576, framerate=(fraction)25/1, pixel-aspect-ratio=(fraction)1/1"
     sbin = "dv1394src port=%s ! queue ! %s dvdemux name=dv_src ! queue ! dvdec ! ffmpegcolorspace ! ffdeinterlace ! videoscale ! %s" %(device_id, dumper_str, v_caps)
     VideoSource.__init__(self, sbin)
Example #4
0
 def __init__(self, device_id="0"):
     self.description = "Video Test Source"
     self.type = "video"
     sbin = "videotestsrc pattern=%s" %device_id
     VideoSource.__init__(self, sbin)