Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gerbera/gerbera
UPnP Media Server for 2024: Stream your digital media through your home network and consume it on all kinds of UPnP supporting devices 📱💻📺
https://github.com/gerbera/gerbera
c-plus-plus cmake dlna dlna-server duktape flac gerbera inotify javascript libupnp m3u8 mediaserver mp3 nfo ogg stream transcoding upnp upnp-av web-ui
Last synced: about 3 hours ago
JSON representation
UPnP Media Server for 2024: Stream your digital media through your home network and consume it on all kinds of UPnP supporting devices 📱💻📺
- Host: GitHub
- URL: https://github.com/gerbera/gerbera
- Owner: gerbera
- License: other
- Created: 2014-08-09T13:17:53.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2024-12-10T07:48:59.000Z (2 days ago)
- Last Synced: 2024-12-10T08:31:02.192Z (2 days ago)
- Topics: c-plus-plus, cmake, dlna, dlna-server, duktape, flac, gerbera, inotify, javascript, libupnp, m3u8, mediaserver, mp3, nfo, ogg, stream, transcoding, upnp, upnp-av, web-ui
- Language: C++
- Homepage: https://gerbera.io
- Size: 58.5 MB
- Stars: 1,213
- Watchers: 40
- Forks: 212
- Open Issues: 64
-
Metadata Files:
- Readme: README.Docker.md
- Changelog: ChangeLog.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Authors: AUTHORS
Awesome Lists containing this project
- awesome-starred - gerbera/gerbera - UPnP Media Server for 2023: Stream your digital media through your home network and consume it on all kinds of UPnP supporting devices 📱💻📺 (javascript)
- awesome-homelab - Gerbera
README
# Gerbera - UPnP Media Server
[![Current Release](https://img.shields.io/github/release/gerbera/gerbera.svg?style=for-the-badge)](https://github.com/gerbera/gerbera/releases/latest) [![Build Status](https://img.shields.io/github/actions/workflow/status/gerbera/gerbera/ci.yml?style=for-the-badge&branch=master)](https://github.com/gerbera/gerbera/actions?query=workflow%3A%22CI+validation%22+branch%3Amaster) [![Docker Version](https://img.shields.io/docker/v/gerbera/gerbera?color=teal&label=docker&logoColor=white&sort=semver&style=for-the-badge)](https://hub.docker.com/r/gerbera/gerbera/tags?name=2.) [![Documentation Status](https://img.shields.io/readthedocs/gerbera?style=for-the-badge)](http://docs.gerbera.io/en/stable/?badge=stable) [![IRC](https://img.shields.io/badge/IRC-on%20freenode-orange.svg?style=for-the-badge)](https://webchat.freenode.net/?channels=#gerbera)
[![Packaging status](https://repology.org/badge/tiny-repos/gerbera.svg?header=PACKAGES&style=for-the-badge)](https://repology.org/metapackage/gerbera/versions)
Gerbera is a UPnP media server which allows you to stream your digital media through your home network and consume it on a variety of UPnP compatible devices.
## Documentation
For general help on using Gerbera, head over to our documentation online at [docs.gerbera.io](https://docs.gerbera.io).# Image Architectures
- amd64
- armv7
- arm64# Network Setup
## Ports
Port `49494/tcp` (HTTP, also set as gerbera port via command line) and `1900/udp` (SSDP Multicast) are exposed by default.## Multicast
UPnP relies on having clients and servers able to communicate via IP Multicast.
The default docker bridge network setup does not support multicast. The easiest way to achieve this is to use
"host networking".
Connecting Gerbera to your network via the "macvlan" driver should work, but remember you will not be
able to access the container from the docker host with this method by default.# Transcoding Tools
Transcoding tools are made available in a separate image with the `-transcoding` suffix.
e.g. `gerbera/gerbera:2.3.0-transcoding`. Includes tools such as ffmpeg and vlc.# Examples
## Serve some files via a volume
```console
$ docker run \
--name some-gerbera \
--network=host \
-v /some/files:/mnt/content:ro \
gerbera/gerbera:2.3.0
```or for those that prefer docker-compose:
```console
---
version: "2.3"
services:
gerbera:
image: gerbera/gerbera
container_name: gerbera
network_mode: host
volumes:
- ./gerbera-config:/var/run/gerbera
- /some/files:/mnt/content:rovolumes:
gerbera-config:
external: false
```The directory `/mnt/content` is automatically scanned for content by default.
Host networking enables us to bypass issues with broadcast across docker bridges.You may place custom JavaScript files in the directory `/mnt/customization/js`.
Every time Gerbera creates `/var/run/gerbera/config.xml`, the shell script
`/mnt/customization/shell/gerbera_config.sh` (if existing) will be executed.## Provide your own config file
```console
$ docker run \
--name another-gerbera \
--network=host \
-v /some/files:/mnt/content:ro \
-v /some/path/config.xml:/var/run/gerbera/config.xml \
gerbera/gerbera:2.3.0
```## Overwrite default ports
In cases (e.g. running multiple gerbera containers with different versions) you can override the exported ports
```console
$ docker run \
--name another-gerbera \
--network=host \
--expose : \
-v /some/files:/mnt/content:ro \
gerbera/gerbera:2.3.0 gerbera --port --config /var/run/gerbera/config.xml
```## Overwrite default user and group id
In cases (e.g. running multiple gerbera containers with different versions) you can override the exported ports
```console
$ docker run \
--name another-gerbera \
--network=host \
--env UID= \
--env GID= \
-v /some/files:/mnt/content:ro \
gerbera/gerbera:2.3.0 gerbera --config /var/run/gerbera/config.xml
```# Build Variables
There are some variables in Dockerfile which allow overwriting the defaults if you build the container by yourself
```console
$ cd /src
$ git clone https://github.com/gerbera/gerbera.git
$ cd /src/gerbera
$ docker build \
--build-arg IMAGE_USER=grbr1 \
--build-arg IMAGE_GROUP=grbr1 \
--build-arg IMAGE_UID=1969 \
--build-arg IMAGE_GID=1969 \
--build-arg IMAGE_PORT=50500 \
-t gerbera .
```## BASE_IMAGE
Use a different base image for container. Changing this may lead to build problems if the required packages are not available.
- Default: alpine:3.20
## IMAGE_USER, IMAGE_GROUP
Set a different user/group name in the image to match user/group names on your host
- Default: gerbera
## IMAGE_UID, IMAGE_GID
Set a different user/group id in the image to match user/group ids on your host
- Default: 1042
## IMAGE_PORT
Change the port of gerbera in the image so you don't have to overwrite the port settings on startup.
- Default: 49494