Jump to content

Why is Emby transcoding, no transcoding plays fine


Recommended Posts

xDDxxDDx
Posted

Hello!

Whenever I try to play a high-bitrate file on my device, the playback doesn't want to start. If I just randomly jump to any point in the movie, it starts buffering and stuttering the playback.

I thought this was a bandwidth-issue, since I am on WiFi, but when I disable the automatic transcoding in the options for the user, the file plays perfectly.

So I thought, okay the problem is the transcoding. But why does Emby try to transcode the file if it plays without transcoding just fine? I thought transcoding only activates when it's needed, but if the file plays fine with transcoding disabled, why does Emby think it needs to do that?

I can't just disable transcoding, because when I'm away from home, I sometimes watch stuff as well and then I need the transcoding feature.

Thank you for your help!

Posted

Hi, it is transcoding due to the truehd audio not being supported by macOS. Does that answer your question?

xDDxxDDx
Posted
7 hours ago, Luke said:

Hi, it is transcoding due to the truehd audio not being supported by macOS. Does that answer your question?

It does, a bit. Is the transcoding done on my Macbook or on the Server itself? And how come the file plays just fine when I turn of transcoding?

Happy2Play
Posted (edited)
15 hours ago, xDDxxDDx said:

It does, a bit. Is the transcoding done on my Macbook or on the Server itself? And how come the file plays just fine when I turn of transcoding?

The server and it shouldn't play normal or should say are you sure you have sound as it is not supported.

&VideoCodec=h264,hevc,mpeg2video&AudioCodec=ac3,eac3,mp3,aac

&TranscodeReasons=AudioCodecNotSupported

If it play normal it would suggest it is capable of TrueHD but do not know all the variables of your testing.

Edited by Happy2Play
Posted
20 hours ago, xDDxxDDx said:

It does, a bit. Is the transcoding done on my Macbook or on the Server itself? And how come the file plays just fine when I turn of transcoding?

The embedded player has the ability to decode it, but we need to close that loophole and not allow it due to dolby licensing reasons.

xDDxxDDx
Posted
5 hours ago, Happy2Play said:

The server and it shouldn't play normal or should say are you sure you have sound as it is not supported.

I just checked again, with a different file, but still TrueHD sound, and it does play and has sound when I turn off transcoding.

1 hour ago, Luke said:

The embedded player has the ability to decode it, but we need to close that loophole and not allow it due to dolby licensing reasons.

Thank you, now I know. So that probably means when the playback is stuttering or not loading at all, my server is taking too long to transcode the audio?

Posted
On 5/6/2024 at 11:59 PM, xDDxxDDx said:

 

Thank you, now I know. So that probably means when the playback is stuttering or not loading at all, my server is taking too long to transcode the audio?

In general that is one possibility, but in your case, it looks like you are getting good transcoding performance. Have you updated to Emby Server 4.8.6? Has that helped?

Happy2Play
Posted

Another guess could be the subtitles delivery method also.

xDDxxDDx
Posted (edited)
16 hours ago, Luke said:

In general that is one possibility, but in your case, it looks like you are getting good transcoding performance. Have you updated to Emby Server 4.8.6? Has that helped?

it kind of did and did not. While surprisingly, now the movies with TrueHD sound are playing (so I assume the transcoding is working), the movies don't want to start playing on their own. If I jump to a random point within the movie, it plays fine. And the going back to the beginning, everything is fine as well. This extends to AC3 as well. But weirdly enough, not to E-AC3 or any DTS audios... I'm starting to wonder if my Mac is causing the problems.

Do you have any ideas why that is happening now?

16 hours ago, Happy2Play said:

Another guess could be the subtitles delivery method also.

I tried disabling the subtitles BEFORE starting the movie, that didn't change a thing sadly

Edited by xDDxxDDx
Happy2Play
Posted
3 hours ago, xDDxxDDx said:

I tried disabling the subtitles BEFORE starting the movie, that didn't change a thing sadly

Does not necessarily change HLS delivery method though.  

07:30:01.326 Stream mapping:
07:30:01.326   Stream #0:0 -> #0:0 (copy)
07:30:01.326   Stream #0:1 -> #0:1 (truehd (native) -> ac3 (native))
07:30:01.326   Stream #0:2 -> #1:0 (subrip (srt) -> webvtt (native))

I quest the question should be does an item that does not have subtitles do the same thing?

xDDxxDDx
Posted
21 hours ago, Happy2Play said:

Does not necessarily change HLS delivery method though.  

07:30:01.326 Stream mapping:
07:30:01.326   Stream #0:0 -> #0:0 (copy)
07:30:01.326   Stream #0:1 -> #0:1 (truehd (native) -> ac3 (native))
07:30:01.326   Stream #0:2 -> #1:0 (subrip (srt) -> webvtt (native))

I quest the question should be does an item that does not have subtitles do the same thing?

Yes. I tried playing a file that doesn't have any subtitles, and that didn't change the new problem from my previous post

But I had a look at the protocol that I attached. It says "encoder x264" with every file that has these playback problems for me. Any TrueHD and AC3 file is recognized as x264, even tho I know for sure they are all x265 files. May that be a problem for transcoding?

ffmpeg-transcode-da3d5fc9-7c90-4586-b12e-079119166c21_1.txt

Happy2Play
Posted

But the subtitles are cause both tracks to be converted.

15:52:46.744 Stream mapping:
15:52:46.744   Stream #0:0 (hevc) -> format:default (graph 0)
15:52:46.744   Stream #0:3 (pgssub) -> scale:default (graph 0)
15:52:46.744   overlay:default (graph 0) -> Stream #0:0 (libx264)
15:52:46.744   Stream #0:1 -> #0:1 (truehd (native) -> ac3 (native))

 

xDDxxDDx
Posted
On 5/10/2024 at 6:37 PM, Happy2Play said:

But the subtitles are cause both tracks to be converted.

15:52:46.744 Stream mapping:
15:52:46.744   Stream #0:0 (hevc) -> format:default (graph 0)
15:52:46.744   Stream #0:3 (pgssub) -> scale:default (graph 0)
15:52:46.744   overlay:default (graph 0) -> Stream #0:0 (libx264)
15:52:46.744   Stream #0:1 -> #0:1 (truehd (native) -> ac3 (native))

 

I can see what you mean. But the last point as well shows that the truehd sound seems to be transcoded to ac3 as well, right?

I tried playing a file that definitely has NO subtitles, and ac3 sounds. so far it's been loading for 5 minutes. but Emby doesn't show any ffmpeg log whatsoever, I try to find it but the last one is hours old.

Happy2Play
Posted
1 minute ago, xDDxxDDx said:

But the last point as well shows that the truehd sound seems to be transcoded to ac3 as well, right?

Correct as Luke already pointed out will become a license issue if direct played.

  • 4 weeks later...
xDDxxDDx
Posted (edited)

Sorry for the late reply, but now I've changed a few things that sadly didn't resolve my problem
I tried updating to the latest beta version, out of curiosity, which doesn't change anything
I moved to a mini-PC with presumably more powerful hardware, didn't change

So even if I am now playing a file with just ac3 audio, which Emby itself says is direct playing, the playback won't start until I jump forward a few seconds.

If I play a truehd file, it transcodes smoothly. but stop the playback and I want to resume it later, it doesn't start at all.

this problem seems to be happening with the apps on my Mac and Apple TV, but on my phone, there are no such issues at all. 

EDIT: just checked, if I turn off transcoding, it seems like the problem is the same. for whatever reason, it seems like the apps can't handle ac3 audio at all

Edited by xDDxxDDx
Posted
Quote

If I play a truehd file, it transcodes smoothly. but stop the playback and I want to resume it later, it doesn't start at all.

Hi, what exactly happens? Can we please look at an example?

Posted
On 6/12/2024 at 5:40 AM, Luke said:

Hi, what exactly happens? Can we please look at an example?

Hey, thanks for the reply!

So the problem seems to be only with the Mac app. Whenever I try to start a TrueHD file, it won't start playing. I attached the ffmpeg log. if I skip forward 10 seconds, it starts playing immediately 

ffmpeg-remux-ebc0f2f1-c88f-4c29-9c4c-58a76ea081fc_1.txt

Posted

OK we’re looking into it. Thanks.

  • 3 weeks later...
Posted

merci bcp,  si besoin de log ou autres. n hesiteez pas

 

  • Thanks 1

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