<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><div style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt;"><div>Hey folks,<br></div><div><br></div><div>I have this pipeline that works without issues:<br></div><div><br></div><div>gst-launch-1.0.exe filesrc location="$LOCATION" ! decodebin name=decoder ! audioresample ! audioconvert ! autoaudiosink decoder. ! autovideosink<br></div><div><br></div><div>We are developing our own plugin with a custom buffering strategy. To better understand how buffering works in pipelines I'm using a queue after filesrc, the idea is to later add our custom element before the queue. However, I noticed that for some files this pipeline never prerolls:<br></div><div><br></div><div>gst-launch-1.0.exe filesrc location="$LOCATION" ! queue ! decodebin name=decoder ! audioresample ! audioconvert ! autoaudiosink decoder. ! autovideosink<br></div><div><br></div><div>PS: same behavior happens if I use queue2 or multiqueue. Here's the output:<br></div><div><br></div><div>gst-launch-1.0.exe filesrc location="$LOCATION" ! queue ! decodebin name=decoder ! audioresample ! audioconvert ! autoaudiosink decoder. ! autovideosink <br></div><div>Use Windows high-resolution clock, precision: 1 ms<br></div><div>Setting pipeline to PAUSED ...<br></div><div>Pipeline is PREROLLING ...<br></div><div>Got context from element 'autovideosink0': gst.d3d11.device.handle=context, device=(GstD3D11Device)"\(GstD3D11Device\)\ d3d11device2", adapter=(uint)0, adapter-luid=(gint64)97066, device-id=(uint)39745, vendor-id=(uint)32902, hardware=(boolean)true, description=(string)"Intel\(R\)\ UHD\ Graphics";<br></div><div>Redistribute latency...<br></div><div>Redistribute latency...<br></div><div>Redistribute latency...0.0 %)<br></div><div>0:00:00.0 / 0:01:56.1 (0.0 %)<br></div><div><br></div><div>It shows the first video frame and gets stuck. The weird thing is that if I link ONLY video or ONLY audio-related elements to the decode bin the pipeline executes without problem. That is, the following pipelines work:<br></div><div><br></div><div>without video:</div><div>      gst-launch-1.0.exe filesrc location="$LOCATION" ! queue ! decodebin name=decoder ! audioresample ! audioconvert ! autoaudiosink <br></div><div><br></div><div>without audio:<br></div><div>      gst-launch-1.0.exe filesrc location="$LOCATION" ! queue ! decodebin name=decoder ! autovideosink<br></div><div><br></div><div>Could someone help me understand what is going on? It seems the issue only happens with some files. The issue I just reported is happening when $LOCATION is set to this file: <a href="https://drive.google.com/file/d/1y0u1eKbsKAavXpD6otWM0H1mMQQt9trO/view" target="_blank">CRAZYCAR_HD_422_23p98_STEREO_MiniClip_20211021_2.mov - Google Drive</a></div><div><br></div><div class="zmail_signature_below"><div id="" data-zbluepencil-ignore="true" data-sigid="8819909000000014001"><div>Rodrigo Santos<br></div></div></div><div><br></div></div><br></body></html>