Jump to content

tried converting files, not playing any more


alberto.bracci

Recommended Posts

alberto.bracci

Hi, just purchased emby premiere (great work guys!), and tried converting some files. 
Unfortunatelly it turned out my hardware is just too old and cheap to do so, so after a day of having files at 0% conversion rate I just deleted the conversions. 
For reference, I had ticked to replace the original files, if it helps. 

Anyway, those media now won't play anymore, getting a file not found error in the logs (and a simple generic reproduction error in the UI). 
I tried cancelling and re-downloading the files, or even readding the original ones but I keep getting the same errors. 
Any other media plays fine, so it's not a general emby issue. 
I also tried cancelling the schedule for converting files, since I had also ticked the "convert any new added files option". 

Not sure what to do in this situation. 
Happy for a solution to just go back to square one, since I won't be converting any files any time soon. 

Thanks and keep up the great work! 

PS: didn't attach logs because of possible personal info popping up, but happy to attach snippets of them if you can tell me which specific logs or snippets might help.

Link to comment
Share on other sites

alberto.bracci

Just adding some info from the logs (attached). I seem to be getting two different kinds of errors, but I might be wrong. 
Both media went through the same failed conversion process, and have been deleted and readded again. 

One error looks like this: 
 

2022-12-29 10:30:41.506 Error App: ProcessRun 'StreamTranscode 7fd23f': Error starting Ffmpeg. WorkingFolder: 
	*** Error Report ***
	Version: 4.7.11.0
	Command line: /usr/lib/emby-server/EmbyServer.dll -programdata /var/lib/emby -ffdetect /usr/bin/ffdetect-emby -ffmpeg /usr/bin/ffmpeg-emby -ffprobe /usr/bin/ffprobe-emby -restartexitcode 3
	Operating system: Linux version 5.10.161-1-MANJARO (builduser@fv-az421-60) (gcc (GCC) 12.2.0, GNU ld (GNU Binutils) 2.39.0) #1 SMP PREEMPT Wed Dec 21 21:15:06 UTC 2022
	Framework: .NET 6.0.12
	OS/Process: x64/x64
	Runtime: usr/share/dotnet/shared/Microsoft.NETCore.App/6.0.12/System.Private.CoreLib.dll
	Processor count: 2
	Data path: /var/lib/emby
	Application path: /usr/lib/emby-server
	System.ObjectDisposedException: System.ObjectDisposedException: Cannot access a disposed object.
	Object name: 'Emby.Server.MediaEncoding.Unified.Ffmpeg.FfmpegRunner'.
	   at Emby.ProcessRun.Runners.ProcessRunnerBase.Run(StartParams startParams)
	   at Emby.ProcessRun.Runners.ProcessRunnerBase.Run(String exeFileName, String commandLineArgs, String workingDirectory)
	   at Emby.Server.MediaEncoding.Unified.Ffmpeg.FfRunnerBase.Start(String commandLineArgs)
	Source: Emby.ProcessRun
	TargetSite: Boolean Run(Emby.ProcessRun.Common.StartParams)
	
2022-12-29 10:30:41.509 Error Server: Error processing request
	*** Error Report ***
	Version: 4.7.11.0
	Command line: /usr/lib/emby-server/EmbyServer.dll -programdata /var/lib/emby -ffdetect /usr/bin/ffdetect-emby -ffmpeg /usr/bin/ffmpeg-emby -ffprobe /usr/bin/ffprobe-emby -restartexitcode 3
	Operating system: Linux version 5.10.161-1-MANJARO (builduser@fv-az421-60) (gcc (GCC) 12.2.0, GNU ld (GNU Binutils) 2.39.0) #1 SMP PREEMPT Wed Dec 21 21:15:06 UTC 2022
	Framework: .NET 6.0.12
	OS/Process: x64/x64
	Runtime: usr/share/dotnet/shared/Microsoft.NETCore.App/6.0.12/System.Private.CoreLib.dll
	Processor count: 2
	Data path: /var/lib/emby
	Application path: /usr/lib/emby-server
	System.ObjectDisposedException: System.ObjectDisposedException: Cannot access a disposed object.
	Object name: 'Emby.Server.MediaEncoding.Unified.Ffmpeg.FfmpegRunner'.
	   at Emby.ProcessRun.Runners.ProcessRunnerBase.Run(StartParams startParams)
	   at Emby.ProcessRun.Runners.ProcessRunnerBase.Run(String exeFileName, String commandLineArgs, String workingDirectory)
	   at Emby.Server.MediaEncoding.Unified.Ffmpeg.FfRunnerBase.Start(String commandLineArgs)
	   at Emby.Server.MediaEncoding.Unified.Ffmpeg.FfmpegRunner.Start(String commandLineArgs, CancellationToken cancellationToken)
	   at Emby.Server.MediaEncoding.Api.BaseStreamingService.StartFfMpeg(StreamState state, String outputPath, CancellationToken cancellationToken, Boolean acquireResources)
	   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.ProcessRun
	TargetSite: Boolean Run(Emby.ProcessRun.Common.StartParams)
	
2022-12-29 10:30:41.511 Info Server: http/1.1 Response 500 to host2. Time: 61ms. http://192.168.1.2:8096/emby/videos/80531/hls1/main/1.ts?PlaySessionId=87c5985f778549fe92a80fea9c114b33
2022-12-29 10:31:04.201 Info LibraryMonitor: Stagione 2 (/home/storage/media/serie_tv_eng/Gossip Girl (2021)/Season 2) will be refreshed.
2022-12-29 10:31:04.589 Info MediaProbeManager: ProcessRun 'ffprobe' Execute: /usr/bin/ffprobe-emby -i file:"/home/storage/media/serie_tv_eng/Gossip Girl (2021)/Season 2/Gossip Girl (2021) - S02E06 - How To Bury A Millionaire WEBDL-1080p.mkv" -threads 0 -v info -print_format json -show_streams -show_chapters -show_format -show_data
2022-12-29 10:31:04.699 Info MediaProbeManager: ProcessRun 'ffprobe' Process exited with code 0 - Succeeded
2022-12-29 10:31:04.811 Info HttpClient: GET https://www.addic7ed.com/
2022-12-29 10:31:06.185 Info HttpClient: GET https://www.addic7ed.com/ajax_loadShow.php?show=8413&season=2
2022-12-29 10:31:16.277 Error SubtitleManager: Error downloading subtitles from Addic7ed
	*** Error Report ***
	Version: 4.7.11.0
	Command line: /usr/lib/emby-server/EmbyServer.dll -programdata /var/lib/emby -ffdetect /usr/bin/ffdetect-emby -ffmpeg /usr/bin/ffmpeg-emby -ffprobe /usr/bin/ffprobe-emby -restartexitcode 3
	Operating system: Linux version 5.10.161-1-MANJARO (builduser@fv-az421-60) (gcc (GCC) 12.2.0, GNU ld (GNU Binutils) 2.39.0) #1 SMP PREEMPT Wed Dec 21 21:15:06 UTC 2022
	Framework: .NET 6.0.12
	OS/Process: x64/x64
	Runtime: usr/share/dotnet/shared/Microsoft.NETCore.App/6.0.12/System.Private.CoreLib.dll
	Processor count: 2
	Data path: /var/lib/emby
	Application path: /usr/lib/emby-server
	MediaBrowser.Model.Net.HttpException: MediaBrowser.Model.Net.HttpException: ServiceUnavailable
	   at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.SendAsyncInternal(HttpRequestOptions options, String httpMethod)
	   at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.SendAsync(HttpRequestOptions options, String httpMethod)
	   at Addic7ed.Addic7edDownloader.GetSeason(String id, Nullable`1 season, CancellationToken cancellationToken)
	   at Addic7ed.Addic7edDownloader.SearchEpisode(SubtitleSearchRequest request, CancellationToken cancellationToken)
	   at Addic7ed.Addic7edDownloader.Search(SubtitleSearchRequest request, CancellationToken cancellationToken)
	   at Emby.Providers.Subtitles.SubtitleManager.SearchSubtitles(SubtitleSearchRequest request, CancellationToken cancellationToken)
	Source: Emby.Server.Implementations
	TargetSite: Void MoveNext()



While tWhile the other is the previously mentioned file not found:



2022-12-29 10:46:38.114 Error Server: Error processing request
	*** Error Report ***
	Version: 4.7.11.0
	Command line: /usr/lib/emby-server/EmbyServer.dll -programdata /var/lib/emby -ffdetect /usr/bin/ffdetect-emby -ffmpeg /usr/bin/ffmpeg-emby -ffprobe /usr/bin/ffprobe-emby -restartexitcode 3
	Operating system: Linux version 5.10.161-1-MANJARO (builduser@fv-az421-60) (gcc (GCC) 12.2.0, GNU ld (GNU Binutils) 2.39.0) #1 SMP PREEMPT Wed Dec 21 21:15:06 UTC 2022
	Framework: .NET 6.0.12
	OS/Process: x64/x64
	Runtime: usr/share/dotnet/shared/Microsoft.NETCore.App/6.0.12/System.Private.CoreLib.dll
	Processor count: 2
	Data path: /var/lib/emby
	Application path: /usr/lib/emby-server
	System.IO.FileNotFoundException: System.IO.FileNotFoundException: Unable to find the specified file.
	   at Emby.Server.MediaEncoding.Api.Hls.BaseHlsService.CreateRequestFromPlaySessionId(BaseSegmentRequest segmentRequest)
	   at Emby.Server.MediaEncoding.Api.Hls.DynamicHlsService.Get(GetHlsSegment segmentRequest)
	   at Emby.Server.Implementations.Services.ServiceController.Execute(HttpListenerHost appHost, Object requestDto, IRequest req)
	   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: System.Tuple`3[Emby.Server.MediaEncoding.Api.StreamRequest,System.String,MediaBrowser.Controller.Net.AuthorizationInfo] CreateRequestFromPlaySessionId(Emby.Server.MediaEncoding.Api.Hls.BaseSegmentRequest)
	

 

Full logs attached, please let me know if you need anything else, or if there is personal info there. Thanks!

embyserver (1).txt

Link to comment
Share on other sites

alberto.bracci

hi! I couldn't find the related ffmpeg log so I did another run with another file. 
Attached emby-server and ffmpeg logs. 

Weird enough, some files which were previously showing this problem seem to be running fine now. 
No action on my end, and no conversion job seem to be running at all. 

ffmpeg-transcode-68ccd36b-c24c-48d4-8912-1fd31b88524e_1.txt embyserver (2).txt

Link to comment
Share on other sites

alberto.bracci

I don't think so, I just tried a media with only two subtitles (previously tried to convert it as well) and got the same general error pattern in the UI. 
Other media giving this error also have between 10 and 40 different sub tracks.
ffmpeg error attached for more info. 
Thanks!
 

ffmpeg-transcode-7098ae39-ce3d-442f-8984-5e724d009062_1.txt

Link to comment
Share on other sites

alberto.bracci

just wondering, could it be a permissions related problem? 
The whole media folder is owned by emby user and group, with 770 permissions, but for some reasons it seems emby does not have write permissions? 
I tried to set the downloads temporary folder to the media folder and it's telling me "Emby" user (capital E) does not have write permissions. 

I found a similar issue having to do with mounting config in fstab, tried to add uid=xxx,gid=yyy,defaults (with emby user and group ids) to the related volume mounting info but ended up breaking it. 
I think it's because it's a ext4 filesystem so it doesn't need additional permissions info in fstab.
Had to revert back. 

Could this be related to conversions failing and breaking streaming too for such episodes? 
I cannot pinpoint the culprit as one of the series is now working without anything changing. 
I also noticed conversions (even when trying to download) stay stuck at 0%. 
I thought it was poor hardware related but maybe it's all linked.

Any help appreciated!

Edited by alberto.bracci
Link to comment
Share on other sites

alberto.bracci

clearly something at least related to converting files,  but pretty annoying. 
I just removed emby premiere's key and now everything is working again without issues. 

I was even having a problem with a movie I just added. Playback would stop without reason and exit, with logs reporting the browser had stopped the playback. 
After removing the key it's working perfectly, as all other media previously breaking are. 

Any troubleshooting steps I can take? 
I am happy to have paid a lifetime subscription to support you guys, but I'd be happier if I could enjoy the perks such as conversion and downloads for instance, or the emby theater app. 

Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...
alberto.bracci

I have been using emby without premiere enabled since then with no issues at all. 
Multiple library scans run since then, even now to double check (clicking scan library from the library control panel page)
I just tried to come back to premiere, and I got back the same issue for some content I had scheduled conversions for back when these problems started. 
Other new content does not seem to show any problem, so my guess is that scheduling the conversions is breaking stuff for some reason. 

I just run a simple test: play the same problematic content with and without emby premiere enabled. 
Obviously, it runs just fine without premiere, and exits without any message if the key is enabled. 
Attached are the two ffmpeg logs for the two playbacks, hopefully you can pinpoint the problem and help me come up with a solution?

Thanks!

ffmpeg-transcode-179e2724-dc0e-40e7-a4d7-f6f5da3138d5_1-----not-working-premiere.txt ffmpeg-transcode-43b01c60-9793-409b-973c-98fdf48752b0_1-----working-no-premiere.txt

Link to comment
Share on other sites

Hi, the difference is hardware transcoding is enabled with Emby Premiere, and there's a problem occurring with the vaapi hardware transcoding. There's a good chance it will be improved in the upcoming 4.8 server release.

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