Jump to content

Convert crashes on subtitle extraction and no more Conversions execute


Recommended Posts

Posted

So i've queued up a few folders for conversion and I notice that it keeps hanging; the conversions just stop; ffmpeg is no longer running in Task Manager.

Looking in the Emby log this seems to happen after an exception extracting the subtitles which leads me to believe there are 2 issues:

  1. Exception during conversion of 1 file stops Emby from converting other files in the queue. It just shows a status of "Transferring". Opening the conversion job and pressing save allows it to continue to the next file.
  2. ffmpeg subtitle extraction has issues.
  3. Exceptions sometimes occur during conversion such as "File name cannot be null" when it is trying to copy the file (exception can be found in attached log file).

Logs attached but the exception is:

	*** Error Report ***
	Version: 4.5.4.0
	Command line: C:\Users\Administrator\AppData\Roaming\Emby-Server\system\EmbyServer.dll
	Operating system: Microsoft Windows 10.0.17763
	Framework: .NET Core 3.1.9
	OS/Process: x64/x64
	Runtime: C:/Users/Administrator/AppData/Roaming/Emby-Server/system/System.Private.CoreLib.dll
	Processor count: 8
	Data path: C:\Users\Administrator\AppData\Roaming\Emby-Server\programdata
	Application path: C:\Users\Administrator\AppData\Roaming\Emby-Server\system
	System.Exception: System.Exception: ffmpeg subtitle extraction failed for file:"E:\TV Series (ended)\13 Reasons Why (2017)\Season 01\S01E07 - Tape 4, Side A.mkv" to C:\Users\Administrator\AppData\Roaming\Emby-Server\programdata\cache\subtitles\9\94cc527b4995f7c8b834e862f892ad26_636265224000000000_2_0_0_False.vtt
	   at Emby.Server.MediaEncoding.Subtitles.SubtitleEncoder.ExtractTextSubtitleInternal(String inputPath, String inputSubtitleCodec, Int32 subtitleStreamIndex, String outputCodec, String outputPath, Int64 startTimeTicks, Int64 endTimeTicks, Boolean preserveOriginalTimestamps, CancellationToken cancellationToken)
	   at Emby.Server.MediaEncoding.Subtitles.SubtitleEncoder.ExtractTextSubtitle(ReadOnlyMemory`1 inputPath, String inputSubtitleCodec, MediaProtocol protocol, Int32 subtitleStreamIndex, String outputCodec, String outputPath, Int64 startTimeTicks, Int64 endTimeTicks, Boolean preserveOriginalTimestamps, CancellationToken cancellationToken)
	   at Emby.Server.MediaEncoding.Subtitles.SubtitleEncoder.GetReadableFile(String mediaPath, MediaProtocol mediaSourceProtocol, IDictionary`2 requestHeaders, MediaStream subtitleStream, ReadOnlyMemory`1 outputFormat, Int64 startTimeTicks, Int64 endTimeTicks, Boolean preserveOriginalTimestamps, CancellationToken cancellationToken)
	   at Emby.Server.MediaEncoding.Subtitles.SubtitleEncoder.GetSubtitles(String inputPath, MediaProtocol inputProtocol, IDictionary`2 requestHeaders, MediaStream subtitleStream, ReadOnlyMemory`1 outputFormat, Int64 startTimeTicks, Int64 endTimeTicks, Boolean preserveOriginalTimestamps, CancellationToken cancellationToken)
	   at Emby.Server.Sync.SyncJobProcessor.ConvertSubtitles(String temporaryPath, StreamInfo streamInfo, SubtitleStreamInfo subtitleStreamInfo, CancellationToken cancellationToken)
	   at Emby.Server.Sync.SyncJobProcessor.ConvertSubtitles(SyncJobItem jobItem, List`1 subtitles, StreamInfo streamInfo, CancellationToken cancellationToken)
	   at Emby.Server.Sync.SyncJobProcessor.SyncVideo(SyncJobItem jobItem, Video item, User user, Boolean enableConversion, SyncOptions syncOptions, ISyncProvider provider, IProgress`1 progress, CancellationToken cancellationToken)
	   at Emby.Server.Sync.SyncJobProcessor.ProcessJobItem(SyncJobItem jobItem, Boolean enableConversion, IProgress`1 progress, CancellationToken cancellationToken)
	   at Emby.Server.Sync.SyncJobProcessor.SyncJobItems(Int64[] jobItemIds, Boolean enableConversion, IProgress`1 progress, CancellationToken cancellationToken)
	   at Emby.Server.Sync.SyncJobProcessor.Sync(IProgress`1 progress, CancellationToken cancellationToken)
	   at Emby.Server.Sync.SyncConvertScheduledTask.Execute(CancellationToken cancellationToken, IProgress`1 progress)
	   at Emby.Server.Implementations.ScheduledTasks.ScheduledTaskWorker.ExecuteInternal(TaskOptions options)
	Source: Emby.Server.MediaEncoding
	TargetSite: Void MoveNext()

 

embyserver.txt

Posted

Hi, this should be improved for the next release of the server, thanks.

Posted
10 hours ago, Luke said:

Hi, this should be improved for the next release of the server, thanks.

Thanks Luke. I'll keep an eye on the beta change log.

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