jellyfin / jellyfin-androidtv

Android TV Client for Jellyfin
https://jellyfin.org
GNU General Public License v2.0
2.73k stars 467 forks source link

No sound using direct playback of 1080p h264 10bit (FireTV Stick 4K Max) #3175

Closed Jaytie2k7 closed 2 months ago

Jaytie2k7 commented 10 months ago

Describe the bug

When using Jellyfin on my FireTV Stick 4K Max with Exoplayer I have issues playing back 1080p h264 10bit. The videos play fine, but there is no sound. Doesn't matter of it's DTS-HD MA, DTS, DD... First of, these problems only occur on 1080p material, that I encoded with Handbrake using h264 10bit. All Audiostreams are just passed through. These problems do not occur on ie. untouched Blu-rays, neither do they occur on h265 10bit encodes. When using libvlc or an external player like VLC, audioplayback works, but the videos are stuttering.

  1. In the Jellyfin usersettings I deactivated Audio and Videotranscoding.

  2. If "Allow video playback via conversion without re-encoding" isn't ticket, the 1080p content doesn't play at all. If it is ticket, video playback works but without sound.

  3. If Audio transcoding is ticket, all works but then it seems to be transcoded to aac.

That would be fine, but I'm wondering, why h265 works but h264 doesn't...

Logs

No response

FFmpeg logs

Output #0, hls, to '/config/transcodes/a10bcaa25bd65fcb71e88a987dce6c24.m3u8':
  Metadata:
    encoder         : Lavf59.27.100
  Stream #0:0: Video: h264 (High 10), yuv420p10le(tv, bt709, progressive), 1918x804 [SAR 1:1 DAR 959:402], q=2-31, 23.98 fps, 23.98 tbr, 90k tbn (default)
  Stream #0:1: Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:4 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=    1 fps=0.0 q=-1.0 size=N/A time=-00:19:34.63 bitrate=N/A speed=N/A    
[hls @ 0x7f3b56928180] Opening '/config/transcodes/a10bcaa25bd65fcb71e88a987dce6c24196.ts' for writing
[hls @ 0x7f3b56928180] Opening '/config/transcodes/a10bcaa25bd65fcb71e88a987dce6c24197.ts' for writing
[hls @ 0x7f3b56928180] Opening '/config/transcodes/a10bcaa25bd65fcb71e88a987dce6c24198.ts' for writing
[hls @ 0x7f3b56928180] Opening '/config/transcodes/a10bcaa25bd65fcb71e88a987dce6c24199.ts' for writing
[hls @ 0x7f3b56928180] Opening '/config/transcodes/a10bcaa25bd65fcb71e88a987dce6c24200.ts' for writing
[hls @ 0x7f3b56928180] Opening '/config/transcodes/a10bcaa25bd65fcb71e88a987dce6c24201.ts' for writing
[hls @ 0x7f3b56928180] Opening '/config/transcodes/a10bcaa25bd65fcb71e88a987dce6c24202.ts' for writing
[hls @ 0x7f3b56928180] Opening '/config/transcodes/a10bcaa25bd65fcb71e88a987dce6c24203.ts' for writing
frame= 1284 fps=0.0 q=-1.0 size=N/A time=00:00:53.67 bitrate=N/A speed= 107x    
[hls @ 0x7f3b56928180] Opening '/config/transcodes/a10bcaa25bd65fcb71e88a987dce6c24204.ts' for writing
[hls @ 0x7f3b56928180] Opening '/config/transcodes/a10bcaa25bd65fcb71e88a987dce6c24205.ts' for writing
[hls @ 0x7f3b56928180] Opening '/config/transcodes/a10bcaa25bd65fcb71e88a987dce6c24206.ts' for writing
[hls @ 0x7f3b56928180] Opening '/config/transcodes/a10bcaa25bd65fcb71e88a987dce6c24207.ts' for writing
[hls @ 0x7f3b56928180] Opening '/config/transcodes/a10bcaa25bd65fcb71e88a987dce6c24208.ts' for writing
[hls @ 0x7f3b56928180] Opening '/config/transcodes/a10bcaa25bd65fcb71e88a987dce6c24209.ts' for writing
[hls @ 0x7f3b56928180] Opening '/config/transcodes/a10bcaa25bd65fcb71e88a987dce6c24210.ts' for writing
[hls @ 0x7f3b56928180] Opening '/config/transcodes/a10bcaa25bd65fcb71e88a987dce6c24211.ts' for writing
[hls @ 0x7f3b56928180] Opening '/config/transcodes/a10bcaa25bd65fcb71e88a987dce6c24212.ts' for writing
[hls @ 0x7f3b56928180] Opening '/config/transcodes/a10bcaa25bd65fcb71e88a987dce6c24213.ts' for writing
frame= 2598 fps=2573 q=-1.0 size=N/A time=00:01:48.40 bitrate=N/A speed= 107x    
[hls @ 0x7f3b56928180] Opening '/config/transcodes/a10bcaa25bd65fcb71e88a987dce6c24214.ts' for writing
[hls @ 0x7f3b56928180] Opening '/config/transcodes/a10bcaa25bd65fcb71e88a987dce6c24215.ts' for writing
[hls @ 0x7f3b56928180] Opening '/config/transcodes/a10bcaa25bd65fcb71e88a987dce6c24216.ts' for writing
[hls @ 0x7f3b56928180] Opening '/config/transcodes/a10bcaa25bd65fcb71e88a987dce6c24217.ts' for writing
[hls @ 0x7f3b56928180] Opening '/config/transcodes/a10bcaa25bd65fcb71e88a987dce6c24218.ts' for writing
[hls @ 0x7f3b56928180] Opening '/config/transcodes/a10bcaa25bd65fcb71e88a987dce6c24219.ts' for writing
[hls @ 0x7f3b56928180] Opening '/config/transcodes/a10bcaa25bd65fcb71e88a987dce6c24220.ts' for writing
frame= 3812 fps=2525 q=-1.0 size=N/A time=00:02:39.03 bitrate=N/A speed= 105x    
[hls @ 0x7f3b56928180] Opening '/config/transcodes/a10bcaa25bd65fcb71e88a987dce6c24221.ts' for writing
[hls @ 0x7f3b56928180] Opening '/config/transcodes/a10bcaa25bd65fcb71e88a987dce6c24222.ts' for writing
[hls @ 0x7f3b56928180] Opening '/config/transcodes/a10bcaa25bd65fcb71e88a987dce6c24223.ts' for writing
[hls @ 0x7f3b56928180] Opening '/config/transcodes/a10bcaa25bd65fcb71e88a987dce6c24224.ts' for writing
[hls @ 0x7f3b56928180] Opening '/config/transcodes/a10bcaa25bd65fcb71e88a987dce6c24225.ts' for writing
[hls @ 0x7f3b56928180] Opening '/config/transcodes/a10bcaa25bd65fcb71e88a987dce6c24226.ts' for writing
[hls @ 0x7f3b56928180] Opening '/config/transcodes/a10bcaa25bd65fcb71e88a987dce6c24227.ts' for writing
[hls @ 0x7f3b56928180] Opening '/config/transcodes/a10bcaa25bd65fcb71e88a987dce6c24228.ts' for writing
frame= 4822 fps=2399 q=-1.0 size=N/A time=00:03:21.15 bitrate=N/A speed= 100x    
[hls @ 0x7f3b56928180] Opening '/config/transcodes/a10bcaa25bd65fcb71e88a987dce6c24229.ts' for writing
[hls @ 0x7f3b56928180] Opening '/config/transcodes/a10bcaa25bd65fcb71e88a987dce6c24230.ts' for writing
frame= 5097 fps=2031 q=-1.0 size=N/A time=00:03:32.64 bitrate=N/A speed=84.7x    
[hls @ 0x7f3b56928180] Opening '/config/transcodes/a10bcaa25bd65fcb71e88a987dce6c24231.ts' for writing
[hls @ 0x7f3b56928180] Opening '/config/transcodes/a10bcaa25bd65fcb71e88a987dce6c24232.ts' for writing
[hls @ 0x7f3b56928180] Opening '/config/transcodes/a10bcaa25bd65fcb71e88a987dce6c24233.ts' for writing
frame= 5529 fps=1834 q=-1.0 size=N/A time=00:03:50.70 bitrate=N/A speed=76.5x    
[hls @ 0x7f3b56928180] Opening '/config/transcodes/a10bcaa25bd65fcb71e88a987dce6c24234.ts' for writing
[hls @ 0x7f3b56928180] Opening '/config/transcodes/a10bcaa25bd65fcb71e88a987dce6c24235.ts' for writing
frame= 5826 fps=1641 q=-1.0 size=N/A time=00:04:03.05 bitrate=N/A speed=68.5x    
[hls @ 0x7f3b56928180] Opening '/config/transcodes/a10bcaa25bd65fcb71e88a987dce6c24236.ts' for writing
[hls @ 0x7f3b56928180] Opening '/config/transcodes/a10bcaa25bd65fcb71e88a987dce6c24237.ts' for writing
frame= 6046 fps=1367 q=-1.0 size=N/A time=00:04:12.21 bitrate=N/A speed=  57x    
[hls @ 0x7f3b56928180] Opening '/config/transcodes/a10bcaa25bd65fcb71e88a987dce6c24238.ts' for writing
[hls @ 0x7f3b56928180] Opening '/config/transcodes/a10bcaa25bd65fcb71e88a987dce6c24239.ts' for writing
frame= 6440 fps=1300 q=-1.0 size=N/A time=00:04:28.66 bitrate=N/A speed=54.2x    
[hls @ 0x7f3b56928180] Opening '/config/transcodes/a10bcaa25bd65fcb71e88a987dce6c24240.ts' for writing
[hls @ 0x7f3b56928180] Opening '/config/transcodes/a10bcaa25bd65fcb71e88a987dce6c24241.ts' for writing

Transcoding is paused. Press [u] to resume.
[hls @ 0x7f3b56928180] Opening '/config/transcodes/a10bcaa25bd65fcb71e88a987dce6c24242.ts' for writing

[q] command received. Exiting.

[hls @ 0x7f3b56928180] Opening '/config/transcodes/a10bcaa25bd65fcb71e88a987dce6c24243.ts' for writing
frame= 6891 fps=1266 q=-1.0 Lsize=N/A time=00:04:47.50 bitrate=N/A speed=52.8x    
video:427752kB audio:52945kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown

Media info of the file

Video
ID :    1
Format :    AVC
Format/Info :   Advanced Video Codec
Format profile :    High 10@L4
Format settings :   CABAC / 4 Ref Frames
Format settings, CABAC :    Yes
Format settings, Reference frames :     4 frames
Codec ID :  V_MPEG4/ISO/AVC
Duration :  1 h 53 min
Bit rate :  15.2 Mb/s
Width :     1 918 pixels
Height :    804 pixels
Display aspect ratio :  2.40:1
Frame rate mode :   Constant
Frame rate :    23.976 (24000/1001) FPS
Color space :   YUV
Chroma subsampling :    4:2:0
Bit depth :     10 bits
Scan type :     Progressive
Bits/(Pixel*Frame) :    0.410
Stream size :   12.0 GiB (58%)
Writing library :   x264 core 164 r3065 ae03d92
Encoding settings :     cabac=1 / ref=2 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=6 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=25 / lookahead_threads=4 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=1 / keyint=240 / keyint_min=24 / scenecut=40 / intra_refresh=0 / rc_lookahead=30 / rc=crf / mbtree=1 / crf=17.0 / qcomp=0.60 / qpmin=0 / qpmax=81 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Default :   Yes
Forced :    No
Color range :   Limited
Color primaries :   BT.709
Transfer characteristics :  BT.709
Matrix coefficients :   BT.709

Audio #1
ID :    2
Format :    DTS XLL
Format/Info :   Digital Theater Systems
Commercial name :   DTS-HD Master Audio
Codec ID :  A_DTS
Duration :  1 h 53 min
Bit rate mode :     Variable
Bit rate :  3 953 kb/s
Channel(s) :    6 channels
Channel layout :    C L R Ls Rs LFE
Sampling rate :     48.0 kHz
Frame rate :    93.750 FPS (512 SPF)
Bit depth :     24 bits
Compression mode :  Lossless
Stream size :   3.12 GiB (15%)
Title :     Englisch DTS-HD MA 5.1
Language :  English
Default :   Yes
Forced :    No

Audio #2
ID :    3
Format :    DTS
Format/Info :   Digital Theater Systems
Codec ID :  A_DTS
Duration :  1 h 53 min
Bit rate mode :     Constant
Bit rate :  1 509 kb/s
Channel(s) :    6 channels
Channel layout :    C L R Ls Rs LFE
Sampling rate :     48.0 kHz
Frame rate :    93.750 FPS (512 SPF)
Bit depth :     24 bits
Compression mode :  Lossy
Stream size :   1.19 GiB (6%)
Title :     Englisch DTS 5.1
Language :  English
Default :   No
Forced :    No

Audio #3
ID :    4
Format :    DTS XLL
Format/Info :   Digital Theater Systems
Commercial name :   DTS-HD Master Audio
Codec ID :  A_DTS
Duration :  1 h 53 min
Bit rate mode :     Variable
Bit rate :  3 838 kb/s
Channel(s) :    6 channels
Channel layout :    C L R Ls Rs LFE
Sampling rate :     48.0 kHz
Frame rate :    93.750 FPS (512 SPF)
Bit depth :     24 bits
Compression mode :  Lossless
Stream size :   3.03 GiB (15%)
Title :     Deutsch DTS-HD MA 5.1
Language :  German
Default :   No
Forced :    No

Audio #4
ID :    5
Format :    DTS
Format/Info :   Digital Theater Systems
Codec ID :  A_DTS
Duration :  1 h 53 min
Bit rate mode :     Constant
Bit rate :  1 509 kb/s
Channel(s) :    6 channels
Channel layout :    C L R Ls Rs LFE
Sampling rate :     48.0 kHz
Frame rate :    93.750 FPS (512 SPF)
Bit depth :     24 bits
Compression mode :  Lossy
Stream size :   1.19 GiB (6%)
Title :     Deutsch DTS 5.1
Language :  German
Default :   No
Forced :    No

Text #1
ID :    6
Format :    PGS
Muxing mode :   zlib
Codec ID :  S_HDMV/PGS
Codec ID/Info :     Picture based subtitle format used on BDs/HD-DVDs
Duration :  1 h 10 min
Bit rate :  685 b/s
Frame rate :    0.009 FPS
Count of elements :     40
Stream size :   353 KiB (0%)
Title :     Deutsch Forced
Language :  German
Default :   Yes
Forced :    No

Text #2
ID :    7
Format :    PGS
Muxing mode :   zlib
Codec ID :  S_HDMV/PGS
Codec ID/Info :     Picture based subtitle format used on BDs/HD-DVDs
Duration :  1 h 46 min
Bit rate :  21.4 kb/s
Frame rate :    0.238 FPS
Count of elements :     1520
Stream size :   16.3 MiB (0%)
Title :     Deutsch
Language :  German
Default :   No
Forced :    No

Text #3
ID :    8
Format :    PGS
Muxing mode :   zlib
Codec ID :  S_HDMV/PGS
Codec ID/Info :     Picture based subtitle format used on BDs/HD-DVDs
Duration :  1 h 12 min
Bit rate :  1 165 b/s
Frame rate :    0.014 FPS
Count of elements :     60
Stream size :   618 KiB (0%)
Title :     Englisch Forced
Language :  English
Default :   No
Forced :    No

Application version

0.15.12

Device information

FireTV Stick 4K Max

Android version

Fire OS 8

Jellyfin server version

10.8.12

MichaelRUSF commented 7 months ago

@Jaytie2k7 The reason why h264 high 10 media isn't working is becuase the Fire TV isn't advertising that it has those capabilities even though it is supported. Thus it will fail Jellyfin’s decoder test, causing the media to transcode or remux depending on what version you are using.

I don’t see a way that is going to be solved, but I did create a workaround #3406. You can test it out here. You’ll need to download the build artifact and sideload to try it out. In the playback preferences, you’ll find an option that says AVC High10 compatibility mode, make sure that is selected then try playing the media.

jellyfin-bot commented 3 months ago

This issue has gone 120 days without comment. To avoid abandoned issues, it will be closed in 21 days if there are no new comments.

If you're the original submitter of this issue, please comment confirming if this issue still affects you in the latest release or master branch, or close the issue if it has been fixed. If you're another user also affected by this bug, please comment confirming so. Either action will remove the stale label.

This bot exists to prevent issues from becoming stale and forgotten. Jellyfin is always moving forward, and bugs are often fixed as side effects of other changes. We therefore ask that bug report authors remain vigilant about their issues to ensure they are closed if fixed, or re-confirmed - perhaps with fresh logs or reproduction examples - regularly. If you have any questions you can reach us on Matrix or Social Media.