A year ago, this website introduced some applications of DLNA technology on Linux platform. This time, it will explain how to use ps3mediaserver to set up DLNA service and allow various devices in the home network to browse photos, music and videos.
Brief introduction of PS3 media server
PS3 media server is a UPnP media server compatible with DLNA protocol. It uses Java to realize cross-platform graphical interface and server process, and calls localized MEncoder, FFmpeg and tsMuxeR to realize media conversion and repackaging.
The original goal is to provide media service support for PS3, and now it has become a fully supported DLNA media server, with preset files for XBox 360, Nokia N900, Android mobile phone, Samsung/Sony/Philips TV and various imported/domestic set-top boxes, and also has good support for XBMC introduced above.
The most powerful feature of PS3 media server is that it can call the native transcoding and packaging tools of the system platform, and convert the format in real time when necessary according to the characteristics of the playback device, which is especially suitable for users with complex audio and video file types.
The above picture shows a PS3 media server that connects XBMC, Sony TV, PS3 and Android phones at the same time. 1.6.0 contains the localization of simplified Chinese that I completely redone, hoping to further reduce the difficulty of getting started.
Installation and Configuration of PS3 Media Server
Take the 64-bit system in Fedora 17 as an example.
After configuring the RPMfusion repository, you need to install some necessary software packages. You can enter the following command in the terminal, or search for the corresponding software package in Add/Remove:
Pkcon installs Java-1.7.0-openjdk ffmpeg mencoder.
Of course, the latter two can also be downloaded and compiled from their respective official website.
Before running, open the mDNS port firewall according to the situation. Fedora users can refer to the "Setting Firewall Policy" section of this article.
The PS3 media server provides a general version of precompiled compressed package (built-in tsMuxer) and a software package suitable for Deb package management system. Take the general version as an example here.
Double-click the PMS.sh file in the unzipped directory to run. For the first time, you can set the language on the third tab "General":
It will take effect after restarting.
By default, the PS3 media server will enjoy the entire file system (of course, it still follows Linux file permissions), which is obviously not desirable. Therefore, you need to add a directory containing videos, music and photos to the * * * enjoyment list on the Browse/* * Enjoy Settings page, as shown in the following figure:
If it is necessary to adjust the encoder settings, you can do it in the "Transcoding Settings" tab below, but the default settings are enough:
There are many coding engines by category in the list on the left side of this page. You can use the up and down arrow buttons at the bottom to adjust the order of use. The higher the engine, the higher the priority. If you want to/don't want to use the engine, you can click the button similar to the plug below to switch.
After all the configurations are completed, remember to click "Restart Server" at the top.
The configuration of the server is so much. Let's take a look at how to configure various playback devices in the same LAN.
XBMC configuration on other operating systems
Cross-platform XBMC is the most widely used HTPC system. At present, XBMC 1 1 codenamed Eden starts DLNA client mode by default.
As shown above, select UPnP device in the add file to view the PS3 media server in the network. Configure plug-ins in photos, music and videos respectively.
PS3 configuration
The setup of PS3 is simple:
Make sure that in the network settings: UPnP support is turned on; Allow connection to media server.
Select Search Media Server under any category of video, music or photos in the XMB cross-border menu, and you should soon see the icon of PS3 Media Server.
Click Enter to perform playback or other operations.
For PS3, you will see some special directories surrounded by # in the shared directory. These are the virtual private directories of the PS3 media server. You can directly adjust some settings of DLNA server in real time in the selected way without getting up to operate the computer.
More details can be found in the official manual.
Sony Bravia TV configuration
Sony's TV, 20 1 1, comes on the market and comes standard with DLNA, which is also very convenient to use. When the network connection is normal, press the menu key to open the XMB cross-border menu, and you can see the icon of PS3 Media Sever in videos, music and photos.
Android mobile phone client upgrade configuration
There are many programs supporting DLNA on Android platform. Here, a simple and compact control/playback terminal UPnPlay is taken as an example. After installing UPnPlay, click the earth sample icon in the lower left corner of the first screen to view the PS3 media server.
After that, you can browse the files in the * * * directory directly through UPnPlay, and click Play. The video playback of UPnPlay is realized by calling the third-party player of the system, so make sure that at least one video player is installed on the mobile phone.
Note that by default, clicking the plus sign to the right of a file is to add to the playlist, and clicking the file name is to replace the existing playlist with the current file, so you will be prompted to "delete the playlist".
UPnPlay can not only play locally, but also control the playback of other DLNA clients. For example, selecting files on an Android phone, but playing them on another computer or PS3, and playing files on the computer in the third room by remotely controlling the TV in the other room is no longer an extravagant hope.
abstract
It can be seen that it is very simple to build a DLNA digital home network that can be accessed by various devices by using the PS3 media server. Its unique real-time transcoding and repackaging function can allow some devices to play files that lack native support, such as WebM, Ogg Vorbis and MKV. By adjusting PMS.conf, you can also realize the startup mode without GUI, and you can refer to the sharing in the forum.
Compared with the specific equipment requirements of AirPlay, DLNA is compatible with many devices, covering TV, mobile phone, Blu-ray player, set-top box, NAS and other products. If your multimedia equipment is a foreign brand product purchased around 20 1 1 (domestic set-top boxes also have good support), then DLNA;; May have been supported; You can also use DLNA official device search program and smartphone program to view it.