Fix poor quality video in Plex under docker

I’ve recently moved servers and instead of managing my own Plex install, I decided to go with the a docker install.  It took seconds to sort out and I was very happy with it.  That was until I enabled remote access.  Suddenly, all my videos looks started looking terrible quality.

This has been resolved by going to Dashboard -> Settings -> Network and under “Lan Networks” adding the values “,,″ (without the quotes).

You will need to work out your own values.

To work out the subnet for the plex container:

    $ docker network inspect plex_default|grep Subnet
                     "Subnet": "",

To work out the subnet for your local network (in the majority of cases),

     $ hostname -I | awk '{print $1}'

So, this needs to be :


Using an APEMAN C450 Dash Cam as a security camera with ZoneMinder using Docker

Just plug the APEMAN C450 dash camera into your Linux server via USB and select “PC Camera” using the buttons on the side.

Confirm it works with this command:
ffmpeg -f video4linux2 -s 640x480 -i /dev/video0 -ss 0:0:2 -frames 1 /tmp/out.jpg

Then download this docker-compose config file

Add the video device to the docker-compose.yaml file:
- /dev/video0:/dev/video0

Install/start your docker container:
docker-compose up -d

Then visit the freshly installed system on whatever your IP address that you have configured:

To add the dash camera as a monitor :
General Tab:
Source Type = Local
Source Tab:
Source Path = /dev/video0
1280 x 720

Note that, when I first set this up recording, I was getting a corrupt/ green frame of video at the beginning of the recording.  Whatever was causing this made it trigger an event constantly.  To fix this, I went into the settings for /dev/video0, buffer tab and changed Alarm frame count from 1 to 3