Write image frames into gstreamer rtp pipeline
问题 I am trying to use the gstreamer pipeline to view an rtp stream in vlc on my computer. I mostly looked into this thread. My end result is something like this #!/usr/bin/env python import gi import numpy as np gi.require_version('Gst', '1.0') from gi.repository import Gst, GObject import time class RtpPipeline(object): def __init__(self): self.number_frames = 0 self.fps = 30 self.duration = 1 / self.fps * Gst.SECOND # duration of a frame in nanoseconds self.launch_string = 'appsrc name=source