<div dir="auto">as you may also change the frame rate, can you try to add a "videorate" element after the videoscale?<div dir="auto"><br></div><div dir="auto">Regards,</div><div dir="auto"><br></div><div dir="auto">Yu</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 27 Oct 2023, 10:50 Busayo Famutimi via gstreamer-devel, <<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hello devs,<div><br></div><div>Please I am having a challenge trying to reduce the size of a video.</div><div><br></div><div>I am using the command below</div><div><br></div><div> gst-launch-1.0.exe filesrc location=/path/to/mp4 ! qtdemux name=d d.video_0 ! h264parse ! avdec_h264 ! videoconvert ! videoscale ! video/x-raw,width=1280,height=720,framerate=15/1 ! autovideosink<br></div><div><br></div><div>But I am getting the following error:</div><div><br></div><div><div>../gst-plugins-good-1.22.6/gst/isomp4/qtdemux.c(6976): gst_qtdemux_loop (): /GstPipeline:pipeline0/GstQTDemux:d:</div><div>streaming stopped, reason not-linked (-1)</div><div>WARNING: from element /GstPipeline:pipeline0/GstQTDemux:d: Delayed linking failed.</div><div>ERROR: pipeline doesn't want to preroll.</div><div>Additional debug info:</div><div>gst/parse/grammar.y(855): gst_parse_no_more_pads (): /GstPipeline:pipeline0/GstQTDemux:d:</div><div>failed delayed linking pad video_0 of GstQTDemux named d to some pad of GstH264Parse named h264parse0</div><div>Setting pipeline to NULL ...</div><div>Freeing pipeline ...</div></div><div><br></div><div>A quick note:</div><div>If I remove the videoconvert, videoscale & caps-filter from the pipeline it works.</div><div><br></div><div>I am just struggling to understand why the demux element cannot link to the next element when they are caps compatible. I know I am missing out on something but I can't seem to figure it out.</div><div><br></div><div>Thanks.</div><div><br></div><div>Kind regards.</div></div></div></div></div>
</blockquote></div>