well it seems that is the same problem, i resolved to let the pipeline &quot;blocked&quot; for a long time...and after something like 23min it happens the same thing (Could not close resource.). <br><br>i run a full debugged launch and attached the part where the error occurs (after 23 minutes).<br>
<br>gst-launch -v gnomevfssrc location=<a href="ftp://194.44.214.3/pub/music/Collection/ArtofNoise.mp3">ftp://194.44.214.3/pub/music/Collection/ArtofNoise.mp3</a> ! decodebin ! fakesink --gst-debug=5 2&gt; no_queue.log<br>
Setting pipeline to PAUSED ...<br>/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstTypeFindElement:typefind.GstPad:src: caps = audio/x-wav<br>Pipeline is PREROLLING ...<br>ERROR: from element /GstPipeline:pipeline0/GstGnomeVFSSrc:gnomevfssrc0: Could not close resource.<br>
Additional debug info:<br>gstgnomevfssrc.c(889): gst_gnome_vfs_src_stop (): /GstPipeline:pipeline0/GstGnomeVFSSrc:gnomevfssrc0:<br>Could not close vfs handle: Operation cancelled<br>Setting pipeline to NULL ...<br>/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstTypeFindElement:typefind.GstPad:src: caps = NULL<br>
Freeing pipeline ...<br><br>any hints if this is normal and i have to always use a queue after using a vfs src element? maybe a bug on gnomevfssrc regarding an specific behaviour of the ftp server?<br><br><div class="gmail_quote">
On Mon, Apr 19, 2010 at 10:35 PM, Tiago Katcipis <span dir="ltr">&lt;<a href="mailto:katcipis@inf.ufsc.br">katcipis@inf.ufsc.br</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
trying to solve my problem i found another one :-).<br><br>using a public ftp i run this:<br>gst-launch -v gnomevfssrc location=<a href="ftp://194.44.214.3/pub/music/Collection/ArtofNoise.mp3" target="_blank">ftp://194.44.214.3/pub/music/Collection/ArtofNoise.mp3</a> ! queue ! decodebin ! fakesink<br>

<br>and it works ok, the ftp is really slow...it takes a good time before it starts to download and decode....but works<br><br>even if i try:<br>gst-launch -v gnomevfssrc location=<a href="ftp://194.44.214.3/pub/music/Collection/ArtofNoise.mp3" target="_blank">ftp://194.44.214.3/pub/music/Collection/ArtofNoise.mp3</a> ! queue ! decodebin ! alsasink<br>

<br>i can hear the music (it takes a while to go from paused to playing, something like 20-30 seconds....but if you wait it wil happen). <br><br>But if i take the queue element out:<br>gst-launch -v gnomevfssrc location=<a href="ftp://194.44.214.3/pub/music/Collection/ArtofNoise.mp3" target="_blank">ftp://194.44.214.3/pub/music/Collection/ArtofNoise.mp3</a> ! decodebin ! fakesink<br>

<br>the pipe stays blocked for ever (on both cases)... is this behavior expected? have anyone faced something like that? is a good policy to always put a queue after a gnomevfssrc?<br><br>if someone have other ftp server to test this i would appreciate.<br>

<br>best regards,<br><font color="#888888">Katcipis</font><div><div></div><div class="h5"><br><br><br><div class="gmail_quote">On Fri, Apr 16, 2010 at 2:03 PM, Tiago Katcipis <span dir="ltr">&lt;<a href="mailto:katcipis@inf.ufsc.br" target="_blank">katcipis@inf.ufsc.br</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
now i got some interesting results, testing with a pipeline like this:<br><br>gst-launch gnomevfssrc location=&quot;ftp://user:password@ftp.myserver.com:/myfile.wav&quot; ! filesink location=&quot;test.wav&quot;<br><br>im able to get the file and play it locally.<br>


<br>even if i run:<br>gst-launch gnomevfssrc location=&quot;ftp://user:password@ftp.myserver.com:/myfile.wav&quot; ! audio/x-raw-int,signed=true,channels=1,rate=8000,width=16,endianness=1234 ! pulsesink<br><br>it works(and i hear a lot of noise :-)).<br>


<br>But if i run:<br><br>gst-launch gnomevfssrc
location=&quot;ftp://user:password@ftp.myserver.com:/myfile.wav&quot; !
audio/x-raw-int,signed=true,channels=1,rate=8000,width=16,endianness=1234
! audioparse ! pulsesink<br><br>or<br><br>gst-launch gnomevfssrc
location=&quot;ftp://user:password@ftp.myserver.com:/myfile.wav&quot; ! wavparse ! pulsesink<br><br>or<div><br><br>gst-launch gnomevfssrc
location=&quot;ftp://user:password@ftp.myserver.com:/myfile.wav&quot; ! decodebin ! pulsesink<br><br></div>it gives the same error:<div><br><br>ERROR: from element /GstPipeline:pipeline0/GstGnomeVFSSrc:gnomevfssrc0: Could not close resource.<br>


<br></div>it seems that every time i try to parse the file to get its type and play it, it fails, but if i only play it raw or download it.... works fine.<br><br>any toughts? <br><div><div></div><div><br><br><br>
<div class="gmail_quote">On Fri, Apr 16, 2010 at 11:42 AM, Tiago Katcipis <span dir="ltr">&lt;<a href="mailto:katcipis@inf.ufsc.br" target="_blank">katcipis@inf.ufsc.br</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Im having some trouble using gnomevfssrc and ftp, what troubles me is the error, a simple Could not open would make me understand that i did something wrong or something is wrong with the server.... but this error msg &quot;Could not close&quot;... i simply cant find anything about it, I&#39;m not quite sure if this is something wrong on the ftp server i am using here or if it is a problem with gnomevfs or gstreamer.<br>




<br>The test is simple:<br><br>gst-launch gnomevfssrc location=&quot;ftp://user:password@ftp.myserver.com:/myfile.wav&quot; ! decodebin ! pulsesink<br><br>The output is:<br>(gst-launch-0.10:2735): GLib-WARNING **: g_set_prgname() called multiple times<br>




Setting pipeline to PAUSED ...<br>/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstTypeFindElement:typefind.GstPad:src: caps = audio/x-wav<br>Pipeline is PREROLLING ...<br>/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstWavParse:wavparse0.GstPad:sink: caps = audio/x-wav<br>




ERROR: from element /GstPipeline:pipeline0/GstGnomeVFSSrc:gnomevfssrc0: Could not close resource.<br>Additional debug info:<br>gstgnomevfssrc.c(889): gst_gnome_vfs_src_stop (): /GstPipeline:pipeline0/GstGnomeVFSSrc:gnomevfssrc0:<br>




Could not close vfs handle: Operation cancelled<br>ERROR: pipeline doesn&#39;t want to preroll.<br>Setting pipeline to NULL ...<br>/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstWavParse:wavparse0.GstPad:src: caps = NULL<br>




/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstWavParse:wavparse0.GstPad:sink: caps = NULL<br>/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstTypeFindElement:typefind.GstPad:src: caps = NULL<br>Freeing pipeline ...<br>




<br>Even the wav file header is being read, but on the prerolling this odd error happens. The same url that generates this error works just fine on wget (the file gets downloaded and i can hear it perfectly).<br><br>can someone help me? I&#39;m not very used to ftp...maybe I&#39;m missing something.<br>




<br>best regards,<br><font color="#888888">Katcipis<br>
</font></blockquote></div><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>