I want to stream rtp in pcap file to udpsink continuously. so i am trying
the following approach.
I am trying to read from namedpipe using gst-launch and there is another
script which is writing to namedpipe by reading binary file and writing it
in to pipe. The file i am reading is pcap, once read completes i seek back
to 0 and read from the beginning. Following is the example python script
writing to namedpipe in loop for 10 times
import os, sys
# Path to be created
path = "videopipe"
print("Path is created")
except OSError as e:
print("Failed to create FIFO: %s" % e)
rf = open('video.pcap', 'rb', 0)
wf = open(path, 'wb', 0)
for i in range(10):
for data in iter(lambda: rf.read(4096),b""):
The first iteration works fine, gstreamer reads from namedpiped and sends it
to udpsink and client is able to decode the video, the issue am facing is
that after first iteration gstreamer stops reading from the pipe.
Can anyone help me how to resolve this?