Jump to content

Transcoding fails because of subtitles?


Go to solution Solved by plupien79,

Recommended Posts

Posted

I've had some recent movies that need to transcode, just fail to play on my Roku, and state "No compatible streams are currently available" through a web browser on a W10 PC. My phone plays them no trouble (direct play). An excerpt from the log files makes it seem like the subtitle in the MKV is the problem. I also remuxed one of the files and removed the subtitles and it worked fine. This seems to be a new issue so I'm wondering what it is, and if there's a fix outside of remuxing all the effected files.

 

hdmv_pgs_subtitle seems to be the issue. Can provide logs in additional post if this isn't a known problem.

 

 

Posted

Attempted playback on W10 laptop though FireFox and a 4k Roku Stick. Playback attemps at 1:16-18PM per the logs. Server log and MANY transcode logs attached.

File contains PGS subtitle, If I remux it out, I'll play/transcode just fine.

Logs.7z

Posted

Hi, does this happen only with that one video?

Posted

Nope, it's been many movies. The two things are h265 and those hdmv_pgs_subtitle.

 

Again, if I manually remux the file and remove the subtitles it works.

Posted

I had a similar problem a few months ago and was advised to check the subtitles and found that they sometimes had like 20+ different subtitles and to transcode a move with so much subtitles the movie kept freezing if you remove the subtitles you don't need and leave one or two that you do then it stopped freezing. I only needed one subtitle so I left one and all my movies show great when transcoding. 

Posted
On 12/25/2021 at 5:15 PM, plupien79 said:

Nope, it's been many movies. The two things are h265 and those hdmv_pgs_subtitle.

 

Again, if I manually remux the file and remove the subtitles it works.

All the logs are about a single file, and that file seems to be authored incorrectly.
Let's please focus on media files that are not "self-made". 

softworkz

Posted
12 hours ago, softworkz said:

All the logs are about a single file, and that file seems to be authored incorrectly.
Let's please focus on media files that are not "self-made". 

softworkz

These are not self made, they have been gotten the same was I always have obtained them. Examples are getting harder to find, as I have been remuxing the "Bad" ones as I find them, I was just hoping to find a solution that isn't as much manual work.

Posted

I can only tell about the "Finding Dory" files in the logs and there's something totally wrong, like the codec being indicated as H.264 even though it's probably HEVC actually.

Maybe your remuxing procedure is fixing this automatically, can't say for sure without seeing a log from the modified one, but I'm very sure that this has nothing to do with subtitles at all.

  • Like 1
  • Agree 1
Happy2Play
Posted
On 12/25/2021 at 8:15 AM, plupien79 said:

Again, if I manually remux the file and remove the subtitles it works.

Yes it would appear your remuxing is correcting an existing header issue.

error in Remux and Transcode logs

13:18:08.618     Stream #0:0: Video: h264, none(tv, bt2020nc/bt2020/smpte2084), 3840x2160, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn, 2k tbc (default)

13:18:08.619 [AVBSFContext @ 000002b9faf41a80] Packet header is not contained in global extradata, corrupted stream or invalid MP4/AVCC bitstream

Also appear to have missing stream metadata in ffmpeg.

Server log is failed ffmpeg for the specific file.

2021-12-23 13:18:08.801 Error Server: Error processing request
	*** Error Report ***
	Version: 4.6.7.0
	Command line: C:\Users\Admin\AppData\Roaming\Emby-Server\system\EmbyServer.dll -service
	Operating system: Microsoft Windows 10.0.19044
	Framework: .NET Core 3.1.21
	OS/Process: x64/x64
	Runtime: C:/Users/Admin/AppData/Roaming/Emby-Server/system/System.Private.CoreLib.dll
	Processor count: 4
	Data path: C:\Users\Admin\AppData\Roaming\Emby-Server\programdata
	Application path: C:\Users\Admin\AppData\Roaming\Emby-Server\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 playlistId, String segmentId, Int32 subtitleStreamIndex)
	   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()

 

  • Solution
Posted (edited)

Ok, I guess I got a bad batch of files. I have been replacing h264 videos with h265.

I remuxed one of the effected files using MKVToolNix left everything in the file and it worked just fine.

Edited by plupien79
Posted

And one more case solved...

Thanks for letting us know.

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