jellyfin / jellyfin-androidtv

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

Can not play HDR version video correctly #3955

Open jinskanna opened 2 months ago

jinskanna commented 2 months ago

Describe the bug

1.Audio can paly normally. 2.Video can not load. 3.Already check [Enable tone mapping] on the jellyfin server image

Logs

No response

Application version

0.17.4

Where did you install the app from?

Sideloaded APK

Device information

SONY TV

Android version

Android 9

Jellyfin server version

10.9.10

Cifer9516 commented 1 month ago

Same, some HDR videos just play sound with black picture when tonemaping. 7900xtx VAAPI

/usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 200M -probesize 1G -ss 00:12:12.000 -noaccurate_seek -init_hw_device drm=dr:/dev/dri/renderD128 -init_hw_device vaapi=va@dr -init_hw_device vulkan=vk@dr -filter_hw_device vk -hwaccel vaapi -hwaccel_output_format vaapi -noautorotate -i file:"/B/media/Movies/Петля времени (2012)/Петля времени (2012).mkv" -noautoscale -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 av1_vaapi -rc_mode VBR -b:v 101903780 -maxrate 101903780 -bufsize 203807560 -force_key_frames:0 "expr:gte(t,n_forced*3)" -vf "setparams=color_primaries=bt2020:color_trc=smpte2084:colorspace=bt2020nc,hwmap=derive_device=vulkan,format=vulkan,libplacebo=upscaler=none:downscaler=none:format=bgra:tonemapping=bt.2390:peak_detect=0:color_primaries=bt709:color_trc=bt709:colorspace=bt709,hwmap=derive_device=vaapi,format=vaapi,scale_vaapi=format=nv12" -codec:a:0 aac -ac 2 -ab 256000 -af "volume=2" -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 3 -hls_segment_type fmp4 -hls_fmp4_init_filename "b2f8e887d182d461264ca659259953c4-1.mp4" -start_number 244 -hls_segment_filename "/var/cache/jellyfin/transcodes/b2f8e887d182d461264ca659259953c4%d.mp4" -hls_playlist_type vod -hls_list_size 0 -y "/var/cache/jellyfin/transcodes/b2f8e887d182d461264ca659259953c4.m3u8"

ffmpeg version 6.0.1-Jellyfin Copyright (c) 2000-2023 the FFmpeg developers
  built with gcc 14.1.1 (GCC) 20240720
  configuration: --prefix=/usr/lib/jellyfin-ffmpeg --target-os=linux --extra-version=Jellyfin --disable-doc --disable-ffplay --disable-ptx-compression --disable-shared --disable-libxcb --disable-sdl2 --disable-xlib --enable-gpl --enable-version3 --enable-static --enable-gmp --enable-gnutls --enable-chromaprint --enable-libfontconfig --enable-libass --enable-libbluray --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopus --enable-libopenmpt --enable-libtheora --enable-libvorbis --enable-libdav1d --enable-libwebp --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzvbi --enable-libzimg --enable-libshaderc --enable-libplacebo --enable-vulkan --enable-opencl --enable-vaapi --enable-amf --enable-libvpl --enable-ffnvcodec --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvdec --enable-nvenc
  libavutil      58.  2.100 / 58.  2.100
  libavcodec     60.  3.100 / 60.  3.100
  libavformat    60.  3.100 / 60.  3.100
  libavdevice    60.  1.100 / 60.  1.100
  libavfilter     9.  3.100 /  9.  3.100
  libswscale      7.  1.100 /  7.  1.100
  libswresample   4. 10.100 /  4. 10.100
  libpostproc    57.  1.100 / 57.  1.100
Input #0, matroska,webm, from 'file:/B/media/Movies/Петля времени (2012)/Петля времени (2012).mkv':
  Metadata:
    encoder         : libebml v1.4.2 + libmatroska v1.6.4
    creation_time   : 2021-07-24T11:45:08.000000Z
  Duration: 01:58:40.26, start: 0.000000, bitrate: 101903 kb/s
  Chapters:
    Chapter #0:0: start 0.000000, end 251.084156
      Metadata:
        title           : Chapter 01
    Chapter #0:1: start 251.084156, end 624.332022
      Metadata:
        title           : Chapter 02
    Chapter #0:2: start 624.332022, end 1270.602667
      Metadata:
        title           : Chapter 03
    Chapter #0:3: start 1270.602667, end 1547.337444
      Metadata:
        title           : Chapter 04
    Chapter #0:4: start 1547.337444, end 1899.314067
      Metadata:
        title           : Chapter 05
    Chapter #0:5: start 1899.314067, end 2199.322111
      Metadata:
        title           : Chapter 06
    Chapter #0:6: start 2199.322111, end 2494.909067
      Metadata:
        title           : Chapter 07
    Chapter #0:7: start 2494.909067, end 3131.628489
      Metadata:
        title           : Chapter 08
    Chapter #0:8: start 3131.628489, end 3432.262156
      Metadata:
        title           : Chapter 09
    Chapter #0:9: start 3432.262156, end 3703.116067
      Metadata:
        title           : Chapter 10
    Chapter #0:10: start 3703.116067, end 4078.032289
      Metadata:
        title           : Chapter 11
    Chapter #0:11: start 4078.032289, end 4375.037333
      Metadata:
        title           : Chapter 12
    Chapter #0:12: start 4375.037333, end 4693.689000
      Metadata:
        title           : Chapter 13
    Chapter #0:13: start 4693.689000, end 5025.854156
      Metadata:
        title           : Chapter 14
    Chapter #0:14: start 5025.854156, end 5495.198022
      Metadata:
        title           : Chapter 15
    Chapter #0:15: start 5495.198022, end 5656.150489
      Metadata:
        title           : Chapter 16
    Chapter #0:16: start 5656.150489, end 5826.570733
      Metadata:
        title           : Chapter 17
    Chapter #0:17: start 5826.570733, end 6052.546489
      Metadata:
        title           : Chapter 18
    Chapter #0:18: start 6052.546489, end 6653.271622
      Metadata:
        title           : Chapter 19
    Chapter #0:19: start 6653.271622, end 7120.256000
      Metadata:
        title           : Chapter 20
  Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x2160 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn (default)
    Metadata:
      BPS             : 81645270
      DURATION        : 01:58:38.361000000
      NUMBER_OF_FRAMES: 170670
      NUMBER_OF_BYTES : 72647563997
      _STATISTICS_WRITING_APP: mkvmerge v58.0.0 ('Supper's Ready') 64-bit
      _STATISTICS_WRITING_DATE_UTC: 2021-07-24 11:45:08
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:1(rus): Audio: dts (DTS-HD MA), 48000 Hz, 5.1(side), s16p (default)
    Metadata:
      title           : Dub, Blu-Ray
      BPS             : 2130322
      DURATION        : 01:58:38.166000000
      NUMBER_OF_FRAMES: 667328
      NUMBER_OF_BYTES : 1895498508
      _STATISTICS_WRITING_APP: mkvmerge v58.0.0 ('Supper's Ready') 64-bit
      _STATISTICS_WRITING_DATE_UTC: 2021-07-24 11:45:08
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:2(rus): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
    Metadata:
      title           : DVO, SDI-Media
      BPS             : 192000
      DURATION        : 01:58:40.256000000
      NUMBER_OF_FRAMES: 222508
      NUMBER_OF_BYTES : 170886144
      _STATISTICS_WRITING_APP: mkvmerge v58.0.0 ('Supper's Ready') 64-bit
      _STATISTICS_WRITING_DATE_UTC: 2021-07-24 11:45:08
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:3(rus): Audio: dts (DTS-HD MA), 48000 Hz, 5.1(side), s32p (24 bit)
    Metadata:
      title           : А. Гаврилов
      BPS             : 3676256
      DURATION        : 01:58:31.435000000
      NUMBER_OF_FRAMES: 666697
      NUMBER_OF_BYTES : 3267932452
      _STATISTICS_WRITING_APP: mkvmerge v58.0.0 ('Supper's Ready') 64-bit
      _STATISTICS_WRITING_DATE_UTC: 2021-07-24 11:45:08
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:4(rus): Audio: dts (DTS-HD MA), 48000 Hz, 5.1(side), s32p (24 bit)
    Metadata:
      title           : Ю. Немахов
      BPS             : 3690592
      DURATION        : 01:58:31.435000000
      NUMBER_OF_FRAMES: 666697
      NUMBER_OF_BYTES : 3280676232
      _STATISTICS_WRITING_APP: mkvmerge v58.0.0 ('Supper's Ready') 64-bit
      _STATISTICS_WRITING_DATE_UTC: 2021-07-24 11:45:08
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:5(rus): Audio: dts (DTS-HD MA), 48000 Hz, 5.1(side), s32p (24 bit)
    Metadata:
      title           : Л. Володарский
      BPS             : 3677048
      DURATION        : 01:58:40.118000000
      NUMBER_OF_FRAMES: 667511
      NUMBER_OF_BYTES : 3272627472
      _STATISTICS_WRITING_APP: mkvmerge v58.0.0 ('Supper's Ready') 64-bit
      _STATISTICS_WRITING_DATE_UTC: 2021-07-24 11:45:08
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:6(rus): Audio: dts (DTS-HD MA), 48000 Hz, 5.1(side), s32p (24 bit)
    Metadata:
      title           : А. Дасевич
      BPS             : 3580118
      DURATION        : 01:58:40.118000000
      NUMBER_OF_FRAMES: 667511
      NUMBER_OF_BYTES : 3186358652
      _STATISTICS_WRITING_APP: mkvmerge v58.0.0 ('Supper's Ready') 64-bit
      _STATISTICS_WRITING_DATE_UTC: 2021-07-24 11:45:08
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:7(eng): Audio: dts (DTS-HD MA), 48000 Hz, 5.1(side), s16p
    Metadata:
      BPS             : 2397199
      DURATION        : 01:58:40.118000000
      NUMBER_OF_FRAMES: 667511
      NUMBER_OF_BYTES : 2133543020
      _STATISTICS_WRITING_APP: mkvmerge v58.0.0 ('Supper's Ready') 64-bit
      _STATISTICS_WRITING_DATE_UTC: 2021-07-24 11:45:08
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:8(eng): Audio: flac, 48000 Hz, stereo, s32 (24 bit)
    Metadata:
      title           : Commentary by director/writer Rian Johnson and actors Joseph Gordon-Levitt and Emily Blunt
      BPS             : 931900
      DURATION        : 01:58:40.115000000
      NUMBER_OF_FRAMES: 83439
      NUMBER_OF_BYTES : 829405180
      _STATISTICS_WRITING_APP: mkvmerge v58.0.0 ('Supper's Ready') 64-bit
      _STATISTICS_WRITING_DATE_UTC: 2021-07-24 11:45:08
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:9(rus): Subtitle: subrip
    Metadata:
      title           : Groby
      BPS             : 65
      DURATION        : 01:49:23.935000000
      NUMBER_OF_FRAMES: 1031
      NUMBER_OF_BYTES : 53975
      _STATISTICS_WRITING_APP: mkvmerge v58.0.0 ('Supper's Ready') 64-bit
      _STATISTICS_WRITING_DATE_UTC: 2021-07-24 11:45:08
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:10(eng): Subtitle: subrip
    Metadata:
      title           : full
      BPS             : 39
      DURATION        : 01:47:12.676000000
      NUMBER_OF_FRAMES: 904
      NUMBER_OF_BYTES : 31360
      _STATISTICS_WRITING_APP: mkvmerge v58.0.0 ('Supper's Ready') 64-bit
      _STATISTICS_WRITING_DATE_UTC: 2021-07-24 11:45:08
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:11(eng): Subtitle: subrip
    Metadata:
      title           : SDH
      BPS             : 45
      DURATION        : 01:53:02.597000000
      NUMBER_OF_FRAMES: 1205
      NUMBER_OF_BYTES : 38310
      _STATISTICS_WRITING_APP: mkvmerge v58.0.0 ('Supper's Ready') 64-bit
      _STATISTICS_WRITING_DATE_UTC: 2021-07-24 11:45:08
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:12: Video: mjpeg (Progressive), yuvj444p(pc, bt470bg/unknown/unknown), 400x500 [SAR 300:300 DAR 4:5], 90k tbr, 90k tbn (attached pic)
    Metadata:
      filename        : poster.jpg
      mimetype        : image/jpeg
Stream mapping:
  Stream #0:0 -> #0:0 (hevc (native) -> av1 (av1_vaapi))
  Stream #0:1 -> #0:1 (dts (dca) -> aac (native))
Press [q] to stop, [?] for help
[hls @ 0x5f9f070e06c0] Opening '/var/cache/jellyfin/transcodes/b2f8e887d182d461264ca659259953c4-1.mp4' for writing
Output #0, hls, to '/var/cache/jellyfin/transcodes/b2f8e887d182d461264ca659259953c4.m3u8':
  Metadata:
    encoder         : Lavf60.3.100
  Stream #0:0: Video: av1 (Main), vaapi(tv, bt709, progressive), 3840x2160 [SAR 1:1 DAR 16:9], q=2-31, 101903 kb/s, 23.98 fps, 24k tbn (default)
    Metadata:
      encoder         : Lavc60.3.100 av1_vaapi
  Stream #0:1: Audio: aac (LC), 48000 Hz, stereo, fltp, 256 kb/s (default)
    Metadata:
      encoder         : Lavc60.3.100 aac
frame=    0 fps=0.0 q=0.0 size=N/A time=00:00:00.00 bitrate=N/A speed=   0x    
frame=   33 fps=0.0 q=-0.0 size=N/A time=00:00:01.42 bitrate=N/A speed=2.42x    
[hls @ 0x5f9f070e06c0] Opening '/var/cache/jellyfin/transcodes/b2f8e887d182d461264ca659259953c4244.mp4' for writing
frame=   89 fps= 81 q=-0.0 size=N/A time=00:00:03.75 bitrate=N/A speed=3.43x    
[hls @ 0x5f9f070e06c0] Opening '/var/cache/jellyfin/transcodes/b2f8e887d182d461264ca659259953c4245.mp4' for writing
frame=  145 fps= 91 q=-0.0 size=N/A time=00:00:06.25 bitrate=N/A speed=3.92x    
frame=  181 fps= 86 q=-0.0 size=N/A time=00:00:07.59 bitrate=N/A speed=3.63x    
[hls @ 0x5f9f070e06c0] Opening '/var/cache/jellyfin/transcodes/b2f8e887d182d461264ca659259953c4246.mp4' for writing
frame=  218 fps= 84 q=-0.0 size=N/A time=00:00:09.15 bitrate=N/A speed=3.53x    
frame=  247 fps= 80 q=-0.0 size=N/A time=00:00:10.34 bitrate=N/A speed=3.33x    
frame=  278 fps= 77 q=-0.0 size=N/A time=00:00:11.66 bitrate=N/A speed=3.23x    

[q] command received. Exiting.

[hls @ 0x5f9f070e06c0] Opening '/var/cache/jellyfin/transcodes/b2f8e887d182d461264ca659259953c4247.mp4' for writing
frame=  283 fps= 77 q=-0.0 Lsize=N/A time=00:00:11.88 bitrate=N/A speed=3.24x    
video:17kB audio:399kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
[aac @ 0x5f9f070e4e40] Qavg: 1004.877