Bug 224980 - New port: multimedia/gnome-twitch, a twitch.tv livestream player
Summary: New port: multimedia/gnome-twitch, a twitch.tv livestream player
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Tobias Kortkamp
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-07 20:23 UTC by Val Packett
Modified: 2019-01-26 10:49 UTC (History)
1 user (show)

See Also:


Attachments
gnome-twitch.patch (5.65 KB, patch)
2018-01-07 20:23 UTC, Val Packett
no flags Details | Diff
Updated patch (7.25 KB, patch)
2018-01-09 23:23 UTC, Yuri Victorovich
no flags Details | Diff
Updated patch (7.25 KB, patch)
2018-01-10 01:00 UTC, Yuri Victorovich
no flags Details | Diff
Updated shar (3.48 KB, text/plain)
2018-01-29 21:36 UTC, Yuri Victorovich
no flags Details
Updated shar (5.85 KB, text/plain)
2018-01-29 21:39 UTC, Yuri Victorovich
no flags Details
gnome-twitch.patch (4.77 KB, patch)
2018-05-05 11:41 UTC, Val Packett
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Val Packett 2018-01-07 20:23:01 UTC
Created attachment 189495 [details]
gnome-twitch.patch

https://github.com/vinszent/gnome-twitch

Defaulting to MPV backend only, since I couldn't get GStreamer to actually play anything, and it's a large dependency.
Comment 1 Yuri Victorovich freebsd_committer freebsd_triage 2018-01-09 04:42:37 UTC
Please, do not use ".if" statements when they are replaceable with option helpers.
Comment 2 Val Packett 2018-01-09 13:24:22 UTC
(In reply to Yuri Victorovich from comment #1)
If that's about USE_GSTREAMER1=yes — I wanted to avoid duplication, but okay I can change that to helpers.

BACKENDS — I'm not sure how I would use helpers to concatenate strings into one argument…
Comment 3 Yuri Victorovich freebsd_committer freebsd_triage 2018-01-09 22:03:07 UTC
Ok, thanks, don't worry about this.
I will modify it.
Comment 4 Yuri Victorovich freebsd_committer freebsd_triage 2018-01-09 22:46:18 UTC
This feature proposed by me can greatly simplify all the "if" statements in this port: https://reviews.freebsd.org/D13078

This feature isn't yet accepted.
Will wait for a while.
Comment 5 Yuri Victorovich freebsd_committer freebsd_triage 2018-01-09 23:23:31 UTC
Created attachment 189569 [details]
Updated patch

I updated the patch using the unreleased feature from https://reviews.freebsd.org/D13078

In order to apply the patch D13078, you need 1. to install arcanist 2. in /usr/ports, run 'arc patch D13078'

I will wait until D13078 is committed.

Thank you for your submission!

Yuri
Comment 6 Yuri Victorovich freebsd_committer freebsd_triage 2018-01-10 00:45:24 UTC
I think, this GSTREAMER_CAIRO_USE=gstreamer1=yes should be GSTREAMER_CAIRO_USE=    gstreamer1=cairo ?

I am not familiar with gstreamer1, but how come plugins are used that aren't listed in Mk/bsd.gstreamer.mk? Ex. opengl, clutter. Shouldn't all plugins be listed in Mk/bsd.gstreamer.mk? Are they missing there, or is this expected?
Comment 7 Yuri Victorovich freebsd_committer freebsd_triage 2018-01-10 01:00:00 UTC
Created attachment 189570 [details]
Updated patch
Comment 8 Val Packett 2018-01-10 12:09:56 UTC
(In reply to Yuri Victorovich from comment #6)
Yeah looks like they're missing there.
Comment 9 Yuri Victorovich freebsd_committer freebsd_triage 2018-01-29 21:00:33 UTC
I don't quite understand how can "GSTREAMER_OPENGL_USE=gstreamer1=yes" and "GSTREAMER_CLUTTER_USE=gstreamer1=yes" work if they don't convey which gstreamer plugin to use if they don't say the name.

Greg, do you know how can this work or what should it be changed to?
Comment 10 Val Packett 2018-01-29 21:02:48 UTC
(In reply to Yuri Victorovich from comment #9)
The clutter one has GSTREAMER_CLUTTER_LIB_DEPENDS above!

The opengl plugin is default IIRC
Comment 11 Yuri Victorovich freebsd_committer freebsd_triage 2018-01-29 21:36:09 UTC
Created attachment 190175 [details]
Updated shar

Current version 0.5.1 fails to build: https://github.com/rylio/ytdl/issues/32
Comment 12 Yuri Victorovich freebsd_committer freebsd_triage 2018-01-29 21:38:29 UTC
(In reply to Yuri Victorovich from comment #11)
Sorry, this was for a different bug.
Comment 13 Yuri Victorovich freebsd_committer freebsd_triage 2018-01-29 21:39:21 UTC
Created attachment 190176 [details]
Updated shar
Comment 14 Val Packett 2018-03-17 20:05:10 UTC
So the gstreamer plugin it really wants is: hls!
Comment 15 Val Packett 2018-05-05 11:41:28 UTC
Created attachment 193061 [details]
gnome-twitch.patch

- updated to current git master, which includes important commits such as https://github.com/vinszent/gnome-twitch/pull/344
- added dep on gstreamer hls
Comment 16 Tobias Kortkamp freebsd_committer freebsd_triage 2018-05-06 11:48:01 UTC
I don't understand why this is blocked by D13078.

Just add this to the port and it could be committed now.  The port can be amended
later when support for OPTIONS_*_SELECTED lands.

.for opt in ${OPTIONS_MULTI_BACKEND}
${opt}_VARS=	BUILD_PLAYER_BACKENDS+=${opt}
.endfor
MESON_ARGS=	-Dbuild-player-backends=${BUILD_PLAYER_BACKENDS:tl:S/_/-/:ts,}
Comment 17 commit-hook freebsd_committer freebsd_triage 2019-01-26 10:49:47 UTC
A commit references this bug:

Author: tobik
Date: Sat Jan 26 10:48:49 UTC 2019
New revision: 491259
URL: https://svnweb.freebsd.org/changeset/ports/491259

Log:
  New port: multimedia/gnome-twitch

  GTK based player for Twitch.tv online live video streams.

  WWW: http://gnome-twitch.vinszent.com

  PR:		224980
  Submitted by:	greg@unrelenting.technology
  Reviewed by:	yuri (earlier version)

Changes:
  head/multimedia/Makefile
  head/multimedia/gnome-twitch/
  head/multimedia/gnome-twitch/Makefile
  head/multimedia/gnome-twitch/distinfo
  head/multimedia/gnome-twitch/pkg-descr
  head/multimedia/gnome-twitch/pkg-plist