jellyfin / jellyfin-web

Web Client for Jellyfin
https://jellyfin.org
GNU General Public License v2.0
2.2k stars 1.17k forks source link

Video transcoding due to audio? #3518

Closed EnragedN3wb closed 2 years ago

EnragedN3wb commented 2 years ago

I'm trying to get my Roku TV to direct play 4K HDR content, but it keeps needlessly transcoding the video due to audio format. The TV is using a set of stereo speakers & the videos have 5.1-7.1 depending, but instead of only transcoding/downmixing the audio, it transcodes the video too... Losing HDR in the process. =\

The only way I can get the TV to directplay is to disable video transcoding entirely, meaning I can no longer watch anything on my tablet when needed...

The only reason given for the transcode is "AudioChannelsNotSupported" & I have tried both without bandwidth limits & with extremely high bandwidth limits(though this is all over LAN anyway).

dmitrylyzo commented 2 years ago

If 10.7 - https://github.com/jellyfin/jellyfin/issues/5576 In 10.8, that seems to be fixed to me (at first glance).

EnragedN3wb commented 2 years ago

Yeah I'm using 10.7.7 Stable(not portable), but that link is a bit over my head currently.

If I drop the files from the "combined/jellyfin_20220327.5-unstable.zip" here into my server install folder will that work to update it without losing all my settings or am I better off just waiting for 10.8 stable with the installer?

dmitrylyzo commented 2 years ago

You can switch to 10.8 beta (released recently): https://repo.jellyfin.org/releases/server/windows/stable-pre/ :warning: Since we cannot revert the database back (downgrade), it is a good idea to backup config and data folders first.

https://www.reddit.com/r/jellyfin/comments/et583s/jellyfin_backup/ffeezpe/?utm_source=reddit&utm_medium=web2x&context=3 I think you can backup this entire folder (C:\ProgramData\Jellyfin\Server), but cache, log and transcodes can be omitted.

but that link is a bit over my head currently.

TL;DR; 10.7 server selects the first supported codec from the transcoding profile (h264) ignoring that hevc is also supported. Now it should pick the codec more carefully.

EnragedN3wb commented 2 years ago

Thanks for the link & the info on backing up settings! I had been looking around in my appdata & install directory for them.

I've upgraded to the 10.8 Beta, but unfortunately the problem persists & the TV does not kick into HDR mode unless I disable video transcoding for the user. :( 2022-03-28  {18;42;00} 1

I'm not sure if these will help or not, but I pulled them from the Logs folder: log.txt FFmpeg.Transcode-2022-03-28_18-40-38_f46e1b1ab0cd073fe792cd163d4eb68c_26689f6b.log

dmitrylyzo commented 2 years ago

There was conversation on Matrix about Roku: HEVC is not specified in the device profile. Here is the PR: https://github.com/jellyfin/jellyfin-roku/pull/543

EnragedN3wb commented 2 years ago

ok, so if I'm understanding this correctly the issue is on the side of the Jellyfin app for Roku now, & not the server? Once that PR goes through & the app is updated it should work without me disabling video transcoding?

Sorry if I'm misunderstanding, how this stuff all works internally is something I'm still learning.

whiteowl3 commented 2 years ago

ok, so if I'm understanding this correctly the issue is on the side of the Jellyfin app for Roku now, & not the server? Once that PR goes through & the app is updated it should work without me disabling video transcoding?

Sorry if I'm misunderstanding, how this stuff all works internally is something I'm still learning.

if you are using 10.8 beta server, then yes. That pull request will not be merged or versioned in as is, it lacks fundamental checks. If you implement the changes from that pr (sideloading on the roku is easy as pie) and enable transcoding on the server beta, then everything should work on your roku except for graphical subtitles and HDR (if you have an HDR display, I think it will work, please let us all know). HDR will become more intuitive eventually, graphical subtitles will never work, unless Roku incorporates support in the firmware.

EnragedN3wb commented 2 years ago

It's Alive! :D

Just finished testing it out(you were right, easy as pie) & it seems to be working perfectly. I'll do some more thorough testing tomorrow, since the user with the Roku TV was heading to bed as I did this last minute. I can confirm that the TV kicked into HDR mode & everything looked good at a glance though.

Should I be worried about those fundamental checks it's lacking or will I be okay to continue using it this way?

whiteowl3 commented 2 years ago

It's Alive! :D

Just finished testing it out(you were right, easy as pie) & it seems to be working perfectly. I'll do some more thorough testing tomorrow, since the user with the Roku TV was heading to bed as I did this last minute. I can confirm that the TV kicked into HDR mode & everything looked good at a glance though.

Should I be worried about those fundamental checks it's lacking or will I be okay to continue using it this way?

the check it was lacking is "can this roku actually decode hevc" which has now been implemented in the pr. if its working you have nothing to worry about.

EnragedN3wb commented 2 years ago

Awesome. Thanks for the help guys, & for being patient with me & my lack of knowledge! :P

I added in the new changes you made before testing again to make sure & everything is looking good including HDR: 2022-03-29  {12;29;53} 1

Wish I could help with your dd+ testing but I don't have the audio setup for it, just a pair of old(but still nice) stereo speakers.