jellyfin / jellyfin-tizen

Jellyfin Samsung TV Client
https://jellyfin.org
863 stars 69 forks source link

Video works when played via router DLNA media server, but not via the tizen app on Samsung tv (2015-2016) #182

Open ruggieroguida opened 1 year ago

ruggieroguida commented 1 year ago

First of all, Jellyfin is fantastic. It works great.

However, I am not able to play videos via the app. The video just stops at the loading image, but then the app needs to be restarted.

I have tried to change the audio stream and disable the subtitles, but it is the same.

I am running the server on a RPi.

This is the message in the log

User policy for "jellyfin". EnablePlaybackRemuxing: False EnableVideoPlaybackTranscoding: False EnableAudioPlaybackTranscoding: False
[2023-02-12 22:10:53.449 +00:00] [INF] StreamBuilder.BuildVideoItem( Profile="Anonymous Profile", Path="/home/pi/readyshare/nas01/Movies/San.Andreas.2015.2160p.UHD.BluRay.x265-TERMiNAL/San.Andreas.2015.2160p.UHD.BluRay.x265-TERMiNAL.mkv", AudioStreamIndex=1, SubtitleStreamIndex=-1 ) => ( PlayMethod=Transcode, TranscodeReason=AudioCodecNotSupported ) "media:/videos/278664bf-86e9-f089-3e7c-5f00da330301/stream?MediaSourceId=278664bf86e9f0893e7c5f00da330301&AudioStreamIndex=1&api_key=<token>&SubtitleMethod=Encode&RequireAvc=false&Tag=f21f21261b151cf63f653272e70187b5&TranscodeReasons=AudioCodecNotSupported"

This is the output of mediainfo if useful

Format                                   : Matroska
Format version                           : Version 4
File size                                : 18.1 GiB
Duration                                 : 1 h 56 min
Overall bit rate mode                    : Variable
Overall bit rate                         : 22.2 Mb/s
Encoded date                             : UTC 2017-11-22 14:34:13
Writing application                      : mkvmerge v18.0.0 ('Apricity') 64-bit
Writing library                          : libebml v1.3.5 + libmatroska v1.4.8

Video
ID                                       : 1
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Commercial name                          : HDR10
Format profile                           : Main 10@L5.1@High
Codec ID                                 : V_MPEGH/ISO/HEVC
Duration                                 : 1 h 54 min
Bit rate                                 : 16.8 Mb/s
Width                                    : 3 840 pixels
Height                                   : 1 608 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 (Type 2)
Bit depth                                : 10 bits
Bits/(Pixel*Frame)                       : 0.114
Stream size                              : 13.5 GiB (74%)
Writing library                          : x265 2.5+58-06979c042350:[Windows][GCC 6.2.1][64 bit] 10bit
Encoding settings                        : cpuid=1173503 / frame-threads=4 / numa-pools=16 / wpp / no-pmode / no-pme / no-psnr / no-ssim / log-level=2 / input-csp=1 / input-res=3840x1608 / interlace=0 / total-frames=164671 / level-idc=51 / high-tier=1 / uhd-bd=0 / ref=4 / no-allow-non-conformance / repeat-headers / annexb / aud / hrd / info / hash=0 / no-temporal-layers / no-open-gop / min-keyint=1 / keyint=24 / bframes=4 / b-adapt=2 / b-pyramid / bframe-bias=0 / rc-lookahead=25 / lookahead-slices=4 / scenecut=40 / no-intra-refresh / ctu=64 / min-cu-size=8 / rect / no-amp / max-tu-size=32 / tu-inter-depth=1 / tu-intra-depth=1 / limit-tu=0 / rdoq-level=2 / dynamic-rd=0.00 / no-ssim-rd / signhide / no-tskip / nr-intra=0 / nr-inter=0 / no-constrained-intra / no-strong-intra-smoothing / max-merge=3 / limit-refs=3 / limit-modes / me=3 / subme=3 / merange=57 / temporal-mvp / weightp / no-weightb / no-analyze-src-pics / deblock=-3:-3 / no-sao / no-sao-non-deblock / rd=4 / no-early-skip / rskip / no-fast-intra / no-tskip-fast / no-cu-lossless / no-b-intra / no-splitrd-skip / rdpenalty=0 / psy-rd=2.00 / psy-rdoq=1.00 / no-rd-refine / analysis-reuse-mode=0 / no-lossless / cbqpoffs=0 / crqpoffs=0 / rc=crf / crf=17.0 / qcomp=0.60 / qpstep=4 / stats-write=0 / stats-read=0 / vbv-maxrate=160000 / vbv-bufsize=160000 / vbv-init=0.9 / crf-max=0.0 / crf-min=0.0 / ipratio=1.40 / pbratio=1.30 / aq-mode=1 / aq-strength=1.00 / cutree / zone-count=0 / no-strict-cbr / qg-size=32 / no-rc-grain / qpmax=69 / qpmin=0 / no-const-vbv / sar=1 / overscan=0 / videoformat=5 / range=0 / colorprim=9 / transfer=16 / colormatrix=9 / chromaloc=1 / chromaloc-top=2 / chromaloc-bottom=2 / display-window=0 / master-display=G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(40000000,50) / max-cll=0,0 / min-luma=0 / max-luma=1023 / log2-max-poc-lsb=8 / vui-timing-info / vui-hrd-info / slices=1 / no-opt-qp-pps / no-opt-ref-list-length-pps / no-multi-pass-opt-rps / scenecut-bias=0.05 / no-opt-cu-delta-qp / no-aq-motion / hdr / hdr-opt / no-dhdr10-opt / analysis-reuse-level=5 / scale-factor=0 / refine-intra=0 / refine-inter=0 / refine-mv=0 / no-limit-sao / ctu-info=0 / no-lowpass-dct / refine-mv-type=0 / copy-pic=1
Default                                  : Yes
Forced                                   : No
Color range                              : Limited
Color primaries                          : BT.2020
Transfer characteristics                 : PQ
Matrix coefficients                      : BT.2020 non-constant
Mastering display color primaries        : Display P3
Mastering display luminance              : min: 0.0050 cd/m2, max: 4000 cd/m2

Audio #1
ID                                       : 2
Format                                   : MLP FBA 16-ch
Format/Info                              : Meridian Lossless Packing FBA with 16-channel presentation
Commercial name                          : Dolby TrueHD with Dolby Atmos
Codec ID                                 : A_TRUEHD
Duration                                 : 1 h 56 min
Bit rate mode                            : Variable
Bit rate                                 : 5 173 kb/s
Maximum bit rate                         : 8 760 kb/s
Channel(s)                               : 8 channels
Channel layout                           : L R C LFE Ls Rs Lb Rb
Sampling rate                            : 48.0 kHz
Frame rate                               : 1 200.000 FPS (40 SPF)
Compression mode                         : Lossless
Stream size                              : 4.21 GiB (23%)
Language                                 : English
Default                                  : Yes
Forced                                   : No
Number of dynamic objects                : 11
Bed channel count                        : 1 channel
Bed channel configuration                : LFE

Audio #2
ID                                       : 3
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Commercial name                          : Dolby Digital
Codec ID                                 : A_AC3
Duration                                 : 1 h 56 min
Bit rate mode                            : Constant
Bit rate                                 : 384 kb/s
Channel(s)                               : 6 channels
Channel layout                           : L R C LFE Ls Rs
Sampling rate                            : 48.0 kHz
Frame rate                               : 31.250 FPS (1536 SPF)
Bit depth                                : 16 bits
Compression mode                         : Lossy
Stream size                              : 320 MiB (2%)
Language                                 : English
Service kind                             : Complete Main
Default                                  : No
Forced                                   : No

Text #1
ID                                       : 4
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 52 min
Bit rate                                 : 27.3 kb/s
Count of elements                        : 2978
Stream size                              : 22.1 MiB (0%)
Title                                    : SDH
Language                                 : English
Default                                  : No
Forced                                   : No
dmitrylyzo commented 1 year ago

EnablePlaybackRemuxing: False EnableVideoPlaybackTranscoding: False EnableAudioPlaybackTranscoding: False

But it still wants to transcode (audio). :thinking: In fact, this video requires Remuxing for the second audio track and AudioTranscoding for the first one.

The video just stops at the loading image, but then the app needs to be restarted.

I noticed such behavior when using fMP4 - for some reason it requires transcoding job to finish. But yesterday noticed that HLS-TS behaves the same.

Try disabling fMP4 in the user settings / Playback (in the app).

I also recommend using 10.8 (stable) web for the stable server, because the current master branch is migrating to React and isn't polished.

ruggieroguida commented 1 year ago

EnablePlaybackRemuxing: False EnableVideoPlaybackTranscoding: False EnableAudioPlaybackTranscoding: False

But it still wants to transcode (audio). 🤔 In fact, this video requires Remuxing for the second audio track and AudioTranscoding for the first one.

The video just stops at the loading image, but then the app needs to be restarted.

I noticed such behavior when using fMP4 - for some reason it requires transcoding job to finish. But yesterday noticed that HLS-TS behaves the same.

Try disabling fMP4 in the user settings / Playback (in the app).

I also recommend using 10.8 (stable) web for the stable server, because the current master branch is migrating to React and isn't polished.

This was already disabled in both server and app.

I tried again this morning and these are some other messages from the log:

[2023-02-13 07:33:43.503 +00:00] [INF] User policy for "jellyfin". EnablePlaybackRemuxing: False EnableVideoPlaybackTranscoding: False EnableAudioPlaybackTranscoding: False
[2023-02-13 07:33:44.031 +00:00] [INF] StreamBuilder.BuildVideoItem( Profile="Anonymous Profile", Path="/home/pi/readyshare/nas01/Movies/San.Andreas.2015.2160p.UHD.BluRay.x265-TERMiNAL/San.Andreas.2015.2160p.UHD.BluRay.x265-TERMiNAL.mkv", AudioStreamIndex=1, SubtitleStreamIndex=-1 ) => ( PlayMethod=Transcode, TranscodeReason=AudioCodecNotSupported ) "media:/videos/278664bf-86e9-f089-3e7c-5f00da330301/stream?MediaSourceId=278664bf86e9f0893e7c5f00da330301&AudioStreamIndex=1&api_key=<token>&SubtitleMethod=Encode&RequireAvc=false&Tag=f21f21261b151cf63f653272e70187b5&TranscodeReasons=AudioCodecNotSupported"
[2023-02-13 07:33:44.213 +00:00] [WRN] Slow HTTP Response from "http://192.168.0.81:8096/Items/278664bf86e9f0893e7c5f00da330301/PlaybackInfo?UserId=0e92a30a829741058e733ff0b9b279f5&StartTimeTicks=0&IsPlayback=true&AutoOpenLiveStream=true&AudioStreamIndex=1&SubtitleStreamIndex=-1&MediaSourceId=278664bf86e9f0893e7c5f00da330301&MaxStreamingBitrate=140000000" to "192.168.0.20" in 0:00:02.1274397 with Status Code 200
[2023-02-13 07:33:45.747 +00:00] [WRN] Slow HTTP Response from "http://192.168.0.81:8096/Sessions/Playing" to "192.168.0.20" in 0:00:01.3546771 with Status Code 204
[2023-02-13 07:33:56.625 +00:00] [WRN] Slow HTTP Response from "http://192.168.0.81:8096/Sessions/Playing/Progress" to "192.168.0.20" in 0:00:02.2060367 with Status Code 204
[2023-02-13 07:34:26.575 +00:00] [WRN] Slow HTTP Response from "http://192.168.0.81:8096/Sessions/Playing/Progress" to "192.168.0.20" in 0:00:02.1532788 with Status Code 204

This is the version of the server I am using on the RPi

pi@raspberrypi:~ $ sudo apt info jellyfin-server
Package: jellyfin-server
Version: 10.8.9-1
Priority: optional
Section: misc
Maintainer: Jellyfin Team <team@jellyfin.org>
Installed-Size: 121 MB
Depends: at, libsqlite3-0, libfontconfig1, libfreetype6, libssl1.1 | libssl3
Recommends: jellyfin-web, sudo
Breaks: jellyfin (<< 10.6.0)
Replaces: jellyfin (<< 10.6.0)
Homepage: https://jellyfin.org/
Download-Size: 36.0 MB
APT-Manual-Installed: no
APT-Sources: https://repo.jellyfin.org/debian buster/main armhf Packages
Description: Jellyfin is the Free Software Media System.
 This package provides the Jellyfin server backend and API.
Fallenbagel commented 1 year ago

Try with subs turned off (if you turn this on youll need to have video transcoding enabled to burn in as afaik PGSSUBS are not supported) and audio trandcoding enabled in users settings