Jump to content

Playback Errors / Missing libtesseract.so.4 Dependency FREEBSD 12


FrogMaster

Recommended Posts

FrogMaster

Hello, 

I updated my FreeBSD 12 installation of Emby as per the provided installation instructions to the latest available pre-release 4.7.0.18. However I'm encountering playback errors on all my media. 
When I click play on any of the available media the following error is presented "No compatible streams are currently available. Please try again later or contact your system administrator for details."

I'm confident that permissions are configured correctly for the associated files, media playback was working prior to the update. When I further review the logs I see errors relative to libtesseract.so.4 not being present, however I installed the tesseract dependency and there are no additional updates for it. It would seem that libtesseract.so.4 needs to be installed but this is what the tesseract PKG is supposed to provide. 

Tesseract Version Output: 

root@emby-mediaserver:/ # tesseract -v
tesseract 4.1.3
 leptonica-1.76.0
  libgif 5.2.1 : libjpeg 8d (libjpeg-turbo 2.1.2) : libpng 1.6.37+apng : libtiff 4.3.0 : zlib 1.2.11 : libwebp 1.2.1
 Found libarchive 3.5.2 zlib/1.2.11 liblzma/5.2.5 bz2lib/1.0.8 liblz4/1.9.3 libzstd/1.5.0


I've included the Emby Server logs here: 

2021-12-02 03:51:49.419 Info HttpClient: HttpClientManager GET: https://www.mb3admin.com/admin/service/EmbyPackages.json
2021-12-02 03:51:49.424 Info FfmpegManager: ProcessRun 'ffmpeg -hide_banner -version' Execute: /usr/local/lib/emby-server/bin/ffmpeg -hide_banner -version
2021-12-02 03:51:49.424 Info HttpClient: HttpClientManager GET: https://api.github.com/repos/MediaBrowser/Emby.Releases/releases
2021-12-02 03:51:49.462 Info FfmpegManager: ProcessRun 'ffmpeg -hide_banner -version' Process exited with code 1
2021-12-02 03:51:49.463 Error FfmpegManager: ProcessRun 'ffmpeg -hide_banner -version' Output:
	
2021-12-02 03:51:49.463 Error FfmpegManager: ProcessRun 'ffmpeg -hide_banner -version' Error Output:
	ld-elf.so.1: Shared object "libtesseract.so.4" not found, required by "libavfilter.so.8"
	
2021-12-02 03:51:49.465 Info FfmpegManager: ProcessRun 'ffmpeg -hide_banner -decoders' Execute: /usr/local/lib/emby-server/bin/ffmpeg -hide_banner -decoders
2021-12-02 03:51:49.474 Info FfmpegManager: ProcessRun 'ffmpeg -hide_banner -decoders' Process exited with code 1
2021-12-02 03:51:49.474 Error FfmpegManager: ProcessRun 'ffmpeg -hide_banner -decoders' Output:
	
2021-12-02 03:51:49.474 Error FfmpegManager: ProcessRun 'ffmpeg -hide_banner -decoders' Error Output:
	ld-elf.so.1: Shared object "libtesseract.so.4" not found, required by "libavfilter.so.8"
	
2021-12-02 03:51:49.475 Info FfmpegManager: ProcessRun 'ffmpeg -hide_banner -encoders' Execute: /usr/local/lib/emby-server/bin/ffmpeg -hide_banner -encoders
2021-12-02 03:51:49.484 Info FfmpegManager: ProcessRun 'ffmpeg -hide_banner -encoders' Process exited with code 1
2021-12-02 03:51:49.484 Error FfmpegManager: ProcessRun 'ffmpeg -hide_banner -encoders' Output:
	
2021-12-02 03:51:49.484 Error FfmpegManager: ProcessRun 'ffmpeg -hide_banner -encoders' Error Output:
	ld-elf.so.1: Shared object "libtesseract.so.4" not found, required by "libavfilter.so.8"
	
2021-12-02 03:51:49.484 Info FfmpegManager: ProcessRun 'ffmpeg -hide_banner -hwaccels' Execute: /usr/local/lib/emby-server/bin/ffmpeg -hide_banner -hwaccels
2021-12-02 03:51:49.493 Info FfmpegManager: ProcessRun 'ffmpeg -hide_banner -hwaccels' Process exited with code 1
2021-12-02 03:51:49.493 Error FfmpegManager: ProcessRun 'ffmpeg -hide_banner -hwaccels' Output:
	
2021-12-02 03:51:49.493 Error FfmpegManager: ProcessRun 'ffmpeg -hide_banner -hwaccels' Error Output:
	ld-elf.so.1: Shared object "libtesseract.so.4" not found, required by "libavfilter.so.8"
	
2021-12-02 03:51:49.493 Info FfmpegManager: ProcessRun 'ffmpeg -hide_banner -protocols' Execute: /usr/local/lib/emby-server/bin/ffmpeg -hide_banner -protocols
2021-12-02 03:51:49.503 Info FfmpegManager: ProcessRun 'ffmpeg -hide_banner -protocols' Process exited with code 1
2021-12-02 03:51:49.503 Error FfmpegManager: ProcessRun 'ffmpeg -hide_banner -protocols' Output:
	
2021-12-02 03:51:49.503 Error FfmpegManager: ProcessRun 'ffmpeg -hide_banner -protocols' Error Output:
	ld-elf.so.1: Shared object "libtesseract.so.4" not found, required by "libavfilter.so.8"
	
2021-12-02 03:51:49.504 Info FfmpegManager: ProcessRun 'ffmpeg -hide_banner -filters' Execute: /usr/local/lib/emby-server/bin/ffmpeg -hide_banner -filters
2021-12-02 03:51:49.513 Info FfmpegManager: ProcessRun 'ffmpeg -hide_banner -filters' Process exited with code 1
2021-12-02 03:51:49.513 Error FfmpegManager: ProcessRun 'ffmpeg -hide_banner -filters' Output:
	
2021-12-02 03:51:49.513 Error FfmpegManager: ProcessRun 'ffmpeg -hide_banner -filters' Error Output:
	ld-elf.so.1: Shared object "libtesseract.so.4" not found, required by "libavfilter.so.8"
	
2021-12-02 03:51:49.557 Info SoftwareCodecProvider: h264, libx264, libx264 Software Encoder, V-E-libx264
2021-12-02 03:51:49.557 Info SoftwareCodecProvider: hevc, libx265, libx265 Software Encoder, V-E-libx265
2021-12-02 03:51:49.557 Info SoftwareCodecProvider: mpeg4, mpeg4, MPEG-4 part 2 Software Encoder, V-E-mpeg4
2021-12-02 03:51:49.557 Info SoftwareCodecProvider: msmpeg4v3, msmpeg4, MPEG-4 part 2 (MS Variant 3) Software Encoder, V-E-msmpeg4
2021-12-02 03:51:49.557 Info SoftwareCodecProvider: vp8, libvpx, libvpx VP8, V-E-libvpx
2021-12-02 03:51:49.560 Info SoftwareCodecProvider: h264, libx264, libx264 Software Encoder, V-E-libx264
2021-12-02 03:51:49.560 Info SoftwareCodecProvider: hevc, libx265, libx265 Software Encoder, V-E-libx265
2021-12-02 03:51:49.560 Info SoftwareCodecProvider: mpeg4, mpeg4, MPEG-4 part 2 Software Encoder, V-E-mpeg4
2021-12-02 03:51:49.560 Info SoftwareCodecProvider: msmpeg4v3, msmpeg4, MPEG-4 part 2 (MS Variant 3) Software Encoder, V-E-msmpeg4
2021-12-02 03:51:49.560 Info SoftwareCodecProvider: vp8, libvpx, libvpx VP8, V-E-libvpx
2021-12-02 03:51:50.640 Info App: User policy for Frog. EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
2021-12-02 03:51:51.178 Error Server: Error processing request
	*** Error Report ***
	Version: 4.7.0.18
	Command line: /usr/local/lib/emby-server/system/EmbyServer.exe -os freebsd -ffdetect /usr/local/lib/emby-server/bin/ffdetect -ffmpeg /usr/local/lib/emby-server/bin/ffmpeg -ffprobe /usr/local/lib/emby-server/bin/ffprobe -programdata /var/db/emby-server -updatepackage emby-server-freebsd12_{version}_amd64.pkg
	Operating system: Unix 12.2.10.0 
	Framework: Mono: 6.8.0.123 (tarball Sun Nov 28 09:12:31 UTC 2021)
	OS/Process: X64/X64
	Runtime: usr/local/lib/mono/4.5/mscorlib.dll
	Processor count: 4
	Data path: /var/db/emby-server
	Application path: /usr/local/lib/emby-server/system
	System.Exception: System.Exception: No video encoder found for 'h264'
	
	
	>>>>>>  FindVideoEncoder - Media: h264, UseHardwareCodecs: True, Mode: Automatic
	
	  at Emby.Server.MediaEncoding.Encoder.TranscodingCommandBuilder.FindVideoEncoder (Emby.Server.MediaEncoding.Encoder.EncodingJobInfo state, MediaBrowser.Controller.MediaEncoding.CodecParameterContext parameterContext) [0x00189] in <095b94259cb046dc86cae741cf0f05a6>:0 
	  at Emby.Server.MediaEncoding.Encoder.TranscodingCommandBuilder.HlsGetCommandLineArguments (System.String outputPath, Emby.Server.MediaEncoding.Api.StreamState state, System.Int32 startNumber, System.Boolean createSubtitleParameters, System.Boolean isForTv, System.String segmentFileExtension) [0x00059] in <095b94259cb046dc86cae741cf0f05a6>:0 
	  at Emby.Server.MediaEncoding.Api.Hls.DynamicHlsService.GetCommandLineArguments (System.String outputPath, Emby.Server.MediaEncoding.Api.StreamState state) [0x00016] in <095b94259cb046dc86cae741cf0f05a6>:0 
	  at Emby.Server.MediaEncoding.Api.BaseStreamingService.StartFfMpeg (Emby.Server.MediaEncoding.Api.StreamState state, System.String outputPath, System.Threading.CancellationToken cancellationToken, System.Boolean acquireResources) [0x0034f] in <095b94259cb046dc86cae741cf0f05a6>:0 
	  at Emby.Server.MediaEncoding.Api.Hls.DynamicHlsService.GetDynamicSegment (Emby.Server.MediaEncoding.Api.StreamRequest request, System.String playlistId, System.String segmentId, System.Int32 subtitleStreamIndex) [0x007af] in <095b94259cb046dc86cae741cf0f05a6>:0 
	  at Emby.Server.Implementations.Services.ServiceController.GetTaskResult (System.Threading.Tasks.Task task) [0x00081] in <be5f77e86a094ef0baa226dd0a4168c0>:0 
	  at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync (Emby.Server.Implementations.HttpServer.HttpListenerHost appHost, MediaBrowser.Model.Services.IRequest httpReq, MediaBrowser.Model.Services.IResponse httpRes, Emby.Server.Implementations.Services.RestPath restPath, System.String responseContentType, System.Threading.CancellationToken cancellationToken) [0x001da] in <be5f77e86a094ef0baa226dd0a4168c0>:0 
	  at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler (MediaBrowser.Model.Services.IRequest httpReq, System.ReadOnlyMemory`1[T] urlString, System.ReadOnlyMemory`1[T] localPath, System.Threading.CancellationToken cancellationToken) [0x00b0b] in <be5f77e86a094ef0baa226dd0a4168c0>:0 
	Source: mscorlib
	TargetSite: Void Throw()
	
2021-12-02 03:51:51.195 Info App: User policy for Frog. EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
2021-12-02 03:51:51.297 Info SessionManager: Playback start reported by app Emby Web 4.7.0.18 playing Team Seven, Assemble!!. Started at 0 ms
2021-12-02 03:51:51.337 Error Server: Error processing request
	*** Error Report ***
	Version: 4.7.0.18
	Command line: /usr/local/lib/emby-server/system/EmbyServer.exe -os freebsd -ffdetect /usr/local/lib/emby-server/bin/ffdetect -ffmpeg /usr/local/lib/emby-server/bin/ffmpeg -ffprobe /usr/local/lib/emby-server/bin/ffprobe -programdata /var/db/emby-server -updatepackage emby-server-freebsd12_{version}_amd64.pkg
	Operating system: Unix 12.2.10.0 
	Framework: Mono: 6.8.0.123 (tarball Sun Nov 28 09:12:31 UTC 2021)
	OS/Process: X64/X64
	Runtime: usr/local/lib/mono/4.5/mscorlib.dll
	Processor count: 4
	Data path: /var/db/emby-server
	Application path: /usr/local/lib/emby-server/system
	System.Exception: System.Exception: No video encoder found for 'h264'
	
	
	>>>>>>  FindVideoEncoder - Media: h264, UseHardwareCodecs: True, Mode: Automatic
	
	  at Emby.Server.MediaEncoding.Encoder.TranscodingCommandBuilder.FindVideoEncoder (Emby.Server.MediaEncoding.Encoder.EncodingJobInfo state, MediaBrowser.Controller.MediaEncoding.CodecParameterContext parameterContext) [0x00189] in <095b94259cb046dc86cae741cf0f05a6>:0 
	  at Emby.Server.MediaEncoding.Encoder.TranscodingCommandBuilder.HlsGetCommandLineArguments (System.String outputPath, Emby.Server.MediaEncoding.Api.StreamState state, System.Int32 startNumber, System.Boolean createSubtitleParameters, System.Boolean isForTv, System.String segmentFileExtension) [0x00059] in <095b94259cb046dc86cae741cf0f05a6>:0 
	  at Emby.Server.MediaEncoding.Api.Hls.DynamicHlsService.GetCommandLineArguments (System.String outputPath, Emby.Server.MediaEncoding.Api.StreamState state) [0x00016] in <095b94259cb046dc86cae741cf0f05a6>:0 
	  at Emby.Server.MediaEncoding.Api.BaseStreamingService.StartFfMpeg (Emby.Server.MediaEncoding.Api.StreamState state, System.String outputPath, System.Threading.CancellationToken cancellationToken, System.Boolean acquireResources) [0x0034f] in <095b94259cb046dc86cae741cf0f05a6>:0 
	  at Emby.Server.MediaEncoding.Api.Hls.DynamicHlsService.GetDynamicSegment (Emby.Server.MediaEncoding.Api.StreamRequest request, System.String playlistId, System.String segmentId, System.Int32 subtitleStreamIndex) [0x007af] in <095b94259cb046dc86cae741cf0f05a6>:0 
	  at Emby.Server.Implementations.Services.ServiceController.GetTaskResult (System.Threading.Tasks.Task task) [0x00081] in <be5f77e86a094ef0baa226dd0a4168c0>:0 
	  at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync (Emby.Server.Implementations.HttpServer.HttpListenerHost appHost, MediaBrowser.Model.Services.IRequest httpReq, MediaBrowser.Model.Services.IResponse httpRes, Emby.Server.Implementations.Services.RestPath restPath, System.String responseContentType, System.Threading.CancellationToken cancellationToken) [0x001da] in <be5f77e86a094ef0baa226dd0a4168c0>:0 
	  at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler (MediaBrowser.Model.Services.IRequest httpReq, System.ReadOnlyMemory`1[T] urlString, System.ReadOnlyMemory`1[T] localPath, System.Threading.CancellationToken cancellationToken) [0x00b0b] in <be5f77e86a094ef0baa226dd0a4168c0>:0 
	Source: mscorlib
	TargetSite: Void Throw()
	
2021-12-02 03:51:51.347 Info App: User policy for Frog. EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
2021-12-02 03:51:51.466 Error Server: Error processing request
	*** Error Report ***
	Version: 4.7.0.18
	Command line: /usr/local/lib/emby-server/system/EmbyServer.exe -os freebsd -ffdetect /usr/local/lib/emby-server/bin/ffdetect -ffmpeg /usr/local/lib/emby-server/bin/ffmpeg -ffprobe /usr/local/lib/emby-server/bin/ffprobe -programdata /var/db/emby-server -updatepackage emby-server-freebsd12_{version}_amd64.pkg
	Operating system: Unix 12.2.10.0 
	Framework: Mono: 6.8.0.123 (tarball Sun Nov 28 09:12:31 UTC 2021)
	OS/Process: X64/X64
	Runtime: usr/local/lib/mono/4.5/mscorlib.dll
	Processor count: 4
	Data path: /var/db/emby-server
	Application path: /usr/local/lib/emby-server/system
	System.Exception: System.Exception: No video encoder found for 'h264'
	
	
	>>>>>>  FindVideoEncoder - Media: h264, UseHardwareCodecs: True, Mode: Automatic
	
	  at Emby.Server.MediaEncoding.Encoder.TranscodingCommandBuilder.FindVideoEncoder (Emby.Server.MediaEncoding.Encoder.EncodingJobInfo state, MediaBrowser.Controller.MediaEncoding.CodecParameterContext parameterContext) [0x00189] in <095b94259cb046dc86cae741cf0f05a6>:0 
	  at Emby.Server.MediaEncoding.Encoder.TranscodingCommandBuilder.HlsGetCommandLineArguments (System.String outputPath, Emby.Server.MediaEncoding.Api.StreamState state, System.Int32 startNumber, System.Boolean createSubtitleParameters, System.Boolean isForTv, System.String segmentFileExtension) [0x00059] in <095b94259cb046dc86cae741cf0f05a6>:0 
	  at Emby.Server.MediaEncoding.Api.Hls.DynamicHlsService.GetCommandLineArguments (System.String outputPath, Emby.Server.MediaEncoding.Api.StreamState state) [0x00016] in <095b94259cb046dc86cae741cf0f05a6>:0 
	  at Emby.Server.MediaEncoding.Api.BaseStreamingService.StartFfMpeg (Emby.Server.MediaEncoding.Api.StreamState state, System.String outputPath, System.Threading.CancellationToken cancellationToken, System.Boolean acquireResources) [0x0034f] in <095b94259cb046dc86cae741cf0f05a6>:0 
	  at Emby.Server.MediaEncoding.Api.Hls.DynamicHlsService.GetDynamicSegment (Emby.Server.MediaEncoding.Api.StreamRequest request, System.String playlistId, System.String segmentId, System.Int32 subtitleStreamIndex) [0x007af] in <095b94259cb046dc86cae741cf0f05a6>:0 
	  at Emby.Server.Implementations.Services.ServiceController.GetTaskResult (System.Threading.Tasks.Task task) [0x00081] in <be5f77e86a094ef0baa226dd0a4168c0>:0 
	  at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync (Emby.Server.Implementations.HttpServer.HttpListenerHost appHost, MediaBrowser.Model.Services.IRequest httpReq, MediaBrowser.Model.Services.IResponse httpRes, Emby.Server.Implementations.Services.RestPath restPath, System.String responseContentType, System.Threading.CancellationToken cancellationToken) [0x001da] in <be5f77e86a094ef0baa226dd0a4168c0>:0 
	  at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler (MediaBrowser.Model.Services.IRequest httpReq, System.ReadOnlyMemory`1[T] urlString, System.ReadOnlyMemory`1[T] localPath, System.Threading.CancellationToken cancellationToken) [0x00b0b] in <be5f77e86a094ef0baa226dd0a4168c0>:0 
	Source: mscorlib
	TargetSite: Void Throw()
	
2021-12-02 03:51:51.480 Info SessionManager: Playback stopped reported by app Emby Web 4.7.0.18 playing Team Seven, Assemble!!. Stopped at 0 ms
2021-12-02 03:51:52.596 Info App: User policy for Frog. EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
2021-12-02 03:51:52.686 Error Server: Error processing request
	*** Error Report ***
	Version: 4.7.0.18
	Command line: /usr/local/lib/emby-server/system/EmbyServer.exe -os freebsd -ffdetect /usr/local/lib/emby-server/bin/ffdetect -ffmpeg /usr/local/lib/emby-server/bin/ffmpeg -ffprobe /usr/local/lib/emby-server/bin/ffprobe -programdata /var/db/emby-server -updatepackage emby-server-freebsd12_{version}_amd64.pkg
	Operating system: Unix 12.2.10.0 
	Framework: Mono: 6.8.0.123 (tarball Sun Nov 28 09:12:31 UTC 2021)
	OS/Process: X64/X64
	Runtime: usr/local/lib/mono/4.5/mscorlib.dll
	Processor count: 4
	Data path: /var/db/emby-server
	Application path: /usr/local/lib/emby-server/system
	System.Exception: System.Exception: No video encoder found for 'h264'
	
	
	>>>>>>  FindVideoEncoder - Media: h264, UseHardwareCodecs: True, Mode: Automatic
	
	  at Emby.Server.MediaEncoding.Encoder.TranscodingCommandBuilder.FindVideoEncoder (Emby.Server.MediaEncoding.Encoder.EncodingJobInfo state, MediaBrowser.Controller.MediaEncoding.CodecParameterContext parameterContext) [0x00189] in <095b94259cb046dc86cae741cf0f05a6>:0 
	  at Emby.Server.MediaEncoding.Encoder.TranscodingCommandBuilder.HlsGetCommandLineArguments (System.String outputPath, Emby.Server.MediaEncoding.Api.StreamState state, System.Int32 startNumber, System.Boolean createSubtitleParameters, System.Boolean isForTv, System.String segmentFileExtension) [0x00059] in <095b94259cb046dc86cae741cf0f05a6>:0 
	  at Emby.Server.MediaEncoding.Api.Hls.DynamicHlsService.GetCommandLineArguments (System.String outputPath, Emby.Server.MediaEncoding.Api.StreamState state) [0x00016] in <095b94259cb046dc86cae741cf0f05a6>:0 
	  at Emby.Server.MediaEncoding.Api.BaseStreamingService.StartFfMpeg (Emby.Server.MediaEncoding.Api.StreamState state, System.String outputPath, System.Threading.CancellationToken cancellationToken, System.Boolean acquireResources) [0x0034f] in <095b94259cb046dc86cae741cf0f05a6>:0 
	  at Emby.Server.MediaEncoding.Api.Hls.DynamicHlsService.GetDynamicSegment (Emby.Server.MediaEncoding.Api.StreamRequest request, System.String playlistId, System.String segmentId, System.Int32 subtitleStreamIndex) [0x007af] in <095b94259cb046dc86cae741cf0f05a6>:0 
	  at Emby.Server.Implementations.Services.ServiceController.GetTaskResult (System.Threading.Tasks.Task task) [0x00081] in <be5f77e86a094ef0baa226dd0a4168c0>:0 
	  at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync (Emby.Server.Implementations.HttpServer.HttpListenerHost appHost, MediaBrowser.Model.Services.IRequest httpReq, MediaBrowser.Model.Services.IResponse httpRes, Emby.Server.Implementations.Services.RestPath restPath, System.String responseContentType, System.Threading.CancellationToken cancellationToken) [0x001da] in <be5f77e86a094ef0baa226dd0a4168c0>:0 
	  at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler (MediaBrowser.Model.Services.IRequest httpReq, System.ReadOnlyMemory`1[T] urlString, System.ReadOnlyMemory`1[T] localPath, System.Threading.CancellationToken cancellationToken) [0x00b0b] in <be5f77e86a094ef0baa226dd0a4168c0>:0 
	Source: mscorlib
	TargetSite: Void Throw()
	
2021-12-02 03:51:52.695 Info SessionManager: Playback start reported by app Emby Web 4.7.0.18 playing Something to Fill the Hole. Started at 0 ms
2021-12-02 03:51:52.698 Info App: User policy for Frog. EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
2021-12-02 03:51:52.799 Error Server: Error processing request
	*** Error Report ***
	Version: 4.7.0.18
	Command line: /usr/local/lib/emby-server/system/EmbyServer.exe -os freebsd -ffdetect /usr/local/lib/emby-server/bin/ffdetect -ffmpeg /usr/local/lib/emby-server/bin/ffmpeg -ffprobe /usr/local/lib/emby-server/bin/ffprobe -programdata /var/db/emby-server -updatepackage emby-server-freebsd12_{version}_amd64.pkg
	Operating system: Unix 12.2.10.0 
	Framework: Mono: 6.8.0.123 (tarball Sun Nov 28 09:12:31 UTC 2021)
	OS/Process: X64/X64
	Runtime: usr/local/lib/mono/4.5/mscorlib.dll
	Processor count: 4
	Data path: /var/db/emby-server
	Application path: /usr/local/lib/emby-server/system
	System.Exception: System.Exception: No video encoder found for 'h264'
	
	
	>>>>>>  FindVideoEncoder - Media: h264, UseHardwareCodecs: True, Mode: Automatic
	
	  at Emby.Server.MediaEncoding.Encoder.TranscodingCommandBuilder.FindVideoEncoder (Emby.Server.MediaEncoding.Encoder.EncodingJobInfo state, MediaBrowser.Controller.MediaEncoding.CodecParameterContext parameterContext) [0x00189] in <095b94259cb046dc86cae741cf0f05a6>:0 
	  at Emby.Server.MediaEncoding.Encoder.TranscodingCommandBuilder.HlsGetCommandLineArguments (System.String outputPath, Emby.Server.MediaEncoding.Api.StreamState state, System.Int32 startNumber, System.Boolean createSubtitleParameters, System.Boolean isForTv, System.String segmentFileExtension) [0x00059] in <095b94259cb046dc86cae741cf0f05a6>:0 
	  at Emby.Server.MediaEncoding.Api.Hls.DynamicHlsService.GetCommandLineArguments (System.String outputPath, Emby.Server.MediaEncoding.Api.StreamState state) [0x00016] in <095b94259cb046dc86cae741cf0f05a6>:0 
	  at Emby.Server.MediaEncoding.Api.BaseStreamingService.StartFfMpeg (Emby.Server.MediaEncoding.Api.StreamState state, System.String outputPath, System.Threading.CancellationToken cancellationToken, System.Boolean acquireResources) [0x0034f] in <095b94259cb046dc86cae741cf0f05a6>:0 
	  at Emby.Server.MediaEncoding.Api.Hls.DynamicHlsService.GetDynamicSegment (Emby.Server.MediaEncoding.Api.StreamRequest request, System.String playlistId, System.String segmentId, System.Int32 subtitleStreamIndex) [0x007af] in <095b94259cb046dc86cae741cf0f05a6>:0 
	  at Emby.Server.Implementations.Services.ServiceController.GetTaskResult (System.Threading.Tasks.Task task) [0x00081] in <be5f77e86a094ef0baa226dd0a4168c0>:0 
	  at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync (Emby.Server.Implementations.HttpServer.HttpListenerHost appHost, MediaBrowser.Model.Services.IRequest httpReq, MediaBrowser.Model.Services.IResponse httpRes, Emby.Server.Implementations.Services.RestPath restPath, System.String responseContentType, System.Threading.CancellationToken cancellationToken) [0x001da] in <be5f77e86a094ef0baa226dd0a4168c0>:0 
	  at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler (MediaBrowser.Model.Services.IRequest httpReq, System.ReadOnlyMemory`1[T] urlString, System.ReadOnlyMemory`1[T] localPath, System.Threading.CancellationToken cancellationToken) [0x00b0b] in <be5f77e86a094ef0baa226dd0a4168c0>:0 
	Source: mscorlib
	TargetSite: Void Throw()
	
2021-12-02 03:51:52.808 Info App: User policy for Frog. EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
2021-12-02 03:51:52.906 Error Server: Error processing request
	*** Error Report ***
	Version: 4.7.0.18
	Command line: /usr/local/lib/emby-server/system/EmbyServer.exe -os freebsd -ffdetect /usr/local/lib/emby-server/bin/ffdetect -ffmpeg /usr/local/lib/emby-server/bin/ffmpeg -ffprobe /usr/local/lib/emby-server/bin/ffprobe -programdata /var/db/emby-server -updatepackage emby-server-freebsd12_{version}_amd64.pkg
	Operating system: Unix 12.2.10.0 
	Framework: Mono: 6.8.0.123 (tarball Sun Nov 28 09:12:31 UTC 2021)
	OS/Process: X64/X64
	Runtime: usr/local/lib/mono/4.5/mscorlib.dll
	Processor count: 4
	Data path: /var/db/emby-server
	Application path: /usr/local/lib/emby-server/system
	System.Exception: System.Exception: No video encoder found for 'h264'
	
	
	>>>>>>  FindVideoEncoder - Media: h264, UseHardwareCodecs: True, Mode: Automatic
	
	  at Emby.Server.MediaEncoding.Encoder.TranscodingCommandBuilder.FindVideoEncoder (Emby.Server.MediaEncoding.Encoder.EncodingJobInfo state, MediaBrowser.Controller.MediaEncoding.CodecParameterContext parameterContext) [0x00189] in <095b94259cb046dc86cae741cf0f05a6>:0 
	  at Emby.Server.MediaEncoding.Encoder.TranscodingCommandBuilder.HlsGetCommandLineArguments (System.String outputPath, Emby.Server.MediaEncoding.Api.StreamState state, System.Int32 startNumber, System.Boolean createSubtitleParameters, System.Boolean isForTv, System.String segmentFileExtension) [0x00059] in <095b94259cb046dc86cae741cf0f05a6>:0 
	  at Emby.Server.MediaEncoding.Api.Hls.DynamicHlsService.GetCommandLineArguments (System.String outputPath, Emby.Server.MediaEncoding.Api.StreamState state) [0x00016] in <095b94259cb046dc86cae741cf0f05a6>:0 
	  at Emby.Server.MediaEncoding.Api.BaseStreamingService.StartFfMpeg (Emby.Server.MediaEncoding.Api.StreamState state, System.String outputPath, System.Threading.CancellationToken cancellationToken, System.Boolean acquireResources) [0x0034f] in <095b94259cb046dc86cae741cf0f05a6>:0 
	  at Emby.Server.MediaEncoding.Api.Hls.DynamicHlsService.GetDynamicSegment (Emby.Server.MediaEncoding.Api.StreamRequest request, System.String playlistId, System.String segmentId, System.Int32 subtitleStreamIndex) [0x007af] in <095b94259cb046dc86cae741cf0f05a6>:0 
	  at Emby.Server.Implementations.Services.ServiceController.GetTaskResult (System.Threading.Tasks.Task task) [0x00081] in <be5f77e86a094ef0baa226dd0a4168c0>:0 
	  at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync (Emby.Server.Implementations.HttpServer.HttpListenerHost appHost, MediaBrowser.Model.Services.IRequest httpReq, MediaBrowser.Model.Services.IResponse httpRes, Emby.Server.Implementations.Services.RestPath restPath, System.String responseContentType, System.Threading.CancellationToken cancellationToken) [0x001da] in <be5f77e86a094ef0baa226dd0a4168c0>:0 
	  at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler (MediaBrowser.Model.Services.IRequest httpReq, System.ReadOnlyMemory`1[T] urlString, System.ReadOnlyMemory`1[T] localPath, System.Threading.CancellationToken cancellationToken) [0x00b0b] in <be5f77e86a094ef0baa226dd0a4168c0>:0 
	Source: mscorlib
	TargetSite: Void Throw()
	
2021-12-02 03:51:52.919 Info SessionManager: Playback stopped reported by app Emby Web 4.7.0.18 playing Something to Fill the Hole. Stopped at 0 ms

 

Edited by FrogMaster
Additional Info
Link to comment
Share on other sites

FrogMaster

I'm able to downgrade to the stable release without any issues and media playback functions. However, I would like to use the BETA for the additional fixes and features that are available. 

I've looked across the web but unfortunately I can't find any solutions for resolving the " ld-elf.so.1: Shared object "libtesseract.so.4" not found, required by "libavfilter.so.8""
I had no issues with 4.7.0.15 but it appears this beta release package is no longer available. 4.7.0.17 displays the same failures as 4.7.0.18

Update:

I've noticed that 4.7.0.18 will allow playback from the Emby Theatre app but it won't allow playback VIA Google Chrome or any other web browser that I try. 

Edited by FrogMaster
Link to comment
Share on other sites

alucryd

I'll be publishing another beta later today. The lib should have been picked up automatically in the system paths, but it doesn't seem to be the case. I'll explicitly add the system path, will let you know when it's up.

Link to comment
Share on other sites

FrogMaster
1 hour ago, alucryd said:

It's up on GitHub! Replaced the previous file, please let me know how it goes.

Well; I attempted to update again to the newest file but unfortunately I encounter the same errors. 
I opted to delete the virtual machine that Emby was hosted in and perform a completely fresh reinstall, this seems to have corrected the issue. 

Link to comment
Share on other sites

4 minutes ago, FrogMaster said:

Well; I attempted to update again to the newest file but unfortunately I encounter the same errors. 
I opted to delete the virtual machine that Emby was hosted in and perform a completely fresh reinstall, this seems to have corrected the issue. 

That's interesting, thanks for the feedback.

Link to comment
Share on other sites

2 hours ago, quietday said:

Same issue, logs attached. Working until beta 4.7.0.17.

Content fails playback on devices that require transcoding.

ffmpeg-transcode-774bd232-c264-4143-940d-0a9196a35ce7_1.txt 2.42 kB · 1 download embyserver(1).txt 81.32 kB · 1 download

Hi, did you run the install steps again from the website to install dependencies?

Link to comment
Share on other sites

FrogMaster

I had to nuke my VM and do a fresh install to correct this problem. The issue resides somewhere with updating from a version that didn't require the Tesseract dependency to one of the latest which does. 

As mentioned it does indeed cause failures on players that require transcoding. 

  • Like 1
Link to comment
Share on other sites

  • 3 weeks later...
NiiWiiCamo

I'm not sure if this counts as necroing, but I'm currently trying to switch to TrueNAS core and having a similar issue with both the available plugin as well as a manual install in a clean jail. The jail is setup with 12.3-RELEASE, as 12.2-RELEASE-p11 didn't work before either. Since I've still got my laptop running ubuntu server for my dedicated Emby server I can confirm that the files are not corrupt.

From the ffmpeg log for any given video file: (full transcode log)

ld-elf.so.1: Shared object "libtesseract.so.4.1.3" not found, required by "libavfilter.so.8"

For the manual install I tried version 4.6.7.0 as well as the betas freebsd12_4.7.0.18 and freebsd12_4.7.0.19. All installs were preceded by the requirements on the FreeBSD install page for the beta, and everything seems to have installed without errors.

tesseract -v:

tesseract 4.1.1
 leptonica-1.76.0
  libgif 5.2.1 : libjpeg 8d (libjpeg-turbo 2.1.2) : libpng 1.6.37+apng : libtiff 4.3.0 : zlib 1.2.11 : libwebp 1.2.1
 Found AVX512BW
 Found AVX512F
 Found AVX2
 Found AVX
 Found FMA
 Found SSE

Could the problem be a version mismatch between the wanted version and the version currently in the pkg sources? Does the error even point out a version or does that number mean something different and the similarity is just a coincidence?

 

Thanks to all for the awesome work and this awesome forum!

Nils

Link to comment
Share on other sites

quietday

Tested and can confirm transcoding is still not working with the latest .19 beta on any of the TrueNAS base systems (12.x-RELEASE).

If someone has an archive of the 4.7.0.x builds, I think I'd like to roll back for a while.

Link to comment
Share on other sites

NiiWiiCamo

It seems to be a problem only with the beta, I have successfully gotten it to run after a full host reboot and manual jail creation with the prerequisites and the emby-server package which installs 4.6.4.0 will try updating to 4.6.7.0 tomorrow probably.

So at least for me I've got a working version on the new server. Now to get all those custom scripts for media ingestion working...

Link to comment
Share on other sites

herpiderp
On 1/3/2022 at 10:34 PM, NiiWiiCamo said:

I'm not sure if this counts as necroing, but I'm currently trying to switch to TrueNAS core and having a similar issue with both the available plugin as well as a manual install in a clean jail. The jail is setup with 12.3-RELEASE, as 12.2-RELEASE-p11 didn't work before either. Since I've still got my laptop running ubuntu server for my dedicated Emby server I can confirm that the files are not corrupt.

From the ffmpeg log for any given video file: (full transcode log)

ld-elf.so.1: Shared object "libtesseract.so.4.1.3" not found, required by "libavfilter.so.8"

For the manual install I tried version 4.6.7.0 as well as the betas freebsd12_4.7.0.18 and freebsd12_4.7.0.19. All installs were preceded by the requirements on the FreeBSD install page for the beta, and everything seems to have installed without errors.

tesseract -v:

tesseract 4.1.1
 leptonica-1.76.0
  libgif 5.2.1 : libjpeg 8d (libjpeg-turbo 2.1.2) : libpng 1.6.37+apng : libtiff 4.3.0 : zlib 1.2.11 : libwebp 1.2.1
 Found AVX512BW
 Found AVX512F
 Found AVX2
 Found AVX
 Found FMA
 Found SSE

Could the problem be a version mismatch between the wanted version and the version currently in the pkg sources? Does the error even point out a version or does that number mean something different and the similarity is just a coincidence?

 

Thanks to all for the awesome work and this awesome forum!

Nils

Hello,

I don't know if the 4.7.0.19 beta borked it or that Tesseract got updated to version 5. Because I updated Emby and the jail at the same time. But all was fine with 4.7.0.18.

I got the same error as you did.

Error FfmpegManager: ProcessRun 'ffmpeg -hide_banner -version' Error Output:
	ld-elf.so.1: Shared object "libtesseract.so.4.1.3" not found, required by "libavfilter.so.8"

System.Exception: System.Exception: Error running ffprobe for file:"/tmp/test.mkv" - ld-elf.so.1: Shared object "libtesseract.so.4.1.3" not found, required by "libavfilter.so.8"

I fixed it by compiling Tesseract 4.1.3 from source and symlinking libtesseract.so.4.0.1 to libtesseract.so.4.1.3. Because for some reason the lib got compiled to libtesseract.so.4.0.1. Since Emby is asking for the 4.1.3 lib and I couldn't find a built package for it I had to compile it myself. But it would probably work with version 4.1.1 too.

ln -s /usr/local/lib/libtesseract.so.4.0.1 /usr/local/lib/libtesseract.so.4.1.3

During the build process I got errors about timeval and fixed it by adding #include <sys/time.h> in file /src/ccutil/ocrclass.h.Which you can find in the folder you get after unpacking the source.

Edited by herpiderp
  • Thanks 1
Link to comment
Share on other sites

alucryd

You should be able to use tesseract from the ports tree as it is the one we're using. Our FreeBSD machines are updated regularly following latest, so you can use the freshports page to know what version is needed (even though just doing a pkg install should bring the right one most of the time).

https://www.freshports.org/graphics/tesseract/

I'm updating them as I write, meaning the next beta will require 4.1.1, 5.0.0 and 5.0.0 for FreeBSD 11, 12 and 13 respectively.

Link to comment
Share on other sites

Hi!

I have just come to the same problem with a FreeBSD 12.2. jail in XigmaNAS I have just updated today. I am quarterly. The problem happens with Emby Beta 4.0.7.18 and 4.0.7.19.

The tesseract package version which has been installed has been the 5.0.0_1. Then the required libtesseract.so.4.1.3 is not found:

2022-01-09 17:55:33.970 Error FfmpegManager: ProcessRun 'ffmpeg -hide_banner -hwaccels' Error Output:
	ld-elf.so.1: Shared object "libtesseract.so.4.1.3" not found, required by "libavfilter.so.8"

Before this update, the tesseract package was version 4.1.1_4

Quote

tesseract: 4.1.1_4 -> 5.0.0_1

Further Information:

root@Emby:~ # tesseract -v
tesseract 5.0.0
 leptonica-1.76.0
  libgif 5.2.1 : libjpeg 8d (libjpeg-turbo 2.1.2) : libpng 1.6.37+apng : libtiff 4.3.0 : zlib 1.2.11 : libwebp 1.2.1
 Found OpenMP 201511
 Found libarchive 3.5.2 zlib/1.2.11 liblzma/5.2.5 bz2lib/1.0.8 liblz4/1.9.3 libzstd/1.5.0
 Found libcurl/7.80.0 OpenSSL/1.1.1h zlib/1.2.11 libssh2/1.10.0 nghttp2/1.46.0
root@Emby:~ # pkg info tesseract
tesseract-5.0.0_1
Name           : tesseract
Version        : 5.0.0_1
Installed on   : Sun Jan  9 14:41:13 2022 UTC
Origin         : graphics/tesseract
Architecture   : FreeBSD:12:amd64
Prefix         : /usr/local
Categories     : graphics
Licenses       : APACHE20
Maintainer     : pkubaj@FreeBSD.org
WWW            : https://github.com/tesseract-ocr/tesseract
Comment        : Commercial quality open source OCR engine
Options        :
        DOCS           : on
        TOOLS          : on
Shared Libs required:
        libicuuc.so.70
        libpangoft2-1.0.so.0
        libglib-2.0.so.0
        libgobject-2.0.so.0
        libpango-1.0.so.0
        libharfbuzz.so.0
        libfreetype.so.6
        libarchive.so.13
        libcairo.so.2
        liblept.so.5
        libicui18n.so.70
        libintl.so.8
        libfontconfig.so.1
        libicudata.so.70
        libpangocairo-1.0.so.0
        libcurl.so.4
Shared Libs provided:
        libtesseract.so.5
Annotations    :
        FreeBSD_version: 1202000
        cpe            : cpe:2.3:a:tesseract_project:tesseract:5.0.0:::::freebsd12:x64:1
        repo_type      : binary
        repository     : FreeBSD
Flat size      : 13.4MiB
Description    :
The Tesseract OCR engine was one of the top 3 engines in the 1995 UNLV
Accuracy test. Between 1995 and 2006 it had little work done on it, but
it is probably one of the most accurate open source OCR engines
available. The source code will read a binary, grey or color image and
output text.

WWW: https://github.com/tesseract-ocr/tesseract
root@Emby:~ # ls -la /usr/local/lib/libtesseract.*
-rw-r--r--  1 root  wheel  7844042 Jan  4 21:59 /usr/local/lib/libtesseract.a
lrwxr-xr-x  1 root  wheel       21 Jan  4 21:59 /usr/local/lib/libtesseract.so -> libtesseract.so.5.0.0
lrwxr-xr-x  1 root  wheel       21 Jan  4 21:59 /usr/local/lib/libtesseract.so.5 -> libtesseract.so.5.0.0
-rwxr-xr-x  1 root  wheel  3470552 Jan  4 21:59 /usr/local/lib/libtesseract.so.5.0.0


So, I am eager to test the next beta build for FreeBSD.

Currently, my Emby installation cannot extract any metadata from any video 🤒

Thanks!

Edited by dml33
Tesseract former version and comment about no metadata is extracted from videos
Link to comment
Share on other sites

quietday
On 1/6/2022 at 2:38 AM, alucryd said:

You should be able to use tesseract from the ports tree as it is the one we're using.

Is testing for FreeBSD being done in jails or base systems? I'm doing this on TrueNAS and haven't gotten any of the latest betas working using the provided 5.0.0 package from ports or otherwise, just 4.1.3.

It works elsewhere. I'm new to FreeBSD and need to read up on jail management.

Link to comment
Share on other sites

Hi.

This issue was critic for me, since no metadata was obtained from any video and my library lacked information about the movies, subtitles, etc. Then, I had to look for a workaround, and I found it. 

In another jail, I could install former tesseract 4.1.1_4 package.

Copy of old packages are stored in /var/cache/pkg. Thus, I copied my old tesseract-4.1.1_4~88be0cbe7d.pkg and tesseract-data-4.1.0~02b1e94d8f.pkg packages to the other jail and install them, with all the needed dependences:

Quote

 

pkg install leptonica

pkg install pango

pkg install tesseract-data-4.1.0~02b1e94d8f.pkg

pkg add tesseract-4.1.1_4~88be0cbe7d.pkg

 

Then, I took the /usr/local/lib/libtesseract.so.4.0.1 file, put it in my Emby jail and made the appropriate links:

Quote

 

ln -s libtesseract.so.4.0.1 libtesseract.so.4.1.3

ln -s libtesseract.so.4.0.1 libtesseract.so.4

 

The result was:

Quote

root@Emby:/ # ls -latr /usr/local/lib/libtesseract.*
-rwxr-xr-x  1 root  wheel  3470552 Jan  4 21:59 /usr/local/lib/libtesseract.so.5.0.0
lrwxr-xr-x  1 root  wheel       21 Jan  4 21:59 /usr/local/lib/libtesseract.so.5 -> libtesseract.so.5.0.0
lrwxr-xr-x  1 root  wheel       21 Jan  4 21:59 /usr/local/lib/libtesseract.so -> libtesseract.so.5.0.0
-rw-r--r--  1 root  wheel  7844042 Jan  4 21:59 /usr/local/lib/libtesseract.a
-rwxr-xr-x  1 root  wheel  3604208 Jan  9 21:00 /usr/local/lib/libtesseract.so.4.0.1
lrwxr-xr-x  1 root  wheel       21 Jan  9 21:41 /usr/local/lib/libtesseract.so.4.1.3 -> libtesseract.so.4.0.1
lrwxr-xr-x  1 root  wheel       21 Jan  9 21:42 /usr/local/lib/libtesseract.so.4 -> libtesseract.so.4.0.1

Then, in Emby I scanned for new library files and everything worked fine, as it used to...

I hope, new Beta solved this without any workaround.

 

 

Edited by dml33
Link to comment
Share on other sites

Quote

I hope, new Beta solved this without any workaround.

Let us know once it is available. Thanks.

Link to comment
Share on other sites

On 1/10/2022 at 6:28 PM, Luke said:

Let us know once it is available. Thanks.

Hi.

I installed the new 4.7.0.20 beta release in my FreeBSD 12.2 jail and it works fine! 

I removed the libtesseract 4 library and links I placed as workaround here:

 

 

This is the information about the new 4.7.0.20 Emby-server package. It depends now on tesseract 5:

Quote

root@Emby:~ # pkg info emby-server                                              emby-server-4.7.0.20_1
Name           : emby-server
Version        : 4.7.0.20_1
Installed on   : Wed Jan 12 16:04:15 2022 UTC
Origin         : multimedia/emby-server-4.7.0.20
Architecture   : FreeBSD:12:amd64
Prefix         : /usr/local
Categories     : multimedia
Licenses       : UNKNOWN
Maintainer     : apps@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
        libtesseract.so.5
        libzvbi.so.0
        libtheoraenc.so.1
        libfreetype.so.6
        libopus.so.0
        libfribidi.so.0
        libvorbisenc.so.2
        libva-drm.so.2
        libpng16.so.16
        libwebp.so.7
        libvorbis.so.0
        libdrm.so.2
        libmfx.so.1
        libiconv.so.2
        libfontconfig.so.1
        libgnutls.so.30
        libass.so.9
        libOpenCL.so.1
        libtheoradec.so.1
        libva.so.2
Shared Libs provided:
        libpostproc.so.56
        libswscale.so.6
        libavutil.so.57
        libavfilter.so.8
        libavcodec.so.59
        libavdevice.so.59
        libavformat.so.59
        libswresample.so.4
Annotations    :
        FreeBSD_version: 1202000
Flat size      : 131MiB
Description    :
Emby Server is a personal media server with apps on just about every device

Thank you!

Link to comment
Share on other sites

8 minutes ago, dml33 said:

Hi.

I installed the new 4.7.0.20 beta release in my FreeBSD 12.2 jail and it works fine! 

I removed the libtesseract 4 library and links I placed as workaround here:

 

 

This is the information about the new 4.7.0.20 Emby-server package. It depends now on tesseract 5:

Thank you!

Thanks for the feedback !

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
×
×
  • Create New...