<HTML><BODY><div>Hi.</div><div> </div><div>Given following code, where I want to step over frames for some video files:</div><div> </div><div><div><div> foreach (var videoFile in videoFiles)</div><div> {</div></div><div> </div><div><div> var fileSrc = readerPipe.GetByName("filesrc");</div><div> fileSrc["location"] = videoFile;</div></div><div> </div><div> var appSink = (AppSink) readerPipe.GetByName("my_appsink");</div><div><div> </div><div> readerPipe.SetState(State.Playing);</div></div><div> </div><div><div> var step = 1; </div><div> while (step < frameNumber)</div><div> {</div><div> appSink.PullSample();</div><div> step++;</div><div> }</div></div><div> // some code</div><div><div> </div><div> readerPipe.SetState(State.Ready);<strong> //<--blocks here</strong></div></div><div> }</div></div><div> </div><div> </div><div><div><div>Here is log:</div><div> </div><div><strong><span style="font-size:10px;line-height:20px;">0:00:15.991079000 INFO pipeline gstpipeline.c:534:gst_pipeline_change_state:<frame_stepper> pipeline is not live (???)</span></strong></div><div><span style="font-size:10px;line-height:20px;">0:00:15.991360000 INFO GST_STATES gstelement.c:3122:gst_element_change_state:<frame_stepper> forcing commit state READY <= READY</span></div><div><span style="font-size:10px;line-height:20px;">0:00:15.991640300 INFO GST_STATES gstelement.c:2792:gst_element_continue_state:<frame_stepper> committing state from PLAYING to PAUSED, pending READY, next READY</span></div><div><span style="font-size:10px;line-height:20px;">0:00:15.991926500 INFO GST_STATES gstelement.c:2720:_priv_gst_element_state_changed:<frame_stepper> notifying about state-changed PLAYING to PAUSED (READY pending)</span></div><div><span style="font-size:10px;line-height:20px;">0:00:15.992426400 INFO GST_STATES gstelement.c:2799:gst_element_continue_state:<frame_stepper> continue state change PAUSED to READY, final READY</span></div><div><span style="font-size:10px;line-height:20px;">0:00:15.992718200 INFO GST_STATES gstbin.c:2484:gst_bin_element_set_state:<my_appsink> current PLAYING pending PAUSED, desired next READY</span></div><div><span style="font-size:10px;line-height:20px;">0:00:15.993014000 INFO GST_STATES gstelement.c:2817:gst_element_continue_state:<my_appsink> completed state change to READY</span></div><div><span style="font-size:10px;line-height:20px;">0:00:15.993297400 INFO GST_STATES gstelement.c:2720:_priv_gst_element_state_changed:<my_appsink> notifying about state-changed PLAYING to READY (VOID_PENDING pending)</span></div><div><span style="font-size:10px;line-height:20px;">0:00:15.993632800 INFO GST_STATES gstbin.c:2939:gst_bin_change_state_func:<frame_stepper> child 'my_appsink' changed state to 2(READY) successfully</span></div><div><span style="font-size:10px;line-height:20px;">0:00:15.993920500 INFO GST_STATES gstbin.c:2484:gst_bin_element_set_state:<decodebin> current PAUSED pending VOID_PENDING, desired next READY</span></div><div><span style="font-size:10px;line-height:20px;">0:00:15.994215900 INFO GST_STATES gstbin.c:2484:gst_bin_element_set_state:<d3d11h264dec0> current PAUSED pending VOID_PENDING, desired next READY</span></div></div></div><div> </div><div>I don’t see anything weired in logs except «pipeline is not live».</div><div>Why is that? Is it possible to reuse same pipe over multiply video files? What I’m doing wrong?</div><div> </div><div>Thanks in advance. </div><div> </div><div>KR</div></BODY></HTML>