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 747734 - Gaupol crashes on opening a video
Gaupol crashes on opening a video
Status: RESOLVED NOTABUG
Product: gaupol
Classification: Other
Component: general
0.28
Other Linux
: Normal normal
: ---
Assigned To: gaupol-maint@gnome.bugs
gaupol-maint@gnome.bugs
Depends on:
Blocks:
 
 
Reported: 2015-04-12 12:32 UTC by qpmmy
Modified: 2015-04-12 16:35 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description qpmmy 2015-04-12 12:32:25 UTC
1. I downloaded the latest development version of Gaupol from Github.
2. There were errors related to having no suitable codecs for the video.
3. I installed a bunch of possibly relevant packages like gstreamer1.0-*.
4. Video still won't be played in preview. Play button just doesn't work.
5. Then I installed python3-gst-1.0 and this caused the crash.

Traceback

File: gaupol/agents/video.py
Line: 138
In: _on_load_video_activate

    self._init_player_widgets()

File: gaupol/agents/video.py
Line: 61
In: _init_player_widgets

    self.player = gaupol.VideoPlayer()

File: gaupol/player.py
Line: 76
In: __init__

    self._init_text_overlay()

File: gaupol/player.py
Line: 206
In: _init_text_overlay

    self._text_overlay = Gst.ElementFactory.make("textoverlay", name=None)

TypeError: make() got an unexpected keyword argument 'name'

Environment

Platform: Linux-3.16.0-31-generic-x86_64-with-Ubuntu-14.10-utopic
Locale: en_US.utf_8

Libraries

Python: 3.4.2
GTK+: 3.12.2
PyGObject: 3.14.0
GStreamer: 1.4.3.0

Python Packages

aeidon: 0.28
gaupol: 0.28
enchant: None
chardet: None
Comment 1 qpmmy 2015-04-12 12:55:04 UTC
I did some modifications:

178 self._playbin = Gst.ElementFactory.make("playbin", name=None)
181 sink = Gst.ElementFactory.make("autovideosink", name=None)
206 self._text_overlay = Gst.ElementFactory.make("textoverlay", name=None)
217 self._time_overlay = Gst.ElementFactory.make("timeoverlay", name=None)

->

178 self._playbin = Gst.ElementFactory.make("playbin")
181 sink = Gst.ElementFactory.make("autovideosink")
206 self._text_overlay = Gst.ElementFactory.make("textoverlay")
217 self._time_overlay = Gst.ElementFactory.make("timeoverlay")

and now I'm again at step 4.
Comment 2 qpmmy 2015-04-12 13:04:38 UTC
If click Play button on the toolbar, not below the video player, the video starts, but in separate mplayer window, with no sound and no control over from Gaupol interface, which is surely inconvenient.
Comment 3 Osmo Salomaa 2015-04-12 13:08:04 UTC
(In reply to qpmmy from comment #0)
> 5. Then I installed python3-gst-1.0 and this caused the crash.

I don't know what this "GStreamer GObject Introspection overrides for Python (Python 3)" is. Gaupol uses GStreamer via gir1.2-gstreamer-1.0 and python3-gi. That's what you need. python3-gst-1.0 seems to change Gst.ElementFactory.make arguments. I don't know why -- it looks bad to me.

If you need to install dependencies for the latest version manually, please see the list at packages.ubuntu.com/vivid [1], which seems up to date to me.

[1] http://packages.ubuntu.com/vivid/gaupol

(In reply to qpmmy from comment #1)
> and now I'm again at step 4.

Please make sure you have the necessary dependencies installed.

If you got Gaupol from GitHub, you can try the 'tools/play' script to test just the video player, ignoring the rest of Gaupol. At a command line, run 'tools/play /path/to/video/file'

(In reply to qpmmy from comment #2)
> If click Play button on the toolbar, not below the video player, the video
> starts, but in separate mplayer window, with no sound and no control over
> from Gaupol interface, which is surely inconvenient.

That's the external video player. It's a different thing and serves a purpose of its own.
Comment 4 qpmmy 2015-04-12 14:53:16 UTC
(In reply to Osmo Salomaa from comment #3)
> If you got Gaupol from GitHub, you can try the 'tools/play' script to test
> just the video player

Uninstalled python3-gst-1.0 and tried this script - now I get the following:

gst-resource-error-quark: Could not open resource for reading.
gstgiobasesrc.c(123): gst_gio_base_src_start (): /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstGioSrc:source:
No input stream provided by subclass

Seems to be gstreamer fault.
Comment 5 Osmo Salomaa 2015-04-12 15:23:15 UTC
(In reply to qpmmy from comment #4)
> Seems to be gstreamer fault.

If you surely have all the listed GStreamer dependencies installed, then probably so. You can try to play the file with a GStreamer-based video player, e.g. Totem. If that also fails, you can file a bug report against GStreamer.
Comment 6 qpmmy 2015-04-12 16:35:47 UTC
(In reply to Osmo Salomaa from comment #5)
> If you surely have all the listed GStreamer dependencies installed, then
> probably so. You can try to play the file with a GStreamer-based video
> player, e.g. Totem. If that also fails, you can file a bug report against
> GStreamer.

Thanks for the help and quick response.