Darkheir 1 Posted March 6 Share Posted March 6 Hello, Since I updated from 4.7.14 to 4.8.3.0 the external subtitles are not rendered anymore on videos. Here's some information about the NAS: Version: DSM 7.1.1-42962 Update 5 Model: DS213j CPU: MARVELL Armada 370 88F6707 It seems that all ffmpeg related operations are failing, here are some logs of the errors: 2024-03-06 16:29:09.193 Info Main: Emby Command line: /volume1/@appstore/EmbyServer/system/EmbyServer.exe -programdata /var/packages/EmbyServer/var -ffdetect /var/packages/EmbyServer/target/bin/ffdetect -ffmpeg /var/packages/EmbyServer/target/bin/ffmpeg -ffprobe /var/packages/EmbyServer/target/bin/ffprobe -defaultdirectory /volume1/Public -updatepackage emby-server-synology7-mono_{version}_armv7_legacy.spk -pidfile /var/packages/EmbyServer/var/EmbyServer.pid -nolocalportconfig -noskia -ignore_vaapi_enabled_flag Operating system: Linux version 3.2.101 (root@build7) (gcc version 8.5.0 (GCC) ) #42962 Fri Mar 24 00:28:03 CST 2023 Framework: Mono: 6.12.0.182 (tarball Thu Jan 19 10:28:52 PM UTC 2023) OS/Process: X86/X86 Runtime: volume1/@appstore/EmbyServer/lib/mono/4.5/mscorlib.dll Processor count: 1 Data path: /var/packages/EmbyServer/var Application path: /volume1/@appstore/EmbyServer/system 2024-03-06 16:29:38.836 Info FfmpegManager: ProcessRun 'ffmpeg -hide_banner -version' Execute: /var/packages/EmbyServer/target/bin/ffmpeg -hide_banner -version 2024-03-06 16:29:39.849 Info App: Starting entry point Emby.Dlna.Main.DlnaEntryPoint 2024-03-06 16:29:41.036 Info FfmpegManager: ProcessRun 'ffmpeg -hide_banner -version' Process exited with code 132 - Failed 2024-03-06 16:29:41.101 Error FfmpegManager: ProcessRun 'ffmpeg -hide_banner -version' Output: 2024-03-06 16:29:41.103 Error FfmpegManager: ProcessRun 'ffmpeg -hide_banner -version' Error Output: 2024-03-06 17:11:51.835 Info SubtitleEncoder: ProcessRun 'ffmpeg-subtitle_convert' Process exited with code 132 - Failed 2024-03-06 17:11:51.840 Error SubtitleEncoder: ffmpeg subtitle conversion failed for /volume1/video/subtitle.eng.srt 2024-03-06 17:11:51.841 Error SubtitleEncoder: ProcessRun 'ffmpeg-subtitle_convert' Output: 2024-03-06 17:11:51.841 Error SubtitleEncoder: ProcessRun 'ffmpeg-subtitle_convert' Error Output: 2024-03-06 17:11:51.972 Error App: Error getting subtitles *** Error Report *** Version: 4.8.3.0 Command line: /volume1/@appstore/EmbyServer/system/EmbyServer.exe -programdata /var/packages/EmbyServer/var -ffdetect /var/packages/EmbyServer/target/bin/ffdetect -ffmpeg /var/packages/EmbyServer/target/bin/ffmpeg -ffprobe /var/packages/EmbyServer/target/bin/ffprobe -defaultdirectory /volume1/Public -updatepackage emby-server-synology7-mono_{version}_armv7_legacy.spk -pidfile /var/packages/EmbyServer/var/EmbyServer.pid -nolocalportconfig -noskia -ignore_vaapi_enabled_flag Operating system: Linux version 3.2.101 (root@build7) (gcc version 8.5.0 (GCC) ) #42962 Fri Mar 24 00:28:03 CST 2023 Framework: Mono: 6.12.0.182 (tarball Thu Jan 19 10:28:52 PM UTC 2023) OS/Process: X86/X86 Runtime: volume1/@appstore/EmbyServer/lib/mono/4.5/mscorlib.dll Processor count: 1 Data path: /var/packages/EmbyServer/var Application path: /volume1/@appstore/EmbyServer/system System.Exception: System.Exception: ffmpeg subtitle conversion failed for /volume1/video/subtitle.eng.srt at Emby.Server.MediaEncoding.Subtitles.SubtitleEncoder.ConvertExternalSubtitleInternal (MediaBrowser.Model.Entities.MediaStream subtitleStream, System.Collections.Generic.IDictionary`2[TKey,TValue] requestHeaders, System.String outputPath, Emby.Media.Model.Enums.SubtitleMediaTypes outputCodec, System.Nullable`1[T] startTime, System.Nullable`1[T] endTime, System.Boolean preserveOriginalTimestamps, System.Threading.CancellationToken cancellationToken) [0x0073a] in <3f3cc22c13094dd1a8ace54832e3e042>:0 at Emby.Server.MediaEncoding.Subtitles.SubtitleEncoder.ConvertExternalSubtitle (MediaBrowser.Model.Entities.MediaStream subtitleStream, System.Collections.Generic.IDictionary`2[TKey,TValue] requestHeaders, System.String outputPath, Emby.Media.Model.Enums.SubtitleMediaTypes outputCodec, System.Nullable`1[T] startTime, System.Nullable`1[T] endTime, System.Boolean preserveOriginalTimestamps, System.Threading.CancellationToken cancellationToken) [0x0013f] in <3f3cc22c13094dd1a8ace54832e3e042>:0 at Emby.Server.MediaEncoding.Subtitles.SubtitleEncoder.GetReadableFile (System.String mediaPath, MediaBrowser.Model.MediaInfo.MediaProtocol mediaSourceProtocol, System.Boolean isAudio, System.Collections.Generic.IDictionary`2[TKey,TValue] requestHeaders, MediaBrowser.Model.Entities.MediaStream subtitleStream, System.String outputFormat, System.Int64 startTimeTicks, System.Int64 endTimeTicks, System.Boolean preserveOriginalTimestamps, MediaBrowser.Model.Dlna.EncodingContext encodingContext, System.Threading.CancellationToken cancellationToken) [0x0037f] in <3f3cc22c13094dd1a8ace54832e3e042>:0 at Emby.Server.MediaEncoding.Subtitles.SubtitleEncoder.GetSubtitles (System.String inputPath, MediaBrowser.Model.MediaInfo.MediaProtocol inputProtocol, System.Boolean isAudio, System.Collections.Generic.IDictionary`2[TKey,TValue] requestHeaders, MediaBrowser.Model.Entities.MediaStream subtitleStream, System.String outputFormat, System.Int64 startTimeTicks, System.Int64 endTimeTicks, System.Boolean preserveOriginalTimestamps, MediaBrowser.Model.Dlna.EncodingContext encodingContext, System.Threading.CancellationToken cancellationToken) [0x0011a] in <3f3cc22c13094dd1a8ace54832e3e042>:0 at Emby.Api.Subtitles.SubtitleService.GetSubtitles (Emby.Api.Subtitles.GetSubtitle request, System.Threading.CancellationToken cancellationToken) [0x002fc] in <53aa55c1ddf84136832a4775a5507478>:0 at Emby.Api.Subtitles.SubtitleService.Get (Emby.Api.Subtitles.GetSubtitle request) [0x00265] in <53aa55c1ddf84136832a4775a5507478>:0 Source: mscorlib TargetSite: Void Throw() I tried to execute the ffmpeg binary packaged with the server but I' m not able to run it. Link to comment Share on other sites More sharing options...
Luke 37071 Posted March 6 Share Posted March 6 Hi there, please attach the complete Emby server log file. Thanks. Link to comment Share on other sites More sharing options...
Darkheir 1 Posted March 6 Author Share Posted March 6 Here's the full server log file embyserver.txt Link to comment Share on other sites More sharing options...
alucryd 216 Posted March 20 Share Posted March 20 I identified a potential culprit, I can provide a test ffmpeg build if you know your way around SSH, or you can wait for the next beta to try it out, but you'll probably be stuck on the beta afterwards, not sure database is downgradeable @Luke Link to comment Share on other sites More sharing options...
Darkheir 1 Posted March 20 Author Share Posted March 20 Thank you for the answer, I went back to 4.7.14 since I was not able to fix the issue but I could try to upgrade again to the latest version and test your ffmpeg build if it would help you make sure the fix is working Link to comment Share on other sites More sharing options...
Luke 37071 Posted March 20 Share Posted March 20 1 hour ago, Darkheir said: Thank you for the answer, I went back to 4.7.14 since I was not able to fix the issue but I could try to upgrade again to the latest version and test your ffmpeg build if it would help you make sure the fix is working Hi, are you handy with SSH? Link to comment Share on other sites More sharing options...
Darkheir 1 Posted March 20 Author Share Posted March 20 Yes, I will have no issue uploading the binary to replace the old one and make sure everything works appropriately 1 Link to comment Share on other sites More sharing options...
alucryd 216 Posted March 21 Share Posted March 21 (edited) There you go https://files.alucryd.xyz/ffmpeg-2023_06_25-armv7.tar.xz Edited March 21 by alucryd Link to comment Share on other sites More sharing options...
Darkheir 1 Posted March 25 Author Share Posted March 25 Just tried your binaries and I have the following error: 2024-03-25 13:49:13.575 Info SubtitleEncoder: ProcessRun 'ffmpeg-subtitle_convert' Execute: /var/packages/EmbyServer/target/bin/ffmpeg -loglevel +timing -y -sub_charenc:s:0 ASCII -i "/volume1/video/myvideo.srt" -map 0:0 -vn -an -c:s:0 webvtt "/var/packages/EmbyServer/var/cache/temp/0afe09fd13214cdfb4006ab3fcb46c30.vtt" 2024-03-25 13:49:13.633 Info SubtitleEncoder: ProcessRun 'ffmpeg-subtitle_convert' Process exited with code 127 - Failed 2024-03-25 13:49:13.638 Error SubtitleEncoder: ffmpeg subtitle conversion failed for /volume1/video/myvideo.srt 2024-03-25 13:49:13.639 Error SubtitleEncoder: ProcessRun 'ffmpeg-subtitle_convert' Output: 2024-03-25 13:49:13.641 Error SubtitleEncoder: ProcessRun 'ffmpeg-subtitle_convert' Error Output: /var/packages/EmbyServer/target/bin/ffmpeg: error while loading shared libraries: /var/packages/EmbyServer/target/lib/libavdevice.so.59: internal error 2024-03-25 13:49:13.711 Error App: Error getting subtitles *** Error Report *** Version: 4.8.3.0 Command line: /volume1/@appstore/EmbyServer/system/EmbyServer.exe -programdata /var/packages/EmbyServer/var -ffdetect /var/packages/EmbyServer/target/bin/ffdetect -ffmpeg /var/packages/EmbyServer/target/bin/ffmpeg -ffprobe /var/packages/EmbyServer/target/bin/ffprobe -defaultdirectory /volume1/Public -updatepackage emby-server-synology7-mono_{version}_armv7_legacy.spk -pidfile /var/packages/EmbyServer/var/EmbyServer.pid -nolocalportconfig -noskia -ignore_vaapi_enabled_flag Operating system: Linux version 3.2.101 (root@build7) (gcc version 8.5.0 (GCC) ) #42962 Fri Mar 24 00:28:03 CST 2023 Framework: Mono: 6.12.0.182 (tarball Thu Jan 19 10:28:52 PM UTC 2023) OS/Process: X86/X86 Runtime: volume1/@appstore/EmbyServer/lib/mono/4.5/mscorlib.dll Processor count: 1 Data path: /var/packages/EmbyServer/var Application path: /volume1/@appstore/EmbyServer/system System.Exception: System.Exception: ffmpeg subtitle conversion failed for /volume1/video/myvideo.srt at Emby.Server.MediaEncoding.Subtitles.SubtitleEncoder.ConvertExternalSubtitleInternal (MediaBrowser.Model.Entities.MediaStream subtitleStream, System.Collections.Generic.IDictionary`2[TKey,TValue] requestHeaders, System.String outputPath, Emby.Media.Model.Enums.SubtitleMediaTypes outputCodec, System.Nullable`1[T] startTime, System.Nullable`1[T] endTime, System.Boolean preserveOriginalTimestamps, System.Threading.CancellationToken cancellationToken) [0x0073a] in <3f3cc22c13094dd1a8ace54832e3e042>:0 at Emby.Server.MediaEncoding.Subtitles.SubtitleEncoder.ConvertExternalSubtitle (MediaBrowser.Model.Entities.MediaStream subtitleStream, System.Collections.Generic.IDictionary`2[TKey,TValue] requestHeaders, System.String outputPath, Emby.Media.Model.Enums.SubtitleMediaTypes outputCodec, System.Nullable`1[T] startTime, System.Nullable`1[T] endTime, System.Boolean preserveOriginalTimestamps, System.Threading.CancellationToken cancellationToken) [0x0013f] in <3f3cc22c13094dd1a8ace54832e3e042>:0 at Emby.Server.MediaEncoding.Subtitles.SubtitleEncoder.GetReadableFile (System.String mediaPath, MediaBrowser.Model.MediaInfo.MediaProtocol mediaSourceProtocol, System.Boolean isAudio, System.Collections.Generic.IDictionary`2[TKey,TValue] requestHeaders, MediaBrowser.Model.Entities.MediaStream subtitleStream, System.String outputFormat, System.Int64 startTimeTicks, System.Int64 endTimeTicks, System.Boolean preserveOriginalTimestamps, MediaBrowser.Model.Dlna.EncodingContext encodingContext, System.Threading.CancellationToken cancellationToken) [0x0037f] in <3f3cc22c13094dd1a8ace54832e3e042>:0 at Emby.Server.MediaEncoding.Subtitles.SubtitleEncoder.GetSubtitles (System.String inputPath, MediaBrowser.Model.MediaInfo.MediaProtocol inputProtocol, System.Boolean isAudio, System.Collections.Generic.IDictionary`2[TKey,TValue] requestHeaders, MediaBrowser.Model.Entities.MediaStream subtitleStream, System.String outputFormat, System.Int64 startTimeTicks, System.Int64 endTimeTicks, System.Boolean preserveOriginalTimestamps, MediaBrowser.Model.Dlna.EncodingContext encodingContext, System.Threading.CancellationToken cancellationToken) [0x0011a] in <3f3cc22c13094dd1a8ace54832e3e042>:0 at Emby.Api.Subtitles.SubtitleService.GetSubtitles (Emby.Api.Subtitles.GetSubtitle request, System.Threading.CancellationToken cancellationToken) [0x002fc] in <53aa55c1ddf84136832a4775a5507478>:0 at Emby.Api.Subtitles.SubtitleService.Get (Emby.Api.Subtitles.GetSubtitle request) [0x00265] in <53aa55c1ddf84136832a4775a5507478>:0 Source: mscorlib TargetSite: Void Throw() Link to comment Share on other sites More sharing options...
Luke 37071 Posted March 26 Share Posted March 26 18 hours ago, Darkheir said: Just tried your binaries and I have the following error: 2024-03-25 13:49:13.575 Info SubtitleEncoder: ProcessRun 'ffmpeg-subtitle_convert' Execute: /var/packages/EmbyServer/target/bin/ffmpeg -loglevel +timing -y -sub_charenc:s:0 ASCII -i "/volume1/video/myvideo.srt" -map 0:0 -vn -an -c:s:0 webvtt "/var/packages/EmbyServer/var/cache/temp/0afe09fd13214cdfb4006ab3fcb46c30.vtt" 2024-03-25 13:49:13.633 Info SubtitleEncoder: ProcessRun 'ffmpeg-subtitle_convert' Process exited with code 127 - Failed 2024-03-25 13:49:13.638 Error SubtitleEncoder: ffmpeg subtitle conversion failed for /volume1/video/myvideo.srt 2024-03-25 13:49:13.639 Error SubtitleEncoder: ProcessRun 'ffmpeg-subtitle_convert' Output: 2024-03-25 13:49:13.641 Error SubtitleEncoder: ProcessRun 'ffmpeg-subtitle_convert' Error Output: /var/packages/EmbyServer/target/bin/ffmpeg: error while loading shared libraries: /var/packages/EmbyServer/target/lib/libavdevice.so.59: internal error 2024-03-25 13:49:13.711 Error App: Error getting subtitles *** Error Report *** Version: 4.8.3.0 Command line: /volume1/@appstore/EmbyServer/system/EmbyServer.exe -programdata /var/packages/EmbyServer/var -ffdetect /var/packages/EmbyServer/target/bin/ffdetect -ffmpeg /var/packages/EmbyServer/target/bin/ffmpeg -ffprobe /var/packages/EmbyServer/target/bin/ffprobe -defaultdirectory /volume1/Public -updatepackage emby-server-synology7-mono_{version}_armv7_legacy.spk -pidfile /var/packages/EmbyServer/var/EmbyServer.pid -nolocalportconfig -noskia -ignore_vaapi_enabled_flag Operating system: Linux version 3.2.101 (root@build7) (gcc version 8.5.0 (GCC) ) #42962 Fri Mar 24 00:28:03 CST 2023 Framework: Mono: 6.12.0.182 (tarball Thu Jan 19 10:28:52 PM UTC 2023) OS/Process: X86/X86 Runtime: volume1/@appstore/EmbyServer/lib/mono/4.5/mscorlib.dll Processor count: 1 Data path: /var/packages/EmbyServer/var Application path: /volume1/@appstore/EmbyServer/system System.Exception: System.Exception: ffmpeg subtitle conversion failed for /volume1/video/myvideo.srt at Emby.Server.MediaEncoding.Subtitles.SubtitleEncoder.ConvertExternalSubtitleInternal (MediaBrowser.Model.Entities.MediaStream subtitleStream, System.Collections.Generic.IDictionary`2[TKey,TValue] requestHeaders, System.String outputPath, Emby.Media.Model.Enums.SubtitleMediaTypes outputCodec, System.Nullable`1[T] startTime, System.Nullable`1[T] endTime, System.Boolean preserveOriginalTimestamps, System.Threading.CancellationToken cancellationToken) [0x0073a] in <3f3cc22c13094dd1a8ace54832e3e042>:0 at Emby.Server.MediaEncoding.Subtitles.SubtitleEncoder.ConvertExternalSubtitle (MediaBrowser.Model.Entities.MediaStream subtitleStream, System.Collections.Generic.IDictionary`2[TKey,TValue] requestHeaders, System.String outputPath, Emby.Media.Model.Enums.SubtitleMediaTypes outputCodec, System.Nullable`1[T] startTime, System.Nullable`1[T] endTime, System.Boolean preserveOriginalTimestamps, System.Threading.CancellationToken cancellationToken) [0x0013f] in <3f3cc22c13094dd1a8ace54832e3e042>:0 at Emby.Server.MediaEncoding.Subtitles.SubtitleEncoder.GetReadableFile (System.String mediaPath, MediaBrowser.Model.MediaInfo.MediaProtocol mediaSourceProtocol, System.Boolean isAudio, System.Collections.Generic.IDictionary`2[TKey,TValue] requestHeaders, MediaBrowser.Model.Entities.MediaStream subtitleStream, System.String outputFormat, System.Int64 startTimeTicks, System.Int64 endTimeTicks, System.Boolean preserveOriginalTimestamps, MediaBrowser.Model.Dlna.EncodingContext encodingContext, System.Threading.CancellationToken cancellationToken) [0x0037f] in <3f3cc22c13094dd1a8ace54832e3e042>:0 at Emby.Server.MediaEncoding.Subtitles.SubtitleEncoder.GetSubtitles (System.String inputPath, MediaBrowser.Model.MediaInfo.MediaProtocol inputProtocol, System.Boolean isAudio, System.Collections.Generic.IDictionary`2[TKey,TValue] requestHeaders, MediaBrowser.Model.Entities.MediaStream subtitleStream, System.String outputFormat, System.Int64 startTimeTicks, System.Int64 endTimeTicks, System.Boolean preserveOriginalTimestamps, MediaBrowser.Model.Dlna.EncodingContext encodingContext, System.Threading.CancellationToken cancellationToken) [0x0011a] in <3f3cc22c13094dd1a8ace54832e3e042>:0 at Emby.Api.Subtitles.SubtitleService.GetSubtitles (Emby.Api.Subtitles.GetSubtitle request, System.Threading.CancellationToken cancellationToken) [0x002fc] in <53aa55c1ddf84136832a4775a5507478>:0 at Emby.Api.Subtitles.SubtitleService.Get (Emby.Api.Subtitles.GetSubtitle request) [0x00265] in <53aa55c1ddf84136832a4775a5507478>:0 Source: mscorlib TargetSite: Void Throw() @Darkheircan you please attach the complete emby server log? Thanks. Link to comment Share on other sites More sharing options...
Darkheir 1 Posted March 26 Author Share Posted March 26 (edited) Here are the log files. I'm under the impression that ffmpeg is not running at all. If I try to run it manually I get # LD_LIBRARY_PATH=./lib bin/ffmpeg bin/ffmpeg: error while loading shared libraries: ./lib/libavdevice.so.59: internal error Could the build provided not be valid for my version of Synology Diskstation ? The install package working for my NAS is emby-server-synology7-mono_4.8.3.0_armv7_legacy embyserver.txt ffmpeg-directstream-e2de0ee5-8f58-4611-aa08-e3deb843f8d4_1.txt Edited March 26 by Darkheir Link to comment Share on other sites More sharing options...
Luke 37071 Posted April 3 Share Posted April 3 When you tested the binaries how exactly did you apply them? Link to comment Share on other sites More sharing options...
Darkheir 1 Posted April 3 Author Share Posted April 3 I replaced the files under /volume1/@appstore/EmbyServer/bin and /volume1/@appstore/EmbyServer/lib by the ones from the archive provided by @alucryd. Then I restarted the server. In any case I'm not able to run ffmpeg manually either as shown in my previous message while it was working with the previous binary Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now