Emby

From Indie IT Wiki
Revision as of 08:31, 23 April 2021 by imported>Plittlefield (→‎Subtitles)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Introduction

Emby (formerly Media Browser) is a media server designed to organize, play, and stream audio and video to a variety of devices. Emby's source code is mostly open with some closed-source components as of August 2017, releases of the software published via the Emby website are however proprietary and cannot be replicated from source due to the build scripts also being proprietary. As of version 3.5.3 Emby has been relicensed and is now closed-source, while open source components will be moved to plugins. Due to this a free open source fork of Emby was created called Jellyfin. Emby uses a client-server model.

Emby Server has been developed for Windows, Linux, macOS, and FreeBSD. Users can connect to the server from a compatible client, available on a wide variety of platforms including HTML5, mobile platforms such as Android and iOS, streaming devices such as Roku, Amazon Fire TV, Chromecast, and Apple TV, smart TV platforms such as LG Smart TV and Samsung Smart TV, and video game consoles including the Xbox 360, and Xbox One.

Emby Core

Emby media server brings together your personal videos, music, photos, and live television.

Emby Connect

Emby Connect is an optional extra, that enables you to access your Emby Server wherever you are and share servers with your family and friends.

Sign In or Sign Up to Emby Connect

Emby Premiere

Emby Premiere give you loads of extra features to enhance the experience.

Emby Premiere Features

Installation

Latest version for Linux - 4.5.4.0 - 16 DEC 2020

Download the software...

wget https://github.com/MediaBrowser/Emby.Releases/releases/download/4.5.4.0/emby-server-deb_4.5.4.0_amd64.deb

Check package information and dependencies...

dpkg -I emby-server-deb_4.5.4.0_amd64.deb

List contents...

dpkg -c emby-server-deb_4.5.4.0_amd64.deb

Install package...

sudo dpkg -i emby-server-deb_4.5.4.0_amd64.deb

Check software is running...

pidof EmbyServer
sudo netstat -ntap | grep 'EmbyServer'

Check software will automatically start on reboot...

sudo systemctl is-enabled emby-server.service

Diet Pi

dietpi-software install 41

To upgrade...

dietpi-software reinstall 41

https://dietpi.com/docs/software/media/#emby

Media

Create the folders ready for your media content...

mkdir -p ~/Emby/{Movies,TV}

Multiple Versions of Movies

Create a folder for the movie then put your different versions in that folder with specific file names...

Mile 22 (2018)/
|-- Mile 22 (2018) - 1080p.eng.srt
|-- Mile 22 (2018) - 1080p.mkv
|-- Mile 22 (2018) - 720p.eng.srt
`-- Mile 22 (2018) - 720p.mp4

...and whatever is typed after the - dash is used in the movie details version drop down menu : "1080p" or "720p" or "Full HD" or "HD"

Yes, you do have to copy the subtitles file to match the different versions of the movie.

Extras

Special features for movies can be stored as video files in an extras folder under movie folders. Nested folders are not supported.

In addition to extras, several other sub-folder names are supported:

  • extras
  • specials
  • shorts
  • scenes
  • featurettes
  • behind the scenes
  • deleted scenes
  • interviews
  • trailers
/Movies
  /Home Alone (1990)
     Home Alone (1990).mkv
       /extras
         deleted-scenes.mkv
       /behind the scenes
         video1.mkv
       /interviews
         video1.mkv

Note: Be sure the movie file is present before adding these additional "extras" to avoid mis-identification.

Subtitles

Movie Name.language.entension alongside the movie file...

Home Alone (1990).mp4
Home Alone (1990).eng.srt

...and they can be put in a separate folder, like below.

Forced Subtitles

External subtitles can be marked as forced using ".forced"...

/Movies
   /Home Alone (1990)
      Home Alone (1990).mkv
      Home Alone (1990).eng.srt
      Home Alone (1990).eng.forced.srt

SDH can be added with ".sdh"...

/Movies
   /Home Alone (1990)
      Home Alone (1990).mkv
      Home Alone (1990).eng.srt
      Home Alone (1990).eng.forced.srt
      Home Alone (1990).eng.sdh.srt

https://support.emby.media/support/solutions/articles/44001159160-subtitles

Configuration

  1. Load Admin - http://ip.or.name.of.your.server:8096
  2. Add Users
  3. Add Libraries
  4. Log in

SSL Certificate

sudo -i
certbot certonly --standalone --email my.email@gmail.com --agree-tos -d emby.domain.com
certbot certificates
cd /etc/letsencrypt/live/emby.domain.com/
openssl pkcs12 -export -out emby-domain-com.pfx -inkey privkey.pem -in cert.pem -certfile chain.pem -password pass:
cp -av emby-domain-com.pfx /opt/emby-server/
systemctl restart emby-server

Hardware Acceleration Transcoding

http://wiki.indie-it.com/wiki/Raspberry_Pi#FFMPEG_with_GPU_support_for_Raspberry_Pi

"I tried with Emby and that work well (openMAX or V4L2). Just need some additional packages (libva2 vainfo libyami-utils). So that allow HEVC 1080p transcoding to my Google Chromecast."

Jellyfin Hardware Acceleration

Smart Home Integration

Google Home

Introducing Emby for Google Home

Emby for Google Home

Emby on Google Assistant

Amazon Alexa

Amazon Alexa and Emby

Backup

  1. backup Library files to USB
  2. install the Backup plugin
  3. stop Emby
  4. zip /var/lib/emby
  5. sync to Cloud
  6. start Emby

Emby Forums - Bulletproof Backup Solution

Links

Emby

Emby Community Forum

Emby for Roku

Emby for Samsung Smart TV

Wikipedia