More > JRiver Media Center 28 for Linux

Docker Image for MC28

<< < (17/19) > >>

crypticc:
Hello

I'm trying out JRiver running in docker container on my QNAP
I have managed to get it working including both as DLNA server and DLNA controller.  But I can't get it to act as a local player.  Or rather I can but I don't get any audio

this is my first post but I'm hoping to have done enough b4 asking for help here that someone more experienced might be able to help.

Thank you
Chris


This is my docker-compose.yml file


--- Code: ---version: '3'
services:
  jrivermc28:
    image: shiomax/jrivermc28
    restart: always
    container_name: jrivermc28
    network_mode: host
    environment:
      - VNC_PASSWORD=mypassword
      - USER_ID=1004
      - GROUP_ID=100
      - DISPLAY_WIDTH=1920
      - DISPLAY_HEIGHT=1080
      - TZ=Europe/London
    volumes:
      - /share/Container/JRiver/config:/config:rw
      - /share/Multimedia/Music:/data/music:rw
      - /share/Container/JRiver/data/Library:/data/Library:rw
    devices:
  - '/dev/snd/'
    device_cgroup_rules:
          - 'c 116:* rmw'
          - 'c 14:* rmw'
          - 'c 188:* rmw'
          - 'c 189:* rmw'
--- End code ---


I added all the USB looking devices into cgroup devices although i think it's 189 which is the actual device

If relevant this is the USB device I'm trying to output to

--- Code: ---Bus 001 Device 007: ID 22d9:0461
--- End code ---

Here's cat /proc/devices

--- Code: ---Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 14 sound
 21 sg
 29 fb
 81 video4linux
 86 ch
 89 i2c
108 ppp
116 alsa
128 ptm
136 pts
166 ttyACM
180 usb
188 ttyUSB
189 usb_device
202 cpu/msr
212 DVB
216 rfcomm
226 drm
238 usdm_drv
239 qat_dev_processes
240 qat_adf_ctl
241 uio
242 vfio
243 ql2xapidev
244 ttySDIO
245 rpmb
246 nvme
247 bsg
248 watchdog
249 ptp
250 pps
251 lirc
252 rtc
253 dax
254 gpiochip

Block devices:
  1 ramdisk
  7 loop
  8 sd
  9 md
 11 sr
 43 nbd
 65 sd
 66 sd
 67 sd
 68 sd
 69 sd
 70 sd
 71 sd
128 sd
129 sd
130 sd
131 sd
132 sd
133 sd
134 sd
135 sd
147 drbd
179 mmc
251 fbsnap
252 fbdisk
253 device-mapper
254 mdp
259 blkext
--- End code ---

max096:
The USB device is irrelevant you can select what output you want in alsamixer on your docker host.

Test if you can play audio with aplay on the system first (not in the container).

You need a working alsa on the docker host for it to work in the container.

cncb:
Is it possible to get Hardware-Accelerated Encoding to work with Docker?  I have a Synology DS220+ with an Intel processor that is capable of this, but the CPU is pegged when it is converting MP4 videos (h264,aac) with the option checked in MC.

max096:
Currently not an option built into the container. You can try to install it yourself. You'd need Intels drivers in the container, expose the GPU device to the container and give the user that you configured to run the container as permissions to use it by adding it to the render group (inside the container).

This seems how they do it for jellyfin mostly it should be the same https://forum.openmediavault.org/index.php?thread/38696-how-to-activate-intel-quick-sync-in-docker-jellyfin-handbrake/

To set the group you can mount an additional init script like this one https://gitlab.com/shiomax/jrivermc-docker/-/blob/master/rootfs/etc/cont-init.d/10-check-snd.sh

You can mount another script to /etc/cont-init.d/10-set-render-group.sh or similar.


--- Code: ---#!/usr/bin/with-contenv sh
echo -n render >> /var/run/s6/container_environment/SUP_GROUP_IDS

--- End code ---

Hope that helps. If you get it working you could share the init script / steps. Could add it as an option to setup in the container then.

The script that adds the audio group if you passed threw /dev/snd would interfear with it if you did that as it overrides that variable at startup too. This worked for now because there was only one group to add but there would have to be additional checks to not blindly override SUP_GROUP_IDS but append to it if something is already there. It's supposed to be a comma separated list. So better to not pass threw /dev/snd for testing now.

cncb:
Thanks.  I might try it but I am not very skilled in Linux.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version