MTP Streaming Server 1.4.0
Now also the MTP Streaming Server for Linux MTPCenter 3.0 is available.The Streaming server is optional and not needed for the Linux MTPCenter 3.0. But when using it you will have some additional features and streaming will work much smoother. Another important feature is the small UPNP service which is answering on Showcenter (and other media center) UPNP request to communicate which servers are available.
What is the current feature set

1. UPNP Service for automtic detection of Showcenter and other media clients

Wenn this service is running the Showcenter (and compatible clients) will detect the server after startup and will show the server in the Server Menu. If you are running another Linux server (for example Linux MTPCenter 1.0) you can use the UPNP service also for detecting this server additionally.

2. Music streaming

MP3 and OGG Files are no longer served by the Apache webserver, they are streamed with my streaming server. The positive effect of this is that vbr mp3 files will no longer have a pretty long quite period at the end of the song when using Showcenter 200.

3. Streaming of MPEG recordings

The advantage of streaming them over the new server is that there is no longer a filesize limitation and you do not need an apache server with large file support. Also it is now possible to restart the playback of a recording at the point where you stopped it last time (Only for Showcenter 200 and 1000).

4. Streaming of VDR recordings

All the 00x.vdr files are virtually brought together in a single file so from the beginning you are able to jump to each part of the recording. Also here you can restart the playback of a recording at the position where you stopped before. When internal remuxing is activated in the streaming server Showcenter clients are able to stream the recordings without any problems.

5. Timeshift TV for a recording in process

30 seconds after a recording is started you are able to stream this already to your media client. You can stop rewind or fast forward within the whole available recording.

6. Timeshift TV

During Playback of the live TV feed you are able to pause the stream up to maximum 15 Minutes (can be configured to another value). You can also rewind or fast forward within the available part of the tv stream.

If you stop the stream by pressing the stop button you don't have the option to restart the stream, a new stream will be started if needed.

To enable the pause function the real streaming part continious to stream the TV channel another 15 Minutes (or whatever value is defined). This means that even if you have stopped the stream, the background process is still active. You can stop this if you jump back into the main menu of the Linux MTPCenter 2.0.

7. Streaming of Internet Radio streams

The server can now also be used for streaming of Internet radio. During Playback the actual Title is shown on the TV. If the channel is not available the Media-Client returns to the menu within 5 seconds.

If you have defined all needed settings for saving the internet radio stream you will be able to replay the stream later out of the MTPCenter whenever needed.

8. Playback of ISO DVD Images

With this version you are able to playback ISO DVD images with the Linux MTPCenter 3.0. DVD Menu's are no played as the Showcenter is not supporting this.

Installation

To uncompress the file run the command

tar xzvf linux_mtp_streaming_server-1.4.0.tar.gz

To build the software you must have the following packages installed,

  • mysql-devel installed
  • libavcodec (> libavcodec52 or above)
  • libavformat
  • libavutil
  • libswscale

otherwise make will fail.

Change into the directory linux_mtp_streaming_server-1.4.0

now just run these commands

./configure
make
make check
make install

and the installation should be done.

Configuration of the Linux MTPCenter Streaming-Server
To configure the streaming server you need to have the Linux MTPCenter 3.0 installed.

The config file is called mtpserver.ini and is normally located in the path /usr/local/share/linux_mtp_streaming_server. The installation has copied a file mtpserver.ini.sample into this path, please rename or copy it to mtpserver.ini and don't forget to configure it afterwards.

Configuration file data/mtpserver.ini.sample
Main Settings
#MTP_Server_Addr                = "192.168.0.1";

the network address of the streaming server. Here the server is listening for UPNP and HTTP packages

#MTP_Server_Inet                = "eth0";

Network interface on which the communication is done

#MTP_Server_Port                = "3010";

The http port which is used by the streaming server

#MTP_Server_Save_INetRadio      = "yes";

If enabled the internet radio stream will be stored on harddisk in the temp/<IP-address> subdirectory of the Linux MTPCenter 3.0 installation. The filename is stream.mp3, additionally we store all available title information in the file stream.txt. The files are deleted whenever you start a new internet radio stream.

#MTP_Server_TV_Timeout          = "14"

Timeout value how long streaming will be continued whenever the connection to the showcenter is lost (if you press pause). After this time the stream will be stopped.

#MTP_Server_INetRadio_Timeout   = "13"

Timeout value how long streaming will be continued whenever the connection to the showcenter is lost (if you press pause). After this time the stream will be stopped.

#MTP_Server_TV_Filesize_Dummy   = "2"

A special Setting for the freebox plugin, please see the desription of the plugin for more information.

#MTP_Server_Radio_Path   = ""

Here you can define where the server is storing the internet radio streams if activated. In the case no path is defindt hey will be stored into the temp path of the Linux MTPCenter.

UPNP Settings
#MTPCenter_Name                 = "MTPCenter_3.0";
#MTPCenter_IP                   = "192.168.0.1";
#MTPCenter_Port                 = "8002";

These are the settings for your installed Linux MTPCenter Application. These settings will be communicated to any clients which are asking per UPNP for available server

MTPCenter_Name: This name will be shown in the server dialog of your media client, you can use whatever you like

MTPCenter_IP: The IP Address of the Linux MTPCenter

MTPCenter_Port: The port of the Linux MTPCenter

In general more then one http server can be communicated to the clients. The will make sense as soon you use different versions of the Linux MTPCenter or if you have another server running like Oxyl or Swiss Center

#MTPCenter_Name                 = "MTPCenter_2.0"; 
#MTPCenter_IP                   = "192.168.0.1";
#MTPCenter_Port                 = "8003";
#UPnp_Start                     = "yes";

When disabled the upnp part of the server is not started. You can use this setting if the port is already used by another software.

How to start the Streaming-Server
The Streaming Server can be started with the following options:

linux_mtp_streaming_server

-h

is showing a short help text

-i

the main directory of the Linux MTPCenter 2.0 installation for example /srv/www/vhost/linuxmtpcenter_2.0

-D Activate debug mode, all debug information are stored in the file mtpserver.log in the path /var/log/.
-d

Server is starting as daemon, so that he can run in the background

-p chance path to the configuration file mtpserver.ini, per default is it set to:
/usr/local/share/linux_mtp_streaming_server/

You should enable the daemon mode when the server is running without problems. To stop the server in deamon mode please delete the PID file /var/run/mtpserver.pid