Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
virtualisation:media-portal [2018/02/27 08:58]
buettner
virtualisation:media-portal [2018/02/28 11:50] (current)
buettner
Line 1: Line 1:
 ===== Emby Media Server on NB2800 ===== ===== Emby Media Server on NB2800 =====
  
-This article shows you how to install and run an Emby Media Server on your router (e.g. NB2800)+This article shows you how to install and run an Emby Media Server on your router (e.g. NB2800)
 + 
 +[[https://​emby.media/​|Emby]] is a freemium server/​client-based media platform. It connects metadata to your files and lets you show your media on a huge variety of client devices. 
  
 ===Preparations=== ===Preparations===
  
 All preparations made are described in this article: [[http://​wiki.netmodule.com/​virtualisation/​file-server | How to set up a NB2800 File Server ]] All preparations made are described in this article: [[http://​wiki.netmodule.com/​virtualisation/​file-server | How to set up a NB2800 File Server ]]
 +
 +If you need instructions on how to set up a LXC Container on NB2800 Routers, you can refer to this page: http://​wiki.netmodule.com/​app-notes/​virtualisation. ​
  
  
 ===Install Emby=== ===Install Emby===
-[[https://​emby.media/​|Emby]] is a freemium server/​client-based media platform. It connects metadata to your files and lets you show your media on a huge variety of client devices. 
  
 Before the installation of Emby Media Server starts, some other programs have to be installed: Before the installation of Emby Media Server starts, some other programs have to be installed:
Line 60: Line 64:
 The disadvantage of this function is that the server has to transcode every of the files played. This results in a high CPU load on the router, exspecially when the server has to transcode several files at a time. The disadvantage of this function is that the server has to transcode every of the files played. This results in a high CPU load on the router, exspecially when the server has to transcode several files at a time.
 With this little workaround, you can tell the server only to play files which the clients can transcode/​play directly by themselves. Every other file will not be played. With this little workaround, you can tell the server only to play files which the clients can transcode/​play directly by themselves. Every other file will not be played.
-If you have installed this workaround and want the player to play all media files provided, you can simply login to the server with another user name.+This workaround only works if you are logged in with the user "​emby"​. ​If you want the player to play all media files provided, you can simply login to the server with another user name.
  
 First, go to the Emby directory: First, go to the Emby directory:
Line 66: Line 70:
 cd /​opt/​emby-server/​bin cd /​opt/​emby-server/​bin
 </​code>​ </​code>​
-Next, make a copy of your ffmpeg:+Next, rename ​your ffmpeg:
 <​code>​ <​code>​
 mv ffmpeg ffmpeg.bin mv ffmpeg ffmpeg.bin
 </​code>​ </​code>​
 +
 +<​konsole>​
 +root@LXC_MEDIA:/​opt/​emby-server/​bin#​ ls -l
 +total 316
 +-rwxr-xr-x 1 root root    583 Aug 22  2017 emby-server
 +-rw-r--r-- 1 root root    232 Feb  9 13:00 ffmpeg
 +-rwxr-xr-x 1 root root 198184 Aug 22  2017 ffmpeg.bin
 +-rwxr-xr-x 1 root root 111088 Aug 22  2017 ffprobe
 +</​konsole>​
 +
 Now make a new file Now make a new file
 <​code>​ <​code>​
Line 75: Line 89:
 </​code>​ </​code>​
 which contains the following: which contains the following:
-<konsole>+<code c ffmpeg>
 #!/bin/bash #!/bin/bash
 if [ "​$USER"​ != "​emby"​ ]; then if [ "​$USER"​ != "​emby"​ ]; then
Line 85: Line 99:
  ln -- "​$source"​ "​$target"​  ln -- "​$source"​ "​$target"​
 fi fi
-</konsole>+</code>
  
 The best video codec that almost every web browser on the most clients can play directly is h.264. The best video codec that almost every web browser on the most clients can play directly is h.264.