Jump to content

Recommended Posts

Posted

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.
    

Posted

Hi there, please attach the complete Emby server log file. Thanks.

  • 2 weeks later...
alucryd
Posted

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

Posted

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 🙂

Posted
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?

Posted

Yes, I will have no issue uploading the binary to replace the old one and make sure everything works appropriately 

  • Thanks 1
Posted

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()

 

Posted
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.

Posted (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 by Darkheir
Posted

When you tested the binaries how exactly did you apply them?

Posted

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

  • 1 month later...
Posted

@Darkheir can you please try installing Emby server 4.8.6 and let us know if that helps? Thanks !

Darkheir
Posted

Tried the latest version and it is still not working.

I just replaced the ffmpeg files with old ones (both the binaries and the libs) and it works for me.

  • 2 weeks later...
Posted
On 5/14/2024 at 5:14 AM, Darkheir said:

Tried the latest version and it is still not working.

I just replaced the ffmpeg files with old ones (both the binaries and the libs) and it works for me.

Hi, what old ones?

Darkheir
Posted

I used the ffmpeg binary shipped with the version 4.7.14 and it works well so far.

Posted

@Darkheir There should be a fix for that on our beta channel. Are you able to try that? 
Just be aware that you won't be able to rollback to stable if you do. Thanks.

  • 4 weeks later...
Posted

The solution I have right now is working well so I think I will stay with it. I don't want to take the risk to have to reset my emby server again if it doesn't work.

  • Thanks 1
Posted
22 hours ago, Darkheir said:

The solution I have right now is working well so I think I will stay with it. I don't want to take the risk to have to reset my emby server again if it doesn't work.

OK thanks for the update.

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...