After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 591700 - Totem don't play videos from ssh remote host
Totem don't play videos from ssh remote host
Status: RESOLVED NOTABUG
Product: totem
Classification: Core
Component: Movie player
2.26.x
Other All
: Normal normal
: ---
Assigned To: General Totem maintainer(s)
General Totem maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2009-08-13 15:12 UTC by Jose Illescas Perez
Modified: 2009-09-02 14:29 UTC
See Also:
GNOME target: ---
GNOME version: 2.25/2.26



Description Jose Illescas Perez 2009-08-13 15:12:30 UTC
Please describe the problem:
Hello,

I have a problem with totem 2.26. I can't play videos from remote resources ssh. When video starts play more or less but, the image and sound stops randomly and finally is impossible play video.

The problem occurs in totem 2.24 and 2.26 version. With totem 2.22 and previous work fine.

I think that the problem occurs with gnome-vfs to gvfs migration.

Can you verify this?. How can I solve ind totem 2.26 and gvfs?. Can I use gnome-vfs with totem 2.26.

With totem 2.26 and gnome-vfs, I had this problem:

http://bugzilla.gnome.org/show_bug.cgi?id=571619

Best regards.

Steps to reproduce:
1. Open totem
2. Open video from ssh or ftp resource.
3. The image and sound stops randomly


Actual results:
The image and sound stops randomly.

Expected results:
Play video and sound correctly.

Does this happen every time?
Yes.

Other information:
Comment 1 Bastien Nocera 2009-08-13 15:16:11 UTC
Can you play the video using gst-launch. For example:
gst-launch playbin2 uri="ssh:///jdsjkdsj"
Comment 2 Jose Illescas Perez 2009-08-14 22:24:47 UTC
How can I include user and password credentials in gst-launch uri command.

Other specific data about the problem. I've the problem on my laptop with wifi connection to ssh remote resource, but with totem 2.22 and previous work fine.

Regards.
Comment 3 Philip Withnall 2009-08-17 17:53:16 UTC
(In reply to comment #2)
> How can I include user and password credentials in gst-launch uri command.

I'm guessing you'd use the standard username:password format:

ssh://username:password@hostname
Comment 4 Bastien Nocera 2009-08-17 18:43:49 UTC
You don't. The location where you're going to play the file from needs to be mounted.

If it's not, it will just fail in 2.26.x, though there is code in 2.27.x to do the mount automatically.

So if the ssh location wasn't mounted when you filed this bug, then upgrade to 2.27.x, or mount it manually.
Comment 5 Jose Illescas Perez 2009-08-24 20:44:04 UTC
Hello,

the command:

gst-launch-0.10 playbin2 uri="ssh://user:password@mordor:/home/user/Movie.avi"

work fine in 2.22. But in 2.26 fails:

-----
Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin0/GstGioSrc:source: Could not open resource for reading.
Additional debug info:
gstgiosrc.c(313): gst_gio_src_start (): /GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin0/GstGioSrc:source:
Could not open location sftp://user:pass@mordor:0/home/user/Movie.avi for reading: La ubicaci?n especificada no est? montada
Setting pipeline to NULL ...
FREEING pipeline ...
-----

What's the correct uri with the remote resource mounted.

Regards.
Comment 6 Bastien Nocera 2009-09-01 15:21:09 UTC
Yes, as explained in comment 4.

Try using Totem 2.27.x (preferably from git) or mount your "mordor" mount before trying to play from it.
Comment 7 Jose Illescas Perez 2009-09-02 08:22:31 UTC
Can you write an example of procedure for mount resource and play video?.

Can I mount resource from "Connect to server" from Places menu of gnome?. In this situation, how can I exec command gst-launch-0.10?, what's the exact syntax?.

Anyway, I want to use totem. How can I install totem 2.27.x from git?.

Regards.
Comment 8 Bastien Nocera 2009-09-02 11:54:14 UTC
gvfs-mount ssh://mordor
totem ssh://user:password@mordor:/home/user/Movie.avi

Or use the "connect to server" feature in nautilus and add it to your bookmarks.
Comment 9 Jose Illescas Perez 2009-09-02 12:11:15 UTC
I've problems. This is the output.

This work fine:

$ gvfs-mount ssh://mordor
Enter your password
User: myuser
Password: mypass

and the resourced is mounted correctly.

This command fails:

$ totem ssh://myuser:mypass@mordor:/tmp/Movie.avi
/var/lib/python-support/python2.6/gdata/tlslite/utils/cryptomath.py:9: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
  import sha
** Message: no file info
** Message: Error: Could not open resource for reading.
gstgiosrc.c(313): gst_gio_src_start (): /GstPlayBin:play/GstGioSrc:source:
Could not open location sftp://pruebas:pruebas@172.16.31.13:0/tmp/Movie.avi for reading: The specified location is not mounted

How can I install totem 2.27 from git?.

Any ideas?.
Comment 10 Bastien Nocera 2009-09-02 12:27:05 UTC
That's because you're not typing the URL properly (and adding authentication information in the URL). Try:
$ totem ssh://mordor/tmp/Movie.avi
Comment 11 Jose Illescas Perez 2009-09-02 14:23:26 UTC
Ok, thanks. This command work:

$ totem ssh://mordor/tmp/Movie.avi

however, the image and sound stops randomly too.

I've launched this command and the image and sound stops randomly too:

$ gst-launch-0.10 playbin2 uri="ssh://mordor/tmp/video.avi"
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
I: caps.c: Limited capabilities successfully to CAP_SYS_NICE.
I: caps.c: Dropping root privileges.
I: caps.c: Limited capabilities successfully to CAP_SYS_NICE.
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstAudioSinkClock
WARNING: from element
/GstPlayBin2:playbin20/GstPlaySink:playsink0/GstBin:vbin/GstAutoVideoSink:videosink/GstXvImageSink:videosink-actual-sink-xvimage:
A lot of buffers are being dropped.
Additional debug info:
gstbasesink.c(2575): gst_base_sink_is_too_late ():
/GstPlayBin2:playbin20/GstPlaySink:playsink0/GstBin:vbin/GstAutoVideoSink:videosink/GstXvImageSink:videosink-actual-sink-xvimage:
There may be a timestamping problem, or this computer is too slow.
Got EOS from element "playbin20".
Execution ended after 47897036348 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

All the above commands work fine in totem 2.22, but in 2.24 and 2.26 fail.

Regards.
Comment 12 Bastien Nocera 2009-09-02 14:29:52 UTC
Then file a separate bug against GStreamer.