<div dir="ltr">Hi,<div>I try to use on the Windows gstreamer-java,  gstreamer 0.10 installed</div><div>I can convert a test wav file from commande line like this :</div><div>gst-launch-0.10 -v filesrc location=test.wav ! decodebin2 location=test.wav ! audioconvert ! vorbisenc quality=0.5 ! oggmux ! filesink location=test_new.ogg<br>
</div><div><br></div><div>I got the follow error when execute my sample</div><div><div>0:00:01.170600312  6712   19DC8D28 INFO                wavparse gstwavparse.c:2031:gst_wavparse_stream_data:<wavparse0> Error pushing on srcpad wavparse0:src, reason not-linked, is linked? = 1</div>
<div>0:00:01.170760033  6712   19DC8D28 WARN                wavparse gstwavparse.c:2110:gst_wavparse_loop:<wavparse0> error: Internal data flow error.</div><div>0:00:01.170776390  6712   19DC8D28 WARN                wavparse gstwavparse.c:2110:gst_wavparse_loop:<wavparse0> error: streaming task paused, reason not-linked (-1)</div>
<div>0:00:01.170808142  6712   19DC8D28 INFO        GST_ERROR_SYSTEM gstelement.c:1983:gst_element_message_full:<wavparse0> posting message: Internal data flow error.</div><div>0:00:01.182107622  6712   19DC8D28 INFO        GST_ERROR_SYSTEM gstelement.c:2006:gst_element_message_full:<wavparse0> posted error message: Internal data flow error.</div>
<div>Error: code=1, source=wavparse0, message=Internal data flow error.</div></div><div><br></div><div>This is my code </div><div><br></div><div><div>Pipeline pipe = new Pipeline("pipeline");</div><div><span class="" style="white-space:pre">         </span>FileSrc fileSrc = new FileSrc("filesrc");</div>
<div><span class="" style="white-space:pre">            </span>fileSrc.setLocation(filePath);</div><div><span class="" style="white-space:pre">             </span>//</div><div><span class="" style="white-space:pre">         </span>//final Element wavparse = ElementFactory.make("wavparse", "wavparse");</div>
<div><span class="" style="white-space:pre">            </span>final Element decodebin = ElementFactory.make("decodebin2", "decodebin2");</div><div><span class="" style="white-space:pre">             </span>final Element audioConvert = ElementFactory.make("audioconvert",</div>
<div><span class="" style="white-space:pre">                            </span>"audioconvert");</div><div><span class="" style="white-space:pre">         </span>final Element audioResample = ElementFactory.make("audioresample",</div>
<div><span class="" style="white-space:pre">                            </span>"audioResample");</div><div><span class="" style="white-space:pre">                </span>final Element vorbisEnc = ElementFactory.make("vorbisenc",</div><div><span class="" style="white-space:pre">                               </span>"vorbisenc");</div>
<div><span class="" style="white-space:pre">            </span>final Element oggmux = ElementFactory.make("oggmux", "oggmux");</div><div><span class="" style="white-space:pre">                </span>FileSink fileSink = new FileSink("filesink");</div>
<div><span class="" style="white-space:pre">            </span>fileSink.setLocation(filePath + "_temp.ogg");</div><div><span class="" style="white-space:pre">            </span>//</div><div><span class="" style="white-space:pre">         </span>pipe.addMany(fileSrc, decodebin, audioConvert, audioResample, vorbisEnc, oggmux, fileSink);</div>
<div><span class="" style="white-space:pre">            </span>//</div><div><span class="" style="white-space:pre">         </span>pipe.play();</div><div><span class="" style="white-space:pre">               </span>Gst.main();</div><div><span class="" style="white-space:pre">                </span>pipe.stop();</div>
</div><div><br></div><div><div>Thank for help</div><div><br></div><div>Vassili</div></div></div>