Difference between revisions of "Madsonic"

From SME Server
Jump to navigationJump to search
(Created page with "{{Level|Beginner|Requires basic Yum Install and WGET knowledge}} Madsonic (Subsonic) Music Streamer ===Maintainer=== Madsonic is developed and maintained by Madevil at http:...")
 
 
(22 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Level|Beginner|Requires basic Yum Install and WGET knowledge}}
+
{{Languages}}{{#vardefine:contribname| {{lc: {{#titleparts:  {{BASEPAGENAME}} |1}} }} }} {{#vardefine:smecontribname| smeserver-{{lc: {{#titleparts:  {{BASEPAGENAME}} |1}} }} }} {{#vardefine:lang| {{lc:  {{#titleparts:    {{PAGENAME}} | | -1}}  }} |en }}{{Infobox contribs
 +
|name={{#var:contribname}}
 +
|image={{#var:contribname}}.png
 +
|description_image= {{#var:contribname}} logo
 +
|maintainer=Unnilennium
 +
|url=http://beta.madsonic.org
 +
|licence={{#show: {{PAGENAME}}
 +
|?Rpm licence
 +
}}
 +
|category= Media player
 +
|tags=DLNA,music,media,remote player
 +
}}The rpm summary indicates: {{#show: {{PAGENAME}}
 +
|?Rpm summary
 +
}}
  
Madsonic (Subsonic) Music Streamer
+
The full rpm description indicates:
 +
{{#show: {{PAGENAME}}
 +
|?Rpm description
 +
}}
  
===Maintainer===
+
{{Level|easy}}
Madsonic is developed and maintained by Madevil at http://madsonic.org.
+
== Version ==
Madsonic is a fork of the popular Subsonic developed and maintained by Sindre Mihus at http://www.subsonic.org
+
{{#smeversion: smeserver-madsonic}}
 +
{{#smeversion: madsonic}}
  
===Purpose===
 
Madsonic is a free audio and video web based streamer for Linux, Windows, and Mac. There are several mobile and portable apps associated with it, and it has server transcoding capabilities allowing the client to stream as effortlessly as possible.
 
Use it to share your music with friends, or to listen to your own music while at work. You can stream to multiple players simultaneously, for instance to one player in your kitchen and another in your living room.
 
Madsonic is designed to handle very large music collections (hundreds of gigabytes), and has genre and tag capabilities. Although optimized for MP3 streaming, it works for any audio or video format that can stream over HTTP, for instance AAC and OGG. By using transcoder plug-ins, Subsonic supports on-the-fly conversion and streaming of virtually any audio format, including WMA, FLAC, APE, Musepack, WavPack and Shorten.
 
If you have constrained bandwidth, you may set an upper limit for the bitrate of the music streams. Madsonic will then automatically resample the music to a suitable bitrate.
 
In addition to being a streaming media server, Madsonic works very well as a local jukebox. The intuitive web interface, as well as search and index facilities, are optimized for efficient browsing through large media libraries. Madsonic also comes with an integrated Podcast receiver, with many of the same features as you find in iTunes.
 
Based on Java technology, Madsonic runs on most platforms, including Windows, Mac, Linux and Unix variants.
 
  
===Installation===
+
== Maintainer ==
{{WIP box|newburns}}
+
[mailto:tests@pialasse.com][[User:Unnilennium|Unnilennium]]
{{Tip box|Most instructions work for Subsonic Music Streamer. Variations will be noted in the instructions}}
 
====Installing JAVA====
 
Madsonic currently uses JAVA 7 or JDK 1.7 <br>
 
Subsonic currently uses JAVA 6 or JDK 1.6
 
  
=====Download JAVA 7=====
+
== Description ==
wget http://download.oracle.com/otn-pub/java/jdk/7u25-b15/jdk-7u25-linux-x64.rpm?AuthParam=1374499180_ba2f323c290aec0f6b07fb0dd355b80c
+
Madsonic is a free audio and video web based streamer for Linux, Windows, and Mac. There are several mobile and portable apps associated with it, and it has server transcoding capabilities allowing the client to stream as effortlessly as possible. Use it to share your music with friends, or to listen to your own music while at work. <br />
The download will be an rpm with the AuthPara appended to it, and must be changed for install. <br>
+
You can stream to multiple players simultaneously, for instance to one player in your kitchen and another in your living room. Madsonic is designed to handle very large music collections (hundreds of gigabytes), and has genre and tag capabilities. Although optimized for MP3 streaming, it works for any audio or video format that can stream over HTTP, for instance AAC and OGG. By using transcoder plug-ins, Subsonic supports on-the-fly conversion and streaming of virtually any audio format, including WMA, FLAC, APE, Musepack, WavPack and Shorten. <br />
DO NOT COPY CODE DIRECTLY, use as a template only.
+
If you have constrained bandwidth, you may set an upper limit for the bitrate of the music streams. Madsonic will then automatically resample the music to a suitable bitrate. In addition to being a streaming media server, Madsonic works very well as a local jukebox. The intuitive web interface, as well as search and index facilities, are optimized for efficient browsing through large media libraries. Madsonic also comes with an integrated Podcast receiver, with many of the same features as you find in iTunes. Based on Java technology, Madsonic runs on most platforms, including Windows, Mac, Linux and Unix variants.  
mv jdk-7u25-linux-x64.rpm?AuthParam=1374499180_ba2f323c290aec0f6b07fb0dd355b80c jdk-7u25.rpm
 
{{Note box|In order to obtain the wget URL needed to download JAVA, begin the download in your web browser and pause or cancel. Then copy the link used in your browser's download. Right clicking on the JAVA download file directly from Sun will result in a "Fail to Download" due to the authentication issue. Subsonic will need JAVA 6, so download your JAVA files accordingly}}
 
Now that the file has been downloaded and renamed, install with:
 
yum localinstall jdk-7u25.rpm
 
At the time of this install, no other repositories were needed to resolve other dependancies.
 
java -version
 
Will show your current version of JAVA. If a previous version of JAVA is installed, remove before installing a newer JAVA.
 
====Installing FFMPEG====
 
Madsonic (Subsonic) uses FFMPEG to transcode audio and video for on-the-fly-streaming.
 
Setup the DAG Repository as shown at http://wiki.contribs.org/Dag
 
yum --enablerepo=dag install ffmpeg
 
"As of ffmpeg.x86_64 0:0.6.5-1.el5, EPEL Repository contains a newer version of the CPPUNIT dependancy which can be obtained by including --enablerepo=epel into the installation line. EPEL Repository can be seen at http://wiki.contribs.org/Epel"<br><br>
 
FFMPEG is installed and can be shown by
 
ffmpeg -version
 
====Install Madsonic====
 
Madsonic stable rpm can be obtained from the Madsonic Forum by
 
wget http://madsonic.org/download/20130718_madsonic-5.0.3560.beta4XE.rpm
 
{{Tip box|Madsonic is currently in BETA and can be substituted for a stable Subsonic RPM from their website. Be mindful of the JAVA version that was installed}}
 
yum localinstall 20130718_madsonic-5.0.3560.beta4XE.rpm
 
There are some steps to make the Madsonic service available as a standard service that starts during bootup
 
ln -s /etc/init.d/subsonic /etc/rc.d/rc0.d/k02madsonic
 
ln -s /etc/init.d/subsonic /etc/rc.d/rc7.d/S98madsonic
 
ln -s /etc/init.d/subsonic /etc/rc.d/rc6.d/k02madsonic
 
ln -s /etc/init.d/subsonic /etc/rc.d/rc2.d/k02madsonic
 
ln -s /etc/init.d/subsonic /etc/rc.d/rc1.d/k02madsonic
 
  
config set subsonic service access public
 
config set subsonic service status enabled
 
config set subsonic service TCPPort 4040
 
signal-event remoteaccess-update
 
  
Now you can control Madsonic with
+
{{Tip box|'''Madsonic can be activated as a DLNA server to stream your medias on your DLNA clients such as Smart TV. Just go to settings and check the box to activate !'''}}
service madsonic {start|stop|status|restart|force-reload}
 
  
====Madsonic Tuning====
+
== Installation ==
You can adjust the JAVA Heap Size b editing the subsonic.sh file
+
<tabs container><tab name="For SME 10">
  nano /usr/share/subsonic/subsonic.sh
+
yum --enablerepo=smecontribs install smeserver-madsonic
Adjust the SUBSONIC_MAX_MEMORY=x
+
</tab>
Once you have adjusteed the Heap Size, you have to adjust the Size of Memory Allocation by editing the sysconfig file
+
<tab name="For SME 9">
  nano /etc/sysconfig/subsonic
+
yum --enablerepo=smecontribs install smeserver-madsonic
Set the SUBSONIC_ARGS=x
+
You will then need to activate the database changes etc.
====Madsonic on a different port, or Port 80====
+
The 'official' way is to perform
{{Incomplete}}
+
 
 +
  signal-event post-upgrade;  signal-event reboot
 +
or signal-event conf-madsonic if you do not want to restart your computer do :
 +
signal-event conf-madsonic
 +
config set UnsavedChanges no
 +
 
 +
</tab>
 +
</tabs>
 +
Go to the url http://sme-ip-or-domain/madsonic and do the administrative tasks asked (create the admin account, set the music folder, ...)
 +
 
 +
== Configuration properties and events ==
 +
 
 +
From the command line you can have access to the followings properties.
 +
{| class="wikitable"
 +
!db
 +
!key
 +
!property
 +
!role
 +
!default value
 +
!expected values
 +
|-
 +
|configuration
 +
|madsonic
 +
|Name
 +
|change location in the http url
 +
|madsonic
 +
|''a string''
 +
|-
 +
|configuration
 +
|madsonic
 +
|status
 +
|enable service
 +
|enabled
 +
|enabled, disabled
 +
|-
 +
|configuration
 +
|madsonic
 +
|home
 +
|
 +
|/var/madsonic
 +
|
 +
|-
 +
|configuration
 +
|madsonic
 +
|host
 +
|
 +
|0.0.0.0
 +
|
 +
|-
 +
|configuration
 +
|madsonic
 +
|port
 +
|
 +
|4041
 +
|
 +
|-
 +
|configuration
 +
|madsonic
 +
|path
 +
|
 +
|/madsonic
 +
|
 +
|-
 +
|configuration
 +
|madsonic
 +
|https_port
 +
|
 +
|0
 +
|
 +
|-
 +
|configuration
 +
|madsonic
 +
|InitMemory
 +
|
 +
|200
 +
|
 +
|-
 +
|configuration
 +
|madsonic
 +
|MaxMemory
 +
|
 +
|350
 +
|
 +
|-
 +
|configuration
 +
|madsonic
 +
|PIDFile
 +
|
 +
|
 +
|
 +
|-
 +
|configuration
 +
|madsonic
 +
|Music_Folder
 +
|
 +
|/var/media
 +
|
 +
|-
 +
|configuration
 +
|madsonic
 +
|Podcast_Folder
 +
|
 +
|/var/media/podcast
 +
|
 +
|-
 +
|configuration
 +
|madsonic
 +
|Inco_Folder
 +
|
 +
|/var/media/incoming
 +
|
 +
|-
 +
|configuration
 +
|madsonic
 +
|Impo_Folder
 +
|
 +
|/var/media/playlist/import
 +
|
 +
|-
 +
|configuration
 +
|madsonic
 +
|Expo_Folder
 +
|
 +
|/var/media/playlist/export
 +
|
 +
|-
 +
|configuration
 +
|madsonic
 +
|Back_Folder
 +
|
 +
|/var/media/playlist/backup
 +
|
 +
|-
 +
|configuration
 +
|madsonic
 +
|gzip
 +
|
 +
|true
 +
|
 +
|-
 +
|configuration
 +
|madsonic
 +
|TestMode
 +
|
 +
|false
 +
|
 +
|-
 +
|configuration
 +
|madsonic
 +
|TranscodeFolder
 +
|
 +
|/var/madsonic/transcode
 +
|
 +
|-
 +
|configuration
 +
|madsonic
 +
|timezone
 +
|
 +
|DateTime::TimeZone->new( name => 'local' )->name()
 +
|
 +
|-
 +
|accounts
 +
|madsonic
 +
|ValidFrom
 +
|limit access to some IP/ network
 +
|
 +
|IP/MASK,IP/MASK
 +
|}
 +
 
 +
The contribution also add the following events, or is linked to these existing events
 +
{| class="wikitable"
 +
!signal-event
 +
!type
 +
|-
 +
|post-upgrade
 +
|base
 +
|-
 +
|console-save
 +
|base
 +
|-
 +
|bootstrap-console-save
 +
|base
 +
|-
 +
|conf-madsonic
 +
|dedicated
 +
|}
 +
 
 +
== Using dedicated domain ==
 +
<syntaxhighlight lang="bash">
 +
db domains setprop music.domain.com  ProxyPassTarget http://localhost:4041 TemplatePath ProxyPassVirtualHosts
 +
config madsonic set path /
 +
signal-event conf-madsonic
 +
</syntaxhighlight>
 +
 
 +
== Uninstall ==
 +
  yum remove smeserver-madsonic madsonic
 +
 
 +
== Bugs ==
 +
Please raise bugs under the SME-Contribs section in [http://bugs.contribs.org/enter_bug.cgi bugzilla]
 +
and select the smeserver-madsonic component or use {{BugzillaFileBug|product=SME%20Contribs|component=smeserver-madsonic|title=this link}}.
 +
 
 +
 
 +
{{#bugzilla:columns=id,product,version,status,summary |sort=id |order=desc |component=smeserver-madsonic|noresultsmessage="No open bugs found."}}
 +
 
 +
==Changelog==
 +
Only versions released in smecontrib are listed here:
 +
{{#smechangelog: smeserver-madsonic}}
 +
 
 +
[[Category: Contrib]]

Latest revision as of 05:01, 23 November 2022


madsonic
Madsonic.png
madsonic logo
MaintainerUnnilennium
Urlhttp://beta.madsonic.org
LicenceGNU GPL version 2
Category

Media player

Tags DLNAmusicmediaremote player

The rpm summary indicates: madsonic is a music streaming system

The full rpm description indicates: This is all the configurations needed to install madsonic as a contrib for SME Server


PythonIcon.png Skill level: easy
The instructions on this page can be followed by a beginner.


Version

Contrib 10:
Contrib 9:
smeserver-madsonic
The latest version of smeserver-madsonic is available in the SME repository, click on the version number(s) for more information.


Contrib 10:
Contrib 9:
madsonic
The latest version of madsonic is available in the SME repository, click on the version number(s) for more information.



Maintainer

[1]Unnilennium

Description

Madsonic is a free audio and video web based streamer for Linux, Windows, and Mac. There are several mobile and portable apps associated with it, and it has server transcoding capabilities allowing the client to stream as effortlessly as possible. Use it to share your music with friends, or to listen to your own music while at work.
You can stream to multiple players simultaneously, for instance to one player in your kitchen and another in your living room. Madsonic is designed to handle very large music collections (hundreds of gigabytes), and has genre and tag capabilities. Although optimized for MP3 streaming, it works for any audio or video format that can stream over HTTP, for instance AAC and OGG. By using transcoder plug-ins, Subsonic supports on-the-fly conversion and streaming of virtually any audio format, including WMA, FLAC, APE, Musepack, WavPack and Shorten.
If you have constrained bandwidth, you may set an upper limit for the bitrate of the music streams. Madsonic will then automatically resample the music to a suitable bitrate. In addition to being a streaming media server, Madsonic works very well as a local jukebox. The intuitive web interface, as well as search and index facilities, are optimized for efficient browsing through large media libraries. Madsonic also comes with an integrated Podcast receiver, with many of the same features as you find in iTunes. Based on Java technology, Madsonic runs on most platforms, including Windows, Mac, Linux and Unix variants.


Information.png Tip:
Madsonic can be activated as a DLNA server to stream your medias on your DLNA clients such as Smart TV. Just go to settings and check the box to activate !


Installation

yum --enablerepo=smecontribs install smeserver-madsonic
yum --enablerepo=smecontribs install smeserver-madsonic

You will then need to activate the database changes etc. The 'official' way is to perform

signal-event post-upgrade;  signal-event reboot

or signal-event conf-madsonic if you do not want to restart your computer do :

signal-event conf-madsonic
config set UnsavedChanges no

Go to the url http://sme-ip-or-domain/madsonic and do the administrative tasks asked (create the admin account, set the music folder, ...)

Configuration properties and events

From the command line you can have access to the followings properties.

db key property role default value expected values
configuration madsonic Name change location in the http url madsonic a string
configuration madsonic status enable service enabled enabled, disabled
configuration madsonic home /var/madsonic
configuration madsonic host 0.0.0.0
configuration madsonic port 4041
configuration madsonic path /madsonic
configuration madsonic https_port 0
configuration madsonic InitMemory 200
configuration madsonic MaxMemory 350
configuration madsonic PIDFile
configuration madsonic Music_Folder /var/media
configuration madsonic Podcast_Folder /var/media/podcast
configuration madsonic Inco_Folder /var/media/incoming
configuration madsonic Impo_Folder /var/media/playlist/import
configuration madsonic Expo_Folder /var/media/playlist/export
configuration madsonic Back_Folder /var/media/playlist/backup
configuration madsonic gzip true
configuration madsonic TestMode false
configuration madsonic TranscodeFolder /var/madsonic/transcode
configuration madsonic timezone DateTime::TimeZone->new( name => 'local' )->name()
accounts madsonic ValidFrom limit access to some IP/ network IP/MASK,IP/MASK

The contribution also add the following events, or is linked to these existing events

signal-event type
post-upgrade base
console-save base
bootstrap-console-save base
conf-madsonic dedicated

Using dedicated domain

db domains setprop music.domain.com  ProxyPassTarget http://localhost:4041 TemplatePath ProxyPassVirtualHosts
config madsonic set path /
signal-event conf-madsonic

Uninstall

yum remove smeserver-madsonic madsonic

Bugs

Please raise bugs under the SME-Contribs section in bugzilla and select the smeserver-madsonic component or use this link .


IDProductVersionStatusSummary
10700SME Contribs9.2IN_PROGRESSnot playing in jukebox mode

Changelog

Only versions released in smecontrib are listed here:

smeserver-madsonic Changelog: SME 10 (smecontribs)
2022/12/07 Jean-Philippe Pialasse 5.0.3761-9.sme
- fix conflict for /var/madsonic [SME: 12255]

2022/11/22 Jean-Philippe Pialasse 5.0.3761-8.sme
- remove remaining sysvinit files [SME: 12239]

- fix few minors issues, typo and cosmetics
2022/07/30 Brian Read 5.0.3761-7.sme
- Re-build and link to latest devtools [SME: 11997]

2022/07/22 Jean-Philippe Pialasse 5.0.3761-6.sme
- add to core backup [SME: 12014]
- update for 6.2 neededing java-1.8.0
- add local test webservices

- main rpm is now using systemd [SME: 11619]
2021/06/06 Jean-Philippe Pialasse 5.0.3761-5.sme
- Re-build and link to latest devtools services not restarted on install [SME: 11280]