Jump to content

Unable to play H265/HEVC


chinswain
Go to solution Solved by chinswain,

Recommended Posts

chinswain

Hi,

I've upgraded to DSM7 (DS918+) and Emby 4.7.8.0, since then I've been unable to play quite a few video files. It appears to be H265/HEVC that are failing, H264 plays fine. 

I've ran chown -R emby:emby /volume1/@appdata/EmbyServer and set emby to read/write in System internal user, but still showing permission denied in the FFmpeg log:

13:33:20.173 ffmpeg version 5.0.0-emby_2022_05_27-u1 Copyright (c) 2000-2022 the FFmpeg developers and softworkz for Emby LLC
13:33:20.173 built with gcc 8.3.0 (crosstool-NG 1.24.0)
13:33:20.174 Execution Date: 2022-10-31 13:33:20
13:33:20.224 /volume1/TV Shows/Test Show/Season 01/Show Title S01E01.mkv: Permission denied

image.png.29578d22ddfadc9640ea468b40e66840.png

Link to comment
Share on other sites

Hi, it looks like the server is being denied access to the file. Have you taken a look at this?

 

You may need to set the permissions recursively to ensure they are the same at each level.

Link to comment
Share on other sites

FrostByte

Did you check the file/folder permissions?

/volume1/TV Shows/Test Show/Season 01/Show Title S01E01.mkv

 

Link to comment
Share on other sites

chinswain

I think this is what you mean?
For the folder:

root@DS918://volume1/TV Shows# ls -ld Test Show
drwxrwx---+ 1 chinswain administrators 18 Oct 25 22:45 "Test Show/"

For the mkv:

root@DS918://volume1/TV Shows/Test Show/Season 01# ls -l "Test Show S01E01.mkv"
-rw-r--r-- 1 chinswain administrators 2447052554 Oct 25 08:01 "Test Show S01E01.mkv"

For the actual shared folder "TV Shows":

root@DS918://volume1# ls -ld TV\ Shows/
d---------+ 1 root root 7406 Oct 30 20:37 'TV Shows/'
 

Edited by chinswain
Link to comment
Share on other sites

FrostByte

I'm not much of a command line fan (I prefer WinSCP), but I believe the following will recursively add execute to users

chmod -R o+x "TV Shows"

or 
chmod -R 755 "TV Shows"

 

This is what mine looks like though

-rwxrwxrwx+ 1 admin users

 

Link to comment
Share on other sites

chinswain

The second one gives this:

root@DS918:/volume1# ls -ld TV\ Shows
drwxr-xr-x 1 root root 7406 Oct 30 20:37 'TV Shows'

Which has removed the permission error - however I'm still getting "No compatible streams are currently available. Please try again later or contact your system administrator for details."

The only related error in embyserver.txt is:

*** Error Report ***
Version: 4.7.8.0
Command line: /volume1/@appstore/EmbyServer/system/EmbyServer.dll -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 -nolocalportconfig -ignore_vaapi_enabled_flag -pidfile /var/packages/EmbyServer/var/EmbyServer.pid -defaultdirectory /volume1/Public -updatepackage emby-server-synology7_{version}_x86_64.spk -noautorunwebapp
Operating system: Linux version 4.4.180+ (root@build3) (gcc version 8.5.0 (GCC) ) #42661 SMP Mon Jun 27 15:05:48 CST 2022
Framework: .NET 6.0.8
OS/Process: x64/x64
Runtime: volume1/@appstore/EmbyServer/system/System.Private.CoreLib.dll
Processor count: 4
Data path: /var/packages/EmbyServer/var
Application path: /volume1/@appstore/EmbyServer/system
System.Exception: System.Exception: Error starting ffmpeg
at Emby.Server.MediaEncoding.Api.BaseStreamingService.StartFfMpeg(StreamState state, String outputPath, CancellationToken cancellationToken, Boolean acquireResources)
at Emby.Server.MediaEncoding.Api.Hls.DynamicHlsService.GetDynamicSegment(StreamRequest request, String manifestAbsoluteUri, String playlistId, String segmentId, Int32 subtitleStreamIndex, AuthorizationInfo authorizationInfo)
at Emby.Server.Implementations.Services.ServiceController.GetTaskResult(Task task)
at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost appHost, IRequest httpReq, IResponse httpRes, RestPath restPath, String responseContentType, CancellationToken cancellationToken)
at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IRequest httpReq, ReadOnlyMemory`1 urlString, ReadOnlyMemory`1 localPath, CancellationToken cancellationToken)
Source: Emby.Server.MediaEncoding
TargetSite: Void MoveNext()

I've attached the full ffmpeg log:

ffmpeg-remux-5844b121-3e60-4303-904b-89754096fb5f_1.txt

Edited by chinswain
  • Like 1
Link to comment
Share on other sites

1 hour ago, chinswain said:

The second one gives this:

root@DS918:/volume1# ls -ld TV\ Shows
drwxr-xr-x 1 root root 7406 Oct 30 20:37 'TV Shows'

Which has removed the permission error - however I'm still getting "No compatible streams are currently available. Please try again later or contact your system administrator for details."

The only related error in embyserver.txt is:

*** Error Report ***
Version: 4.7.8.0
Command line: /volume1/@appstore/EmbyServer/system/EmbyServer.dll -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 -nolocalportconfig -ignore_vaapi_enabled_flag -pidfile /var/packages/EmbyServer/var/EmbyServer.pid -defaultdirectory /volume1/Public -updatepackage emby-server-synology7_{version}_x86_64.spk -noautorunwebapp
Operating system: Linux version 4.4.180+ (root@build3) (gcc version 8.5.0 (GCC) ) #42661 SMP Mon Jun 27 15:05:48 CST 2022
Framework: .NET 6.0.8
OS/Process: x64/x64
Runtime: volume1/@appstore/EmbyServer/system/System.Private.CoreLib.dll
Processor count: 4
Data path: /var/packages/EmbyServer/var
Application path: /volume1/@appstore/EmbyServer/system
System.Exception: System.Exception: Error starting ffmpeg
at Emby.Server.MediaEncoding.Api.BaseStreamingService.StartFfMpeg(StreamState state, String outputPath, CancellationToken cancellationToken, Boolean acquireResources)
at Emby.Server.MediaEncoding.Api.Hls.DynamicHlsService.GetDynamicSegment(StreamRequest request, String manifestAbsoluteUri, String playlistId, String segmentId, Int32 subtitleStreamIndex, AuthorizationInfo authorizationInfo)
at Emby.Server.Implementations.Services.ServiceController.GetTaskResult(Task task)
at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost appHost, IRequest httpReq, IResponse httpRes, RestPath restPath, String responseContentType, CancellationToken cancellationToken)
at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IRequest httpReq, ReadOnlyMemory`1 urlString, ReadOnlyMemory`1 localPath, CancellationToken cancellationToken)
Source: Emby.Server.MediaEncoding
TargetSite: Void MoveNext()

I've attached the full ffmpeg log:

ffmpeg-remux-5844b121-3e60-4303-904b-89754096fb5f_1.txt 18.45 kB · 0 downloads

HI, please attach the main emby server log as well. Thanks.

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