<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi<div class=""><br class=""></div><div class="">Some observations:</div><div class=""><br class=""></div><div class="">1. Out of curiosity, I tested your code and it does produce files with data in them (~53MB each).</div><div class=""><br class=""></div><div class="">2. I don’t see any MP4 container in your code, so even though the files are suffixed with .mp4, this is actually raw data. I.e: if I attempt to read the file manually I actually see a valid image:</div><div class=""><br class=""></div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" class=""><div class=""><font color="#606060" class="">gst-launch-1.0 filesrc location= PATH3.mp4 ! videoparse width=320 height=240 format=ayuv64 ! videoconvert ! autovideosink</font></div></blockquote><div class=""><br class=""></div><div class="">The format in your setup will likely be different. I assume the code missing the container is because of the simplification you did of your original code.</div><div class=""><br class=""></div><div class="">3.  MP4 files __need__ to receive an EOS event in order for them to be playable. In your code, you may send the EOS event in the unlink_cb and wait for it to be received on the bus, before tearing everything down. A simpler alternative is to use another container which doesn’t need the EOS, like Transport Stream (mpegtsmux).</div><div class=""><br class=""></div><div class="">Hope this helps,</div><div class=""><br class=""></div><div class="">Michael</div><div class=""><a href="http://www.ridgerun.com" class="">www.ridgerun.com</a></div><div class=""><br class=""></div><div class=""><div><blockquote type="cite" class=""><div class="">On 9 Apr 2021, at 09:31, stanisbouts <<a href="mailto:stan@scentronix.com" class="">stan@scentronix.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hi,<br class=""><br class="">I have multiple rtsp sources that are connected to a input-selector object<br class="">with a 'on_pad_added' callback function. This input-selector is connected<br class="">with a Tee object. This Tee object is connected to a rtmp output that<br class="">streams to twitch.<br class=""><br class="">What i am trying to do is add and remove file sinks to this Tee object<br class="">dynamically. I have the removing of the file sink working but when i add a<br class="">new file sink to the already running pipeline there is no usable data sent<br class="">to the file sink. The file is made and there is data written to the file but<br class="">it is not readable.<br class=""><br class="">only when the file sink is connected before the 'on_pad_added' callback<br class="">function the mp4 is readable.<br class=""><br class="">I have simplified the code that i no longer have dynamic input streams and<br class="">only one static videotestsrc. But i still get the same problem.<br class=""><br class="">simplified example code: <br class=""><a href="https://gist.github.com/Stanisbouts1/cf8fb4e4f3ee44eb407f767c4b73d7c9" class="">https://gist.github.com/Stanisbouts1/cf8fb4e4f3ee44eb407f767c4b73d7c9</a><br class=""><https://gist.github.com/Stanisbouts1/cf8fb4e4f3ee44eb407f767c4b73d7c9>  <br class=""><br class=""><br class=""><br class=""><br class="">--<br class="">Sent from: http://gstreamer-devel.966125.n4.nabble.com/<br class="">_______________________________________________<br class="">gstreamer-devel mailing list<br class="">gstreamer-devel@lists.freedesktop.org<br class="">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel<br class=""></div></div></blockquote></div><br class=""></div></body></html>