Jump to content

Shared object library not found for ffmpeg on 3.6.0.2


embytal
 Share

Recommended Posts

embytal

Hi all,

 

I have installed 3.6.0.2 using the recommended method here https://emby.media/freebsd-server.html in a jail using iocage on 11.2-RELEASE.

 

I pull the latest packages in the jail before installing the recommended list of packages. Then I finally install the emby-server one from github.

 

What I am not sure to understand is why I get the following:

root@emby:~ # /usr/local/opt/emby-server/bin/ffmpeg
Shared object "libavdevice.so.58" not found, required by "ffmpeg"
root@emby:~ # /usr/local/opt/emby-server/bin/ffprobe
Shared object "libavdevice.so.58" not found, required by "ffprobe"
root@emby:~ # ls -lai /usr/local/opt/emby-server/bin/ffmpeg
122204 -r-xr-xr-x  1 root  wheel  256720 Jul 17 13:33 /usr/local/opt/emby-server/bin/ffmpeg

root@emby:~ # ls -lai /usr/local/opt/emby-server/lib/libavdevice.so*
122213 lrwxr-xr-x  1 root  wheel     23 Jul 17 13:32 /usr/local/opt/emby-server/lib/libavdevice.so -> libavdevice.so.58.3.100
122214 lrwxr-xr-x  1 root  wheel     23 Jul 17 13:32 /usr/local/opt/emby-server/lib/libavdevice.so.58 -> libavdevice.so.58.3.100
122215 -rw-r--r--  1 root  wheel  68944 Jul 17 13:33 /usr/local/opt/emby-server/lib/libavdevice.so.58.3.100

I ended finding this as I got the following error message during library scanning on the first run on all files, mkv, avi etc...

2018-08-20 21:18:31.282 Error App: Error in ffprobe
	*** Error Report ***
	Version: 3.6.0.2
	Command line: /usr/local/opt/emby-server/system/EmbyServer.exe -os freebsd -ffmpeg /usr/local/opt/emby-server/bin/ffmpeg -ffprobe /usr/local/opt/emby-server/bin/ffprobe -programdata /var/db/emby-server -restartexitcode 3 -updatepackage emby-server-freebsd_{version}_amd64.txz
	Operating system: Unix 11.2.2.0
	64-Bit OS: True
	64-Bit Process: True
	User Interactive: False
	Mono: 5.10.1.47 (5.10.1.47 Thu Aug 16 09:13:16 UTC 2018)
	Processor count: 16
	Program data path: /var/db/emby-server
	Application directory: /usr/local/opt/emby-server/system
	System.Exception: ffprobe failed for file:"/mnt/Media/Movies/movie.avi" - streams and format are both null.
	  at Emby.Server.MediaEncoding.Encoder.MediaEncoder+<GetMediaInfoInternal>d__69.MoveNext () [0x001d4] in <007474d957df47adb99af6c19f1cc163>:0
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <d7767e54cb234318be4a1e7ddd12ca51>:0
	  at Emby.Server.MediaEncoding.Encoder.MediaEncoder+<GetMediaInfoInternal>d__69.MoveNext () [0x0036f] in <007474d957df47adb99af6c19f1cc163>:0
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <d7767e54cb234318be4a1e7ddd12ca51>:0
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <d7767e54cb234318be4a1e7ddd12ca51>:0
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <d7767e54cb234318be4a1e7ddd12ca51>:0
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <d7767e54cb234318be4a1e7ddd12ca51>:0
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <d7767e54cb234318be4a1e7ddd12ca51>:0
	  at MediaBrowser.Providers.MediaInfo.FFProbeVideoInfo+<ProbeVideo>d__16`1[T].MoveNext () [0x00170] in <303fb07acaa24c3badedfc98f3b86825>:0
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <d7767e54cb234318be4a1e7ddd12ca51>:0
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <d7767e54cb234318be4a1e7ddd12ca51>:0
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <d7767e54cb234318be4a1e7ddd12ca51>:0
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <d7767e54cb234318be4a1e7ddd12ca51>:0
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <d7767e54cb234318be4a1e7ddd12ca51>:0
	  at MediaBrowser.Providers.Manager.MetadataService`2+<RunCustomProvider>d__39[TItemType,TIdType].MoveNext () [0x000d9] in <303fb07acaa24c3badedfc98f3b86825>:0
	System.Exception
	  at Emby.Server.MediaEncoding.Encoder.MediaEncoder+<GetMediaInfoInternal>d__69.MoveNext () [0x001d4] in <007474d957df47adb99af6c19f1cc163>:0
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <d7767e54cb234318be4a1e7ddd12ca51>:0
	  at Emby.Server.MediaEncoding.Encoder.MediaEncoder+<GetMediaInfoInternal>d__69.MoveNext () [0x0036f] in <007474d957df47adb99af6c19f1cc163>:0
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <d7767e54cb234318be4a1e7ddd12ca51>:0
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <d7767e54cb234318be4a1e7ddd12ca51>:0
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <d7767e54cb234318be4a1e7ddd12ca51>:0
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <d7767e54cb234318be4a1e7ddd12ca51>:0
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <d7767e54cb234318be4a1e7ddd12ca51>:0
	  at MediaBrowser.Providers.MediaInfo.FFProbeVideoInfo+<ProbeVideo>d__16`1[T].MoveNext () [0x00170] in <303fb07acaa24c3badedfc98f3b86825>:0
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <d7767e54cb234318be4a1e7ddd12ca51>:0
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <d7767e54cb234318be4a1e7ddd12ca51>:0
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <d7767e54cb234318be4a1e7ddd12ca51>:0
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <d7767e54cb234318be4a1e7ddd12ca51>:0
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <d7767e54cb234318be4a1e7ddd12ca51>:0
	  at MediaBrowser.Providers.Manager.MetadataService`2+<RunCustomProvider>d__39[TItemType,TIdType].MoveNext () [0x000d9] in <303fb07acaa24c3badedfc98f3b86825>:0

And similar issue while trying to play a movie:

018-08-20 21:42:16.331 Error HttpServer: Error processing request
	*** Error Report ***
	Version: 3.6.0.2
	Command line: /usr/local/opt/emby-server/system/EmbyServer.exe -os freebsd -ffmpeg /usr/local/opt/emby-server/bin/ffmpeg -ffprobe /usr/local/opt/emby-server/bin/ffprobe -programdata /var/db/emby-server -restartexitcode 3 -updatepackage emby-server-freebsd_{version}_amd64.txz
	Operating system: Unix 11.2.2.0
	64-Bit OS: True
	64-Bit Process: True
	User Interactive: False
	Mono: 5.10.1.47 (5.10.1.47 Thu Aug 16 09:13:16 UTC 2018)
	Processor count: 16
	Program data path: /var/db/emby-server
	Application directory: /usr/local/opt/emby-server/system
	System.Exception: Error starting ffmpeg
	  at Emby.Server.MediaEncoding.Api.BaseStreamingService+<StartFfMpeg>d__76.MoveNext () [0x007c4] in <007474d957df47adb99af6c19f1cc163>:0
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <d7767e54cb234318be4a1e7ddd12ca51>:0
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <d7767e54cb234318be4a1e7ddd12ca51>:0
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <d7767e54cb234318be4a1e7ddd12ca51>:0
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <d7767e54cb234318be4a1e7ddd12ca51>:0
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <d7767e54cb234318be4a1e7ddd12ca51>:0
	  at Emby.Server.MediaEncoding.Api.Hls.BaseHlsService+<ProcessRequest>d__5.MoveNext () [0x0023c] in <007474d957df47adb99af6c19f1cc163>:0
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <d7767e54cb234318be4a1e7ddd12ca51>:0
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <d7767e54cb234318be4a1e7ddd12ca51>:0
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <d7767e54cb234318be4a1e7ddd12ca51>:0
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <d7767e54cb234318be4a1e7ddd12ca51>:0
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <d7767e54cb234318be4a1e7ddd12ca51>:0
	  at Emby.Server.Implementations.Services.ServiceExecGeneral+<GetTaskResult>d__3.MoveNext () [0x00081] in <fc63de2bb724454ebfdbc0c7f7e39a46>:0
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <d7767e54cb234318be4a1e7ddd12ca51>:0
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <d7767e54cb234318be4a1e7ddd12ca51>:0
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <d7767e54cb234318be4a1e7ddd12ca51>:0
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <d7767e54cb234318be4a1e7ddd12ca51>:0
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <d7767e54cb234318be4a1e7ddd12ca51>:0
	  at Emby.Server.Implementations.Services.ServiceHandler+<ProcessRequestAsync>d__13.MoveNext () [0x001c2] in <fc63de2bb724454ebfdbc0c7f7e39a46>:0
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <d7767e54cb234318be4a1e7ddd12ca51>:0
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <d7767e54cb234318be4a1e7ddd12ca51>:0
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <d7767e54cb234318be4a1e7ddd12ca51>:0
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <d7767e54cb234318be4a1e7ddd12ca51>:0
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <d7767e54cb234318be4a1e7ddd12ca51>:0
	  at Emby.Server.Implementations.HttpServer.HttpListenerHost+<RequestHandler>d__56.MoveNext () [0x009f2] in <fc63de2bb724454ebfdbc0c7f7e39a46>:0
	System.Exception
	  at Emby.Server.MediaEncoding.Api.BaseStreamingService+<StartFfMpeg>d__76.MoveNext () [0x007c4] in <007474d957df47adb99af6c19f1cc163>:0
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <d7767e54cb234318be4a1e7ddd12ca51>:0
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <d7767e54cb234318be4a1e7ddd12ca51>:0
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <d7767e54cb234318be4a1e7ddd12ca51>:0
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <d7767e54cb234318be4a1e7ddd12ca51>:0
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <d7767e54cb234318be4a1e7ddd12ca51>:0
	  at Emby.Server.MediaEncoding.Api.Hls.BaseHlsService+<ProcessRequest>d__5.MoveNext () [0x0023c] in <007474d957df47adb99af6c19f1cc163>:0
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <d7767e54cb234318be4a1e7ddd12ca51>:0
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <d7767e54cb234318be4a1e7ddd12ca51>:0
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <d7767e54cb234318be4a1e7ddd12ca51>:0
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <d7767e54cb234318be4a1e7ddd12ca51>:0
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <d7767e54cb234318be4a1e7ddd12ca51>:0
	  at Emby.Server.Implementations.Services.ServiceExecGeneral+<GetTaskResult>d__3.MoveNext () [0x00081] in <fc63de2bb724454ebfdbc0c7f7e39a46>:0
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <d7767e54cb234318be4a1e7ddd12ca51>:0
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <d7767e54cb234318be4a1e7ddd12ca51>:0
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <d7767e54cb234318be4a1e7ddd12ca51>:0
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <d7767e54cb234318be4a1e7ddd12ca51>:0
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <d7767e54cb234318be4a1e7ddd12ca51>:0
	  at Emby.Server.Implementations.Services.ServiceHandler+<ProcessRequestAsync>d__13.MoveNext () [0x001c2] in <fc63de2bb724454ebfdbc0c7f7e39a46>:0
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <d7767e54cb234318be4a1e7ddd12ca51>:0
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <d7767e54cb234318be4a1e7ddd12ca51>:0
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <d7767e54cb234318be4a1e7ddd12ca51>:0
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <d7767e54cb234318be4a1e7ddd12ca51>:0
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <d7767e54cb234318be4a1e7ddd12ca51>:0
	  at Emby.Server.Implementations.HttpServer.HttpListenerHost+<RequestHandler>d__56.MoveNext () [0x009f2] in <fc63de2bb724454ebfdbc0c7f7e39a46>:0

Let me know if I have missed something obvious somewhere or if you need more information - I am not sure if this is expected as I know emby uses mono but I haven't got much experience troubleshooting such a setup.

Edited by embytal
Link to comment
Share on other sites

embytal

I ran this according to the installation guide on the emby website for FreeBSD

sudo pkg install mono libass fontconfig freetype2 fribidi gnutls iconv opus samba48 sqlite3 libtheora libva libvorbis webp libx264 libzvbi

Then ran:

pkg add -f https://github.com/MediaBrowser/Emby.Releases/releases/download/3.6.0.2/emby-server-freebsd_3.6.0.2_amd64.txz

Here is the list of what is installed:

root@emby:~ # pkg info
ca_root_nss-3.38               Root certificate bundle from the Mozilla Project
cairo-1.14.8_2,2               Vector graphics library with cross-device output support
cmocka-1.1.1_1                 Unit testing framework for C with support for mock objects
emby-server-3.6.0.2_1          Emby Server is a personal media server with apps on just about every device
expat-2.2.5                    XML 1.0 parser written in C
fontconfig-2.12.6,1            XML-based font configuration API for X Windows
freetype2-2.9.1                Free and portable TrueType font rendering engine
fribidi-0.19.7                 Free Implementation of the Unicode Bidirectional Algorithm
gamin-0.1.10_9                 File and directory monitoring system
gettext-runtime-0.19.8.1_1     GNU gettext runtime libraries and programs
giflib-5.1.4                   Tools and library routines for working with GIF images
glib-2.50.3_5,1                Some useful routines of C programming (current stable version)
gmp-6.1.2                      Free library for arbitrary precision arithmetic
gnutls-3.5.19                  GNU Transport Layer Security library
graphite2-1.3.11               Rendering capabilities for complex non-Roman writing systems
harfbuzz-1.8.8                 OpenType text shaping engine
iconv-2.0_4                    Charset conversion library and utilities
indexinfo-0.3.1                Utility to regenerate the GNU info page index
jansson-2.11                   C library for encoding, decoding, and manipulating JSON data
jbigkit-2.1_1                  Lossless compression for bi-level images such as scanned pages, faxes
jpeg-turbo-2.0.0               SIMD-accelerated JPEG codec which replaces libjpeg
lcms2-2.9                      Accurate, fast, and small-footprint color management engine
libX11-1.6.5_1,1               X11 library
libXScrnSaver-1.2.3_1          The XScrnSaver library
libXau-1.0.8_4                 Authentication Protocol library for X11
libXdamage-1.1.4_4             X Damage extension library
libXdmcp-1.1.2_1               X Display Manager Control Protocol library
libXext-1.3.3_2,1              X11 Extension library
libXfixes-5.0.3_1              X Fixes extension library
libXft-2.3.2_2                 Client-sided font API for X applications
libXrender-0.9.10_1            X Render extension library
libXxf86vm-1.1.4_2             X Vidmode Extension
libarchive-3.3.2,1             Library to create and read several streaming archive formats
libass-0.14.0                  Portable ASS/SSA subtitle renderer
libdrm-2.4.93,1                Userspace interface to kernel Direct Rendering Module services
libffi-3.2.1_2                 Foreign Function Interface
libiconv-1.14_11               Character set conversion library
libidn2-2.0.5                  Implementation of IDNA2008 internationalized domain names
libinotify-20180201            Kevent based inotify compatible library
liblz4-1.8.2,1                 LZ4 compression library, lossless and very fast
libogg-1.3.3,4                 Ogg bitstream library
libpciaccess-0.13.5            Generic PCI access library
libpthread-stubs-0.4           This library provides weak aliases for pthread functions
libsunacl-1.0.1                Wrapper providing SunOS NFSv4 ACL API
libtasn1-4.13                  ASN.1 structure parser library
libtheora-1.1.1_7              Theora video codec for the Ogg multimedia streaming system
libunicode-0.4_11              Library for manipulating Unicode characters and strings
libunistring-0.9.10            Unicode string library
libunwind-20170615             Generic stack unwinding library
libva-2.2.0_1                  VAAPI wrapper and dummy driver
libvorbis-1.3.6,3              Audio compression codec library
libx264-0.155.2917             H.264/MPEG-4 AVC Video Encoding (Library)
libxcb-1.13                    The X protocol C-language Binding (XCB) library
libxml2-2.9.7                  XML parser library for GNOME
libxshmfence-1.2_3             Shared memory 'SyncFence' synchronization primitive
libzvbi-0.2.35_3               Routines to access raw VBI capture devices
lzo2-2.10_1                    Portable speedy, lossless data compression library
mesa-libs-18.1.5               OpenGL libraries that support GLX and EGL clients
mono-5.10.1.47_8               Open source implementation of .NET Development Framework
nettle-3.4                     Low-level cryptographic library
openjpeg-2.3.0_1               Open-source JPEG 2000 codec
openldap-client-2.4.46         Open source LDAP client implementation
opus-1.2.1                     IETF audio codec
p11-kit-0.23.13                Library for loading and enumerating of PKCS#11 modules
pciids-20180812                Database of all known IDs used in PCI devices
pcre-8.42                      Perl Compatible Regular Expressions library
perl5-5.26.2                   Practical Extraction and Report Language
pixman-0.34.0                  Low-level pixel manipulation library
pkg-1.10.5_1                   Package manager
png-1.6.34                     Library for manipulating PNG images
popt-1.16_2                    Getopt(3) like library with a number of enhancements, from Redhat
py27-dnspython-1.15.0          DNS toolkit for Python
py27-iso8601-0.1.11            Simple module to parse ISO 8601 dates
py27-pillow-5.0.0              Fork of the Python Imaging Library (PIL)
py27-setuptools-40.0.0         Python packages installer
py27-tkinter-2.7.15_6          Python bindings to the Tk widget set (Python 2.7)
python27-2.7.15                Interpreted object-oriented programming language
readline-7.0.3_1               Library for editing command lines as they are typed
samba48-4.8.4                  Free SMB/CIFS and AD/DC server and client for Unix
sqlite3-3.24.0_1               SQL database engine in a C library
talloc-2.1.14                  Hierarchical pool based memory allocator
tcl86-8.6.8                    Tool Command Language
tdb-1.3.16,1                   Trivial Database
tevent-0.9.37                  Talloc based event loop library
tiff-4.0.9_1                   Tools and library routines for working with TIFF images
tk86-8.6.8_2                   Graphical toolkit for Tcl
tpm-emulator-0.7.4_2           Trusted Platform Module (TPM) emulator
trousers-0.3.14_2              Open-source TCG Software Stack
v4l_compat-1.6.3_1             Video4Linux IOCTL header files
webp-1.0.0_1                   Google WebP image format conversion tool
xcb-util-0.4.0_2,1             Module with libxcb/libX11 extension/replacement libraries
xcb-util-renderutil-0.3.9_1    Convenience functions for the Render extension
xorgproto-2018.4               xorg protocol headers
Link to comment
Share on other sites

Ok we'll have to do some digging around. Unfortunately I don't know the answer to this as it looks more operating system related as opposed to a problem with the Emby package.

Link to comment
Share on other sites

embytal

Ok we'll have to do some digging around. Unfortunately I don't know the answer to this as it looks more operating system related as opposed to a problem with the Emby package.

 

Fair enough. I will try again as it looks surprising to me. 

Since it is in a FreeBSD jail, I will try out in multiple jails to see if I can reproduce the behaviour.

Link to comment
Share on other sites

embytal

I can reproduce the problem on 3.5.2 so I am a bit puzzled as I could get emby working fine before. I am looking into the system itself but the jail within which it is running is destroyed and re-created so there is no left over (I assume). I am investigating more as it looks like a system problem although not entirely sure what could cause that.

Link to comment
Share on other sites

embytal

So I have made some progress and start understanding a bit more.

 

I have setup two jails: emby and emby2, exact same jail specs and just different name and ip address (both based on 11.2-RELEASE).

 

I have emby set up with the instructions from the wiki meaning I have done this:

pkg install mono libass fontconfig freetype2 fribidi gnutls iconv opus samba48 sqlite3 libtheora libva libvorbis webp libx264 libzvbi ffmpeg imagemagick

It triggers 141 packages:

root@[member="emby"]:~ # pkg install mono libass fontconfig freetype2 fribidi gnutls iconv opus samba48 sqlite3 libtheora libva libvorbis webp libx264 libzvbi ffmpeg imagemagick
The package management tool is not yet installed on your system.
Do you want to fetch and install it now? [y/N]: y
Bootstrapping pkg from pkg+http://pkg.freebsd.org/FreeBSD:11:amd64/latest, please wait...
[emby] Installing pkg-1.10.5_2...
[emby] Extracting pkg-1.10.5_2: 100%
Updating FreeBSD repository catalogue...
pkg: Repository FreeBSD load error: access repo file(/var/db/pkg/repo-FreeBSD.sqlite) failed: No such file or directory
[emby] Fetching meta.txz: 100%    944 B   0.9kB/s    00:01
[emby] Fetching packagesite.txz: 100%    6 MiB   6.8MB/s    00:01
Processing entries: 100%
FreeBSD repository update completed. 32474 packages processed.
All repositories are up to date.
Updating database digests format: 100%
The following 141 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
	mono: 5.10.1.47_8
	libass: 0.14.0
	fontconfig: 2.12.6,1
	freetype2: 2.9.1
	fribidi: 0.19.7
	gnutls: 3.5.19
	iconv: 2.0_4
	opus: 1.2.1
	samba48: 4.8.4
	sqlite3: 3.24.0_1
	libtheora: 1.1.1_7
	libva: 2.2.0_1
	libvorbis: 1.3.6,3
	webp: 1.0.0_1
	libx264: 0.155.2917
	libzvbi: 0.2.35_3
	ffmpeg: 4.0.2_2,1
	ImageMagick: 6.9.9.28_1,1
	ca_root_nss: 3.38
	python27: 2.7.15
	readline: 7.0.3_1
	indexinfo: 0.3.1
	libffi: 3.2.1_2
	gettext-runtime: 0.19.8.1_1
	py27-pillow: 5.0.0
	tk86: 8.6.8_2
	libXrender: 0.9.10_1
	xorgproto: 2018.4
	libX11: 1.6.6,1
	libxcb: 1.13
	libXdmcp: 1.1.2_1
	libXau: 1.0.8_4
	libxml2: 2.9.7
	libpthread-stubs: 0.4
	libXext: 1.3.3_2,1
	libXScrnSaver: 1.2.3_1
	libXft: 2.3.2_2
	expat: 2.2.5
	tcl86: 8.6.8
	py27-tkinter: 2.7.15_6
	py27-setuptools: 40.0.0
	openjpeg: 2.3.0_1
	tiff: 4.0.9_1
	jpeg-turbo: 2.0.0
	jbigkit: 2.1_1
	png: 1.6.34
	lcms2: 2.9
	giflib: 5.1.4
	libinotify: 20180201
	harfbuzz: 1.8.8
	graphite2: 1.3.12
	cairo: 1.14.8_2,2
	xcb-util-renderutil: 0.3.9_1
	xcb-util: 0.4.0_2,1
	pixman: 0.34.0
	mesa-libs: 18.1.5
	libxshmfence: 1.2_3
	libXxf86vm: 1.1.4_2
	libXfixes: 5.0.3_1
	libXdamage: 1.1.4_4
	libdrm: 2.4.93,1
	libpciaccess: 0.13.5
	pciids: 20180812
	libunwind: 20170615
	glib: 2.50.3_5,1
	perl5: 5.26.2
	pcre: 8.42
	libiconv: 1.14_11
	libfontenc: 1.1.3_2
	font-util: 1.3.1
	trousers: 0.3.14_2
	tpm-emulator: 0.7.4_2
	gmp: 6.1.2
	p11-kit: 0.23.13
	libtasn1: 4.13
	nettle: 3.4
	libidn2: 2.0.5
	libunistring: 0.9.10
	libsunacl: 1.0.1
	cmocka: 1.1.1_1
	openldap-client: 2.4.46
	py27-dnspython: 1.15.0
	tevent: 0.9.37
	talloc: 2.1.14
	py27-iso8601: 0.1.11
	popt: 1.16_2
	jansson: 2.11
	gamin: 0.1.10_9
	tdb: 1.3.16,1
	libarchive: 3.3.2,1
	lzo2: 2.10_1
	liblz4: 1.8.2,1
	libogg: 1.3.3,4
	v4l_compat: 1.6.3_1
	libunicode: 0.4_11
	xvid: 1.3.5,1
	x265: 2.8_1
	libvpx: 1.7.0_1
	libvdpau: 1.1.1_1
	libv4l: 1.6.3_2
	opencv-core: 3.4.1_2
	libSM: 1.2.2_4,1
	libICE: 1.0.9_2,1
	libXt: 1.1.5_1,1
	ghostscript9-agpl-x11: 9.23_1
	ghostscript9-agpl-base: 9.23_1
	libpaper: 1.1.24.4
	libijs: 0.35_5
	cups: 2.2.8_1
	avahi-app: 0.7_1
	gnome_subr: 1.0
	libdaemon: 0.14_1
	gobject-introspection: 1.50.0_1,1
	dbus-glib: 0.108
	dbus: 1.10.16_1
	gdbm: 1.13_1
	poppler-data: 0.4.9
	jbig2dec: 0.14
	libidn: 1.34
	fftw3: 3.3.8_1
	libwmf: 0.2.8.4_15
	librsvg2: 2.40.20
	pango: 1.42.0
	xorg-fonts-truetype: 7.7_1
	font-misc-meltho: 1.0.3_3
	mkfontscale: 1.1.3_1
	mkfontdir: 1.0.7
	font-misc-ethiopic: 1.0.3_3
	font-bh-ttf: 1.0.3_3
	encodings: 1.0.4_4,1
	dejavu: 2.37
	libcroco: 0.6.12
	gdk-pixbuf2: 2.36.11
	libXi: 1.7.9_1,1
	shared-mime-info: 1.8
	jasper: 1.900.1_17
	libgsf: 1.14.41
	libraw: 0.18.13_1
	liblqr-1: 0.4.2
	pkgconf: 1.4.2,1
	libltdl: 2.4.6

Number of packages to be installed: 141

The process will require 921 MiB more space.
204 MiB to be downloaded.

I added ffmpeg and imagemagick because the freebsd package (as in the one from from the package servers) shows dependency on ffmpeg and imagemagick

pkg search -d emby-server
emby-server-3.5.2.0
Comment        : Home media server built using mono and other open source technologies
Depends on     :
	ffmpeg-4.0.2_2,1
	mono-5.10.1.47_8
	ImageMagick-6.9.9.28_1,1
	sqlite3-3.24.0_1

However in this emby jail, I install the github package

root@[member="emby"]:~ # pkg add -f https://github.com/MediaBrowser/Emby.Releases/releases/download/3.5.2.0/emby-server-freebsd_3.5.2.0_amd64.txz
[emby] Fetching emby-server-freebsd_3.5.2.0_amd64.txz: 100%   16 MiB   5.5MB/s    00:03
[emby] Installing emby-server-3.5.2.0_1...
===> Creating groups.
Creating group 'emby' with gid '989'.
===> Creating users
Creating user 'emby' with uid '989'.
[emby] Extracting emby-server-3.5.2.0_1: 100%

Looking at this output, it looks like a few things are missing:

emby-server-3.5.2.0_1
Name           : emby-server
Version        : 3.5.2.0_1
Installed on   : Fri Aug 24 23:26:35 2018 EDT
Origin         : multimedia/emby-server-3.5.2.0
Architecture   : FreeBSD:11:amd64
Prefix         : /usr/local
Categories     : multimedia
Licenses       : UNKNOWN
Maintainer     : apps@[member="Emby.media"]
WWW            : UNKNOWN
Comment        : Emby Server is a personal media server with apps on just about every device
Shared Libs required:
	libwebpmux.so.3
	libX11.so.6
	libzvbi.so.0
	libtheoraenc.so.1
	libxcb-shape.so.0
	libxcb-xfixes.so.0
	libopus.so.0
	libfribidi.so.0
	libfreetype.so.6
	libvorbisenc.so.2
	libx264.so.152
	libxcb-shm.so.0
	libwebp.so.7
	libva-x11.so.2
	libvorbis.so.0
	libva-drm.so.2
	libiconv.so.2
	libfontconfig.so.1
	libgnutls.so.30
	libass.so.9
	libxcb.so.1
	libtheoradec.so.1
	libva.so.2
	libsmbclient.so.0
Shared Libs provided:
	libswscale.so.5
	libavutil.so.56
	libavfilter.so.7
	libavcodec.so.58
	libmp3lame.so.0
	libSkiaSharp.so.60
	libavdevice.so.58
	libavformat.so.58
	libswresample.so.3
	libpostproc.so.55
Annotations    :
	FreeBSD_version: 1102000
Flat size      : 57.1MiB
Description    :
Emby Server is a personal media server with apps on just about every device

On the other hand, in the emby2 jail, simply install the package from FreeBSD servers:

pkg install emby-server
The package management tool is not yet installed on your system.
Do you want to fetch and install it now? [y/N]: y
Bootstrapping pkg from pkg+http://pkg.freebsd.org/FreeBSD:11:amd64/latest, please wait...
[emby2] Installing pkg-1.10.5_2...
[emby2] Extracting pkg-1.10.5_2: 100%
Updating FreeBSD repository catalogue...
pkg: Repository FreeBSD load error: access repo file(/var/db/pkg/repo-FreeBSD.sqlite) failed: No such file or directory
[emby2] Fetching meta.txz: 100%    944 B   0.9kB/s    00:01
[emby2] Fetching packagesite.txz: 100%    6 MiB   6.8MB/s    00:01
Processing entries: 100%
FreeBSD repository update completed. 32474 packages processed.
All repositories are up to date.
Updating database digests format: 100%
The following 123 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
	emby-server: 3.5.2.0
	ffmpeg: 4.0.2_2,1
	fontconfig: 2.12.6,1
	expat: 2.2.5
	freetype2: 2.9.1
	gnutls: 3.5.19
	trousers: 0.3.14_2
	tpm-emulator: 0.7.4_2
	gmp: 6.1.2
	indexinfo: 0.3.1
	p11-kit: 0.23.13
	libtasn1: 4.13
	ca_root_nss: 3.38
	libffi: 3.2.1_2
	nettle: 3.4
	libidn2: 2.0.5
	libunistring: 0.9.10
	gettext-runtime: 0.19.8.1_1
	xvid: 1.3.5,1
	x265: 2.8_1
	libx264: 0.155.2917
	libvpx: 1.7.0_1
	libvdpau: 1.1.1_1
	xorgproto: 2018.4
	libXext: 1.3.3_2,1
	libXau: 1.0.8_4
	libX11: 1.6.6,1
	libxcb: 1.13
	libXdmcp: 1.1.2_1
	libxml2: 2.9.7
	libpthread-stubs: 0.4
	libva: 2.2.0_1
	libXfixes: 5.0.3_1
	v4l_compat: 1.6.3_1
	mesa-libs: 18.1.5
	libxshmfence: 1.2_3
	libXxf86vm: 1.1.4_2
	libXdamage: 1.1.4_4
	libdrm: 2.4.93,1
	libpciaccess: 0.13.5
	pciids: 20180812
	libunwind: 20170615
	pixman: 0.34.0
	libfontenc: 1.1.3_2
	font-util: 1.3.1
	python27: 2.7.15
	readline: 7.0.3_1
	perl5: 5.26.2
	libv4l: 1.6.3_2
	jpeg-turbo: 2.0.0
	png: 1.6.34
	libtheora: 1.1.1_7
	libvorbis: 1.3.6,3
	libogg: 1.3.3,4
	opencv-core: 3.4.1_2
	opus: 1.2.1
	mono: 5.10.1.47_8
	py27-pillow: 5.0.0
	tk86: 8.6.8_2
	libXrender: 0.9.10_1
	libXScrnSaver: 1.2.3_1
	libXft: 2.3.2_2
	tcl86: 8.6.8
	py27-tkinter: 2.7.15_6
	py27-setuptools: 40.0.0
	webp: 1.0.0_1
	tiff: 4.0.9_1
	jbigkit: 2.1_1
	giflib: 5.1.4
	openjpeg: 2.3.0_1
	lcms2: 2.9
	libinotify: 20180201
	ImageMagick: 6.9.9.28_1,1
	libSM: 1.2.2_4,1
	libICE: 1.0.9_2,1
	libXt: 1.1.5_1,1
	ghostscript9-agpl-x11: 9.23_1
	ghostscript9-agpl-base: 9.23_1
	libpaper: 1.1.24.4
	libijs: 0.35_5
	cups: 2.2.8_1
	avahi-app: 0.7_1
	gnome_subr: 1.0
	libdaemon: 0.14_1
	gobject-introspection: 1.50.0_1,1
	glib: 2.50.3_5,1
	pcre: 8.42
	libiconv: 1.14_11
	dbus-glib: 0.108
	dbus: 1.10.16_1
	gdbm: 1.13_1
	poppler-data: 0.4.9
	jbig2dec: 0.14
	libidn: 1.34
	fftw3: 3.3.8_1
	libwmf: 0.2.8.4_15
	librsvg2: 2.40.20
	pango: 1.42.0
	xorg-fonts-truetype: 7.7_1
	font-misc-meltho: 1.0.3_3
	mkfontscale: 1.1.3_1
	mkfontdir: 1.0.7
	font-misc-ethiopic: 1.0.3_3
	font-bh-ttf: 1.0.3_3
	encodings: 1.0.4_4,1
	dejavu: 2.37
	harfbuzz: 1.8.8
	graphite2: 1.3.12
	cairo: 1.14.8_2,2
	xcb-util-renderutil: 0.3.9_1
	xcb-util: 0.4.0_2,1
	fribidi: 0.19.7
	libcroco: 0.6.12
	gdk-pixbuf2: 2.36.11
	libXi: 1.7.9_1,1
	shared-mime-info: 1.8
	jasper: 1.900.1_17
	libgsf: 1.14.41
	libraw: 0.18.13_1
	liblqr-1: 0.4.2
	pkgconf: 1.4.2,1
	libltdl: 2.4.6
	sqlite3: 3.24.0_1

Number of packages to be installed: 123

The process will require 802 MiB more space.
185 MiB to be downloaded.

The package does not throw any required lib in the following output:

pkg info emby-server
emby-server-3.5.2.0
Name           : emby-server
Version        : 3.5.2.0
Installed on   : Fri Aug 24 23:09:50 2018 EDT
Origin         : multimedia/emby-server
Architecture   : FreeBSD:11:*
Prefix         : /usr/local
Categories     : multimedia
Licenses       : GPLv2
Maintainer     : woodsb02@FreeBSD.org
WWW            : https://emby.media/
Comment        : Home media server built using mono and other open source technologies
Options        :
	X11            : on
Annotations    :
	repo_type      : binary
	repository     : FreeBSD
Flat size      : 44.2MiB
Description    :
Emby Server is a home media server built on top of other popular
open source technologies such as Service Stack, jQuery, jQuery mobile,
and Mono.

It features a REST-based api with built-in documention to facilitate
client development. We also have client libraries for our api to enable
rapid development.

WWW: https://emby.media/

The major difference is that I got playback working in emby2 with the FreeBSD package although the ScheduleDirectTV does not work (which is the reason why I looked at the github versions from the wiki). There is no way to get the playback running on emby using the github package as it seems to be missing some lib linkage and all error messages in the emby-server.txt file point to ffmpeg/ffprobe not being to run due to missing lib I suppose.

 

The other thing I notice is the rc.d being different:

 

With the github package:

cat /usr/local/etc/rc.d/emby-server
#!/bin/sh

# PROVIDE: emby-server
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# emby_server_enable: Set to yes to enable the emby-server service.
#			Default: no
# emby_server_user: The user account used to run the emby-server daemon.
#			This is optional, however do not specifically set this to an
#			empty string as this will cause the daemon to run as root.
#			Default: emby
# emby_server_group: The group account used to run the emby-server daemon.
#			This is optional, however do not specifically set this to an
#			empty string as this will cause the daemon to run with group wheel.
#			Default: emby
# emby_server_data_dir: Directory where emby-server configuration
#			data is stored.
#			Default: /var/db/emby-server
# emby_server_ffmpeg: Path of the ffmpeg binary.
#			Default: %%PEFIX%%/opt/emby-server/bin/ffmpeg
# emby_server_ffprobe: Path of the ffprobe binary.
#			Default: %%PEFIX%%/opt/emby-server/bin/ffprobe

. /etc/rc.subr
name=emby_server
rcvar=${name}_enable
load_rc_config ${name}

[ -z "${emby_server_user}" ] && emby_server_user=emby
[ -z "${emby_server_group}" ] && emby_server_group=emby
[ -z "${emby_server_data_dir}" ] && emby_server_data_dir=/var/db/emby-server
[ -z "${emby_server_ffmpeg}" ] && emby_server_ffmpeg=/usr/local/opt/emby-server/bin/ffmpeg
[ -z "${emby_server_ffprobe}" ] && emby_server_ffprobe=/usr/local/opt/emby-server/bin/ffprobe

: ${emby_server_enable:="no"}
: ${emby_server_user:="emby"}
: ${emby_server_group:="emby"}
: ${emby_server_data_dir:="/var/db/emby-server"}
: ${emby_server_ffmpeg:="/usr/local/opt/emby-server/bin/ffmpeg"}
: ${emby_server_ffprobe:="/usr/local/opt/emby-server/bin/ffprobe"}

export LD_LIBRARY_PATH=/usr/local/opt/emby-server/lib

pidfile="/var/run/emby-server.pid"
procname="mono"
command="/usr/sbin/daemon"
command_args="-f -p ${pidfile} ${procname} /usr/local/opt/emby-server/system/EmbyServer.exe \
    -os freebsd \
    -ffmpeg ${emby_server_ffmpeg} \
    -ffprobe ${emby_server_ffprobe} \
    -programdata ${emby_server_data_dir} \
    -restartexitcode 3 \
    -updatepackage emby-server-freebsd_{version}_amd64.txz"

start_precmd=emby_server_precmd
emby_server_precmd()
{
    [ -f ${pidfile} ] || install -g ${emby_server_group} -o ${emby_server_user} -- /dev/null ${pidfile}
    [ -d ${emby_server_data_dir} ] || install -d -g ${emby_server_group} -o ${emby_server_user} -- ${emby_server_data_dir}
}

stop_postcmd=emby_server_postcmd
emby_server_postcmd()
{
    rm -f ${pidfile}
}

run_rc_command "$1"

With the FreeBSD package:

cat /usr/local/etc/rc.d/emby-server
#!/bin/sh

# $FreeBSD: head/multimedia/emby-server/files/emby-server.in 456852 2017-12-20 20:26:20Z woodsb02 $
#
# PROVIDE: emby-server
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# emby_server_enable:	Set to YES to enable the emby-server service.
#			Default: NO
# emby_server_user:	The user account used to run the emby-server daemon.
#			This is optional, however do not specifically set this to an
#			empty string as this will cause the daemon to run as root.
#			Default: emby (or mediabrowser with UID 989 if it exists)
# emby_server_group:	The group account used to run the emby-server daemon.
#			This is optional, however do not specifically set this to an
#			empty string as this will cause the daemon to run with group wheel.
#			Default: emby (or mediabrowser with GID 989 if it exists)
# emby_server_data_dir:	Directory where emby-server configuration
#			data is stored.
#			Default: /var/db/emby-server (or /var/db/mediabrowser if it exists)

. /etc/rc.subr
name=emby_server
rcvar=${name}_enable
load_rc_config $name

if [ "$(id -u mediabrowser 2>&1)" = "989" ] && ! [ -n "${emby_server_user}" ]; then
	emby_server_user=mediabrowser;
	emby_server_group=mediabrowser;
fi

if [ -d "/var/db/mediabrowser" ] && ! [ -n "${emby_server_data_dir}" ]; then
	emby_server_data_dir="/var/db/mediabrowser";
fi

: ${emby_server_enable:="NO"}
: ${emby_server_user:="emby"}
: ${emby_server_group:="emby"}
: ${emby_server_data_dir:="/var/db/emby-server"}

pidfile="/var/run/emby-server.pid"
command="/usr/sbin/daemon"
procname="/usr/local/bin/mono"
command_args="-f -p ${pidfile} ${procname} /usr/local/lib/emby-server/MediaBrowser.Server.Mono.exe -os freebsd -ffmpeg /usr/local/bin/ffmpeg -ffprobe /usr/local/bin/ffprobe -programdata ${emby_server_data_dir}"

start_precmd=emby_server_precmd
emby_server_precmd()
{
	if [ ! -e "${pidfile}" ]; then
		install -g ${emby_server_group} -o ${emby_server_user} -- /dev/null "${pidfile}";
	fi

	if [ ! -d "${emby_server_data_dir}" ]; then
		install -d -g ${emby_server_group} -o ${emby_server_user} -- "${emby_server_data_dir}";
	fi
}

stop_postcmd=emby_server_postcmd
emby_server_postcmd()
{
	rm -f -- "${pidfile}"
}

run_rc_command "$1"

As you can notice the exe file is different between the two install as well as the folder structure:

root@[member="emby2"]:/usr/local/lib/emby-server # ls -l /usr/local/lib/emby-server/MediaBrowser.Server.Mono.exe
-rw-r--r--  1 root  wheel  46080 Aug 23 17:03 /usr/local/lib/emby-server/MediaBrowser.Server.Mono.exe
root@[member="emby"]:~ # ls -lai /usr/local/opt/emby-server/system/EmbyServer.exe
130245 -rw-r--r--  1 root  wheel  61440 Jul 29 19:32 /usr/local/opt/emby-server/system/EmbyServer.exe

I am not sure if anybody has reported the github version having playback running fine. I can consistently reproduce this not working for the playback only (the rest of the webapp behaves fine).

The FreeBSD package version has the playback working fine however it does not have the fix for ScheduleDirectTV integrated.

 

I can try whatever anybody may have in mind since I have easy step to get things brought up and torn down to make sure I always start from a clean jail. (I use iocage destroy which remove the ZFS dataset anyway)

  • Like 1
Link to comment
Share on other sites

embytal

What if you just install the ones that it says are missing?

 

Trying to identify the packages required. I am just surprised by the fact they are so many missing lib links.

Will report if I can clear the required libs list.

Link to comment
Share on other sites

embytal

What if you just install the ones that it says are missing?

 

Well this is the problem - I checked for at least three lib and they are already installed

root@emby:~ # pkg install libx264
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Updating database digests format: 100%
Checking integrity... done (0 conflicting)
The most recent version of packages are already installed

root@emby:~ # pkg install libass
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The most recent version of packages are already installed

root@emby:~ # pkg install libx11
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The most recent version of packages are already installed

Is there somebody behind the maintainer of the package: Maintainer : apps@Emby.media ?

 

I am trying to understand if this package has been tested and reported as working successfully.

Link to comment
Share on other sites

embytal

Yes. See this topic:

 

https://emby.media/community/index.php?/topic/60728-new-freebsd-package-for-testing/

 

 

So i guess the question would be how are others able to install and get up and running without running into this.

 

Shall I start linking my thread to this one?

 

I am interested in assisting on this one. Do you know who built the package that is available on github? I am not sure whether this is the same maintainer as the FreeBSD package: woodsb02@FreeBSD.org.

 

Any guidance is welcome as so far emby is super responsive in a jail when it works and integrates a lot of what I need.

Link to comment
Share on other sites

embytal

We did. It is produced by the Emby team. Thanks.

 

Can you confirm the exact version of FreeBSD this package was created for?

Link to comment
Share on other sites

embytal

It was built on 11.2 but users have been able to run it on 11.1.

 

One more question, how do you track fixes as it does not make a lot of sense to have the same version for v3.5.2 of the generic FreeBSD package and your version being v3.5.2 if you have a fix for the ScheduleDirect that is not in the generic FreeBSD package. Shouldn't there be a different version?

 

Furthermore, there seems to be a very different structure to emby in your pkg vs the generic one on FreeBSD, is that track somewhere?

 

Thanks

Link to comment
Share on other sites

We are going to be unifying them so they are both based on the newer package. That is on our to do list for the near future. Thanks.

Link to comment
Share on other sites

We have a new beta up, in case you'd like to try and see if it makes any difference with this issue. Thanks.

Link to comment
Share on other sites

embytal

We have a new beta up, in case you'd like to try and see if it makes any difference with this issue. Thanks.

 

Tried 3.6.0.31 in a fresh jail with the recommended packages on a 11.2-RELEASE and playback fails although ScheduleDirect works at least to the guide but LiveTv is broken because of the problem below

root@emby:/usr/local/opt/emby-server/bin # ./ffmpeg
Shared object "libavdevice.so.58" not found, required by "ffmpeg"

No content can be played.

 

Where is the log file located in that version?

 

Is there a way to troubleshoot by launching the full command through Mono to see what might be failing for the playback?

 

Tomorrow I am going to try a fresh FreeBSD install in a VM and deploy that version without jails to rule out any jail related issues.

Edited by embytal
Link to comment
Share on other sites

makarai

used the update

iocage console emby-server-test
service emby-server stop
pkg add -f https://github.com/MediaBrowser/Emby.Releases/releases/download/3.6.0.31/emby-server-freebsd_3.6.0.31_amd64.txz
service emby-server start

worked, but kodi companion message pops up asking for a restart so 2.0.4 can be installed, which is persistent even after restart. uninstalling restart installing restart does not help either.  logfile attached

post-165508-0-39579700-1535719267_thumb.jpg

Log.txt

  • Like 1
Link to comment
Share on other sites

alucryd

@@embytal You can't just run the ffmpeg binary like that, our libraries are not in a standard directory so they won't be discovered unless you export LD_LIBRARY_PATH first. Of course the emby launcher script does that for you.

export LD_LIBRARY_PATH=/usr/local/opt/emby-server/bin

Are you able to manually run the ffmpeg binary after you do this?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...