Small question regarding giosrc

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Small question regarding giosrc

Tiago Katcipis
Some time ago i was using gnomevfssrc, and stated that it was on deprecation and gio was replacing it, on that time (i really don't remember exactly when) i tried giosrc on my ubuntu (dont remember exactaly the version too) and it worked fine, just like gnomevfs, just running:

gst-launch giosrc location=remote_uri ! etc

worked just fine.

For some reasons we sticked together with gnomevfssrc.

Now we are trying to migrate from gnomevfssrc to giosrc and it simply wont work, the same pipeline that works for gnomevfssrc gives an error when i use giosrc.

The error is:
Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstGioSrc:giosrc0: Could not open resource for reading.
Additional debug info:
gstgiosrc.c(321): gst_gio_src_get_stream (): /GstPipeline:pipeline0/GstGioSrc:giosrc0:
Location sftp://user:pass@ip/tmp/test not mounted: The specified location is not mounted
Setting pipeline to NULL ...
Freeing pipeline ...


i was able to mount the location first...and then run the pipe...then it works fine. But i remember that before i didn't have to mount anything, i just had to use giosrc exactly as i use gnomevfssrc.  Something changed on the giosrc element? or on the gio API? is there a way to automount things? if the url already has the user and the password i don't understand why it wont mount and open for me, its pretty annoying to mount and then run the pipe.

If anyone can enlighten me i will appreciate... sorry if it is a stupid question, I'm not very used with gvfs/gio.

Best regards,
Katcipis
--
http://www.getgnulinux.org/windows

------------------------------------------------------------------------------
This SF.net email is sponsored by

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Small question regarding giosrc

Tiago Katcipis
I'm sorry, i forgot to say that the error is happening on Ubuntu 10.04 with gstreamer 0.10.28. I also compiled and installed gstreamer 0.10.30 on a CentOS and the same problem occurs.

On Mon, Aug 9, 2010 at 6:26 PM, Tiago Katcipis <[hidden email]> wrote:
Some time ago i was using gnomevfssrc, and stated that it was on deprecation and gio was replacing it, on that time (i really don't remember exactly when) i tried giosrc on my ubuntu (dont remember exactaly the version too) and it worked fine, just like gnomevfs, just running:

gst-launch giosrc location=remote_uri ! etc

worked just fine.

For some reasons we sticked together with gnomevfssrc.

Now we are trying to migrate from gnomevfssrc to giosrc and it simply wont work, the same pipeline that works for gnomevfssrc gives an error when i use giosrc.

The error is:
Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstGioSrc:giosrc0: Could not open resource for reading.
Additional debug info:
gstgiosrc.c(321): gst_gio_src_get_stream (): /GstPipeline:pipeline0/GstGioSrc:giosrc0:
Location sftp://user:pass@ip/tmp/test not mounted: The specified location is not mounted
Setting pipeline to NULL ...
Freeing pipeline ...


i was able to mount the location first...and then run the pipe...then it works fine. But i remember that before i didn't have to mount anything, i just had to use giosrc exactly as i use gnomevfssrc.  Something changed on the giosrc element? or on the gio API? is there a way to automount things? if the url already has the user and the password i don't understand why it wont mount and open for me, its pretty annoying to mount and then run the pipe.

If anyone can enlighten me i will appreciate... sorry if it is a stupid question, I'm not very used with gvfs/gio.

Best regards,
Katcipis
--
http://www.getgnulinux.org/windows



--
http://www.getgnulinux.org/windows

------------------------------------------------------------------------------
This SF.net email is sponsored by

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Small question regarding giosrc

Tiago Katcipis
It seems like I'm crazy :-) (i could swear i was able to use it without mounting anything). I found out that the documentation informs that the location must be mounted:

"If an URI or GFile is not mounted giosrc will post a message of type GST_MESSAGE_ELEMENT with name "not-mounted" on the bus. The message also contains the GFile and the corresponding URI. Applications can use the "not-mounted" message to mount the GFile by calling g_file_mount_enclosing_volume() and then restart the pipeline after the mounting has succeeded. Note that right after the "not-mounted" message a normal error message is posted on the bus which should be ignored if "not-mounted" is handled by the application, for example by calling gst_bus_set_flushing(bus, TRUE) after the "not-mounted" message was received and gst_bus_set_flushing(bus, FALSE) after the mounting was successful."

http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-plugins/html/gst-plugins-base-plugins-element-giosrc.html

what made me waste time is the fact that this documentation is not on the main gstreamer documentation:
http://www.gstreamer.net/documentation/plugins.html

gio points to small information about the gio elements. And the giosrc link doesn't exist... only searching for giosrc gstreamer on google i was able to find the element documentation. (i searched similar thing before but for some reason i missed the link :-)).

Sorry for the noise.

Best regards,
Katcipis

On Tue, Aug 10, 2010 at 8:32 AM, Tiago Katcipis <[hidden email]> wrote:
I'm sorry, i forgot to say that the error is happening on Ubuntu 10.04 with gstreamer 0.10.28. I also compiled and installed gstreamer 0.10.30 on a CentOS and the same problem occurs.


On Mon, Aug 9, 2010 at 6:26 PM, Tiago Katcipis <[hidden email]> wrote:
Some time ago i was using gnomevfssrc, and stated that it was on deprecation and gio was replacing it, on that time (i really don't remember exactly when) i tried giosrc on my ubuntu (dont remember exactaly the version too) and it worked fine, just like gnomevfs, just running:

gst-launch giosrc location=remote_uri ! etc

worked just fine.

For some reasons we sticked together with gnomevfssrc.

Now we are trying to migrate from gnomevfssrc to giosrc and it simply wont work, the same pipeline that works for gnomevfssrc gives an error when i use giosrc.

The error is:
Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstGioSrc:giosrc0: Could not open resource for reading.
Additional debug info:
gstgiosrc.c(321): gst_gio_src_get_stream (): /GstPipeline:pipeline0/GstGioSrc:giosrc0:
Location sftp://user:pass@ip/tmp/test not mounted: The specified location is not mounted
Setting pipeline to NULL ...
Freeing pipeline ...


i was able to mount the location first...and then run the pipe...then it works fine. But i remember that before i didn't have to mount anything, i just had to use giosrc exactly as i use gnomevfssrc.  Something changed on the giosrc element? or on the gio API? is there a way to automount things? if the url already has the user and the password i don't understand why it wont mount and open for me, its pretty annoying to mount and then run the pipe.

If anyone can enlighten me i will appreciate... sorry if it is a stupid question, I'm not very used with gvfs/gio.

Best regards,
Katcipis
--
http://www.getgnulinux.org/windows



--
http://www.getgnulinux.org/windows



--
http://www.getgnulinux.org/windows

------------------------------------------------------------------------------
This SF.net email is sponsored by

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Small question regarding giosrc

Tim-Philipp Müller-2
On Wed, 2010-08-11 at 21:41 -0300, Tiago Katcipis wrote:

> (snip solution found in element documentation)
>
> http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-plugins/html/gst-plugins-base-plugins-element-giosrc.html
>
> what made me waste time is the fact that this documentation is not on
> the main gstreamer documentation:
> http://www.gstreamer.net/documentation/plugins.html
>
> gio points to small information about the gio elements. And the giosrc
> link doesn't exist... only searching for giosrc gstreamer on google i
> was able to find the element documentation. (i searched similar thing
> before but for some reason i missed the link :-)).

Thanks for pointing that out, that was a rather peculiar bug in the docs
build system. It's fixed now (thanks to Stefan Kost).

 Cheers
  -Tim



------------------------------------------------------------------------------
This SF.net email is sponsored by

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel