butt and dbus feature (just curious)

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

butt and dbus feature (just curious)

Per Gunnarsson-5
Hello!

I have been trying to port butt (broadcast using this tool by Daniel
Noethen) to FreeBSD.

It's a live streamer for icecast, and there is a feature in the
application which works on Linux which I have failed to get working on
FreeBSD.

The feature I am trying to get working is that the application picks up
metadata (artist name and song name) from a media player and forwards it
to the icecast server.

This is somehow done by dbus.

When I compile butt on FreeBSD, configure seens to find dbus and
compiles, but the application doesn't seem to find any mpris connected
media players.

Do you think I can get away with just adjusting som flags or do I have
to learn serious programming to get it working?

from configure.ac:

#Add dbus library for Linux
if test "$build_linux" = "yes"; then
        AC_MSG_NOTICE([])
        PKG_CHECK_MODULES([DBUS], [dbus-1], [
                AC_DEFINE([HAVE_DBUS], [1], [Use dbus to get current
tracks])
                LIBS="$LIBS $DBUS_LIBS"
                CFLAGS="$CFLAGS $LIBS $DBUS_CFLAGS"
                CXXFLAGS="$CXXFLAGS $DBUS_CFLAGS"
        ], [
                AC_DEFINE([HAVE_DBUS], [0], [Use dbus to get current
tracks])
                AC_MSG_ERROR([**** Coud not find dbus dev files])
        ])
fi


#Add dbus library for FreeBSD (just copied and pasted from linux in
order to make things compile)

if test "$build_freebsd" = "yes"; then
        AC_MSG_NOTICE([])
        PKG_CHECK_MODULES([DBUS], [dbus-1], [
                AC_DEFINE([HAVE_DBUS], [1], [Use dbus to get current
tracks])
                LIBS="$LIBS $DBUS_LIBS"
                CFLAGS="$CFLAGS $LIBS $DBUS_CFLAGS"
                CXXFLAGS="$CXXFLAGS $DBUS_CFLAGS"
        ], [
                AC_DEFINE([HAVE_DBUS], [0], [Use dbus to get current
tracks])
                AC_MSG_ERROR([**** Coud not find dbus dev files])
        ])
fi

Do I have to play around with src/currentTrack.h and create a
src/currentTrackFreeBSD.cpp too?

Regards,

Per Gunnarsson
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-desktop
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: butt and dbus feature (just curious)

Tobias C. Berner-2
Moin moin

Do you have an mpris-enabled player running then (e.g. multimedia/mpv
together with multimedia/mpv-mpris).  If it is just using dbus then
that should work out of the box, like it does on linux.

mfg Tobias

On Sun, 26 Jul 2020 at 09:58, Per Gunnarsson <[hidden email]> wrote:

>
> Hello!
>
> I have been trying to port butt (broadcast using this tool by Daniel
> Noethen) to FreeBSD.
>
> It's a live streamer for icecast, and there is a feature in the
> application which works on Linux which I have failed to get working on
> FreeBSD.
>
> The feature I am trying to get working is that the application picks up
> metadata (artist name and song name) from a media player and forwards it
> to the icecast server.
>
> This is somehow done by dbus.
>
> When I compile butt on FreeBSD, configure seens to find dbus and
> compiles, but the application doesn't seem to find any mpris connected
> media players.
>
> Do you think I can get away with just adjusting som flags or do I have
> to learn serious programming to get it working?
>
> from configure.ac:
>
> #Add dbus library for Linux
> if test "$build_linux" = "yes"; then
>         AC_MSG_NOTICE([])
>         PKG_CHECK_MODULES([DBUS], [dbus-1], [
>                 AC_DEFINE([HAVE_DBUS], [1], [Use dbus to get current
> tracks])
>                 LIBS="$LIBS $DBUS_LIBS"
>                 CFLAGS="$CFLAGS $LIBS $DBUS_CFLAGS"
>                 CXXFLAGS="$CXXFLAGS $DBUS_CFLAGS"
>         ], [
>                 AC_DEFINE([HAVE_DBUS], [0], [Use dbus to get current
> tracks])
>                 AC_MSG_ERROR([**** Coud not find dbus dev files])
>         ])
> fi
>
>
> #Add dbus library for FreeBSD (just copied and pasted from linux in
> order to make things compile)
>
> if test "$build_freebsd" = "yes"; then
>         AC_MSG_NOTICE([])
>         PKG_CHECK_MODULES([DBUS], [dbus-1], [
>                 AC_DEFINE([HAVE_DBUS], [1], [Use dbus to get current
> tracks])
>                 LIBS="$LIBS $DBUS_LIBS"
>                 CFLAGS="$CFLAGS $LIBS $DBUS_CFLAGS"
>                 CXXFLAGS="$CXXFLAGS $DBUS_CFLAGS"
>         ], [
>                 AC_DEFINE([HAVE_DBUS], [0], [Use dbus to get current
> tracks])
>                 AC_MSG_ERROR([**** Coud not find dbus dev files])
>         ])
> fi
>
> Do I have to play around with src/currentTrack.h and create a
> src/currentTrackFreeBSD.cpp too?
>
> Regards,
>
> Per Gunnarsson
> _______________________________________________
> [hidden email] mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-desktop
> To unsubscribe, send any mail to "[hidden email]"
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-desktop
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: butt and dbus feature (just curious)

Tobias C. Berner-2
In reply to this post by Per Gunnarsson-5
Moin moin


Looking at the code, you'll also need to patch fl_funcs.cpp on Line 150:
#elif (__linux__ || __FreeBSD__) && HAVE_DBUS
That way the dropdown in the application will get populated with the
player it knows about.

mfg Tobias

On Sun, 26 Jul 2020 at 09:58, Per Gunnarsson <[hidden email]> wrote:

>
> Hello!
>
> I have been trying to port butt (broadcast using this tool by Daniel
> Noethen) to FreeBSD.
>
> It's a live streamer for icecast, and there is a feature in the
> application which works on Linux which I have failed to get working on
> FreeBSD.
>
> The feature I am trying to get working is that the application picks up
> metadata (artist name and song name) from a media player and forwards it
> to the icecast server.
>
> This is somehow done by dbus.
>
> When I compile butt on FreeBSD, configure seens to find dbus and
> compiles, but the application doesn't seem to find any mpris connected
> media players.
>
> Do you think I can get away with just adjusting som flags or do I have
> to learn serious programming to get it working?
>
> from configure.ac:
>
> #Add dbus library for Linux
> if test "$build_linux" = "yes"; then
>         AC_MSG_NOTICE([])
>         PKG_CHECK_MODULES([DBUS], [dbus-1], [
>                 AC_DEFINE([HAVE_DBUS], [1], [Use dbus to get current
> tracks])
>                 LIBS="$LIBS $DBUS_LIBS"
>                 CFLAGS="$CFLAGS $LIBS $DBUS_CFLAGS"
>                 CXXFLAGS="$CXXFLAGS $DBUS_CFLAGS"
>         ], [
>                 AC_DEFINE([HAVE_DBUS], [0], [Use dbus to get current
> tracks])
>                 AC_MSG_ERROR([**** Coud not find dbus dev files])
>         ])
> fi
>
>
> #Add dbus library for FreeBSD (just copied and pasted from linux in
> order to make things compile)
>
> if test "$build_freebsd" = "yes"; then
>         AC_MSG_NOTICE([])
>         PKG_CHECK_MODULES([DBUS], [dbus-1], [
>                 AC_DEFINE([HAVE_DBUS], [1], [Use dbus to get current
> tracks])
>                 LIBS="$LIBS $DBUS_LIBS"
>                 CFLAGS="$CFLAGS $LIBS $DBUS_CFLAGS"
>                 CXXFLAGS="$CXXFLAGS $DBUS_CFLAGS"
>         ], [
>                 AC_DEFINE([HAVE_DBUS], [0], [Use dbus to get current
> tracks])
>                 AC_MSG_ERROR([**** Coud not find dbus dev files])
>         ])
> fi
>
> Do I have to play around with src/currentTrack.h and create a
> src/currentTrackFreeBSD.cpp too?
>
> Regards,
>
> Per Gunnarsson
> _______________________________________________
> [hidden email] mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-desktop
> To unsubscribe, send any mail to "[hidden email]"
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-desktop
To unsubscribe, send any mail to "[hidden email]"