Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jellyfin OMX HWA in docker on RPI4 Ubuntu Server 64 bit Host #114

Closed
whiteowl3 opened this issue Jun 17, 2021 · 4 comments
Closed

Jellyfin OMX HWA in docker on RPI4 Ubuntu Server 64 bit Host #114

whiteowl3 opened this issue Jun 17, 2021 · 4 comments

Comments

@whiteowl3
Copy link

whiteowl3 commented Jun 17, 2021

EDITED: July 1, 2021

Cursory use of the lastest version suggests that this info may be obsolete. I haven't looked at the change history to confirm,
this edit is just to say that you should try the settings from the lsio guide before implementing any of this. I will update after I am able to test.

Jellyfin OMX HWA in docker on RPI4 Ubuntu Server 64 bit Host:

references:

https://docs.linuxserver.io/images/docker-jellyfin
jellyfin/jellyfin-ffmpeg#310
#14

there is no 64 bit support for OMX at the time of writing, make sure you are using linuxserver/jellyfin:arm32v7-latest

on your host, you will need to (with root):

dpkg --add-architecture armhf # Allow apt to index armhf packages, because we need one.
apt update
apt remove libraspberrypi0
apt install libraspberrypi0:armhf

If /opt/vc/lib exists get it out of the way, just delete if empty.

ln -s /usr/var/lib/arm-linux-gnueabihf /opt/vc/lib

and now your bind mount needs to be:

/opt/vc/lib:/opt/vc/lib

although you should be able to forego the symlink nonsense and simply use this bind mount:

/usr/var/lib/arm-linux-gnueabihf:/opt/vc/lib

Some things i did that may or may not be necessary:

sudo chown root:video /dev/vchiq
sudo chmod g+rw /dev/vchiq

The compose snippet that now works:

jellyfin:
image: linuxserver/jellyfin:arm32v7-latest
container_name: jellyfin
environment:
- UID=1000 # The UID to run emby as (default: 2)
- GID=1000 # The GID to run emby as (default 2)
volumes:
- /usr/var/lib/arm-linux-gnueabihf:/opt/vc/lib
- ./config/jellyfin/:/config # Configuration directory
- ./blah/blah/:/mnt/share0 # Media directory
ports:
- 8096:8096 # HTTP port
- 8920:8920 # HTTPS port
devices:
- /dev/vchiq:/dev/vchiq # MMAL/OMX on Raspberry Pi
restart: unless-stopped

Note:

if you really need the 64 bit libraspberrypi0 on your host for some reason, simply move arm-linux-gnueabihf to safe keeping, and do the process in reverse, removing libraspberrypi0, dropping armhf support, updating apt, and reinstalling libraspberrypi0:aarch64 just make sure your bind mount points to wherever arm-linux-gnueabihf wound up.

@project-bot project-bot bot added this to To do in Issue & PR Tracker Jun 17, 2021
@github-actions
Copy link

Thanks for opening your first issue here! Be sure to follow the bug or feature issue templates!

@whiteowl3
Copy link
Author

whiteowl3 commented Jun 22, 2021

Not recommended for 64-bit raspberry pi OS, as per jellyfin/jellyfin#6215 (comment)

@github-actions
Copy link

github-actions bot commented Aug 1, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@j0nnymoe
Copy link
Member

Closing as OMX is an old method for HWA on raspberry pi's.

Issue & PR Tracker automation moved this from To do to Done Jun 29, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Development

No branches or pull requests

2 participants