<div dir="auto"><div>Hi,</div><div dir="auto"><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">Le mer. 26 avr. 2023, 07 h 30, Will McElderry via gstreamer-devel <<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> Hi All,<br>
<br>
<br>
I'd like to know if there is a pipeline component that can be used to <br>
skip/trim/discard from the beginning of a media stream, (either a period <br>
of time or number of buffers)? (something like 'tail' command with -n +NUM)<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">I'd use GStreamer Editing Services library, and you can test in command line with ges-launch-1.0</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote" dir="auto"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
It's just for a quick test: no need for efficiency.<br>
<br>
<br>
I tried:<br>
<br>
gst-launch-1.0 \<br>
filesrc location="${file}" ! \<br>
qtdemux ! \<br>
avdec_h264 ! \<br>
progressreport update-freq=1 ! \<br>
output-selector name=o ! \<br>
fakesink num-buffers="${buffers}" \<br>
osel. ! playsink<br>
<br>
<br>
hoping that the output-selector would select output zero (fakesink) <br>
until it goes eos then send to output 1, but no joy. (It's the first <br>
time I've played with output-selector, so may be a way to get it to <br>
fallback?)<br>
<br>
I found a fallbacksrc, but I want a fallback sink I think for this approach!<br>
<br>
<br>
Any ideas appreciated!<br>
<br>
<br>
Thanks,<br>
<br>
<br>
Will.<br>
<br>
</blockquote></div></div></div>