Jump to content

Transcoding fails when using subtitles


Recommended Posts

Posted

Hey guys, I'm trying to understand why transcoding fails when using Embycon using subtitles. When not using subtitles transcoding works flawlessly. Transcoding also works great on all other clients, for instance Android TV, Android, iOS, etc. It was even working on Embycon last year when I was using LibreElec 11.x, instead of 12 right now. @TeamB

Thanks!

embyserver-63857818444.txt ffmpeg-transcode-71a7b7b4-f2ba-4c9b-ae86-92dec847381b_1.txt

Posted

Hi, the kodi log would probably be helpful too. Thanks:

Posted

what error do you see in kodi?

  • 3 weeks later...
Posted (edited)
2024-08-18 19:43:24.832 T:2099     info <general>: ffmpeg[0x42fb28e0]: [hls] Opening 'https://0b06e944fb6644cf830bef07b7fb2579@emby.REDACTED.xyz:443/emby/videos/142/hls1/main/0.ts?PlaySessionId=30cbb7b741084d7bb3caeb494660eafc' for reading
...
30 seconds later
...
2024-08-18 19:43:54.134 T:2099    error <general>: ffmpeg[0x42fb28e0]: [tls] Unknown error
2024-08-18 19:43:54.134 T:2099    error <general>: ffmpeg[0x42fb28e0]: [hls] Error when loading first segment 'https://0b06e944fb6644cf830bef07b7fb2579@emby.REDACTED.xyz:443/emby/videos/142/hls1/main/0.ts?PlaySessionId=30cbb7b741084d7bb3caeb494660eafc'
2024-08-18 19:43:54.137 T:2099    debug <general>: Error, could not open file https://USERNAME@emby.REDACTED.xyz:443/emby/videos/142/master.m3u8?DeviceId=2c827504b9b342eab36acfc4ff6fc7f4&MediaSourceId=13c1f9bbb57cbc04c1c7b9501cbf22c6&PlaySessionId=30cbb7b741084d7bb3caeb494660eafc&api_key=cffbca67c394477091dde361c2888cd0&VideoCodec=h264&AudioCodec=ac3&VideoBitrate=7616000&TranscodingMaxAudioChannels=2&SegmentContainer=ts&BreakOnNonKeyFrames=False&TranscodeReasons=ContainerBitrateExceedsLimit&AudioBitrate=256000&MaxWidth=1920&SubtitleStreamIndex=5
2024-08-18 19:43:54.137 T:2099    error <general>: OpenDemuxStream - Error creating demuxer

it looks like it is just timing out.

@Luke is the server trying to extract subtitles or something?

Edited by TeamB
Posted

@Touz604if the following setting is enabled on your Emby server, try turning it off and test again.

 

image.thumb.png.230dcbdca7d2af194301fc1b64e272af.png

Posted
13 hours ago, TeamB said:

@Touz604if the following setting is enabled on your Emby server, try turning it off and test again.

 

image.thumb.png.230dcbdca7d2af194301fc1b64e272af.png

It returns the same error when this option is turned off.

Posted
3 hours ago, Touz604 said:

It returns the same error when this option is turned off.

Make sure to turn that back on after testing.

  • Like 1
Posted
17 hours ago, TeamB said:
2024-08-18 19:43:24.832 T:2099     info <general>: ffmpeg[0x42fb28e0]: [hls] Opening 'https://0b06e944fb6644cf830bef07b7fb2579@emby.REDACTED.xyz:443/emby/videos/142/hls1/main/0.ts?PlaySessionId=30cbb7b741084d7bb3caeb494660eafc' for reading
...
30 seconds later
...
2024-08-18 19:43:54.134 T:2099    error <general>: ffmpeg[0x42fb28e0]: [tls] Unknown error
2024-08-18 19:43:54.134 T:2099    error <general>: ffmpeg[0x42fb28e0]: [hls] Error when loading first segment 'https://0b06e944fb6644cf830bef07b7fb2579@emby.REDACTED.xyz:443/emby/videos/142/hls1/main/0.ts?PlaySessionId=30cbb7b741084d7bb3caeb494660eafc'
2024-08-18 19:43:54.137 T:2099    debug <general>: Error, could not open file https://USERNAME@emby.REDACTED.xyz:443/emby/videos/142/master.m3u8?DeviceId=2c827504b9b342eab36acfc4ff6fc7f4&MediaSourceId=13c1f9bbb57cbc04c1c7b9501cbf22c6&PlaySessionId=30cbb7b741084d7bb3caeb494660eafc&api_key=cffbca67c394477091dde361c2888cd0&VideoCodec=h264&AudioCodec=ac3&VideoBitrate=7616000&TranscodingMaxAudioChannels=2&SegmentContainer=ts&BreakOnNonKeyFrames=False&TranscodeReasons=ContainerBitrateExceedsLimit&AudioBitrate=256000&MaxWidth=1920&SubtitleStreamIndex=5
2024-08-18 19:43:54.137 T:2099    error <general>: OpenDemuxStream - Error creating demuxer

it looks like it is just timing out.

@Luke is the server trying to extract subtitles or something?

No it reads them as it steps through the video. Does the kodi player indicate any specific problem that it has with the content?

Posted
5 hours ago, Luke said:

No it reads them as it steps through the video. Does the kodi player indicate any specific problem that it has with the content?

no, it looks like a time out error, it makes the request, waits 20 seconds and then throws an error that it cant read the first segment.

my assumption here was that emby is blocking for some reason and the only thing i could think of was the subs extraction.

Posted

It might block if the player is requesting a segment that hasn’t been generated yet. But that log is on the first segment, so it’s odd that that one is taking so long.

Posted

so you see nothing weird in the ffmpeg log above?
I am not sure why Emby is not returning the first segment in a timely manner, but I feel that is the root issue here. Kodi just times out trying to play the first segment.

  • 2 months later...
Posted

@Touz604have you updated to Emby Server 4.8.10? Has that helped?

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