jellyfin / jellyfin-androidtv

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

FireTV 4k 2021 + Jellyfin 0.13.0 = ExoPlayer issues #1557

Closed QBANIN closed 2 years ago

QBANIN commented 2 years ago

Describe the bug

Since upgrade to Jellyfin 0.13.0 some movies doesn't start while using ExoPlayer because of "player error" or load for a long time at the begginnig anf then keep buffering ( pause and resume) every few seconds. VLC seems to be working fine but for me is unusable because it dowmix audio to stereo. Tried all 0.13.0-beta1 up to final 0.13 release and all of them are affected. The last bug-free version is 0.12.3.

Attaching logs from example movie, there are few more if you need more information.

EDIT: Replaced wrong 0.12.3 log output with correct one.

Logs

Logs from 0.12.3 where everything is ok:

03-23 16:30:59.791  8886  8886 D jellyfin-apiclient: Adding request to queue: http://192.168.x.xx:80/Items/907de2a8f9282396443751bc4f7f6570/PlaybackInfo?format=json
03-23 16:30:59.797   451  1066 I MediaFocusControl: requestAudioFocus() from uid/pid 10198/8886 clientId=com.amazon.media.AmazonAudioManager@3cc2690org.jellyfin.androidtv.ui.playback.CustomPlaybackOverlayFragment$6@ccbfa8c callingPack=org.jellyfin.androidtv req=1 flags=0x0 sdk=30
03-23 16:30:59.848   319   319 D SurfaceFlinger: duplicate layer name: changing SurfaceView - org.jellyfin.androidtv/org.jellyfin.androidtv.ui.playback.PlaybackOverlayActivity to SurfaceView - org.jellyfin.androidtv/org.jellyfin.androidtv.ui.playback.PlaybackOverlayActivity#1
03-23 16:30:59.849   319   319 D SurfaceFlinger: duplicate layer name: changing Background for -SurfaceView - org.jellyfin.androidtv/org.jellyfin.androidtv.ui.playback.PlaybackOverlayActivity to Background for -SurfaceView - org.jellyfin.androidtv/org.jellyfin.androidtv.ui.playback.PlaybackOverlayActivity#1
03-23 16:30:59.877  8886  8886 I jellyfin-apiclient: Response received from: http://192.168.x.x:80/Items/907de2a8f9282396443751bc4f7f6570/PlaybackInfo?format=json
03-23 16:30:59.880  8886  8886 D jellyfin-apiclient: Adding request to queue: http://192.168.x.x:80/Items/907de2a8f9282396443751bc4f7f6570/PlaybackInfo?format=json
03-23 16:30:59.885   451   636 D AmazonWindowMetrics: On window event - Package org.jellyfin.androidtv, isDreaming false, state 1, alexaMode 0
03-23 16:30:59.891   451   576 I ActivityManager: Displayed org.jellyfin.androidtv/.ui.playback.PlaybackOverlayActivity: +166ms
03-23 16:30:59.924  8886  8886 I jellyfin-apiclient: Response received from: http://192.168.x.x:80/Items/907de2a8f9282396443751bc4f7f6570/PlaybackInfo?format=json
03-23 16:30:59.954  8886  8886 D jellyfin-apiclient: Adding request to queue: http://192.168.x.x6:80/Sessions/Playing
03-23 16:30:59.958   319   319 D SurfaceFlinger: duplicate layer name: changing SurfaceView - org.jellyfin.androidtv/org.jellyfin.androidtv.ui.playback.PlaybackOverlayActivity to SurfaceView - org.jellyfin.androidtv/org.jellyfin.androidtv.ui.playback.PlaybackOverlayActivity#2
03-23 16:30:59.959   319   319 D SurfaceFlinger: duplicate layer name: changing Background for -SurfaceView - org.jellyfin.androidtv/org.jellyfin.androidtv.ui.playback.PlaybackOverlayActivity to Background for -SurfaceView - org.jellyfin.androidtv/org.jellyfin.androidtv.ui.playback.PlaybackOverlayActivity#2
03-23 16:31:00.891  8886  8886 I jellyfin-apiclient: Response received from: http://192.168.x.x:80/Sessions/Playing
03-23 16:31:01.438  8886  9007 D jellyfin-apiclient: Web socket message received.
03-23 16:31:01.439  8886  9007 I jellyfin-apiclient: Received web socket message: UserDataChanged
03-23 16:31:03.104  8886  8886 D jellyfin-apiclient: Adding request to queue: http://192.168.x.x:80/Sessions/Playing/Progress
03-23 16:31:04.034  8886  8886 I jellyfin-apiclient: Response received from: http://192.168.x.x:80/Sessions/Playing/Progress
03-23 16:31:06.121  8886  8886 D jellyfin-apiclient: Adding request to queue: http://192.168.x.x:80/Sessions/Playing/Progress
03-23 16:31:07.177  8886  8886 I jellyfin-apiclient: Response received from: http://192.168.x.x:80/Sessions/Playing/Progress
03-23 16:31:09.122  8886  8886 D jellyfin-apiclient: Adding request to queue: http://192.168.x.x:80/Sessions/Playing/Progress
03-23 16:31:10.172  8886  8886 I jellyfin-apiclient: Response received from: http://192.168.x.x:80/Sessions/Playing/Progress
03-23 16:31:12.123  8886  8886 D jellyfin-apiclient: Adding request to queue: http://192.168.x.x:80/Sessions/Playing/Progress
03-23 16:31:12.934  8886  8886 I jellyfin-apiclient: Response received from: http://192.168.x.x:80/Sessions/Playing/Progress
03-23 16:31:15.124  8886  8886 D jellyfin-apiclient: Adding request to queue: http://192.168.x.x:80/Sessions/Playing/Progress
03-23 16:31:16.226  8886  8886 I jellyfin-apiclient: Response received from: http://192.168.x.x:80/Sessions/Playing/Progress

... and from 0.13.0 where playback is broken

03-23 09:51:50.261  6381  6381 D jellyfin-apiclient: Adding request to queue: http://192.168.x.x:80/Items/907de2a8f9282396443751bc4f7f6570/Similar?Fields=PrimaryImageAspectRatio%2CChildCount&UserId=c4bd21f36708496fb6b0f17b4882bbc8&Limit=10&format=json
03-23 09:51:50.273  6381  6381 E ThemeUtils: View class org.jellyfin.androidtv.ui.ExpandableTextView is an AppCompat widget that can only be used with a Theme.AppCompat theme (or descendant).
03-23 09:51:50.319  6381  6381 I chatty  : uid=10197(org.jellyfin.androidtv) identical 2 lines
03-23 09:51:50.494  6381  6381 I jellyfin-apiclient: Response received from: http://192.168.x.x:80/Items/907de2a8f9282396443751bc4f7f6570/Similar?Fields=PrimaryImageAspectRatio%2CChildCount&UserId=c4bd21f36708496fb6b0f17b4882bbc8&Limit=10&format=json
03-23 09:51:57.798  6381  6381 D jellyfin-apiclient: Adding request to queue: http://192.168.x.x:80/Users/c4bd21f3-6708-496f-b6b0-f17b4882bbc8/Items/907de2a8f9282396443751bc4f7f6570/Intros?format=json
03-23 09:51:57.804  6381  6381 I jellyfin-apiclient: Response received from: http://192.168.x.x:80/Users/c4bd21f3-6708-496f-b6b0-f17b4882bbc8/Items/907de2a8f9282396443751bc4f7f6570/Intros?format=json
03-23 09:51:57.807   451   504 I ActivityManager: START u0 {cmp=org.jellyfin.androidtv/.ui.playback.PlaybackOverlayActivity (has extras)} from uid 10197
03-23 09:51:57.824   451   576 V MouseModeService: packageName=org.jellyfin.androidtv activityName= mouseModeEnabled=false
03-23 09:51:57.824  1344  1344 D AlexaFocusChannelSet: Target (org.jellyfin.androidtv) has not reported an active namespace
03-23 09:51:57.825  1344  1344 W AlexaFocusPackageManagerParser: Package (org.jellyfin.androidtv) has not declared permission (amazon.speech.permission.SEND_DATA_TO_ALEXA) for implicit focus
03-23 09:51:57.825  1344  1344 D AlexaFocusChannelSet: Target (org.jellyfin.androidtv) does not support any namespaces
03-23 09:51:57.825  1344  1344 W AlexaFocusVisualChannelSet: Package (org.jellyfin.androidtv) has not registered a namespace; attempting clear
03-23 09:51:57.825  1344  1344 D SPCH-ADW_PartialScreenDismisser: onActivityResume, org.jellyfin.androidtv is in foreground
03-23 09:51:57.849  1344  5340 D AppStateReporter:ApplicationStateReporter: same package as last, packageName : org.jellyfin.androidtv
03-23 09:51:57.932  6381  6381 E ThemeUtils: View class org.jellyfin.androidtv.ui.shared.StrokeTextView is an AppCompat widget that can only be used with a Theme.AppCompat theme (or descendant).
03-23 09:51:58.047  6381  6381 I chatty  : uid=10197(org.jellyfin.androidtv) identical 20 lines
03-23 09:51:58.066  6381  6381 I chatty  : uid=10197(org.jellyfin.androidtv) identical 4 lines
03-23 09:51:58.078  6381  6381 I chatty  : uid=10197(org.jellyfin.androidtv) identical 34 lines
03-23 09:51:58.116  6381  6381 W MediaCodecCapabilitiesTest:    at org.jellyfin.androidtv.util.profile.MediaCodecCapabilitiesTest.supports(MediaCodecCapabilitiesTest.java:57)
03-23 09:51:58.116  6381  6381 W MediaCodecCapabilitiesTest:    at org.jellyfin.androidtv.util.profile.MediaCodecCapabilitiesTest.hasDecoder(MediaCodecCapabilitiesTest.java:47)
03-23 09:51:58.116  6381  6381 W MediaCodecCapabilitiesTest:    at org.jellyfin.androidtv.util.profile.MediaCodecCapabilitiesTest.supportsHevcMain10(MediaCodecCapabilitiesTest.java:36)
03-23 09:51:58.116  6381  6381 W MediaCodecCapabilitiesTest:    at org.jellyfin.androidtv.util.profile.ProfileHelper$deviceHevcCodecProfile$2.invoke(ProfileHelper.kt:44)
03-23 09:51:58.116  6381  6381 W MediaCodecCapabilitiesTest:    at org.jellyfin.androidtv.util.profile.ProfileHelper$deviceHevcCodecProfile$2.invoke(ProfileHelper.kt:27)
03-23 09:51:58.116  6381  6381 W MediaCodecCapabilitiesTest:    at org.jellyfin.androidtv.util.profile.ProfileHelper.getDeviceHevcCodecProfile(ProfileHelper.kt:27)
03-23 09:51:58.116  6381  6381 W MediaCodecCapabilitiesTest:    at org.jellyfin.androidtv.util.profile.LibVlcProfile.<init>(LibVlcProfile.kt:94)
03-23 09:51:58.116  6381  6381 W MediaCodecCapabilitiesTest:    at org.jellyfin.androidtv.ui.playback.PlaybackController.play(PlaybackController.java:496)
03-23 09:51:58.116  6381  6381 W MediaCodecCapabilitiesTest:    at org.jellyfin.androidtv.ui.playback.PlaybackController.play(PlaybackController.java:381)
03-23 09:51:58.116  6381  6381 W MediaCodecCapabilitiesTest:    at org.jellyfin.androidtv.ui.playback.CustomPlaybackOverlayFragment.onActivityCreated(CustomPlaybackOverlayFragment.java:318)
03-23 09:51:58.134  6381  6381 I chatty  : uid=10197(org.jellyfin.androidtv) identical 17 lines
03-23 09:51:58.135  6381  6381 W MediaCodecCapabilitiesTest:    at org.jellyfin.androidtv.util.profile.MediaCodecCapabilitiesTest.supports(MediaCodecCapabilitiesTest.java:57)
03-23 09:51:58.135  6381  6381 W MediaCodecCapabilitiesTest:    at org.jellyfin.androidtv.util.profile.MediaCodecCapabilitiesTest.hasDecoder(MediaCodecCapabilitiesTest.java:47)
03-23 09:51:58.135  6381  6381 W MediaCodecCapabilitiesTest:    at org.jellyfin.androidtv.util.profile.MediaCodecCapabilitiesTest.supportsHevcMain10(MediaCodecCapabilitiesTest.java:36)
03-23 09:51:58.135  6381  6381 W MediaCodecCapabilitiesTest:    at org.jellyfin.androidtv.util.profile.ProfileHelper$deviceHevcCodecProfile$2.invoke(ProfileHelper.kt:44)
03-23 09:51:58.135  6381  6381 W MediaCodecCapabilitiesTest:    at org.jellyfin.androidtv.util.profile.ProfileHelper$deviceHevcCodecProfile$2.invoke(ProfileHelper.kt:27)
03-23 09:51:58.135  6381  6381 W MediaCodecCapabilitiesTest:    at org.jellyfin.androidtv.util.profile.ProfileHelper.getDeviceHevcCodecProfile(ProfileHelper.kt:27)
03-23 09:51:58.135  6381  6381 W MediaCodecCapabilitiesTest:    at org.jellyfin.androidtv.util.profile.LibVlcProfile.<init>(LibVlcProfile.kt:94)
03-23 09:51:58.135  6381  6381 W MediaCodecCapabilitiesTest:    at org.jellyfin.androidtv.ui.playback.PlaybackController.play(PlaybackController.java:496)
03-23 09:51:58.135  6381  6381 W MediaCodecCapabilitiesTest:    at org.jellyfin.androidtv.ui.playback.PlaybackController.play(PlaybackController.java:381)
03-23 09:51:58.135  6381  6381 W MediaCodecCapabilitiesTest:    at org.jellyfin.androidtv.ui.playback.CustomPlaybackOverlayFragment.onActivityCreated(CustomPlaybackOverlayFragment.java:318)
03-23 09:51:58.172  6381  6381 D jellyfin-apiclient: Adding request to queue: http://192.168.x.x:80/Items/907de2a8f9282396443751bc4f7f6570/PlaybackInfo?format=json
03-23 09:51:58.181   451   504 I MediaFocusControl: requestAudioFocus() from uid/pid 10197/6381 clientId=com.amazon.media.AmazonAudioManager@86ece93org.jellyfin.androidtv.ui.playback.CustomPlaybackOverlayFragment$6@2d0eed0 callingPack=org.jellyfin.androidtv req=1 flags=0x0 sdk=31
03-23 09:51:58.280   319   319 D SurfaceFlinger: duplicate layer name: changing SurfaceView - org.jellyfin.androidtv/org.jellyfin.androidtv.ui.playback.PlaybackOverlayActivity to SurfaceView - org.jellyfin.androidtv/org.jellyfin.androidtv.ui.playback.PlaybackOverlayActivity#1
03-23 09:51:58.281   319   319 D SurfaceFlinger: duplicate layer name: changing Background for -SurfaceView - org.jellyfin.androidtv/org.jellyfin.androidtv.ui.playback.PlaybackOverlayActivity to Background for -SurfaceView - org.jellyfin.androidtv/org.jellyfin.androidtv.ui.playback.PlaybackOverlayActivity#1
03-23 09:51:58.339   451   636 D AmazonWindowMetrics: On window event - Package org.jellyfin.androidtv, isDreaming false, state 1, alexaMode 0
03-23 09:51:58.351   451   576 I ActivityManager: Displayed org.jellyfin.androidtv/.ui.playback.PlaybackOverlayActivity: +518ms
03-23 09:51:58.353  6381  6381 I jellyfin-apiclient: Response received from: http://192.168.x.x:80/Items/907de2a8f9282396443751bc4f7f6570/PlaybackInfo?format=json
03-23 09:51:58.370  6381  6381 D jellyfin-apiclient: Adding request to queue: http://192.168.x.x:80/Items/907de2a8f9282396443751bc4f7f6570/PlaybackInfo?format=json
03-23 09:51:58.479  6381  6381 I jellyfin-apiclient: Response received from: http://192.168.x.x:80/Items/907de2a8f9282396443751bc4f7f6570/PlaybackInfo?format=json
03-23 09:51:58.702  6381  6381 D jellyfin-apiclient: Adding request to queue: http://192.168.x.x:80/Sessions/Playing
03-23 09:51:58.715   319   319 D SurfaceFlinger: duplicate layer name: changing SurfaceView - org.jellyfin.androidtv/org.jellyfin.androidtv.ui.playback.PlaybackOverlayActivity to SurfaceView - org.jellyfin.androidtv/org.jellyfin.androidtv.ui.playback.PlaybackOverlayActivity#2
03-23 09:51:58.716   319   319 D SurfaceFlinger: duplicate layer name: changing Background for -SurfaceView - org.jellyfin.androidtv/org.jellyfin.androidtv.ui.playback.PlaybackOverlayActivity to Background for -SurfaceView - org.jellyfin.androidtv/org.jellyfin.androidtv.ui.playback.PlaybackOverlayActivity#2
03-23 09:51:58.987  6381  6381 I jellyfin-apiclient: Response received from: http://192.168.x.x:80/Sessions/Playing
03-23 09:51:59.479  6381  6488 D jellyfin-apiclient: Web socket message received.
03-23 09:51:59.479  6381  6488 I jellyfin-apiclient: Received web socket message: UserDataChanged
03-23 09:52:15.335  6381  6381 D jellyfin-apiclient: Adding request to queue: http://192.168.x.x:80/Sessions/Playing/Progress
03-23 09:52:15.649  6381  6381 I jellyfin-apiclient: Response received from: http://192.168.x.x:80/Sessions/Playing/Progress
03-23 09:52:17.669  6381  6488 D jellyfin-apiclient: Web socket message received.
03-23 09:52:17.669  6381  6488 I jellyfin-apiclient: Received web socket message: ForceKeepAlive
03-23 09:52:18.341  6381  6381 D jellyfin-apiclient: Adding request to queue: http://192.168.x.x:80/Sessions/Playing/Progress
03-23 09:52:18.635  6381  6381 I jellyfin-apiclient: Response received from: http://192.168.x.x:80/Sessions/Playing/Progress
03-23 09:52:29.414  6381  6602 I MediaCodecLogger: the latest buffer is 10906 old with packageName org.jellyfin.androidtv. Possible resume detected
03-23 09:52:30.355  6381  6381 D jellyfin-apiclient: Adding request to queue: http://192.168.x.x:80/Sessions/Playing/Progress
03-23 09:52:30.725  6381  6381 I jellyfin-apiclient: Response received from: http://192.168.x.x:80/Sessions/Playing/Progress
03-23 09:52:33.358  6381  6381 D jellyfin-apiclient: Adding request to queue: http://192.168.x.x:80/Sessions/Playing/Progress
03-23 09:52:34.428  6381  6381 I jellyfin-apiclient: Response received from: http://192.168.x.x:80/Sessions/Playing/Progress
03-23 09:52:53.222  6381  6602 I MediaCodecLogger: the latest buffer is 17835 old with packageName org.jellyfin.androidtv. Possible resume detected
03-23 09:52:54.370  6381  6381 D jellyfin-apiclient: Adding request to queue: http://192.168.x.x:80/Sessions/Playing/Progress
03-23 09:52:54.838  6381  6381 I jellyfin-apiclient: Response received from: http://192.168.x.x:80/Sessions/Playing/Progress
03-23 09:52:57.373  6381  6381 D jellyfin-apiclient: Adding request to queue: http://192.168.x.x:80/Sessions/Playing/Progress
03-23 09:52:57.580  6381  6381 I jellyfin-apiclient: Response received from: http://192.168.x.x:80/Sessions/Playing/Progress

FFmpeg logs

/videos/907de2a8-f928-2396-4437-51bc4f7f6570/stream.mkv

{"Protocol":0,"Id":"907de2a8f9282396443751bc4f7f6570","Path":"/movie.mkv","EncoderPath":null,"EncoderProtocol":null,"Type":0,"Container":"mkv,webm","Size":17741252608,"Name":"The.Animatrix.2003.MULTi.REMUX.1080p.BluRay.VC-1.TrueHD.5.1-DENDA","IsRemote":false,"ETag":"a398d5f227c7bd08f5953f5dd9cc53ff","RunTimeTicks":60506882048,"ReadAtNativeFramerate":false,"IgnoreDts":false,"IgnoreIndex":false,"GenPtsInput":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"RequiresOpening":false,"OpenToken":null,"RequiresClosing":false,"LiveStreamId":null,"BufferMs":null,"RequiresLooping":false,"SupportsProbing":true,"VideoType":0,"IsoType":null,"Video3DFormat":null,"MediaStreams":[{"Codec":"vc1","CodecTag":"WVC1","Language":"eng","ColorRange":null,"ColorSpace":"bt709","ColorTransfer":"bt709","ColorPrimaries":"bt709","Comment":null,"TimeBase":"1/1000","CodecTimeBase":"1001/48000","Title":null,"VideoRange":"SDR","LocalizedUndefined":null,"LocalizedDefault":null,"LocalizedForced":null,"LocalizedExternal":null,"DisplayTitle":"1080p VC1 SDR","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":null,"BitRate":23456839,"BitDepth":null,"RefFrames":1,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":true,"IsForced":true,"Height":1080,"Width":1920,"AverageFrameRate":23.976025,"RealFrameRate":23.976025,"Profile":"Advanced","Type":1,"AspectRatio":"16:9","Index":0,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":"yuv420p","Level":3,"IsAnamorphic":null},{"Codec":"ac3","CodecTag":null,"Language":"pol","ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":"1/48000","Title":null,"VideoRange":null,"LocalizedUndefined":null,"LocalizedDefault":null,"LocalizedForced":null,"LocalizedExternal":null,"DisplayTitle":"Polish - Dolby Digital - 5.1 - Default","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":"5.1","BitRate":448000,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":6,"SampleRate":48000,"IsDefault":true,"IsForced":true,"Height":null,"Width":null,"AverageFrameRate":null,"RealFrameRate":null,"Profile":null,"Type":0,"AspectRatio":null,"Index":1,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":null,"Level":0,"IsAnamorphic":null},{"Codec":"truehd","CodecTag":null,"Language":"eng","ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":"1/48000","Title":null,"VideoRange":null,"LocalizedUndefined":null,"LocalizedDefault":null,"LocalizedForced":null,"LocalizedExternal":null,"DisplayTitle":"English - TRUEHD - 5.1","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":"5.1","BitRate":1822177,"BitDepth":24,"RefFrames":null,"PacketLength":null,"Channels":6,"SampleRate":48000,"IsDefault":false,"IsForced":false,"Height":null,"Width":null,"AverageFrameRate":null,"RealFrameRate":null,"Profile":null,"Type":0,"AspectRatio":null,"Index":2,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":null,"Level":0,"IsAnamorphic":null},{"Codec":"ac3","CodecTag":null,"Language":"eng","ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":"1/48000","Title":null,"VideoRange":null,"LocalizedUndefined":null,"LocalizedDefault":null,"LocalizedForced":null,"LocalizedExternal":null,"DisplayTitle":"English - Dolby Digital - 5.1","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":"5.1","BitRate":640000,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":6,"SampleRate":48000,"IsDefault":false,"IsForced":false,"Height":null,"Width":null,"AverageFrameRate":null,"RealFrameRate":null,"Profile":null,"Type":0,"AspectRatio":null,"Index":3,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":null,"Level":0,"IsAnamorphic":null},{"Codec":"subrip","CodecTag":null,"Language":"pol","ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":"0/1","Title":null,"VideoRange":null,"LocalizedUndefined":"Nieustalony","LocalizedDefault":"Domy\u015Blne","LocalizedForced":"Wymuszony","LocalizedExternal":"External","DisplayTitle":"Polish - SUBRIP","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":null,"BitRate":null,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":false,"IsForced":false,"Height":null,"Width":null,"AverageFrameRate":null,"RealFrameRate":null,"Profile":null,"Type":2,"AspectRatio":null,"Index":4,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Path":null,"PixelFormat":null,"Level":0,"IsAnamorphic":null},{"Codec":"PGSSUB","CodecTag":null,"Language":"pol","ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":"0/1","Title":null,"VideoRange":null,"LocalizedUndefined":"Nieustalony","LocalizedDefault":"Domy\u015Blne","LocalizedForced":"Wymuszony","LocalizedExternal":"External","DisplayTitle":"Polish - PGSSUB","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":null,"BitRate":null,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":false,"IsForced":false,"Height":null,"Width":null,"AverageFrameRate":null,"RealFrameRate":null,"Profile":null,"Type":2,"AspectRatio":null,"Index":5,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":null,"Level":0,"IsAnamorphic":null},{"Codec":"PGSSUB","CodecTag":null,"Language":"eng","ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":"0/1","Title":null,"VideoRange":null,"LocalizedUndefined":"Nieustalony","LocalizedDefault":"Domy\u015Blne","LocalizedForced":"Wymuszony","LocalizedExternal":"External","DisplayTitle":"English - PGSSUB","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":null,"BitRate":null,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":false,"IsForced":false,"Height":null,"Width":null,"AverageFrameRate":null,"RealFrameRate":null,"Profile":null,"Type":2,"AspectRatio":null,"Index":6,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":null,"Level":0,"IsAnamorphic":null},{"Codec":"PGSSUB","CodecTag":null,"Language":"eng","ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":"0/1","Title":null,"VideoRange":null,"LocalizedUndefined":"Nieustalony","LocalizedDefault":"Domy\u015Blne","LocalizedForced":"Wymuszony","LocalizedExternal":"External","DisplayTitle":"English - PGSSUB","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":null,"BitRate":null,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":false,"IsForced":false,"Height":null,"Width":null,"AverageFrameRate":null,"RealFrameRate":null,"Profile":null,"Type":2,"AspectRatio":null,"Index":7,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":null,"Level":0,"IsAnamorphic":null}],"MediaAttachments":[],"Formats":[],"Bitrate":26367016,"Timestamp":null,"RequiredHttpHeaders":{},"TranscodingUrl":null,"TranscodingSubProtocol":null,"TranscodingContainer":null,"AnalyzeDurationMs":null,"DefaultAudioStreamIndex":null,"DefaultSubtitleStreamIndex":null}

/usr/lib/jellyfin-ffmpeg/ffmpeg -ss 00:03:07.764 -f matroska,webm -autorotate 0 -i file:"/movie.mkv" -map 0:0 -map 0:1 -map -0:s -codec:v:0 libx264 -force_key_frames "expr:gte(t,n_forced*5)" -vf "setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale=trunc(min(max(iw\,ih*dar)\,2560)/2)*2:trunc(ow/dar/2)*2,format=yuv420p" -copyts -avoid_negative_ts disabled -start_at_zero -preset superfast -crf 23 -maxrate 22706848 -bufsize 45413696 -profile:v:0 high -level 41 -x264opts:0 subme=0:me_range=4:rc_lookahead=10:me=dia:no_chroma_me:8x8dct=0:partitions=none -map_metadata -1 -map_chapters -1 -threads 0 -codec:a:0 aac -ac 6 -ab 448000 -y "/config/transcodes/a198264545b8b60fbf88b209217c7d49.mkv"

ffmpeg version 4.4.1-Jellyfin Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 10 (Debian 10.2.1-6)
  configuration: --prefix=/usr/lib/jellyfin-ffmpeg --target-os=linux --extra-version=Jellyfin --disable-doc --disable-ffplay --disable-shared --disable-libxcb --disable-sdl2 --disable-xlib --enable-lto --enable-gpl --enable-version3 --enable-static --enable-gmp --enable-gnutls --enable-libdrm --enable-libass --enable-libfreetype --enable-libfribidi --enable-libfontconfig --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libdav1d --enable-libwebp --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzvbi --enable-libzimg --arch=amd64 --enable-opencl --enable-vaapi --enable-amf --enable-libmfx --enable-vdpau --enable-ffnvcodec --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvdec --enable-nvenc
  libavutil      56. 70.100 / 56. 70.100
  libavcodec     58.134.100 / 58.134.100
  libavformat    58. 76.100 / 58. 76.100
  libavdevice    58. 13.100 / 58. 13.100
  libavfilter     7.110.100 /  7.110.100
  libswscale      5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc    55.  9.100 / 55.  9.100
[matroska,webm @ 0x557b962c7540] Could not find codec parameters for stream 5 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[matroska,webm @ 0x557b962c7540] Could not find codec parameters for stream 6 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[matroska,webm @ 0x557b962c7540] Could not find codec parameters for stream 7 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
Input #0, matroska,webm, from 'file:/movie.mkv':
  Metadata:
    title           : movie
    encoder         : libebml v1.3.9 + libmatroska v1.5.2
    creation_time   : 2022-01-29T13:15:18.000000Z
  Duration: 01:40:50.69, start: 0.000000, bitrate: 23456 kb/s
  Chapters:
    Chapter #0:0: start 0.000000, end 573.990083
      Metadata:
        title           : Chapter 01
    Chapter #0:1: start 573.990083, end 1128.710917
      Metadata:
        title           : Chapter 02
    Chapter #0:2: start 1128.710917, end 1691.981958
      Metadata:
        title           : Chapter 03
    Chapter #0:3: start 1691.981958, end 2270.268000
      Metadata:
        title           : Chapter 04
    Chapter #0:4: start 2270.268000, end 2706.161792
      Metadata:
        title           : Chapter 05
    Chapter #0:5: start 2706.161792, end 3229.976750
      Metadata:
        title           : Chapter 06
    Chapter #0:6: start 3229.976750, end 4013.384375
      Metadata:
        title           : Chapter 07
    Chapter #0:7: start 4013.384375, end 4604.224625
      Metadata:
        title           : Chapter 08
    Chapter #0:8: start 4604.224625, end 5581.409167
      Metadata:
        title           : Chapter 09
    Chapter #0:9: start 5581.409167, end 6050.502792
      Metadata:
        title           : Chapter 10
  Stream #0:0(eng): Video: vc1 (Advanced) (WVC1 / 0x31435657), yuv420p(bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default) (forced)
    Metadata:
      BPS-eng         : 20424569
      DURATION-eng    : 01:40:50.503000000
      NUMBER_OF_FRAMES-eng: 145067
      NUMBER_OF_BYTES-eng: 15447365059
      _STATISTICS_WRITING_APP-eng: mkvmerge v41.0.0 ('Smarra') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2022-01-29 13:15:18
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:1(pol): Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s (default) (forced)
    Metadata:
      BPS-eng         : 448000
      DURATION-eng    : 01:40:50.688000000
      NUMBER_OF_FRAMES-eng: 189084
      NUMBER_OF_BYTES-eng: 338838528
      _STATISTICS_WRITING_APP-eng: mkvmerge v41.0.0 ('Smarra') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2022-01-29 13:15:18
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:2(eng): Audio: truehd, 48000 Hz, 5.1(side), s32 (24 bit)
    Metadata:
      BPS-eng         : 1822177
      DURATION-eng    : 01:40:50.504000000
      NUMBER_OF_FRAMES-eng: 7260604
      NUMBER_OF_BYTES-eng: 1378136292
      _STATISTICS_WRITING_APP-eng: mkvmerge v41.0.0 ('Smarra') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2022-01-29 13:15:18
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:3(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s
    Metadata:
      BPS-eng         : 640000
      DURATION-eng    : 01:40:50.688000000
      NUMBER_OF_FRAMES-eng: 189084
      NUMBER_OF_BYTES-eng: 484055040
      _STATISTICS_WRITING_APP-eng: mkvmerge v41.0.0 ('Smarra') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2022-01-29 13:15:18
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:4(pol): Subtitle: subrip
    Metadata:
      BPS-eng         : 34
      DURATION-eng    : 01:32:55.033000000
      NUMBER_OF_FRAMES-eng: 594
      NUMBER_OF_BYTES-eng: 23745
      _STATISTICS_WRITING_APP-eng: mkvmerge v41.0.0 ('Smarra') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2022-01-29 13:15:18
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:5(pol): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 19248
      DURATION-eng    : 01:33:01.180000000
      NUMBER_OF_FRAMES-eng: 1094
      NUMBER_OF_BYTES-eng: 13428762
      _STATISTICS_WRITING_APP-eng: mkvmerge v41.0.0 ('Smarra') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2022-01-29 13:15:18
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:6(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 21795
      DURATION-eng    : 01:30:15.723000000
      NUMBER_OF_FRAMES-eng: 1400
      NUMBER_OF_BYTES-eng: 14754884
      _STATISTICS_WRITING_APP-eng: mkvmerge v41.0.0 ('Smarra') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2022-01-29 13:15:18
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:7(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 17475
      DURATION-eng    : 01:30:16.516000000
      NUMBER_OF_FRAMES-eng: 1342
      NUMBER_OF_BYTES-eng: 11832148
      _STATISTICS_WRITING_APP-eng: mkvmerge v41.0.0 ('Smarra') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2022-01-29 13:15:18
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream mapping:
  Stream #0:0 -> #0:0 (vc1 (native) -> h264 (libx264))
  Stream #0:1 -> #0:1 (ac3 (native) -> aac (native))
Press [q] to stop, [?] for help
[libx264 @ 0x557b964896c0] using SAR=1/1
[libx264 @ 0x557b964896c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 0x557b964896c0] profile Main, level 4.1, 4:2:0, 8-bit
[libx264 @ 0x557b964896c0] 264 - core 160 r3011 cde9a93 - H.264/MPEG-4 AVC codec - Copyleft 2003-2020 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x1:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=4 chroma_me=0 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=4 lookahead_threads=1 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=250 keyint_min=23 scenecut=40 intra_refresh=0 rc_lookahead=10 rc=crf mbtree=0 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=22706 vbv_bufsize=45413 crf_max=0.0 nal_hrd=none filler=0 ip_ratio=1.40 pb_ratio=1.30 aq=1:1.00
Output #0, matroska, to '/config/transcodes/a198264545b8b60fbf88b209217c7d49.mkv':
  Metadata:
    encoder         : Lavf58.76.100
  Stream #0:0: Video: h264 (H264 / 0x34363248), yuv420p(bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 23.98 fps, 1k tbn (default) (forced)
    Metadata:
      encoder         : Lavc58.134.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 22706000/0/0 buffer size: 45413000 vbv_delay: N/A
  Stream #0:1: Audio: aac (LC) ([255][0][0][0] / 0x00FF), 48000 Hz, 5.1, fltp, 448 kb/s (default) (forced)
    Metadata:
      encoder         : Lavc58.134.100 aac
frame=    1 fps=0.0 q=0.0 size=       1kB time=00:00:00.00 bitrate=N/A speed=   0x    
frame=   24 fps=0.0 q=25.0 size=       1kB time=00:00:00.74 bitrate=   8.6kbits/s speed=0.995x    
frame=   42 fps= 33 q=25.0 size=       1kB time=00:00:01.51 bitrate=   4.2kbits/s speed= 1.2x    
frame=   64 fps= 36 q=22.0 size=    1280kB time=00:00:02.55 bitrate=4104.0kbits/s speed=1.45x    
frame=   85 fps= 38 q=23.0 size=    1280kB time=00:00:03.49 bitrate=3001.1kbits/s speed=1.54x    
frame=  111 fps= 40 q=23.0 size=    2304kB time=00:00:04.60 bitrate=4100.4kbits/s speed=1.66x    
frame=  136 fps= 42 q=20.0 size=    2560kB time=00:00:05.47 bitrate=3828.3kbits/s speed=1.67x    
frame=  154 fps= 40 q=26.0 size=    3072kB time=00:00:06.31 bitrate=3988.2kbits/s speed=1.65x    
frame=  172 fps= 39 q=26.0 size=    3072kB time=00:00:07.03 bitrate=3577.2kbits/s speed= 1.6x    
frame=  195 fps= 40 q=22.0 size=    4864kB time=00:00:07.91 bitrate=5037.4kbits/s speed=1.61x    
frame=  217 fps= 40 q=23.0 size=    4864kB time=00:00:08.82 bitrate=4514.1kbits/s speed=1.63x    
frame=  239 fps= 40 q=25.0 size=    4864kB time=00:00:09.78 bitrate=4071.3kbits/s speed=1.65x    
frame=  263 fps= 41 q=26.0 size=    6656kB time=00:00:10.74 bitrate=5073.6kbits/s speed=1.66x    
frame=  281 fps= 40 q=25.0 size=    6656kB time=00:00:11.57 bitrate=4709.0kbits/s speed=1.65x    
frame=  297 fps= 39 q=22.0 size=    6656kB time=00:00:12.15 bitrate=4485.9kbits/s speed=1.61x    
frame=  316 fps= 39 q=25.0 size=    8448kB time=00:00:13.05 bitrate=5302.7kbits/s speed=1.62x    
frame=  338 fps= 40 q=22.0 size=    8448kB time=00:00:14.01 bitrate=4939.4kbits/s speed=1.64x    
frame=  366 fps= 40 q=22.0 size=   10496kB time=00:00:15.01 bitrate=5726.9kbits/s speed=1.66x    
frame=  389 fps= 41 q=21.0 size=   10752kB time=00:00:16.03 bitrate=5492.0kbits/s speed=1.68x    
frame=  414 fps= 41 q=22.0 size=   10752kB time=00:00:17.01 bitrate=5175.4kbits/s speed=1.69x    
frame=  435 fps= 41 q=24.0 size=   10752kB time=00:00:18.02 bitrate=4887.4kbits/s speed= 1.7x    
frame=  450 fps= 40 q=24.0 size=   10752kB time=00:00:18.55 bitrate=4747.0kbits/s speed=1.67x    
frame=  474 fps= 41 q=21.0 size=   10752kB time=00:00:19.55 bitrate=4503.5kbits/s speed=1.68x    
frame=  497 fps= 41 q=22.0 size=   13824kB time=00:00:20.64 bitrate=5485.1kbits/s speed= 1.7x    
frame=  512 fps= 40 q=25.0 size=   14080kB time=00:00:21.15 bitrate=5451.5kbits/s speed=1.67x    
frame=  531 fps= 40 q=23.0 size=   14080kB time=00:00:21.92 bitrate=5260.6kbits/s speed=1.66x    
frame=  549 fps= 40 q=24.0 size=   14080kB time=00:00:22.82 bitrate=5054.0kbits/s speed=1.67x    
frame=  559 fps= 39 q=24.0 size=   14080kB time=00:00:23.20 bitrate=4970.4kbits/s speed=1.63x    
frame=  571 fps= 39 q=22.0 size=   16896kB time=00:00:23.71 bitrate=5835.7kbits/s speed=1.61x    
frame=  586 fps= 38 q=24.0 size=   16896kB time=00:00:24.18 bitrate=5722.6kbits/s speed=1.58x    
frame=  598 fps= 38 q=23.0 size=   16896kB time=00:00:24.74 bitrate=5594.2kbits/s speed=1.57x    
frame=  614 fps= 38 q=21.0 size=   16896kB time=00:00:25.40 bitrate=5448.6kbits/s speed=1.56x    
frame=  631 fps= 38 q=21.0 size=   18176kB time=00:00:26.10 bitrate=5703.4kbits/s speed=1.55x    
frame=  648 fps= 37 q=22.0 size=   18944kB time=00:00:26.81 bitrate=5788.3kbits/s speed=1.55x    
frame=  667 fps= 37 q=22.0 size=   18944kB time=00:00:27.57 bitrate=5627.1kbits/s speed=1.55x    
frame=  686 fps= 37 q=21.0 size=   18944kB time=00:00:28.34 bitrate=5474.6kbits/s speed=1.55x    
frame=  698 fps= 37 q=-1.0 Lsize=   21584kB time=00:00:28.94 bitrate=6109.0kbits/s speed=1.53x    
video:19974kB audio:1594kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.073997%
[libx264 @ 0x557b964896c0] frame I:17    Avg QP:11.70  size: 68473
[libx264 @ 0x557b964896c0] frame P:289   Avg QP:14.47  size: 39640
[libx264 @ 0x557b964896c0] frame B:392   Avg QP:17.76  size: 19982
[libx264 @ 0x557b964896c0] consecutive B-frames: 18.8% 15.2% 11.6% 54.4%
[libx264 @ 0x557b964896c0] mb I  I16..4: 52.3%  0.0% 47.7%
[libx264 @ 0x557b964896c0] mb P  I16..4: 40.0%  0.0%  0.0%  P16..4: 29.3%  0.0%  0.0%  0.0%  0.0%    skip:30.7%
[libx264 @ 0x557b964896c0] mb B  I16..4: 10.9%  0.0%  0.0%  B16..8: 29.7%  0.0%  0.0%  direct:11.1%  skip:48.3%  L0:43.7% L1:44.6% BI:11.7%
[libx264 @ 0x557b964896c0] coded y,uvDC,uvAC intra: 30.1% 65.1% 37.2% inter: 12.4% 26.8% 2.4%
[libx264 @ 0x557b964896c0] i16 v,h,dc,p: 40% 28% 15% 17%
[libx264 @ 0x557b964896c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 31% 26% 13%  7%  6%  4%  5%  3%  5%
[libx264 @ 0x557b964896c0] i8c dc,h,v,p: 39% 28% 21% 13%
[libx264 @ 0x557b964896c0] Weighted P-Frames: Y:2.1% UV:0.3%
[libx264 @ 0x557b964896c0] kb/s:5620.34
[aac @ 0x557b963e3a40] Qavg: 192.056

Media info of the file

ffprobe version 4.3.3-0+deb11u1 Copyright (c) 2007-2021 the FFmpeg developers
  built with gcc 10 (Debian 10.2.1-6)
  configuration: --prefix=/usr --extra-version=0+deb11u1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
  libavutil      56. 51.100 / 56. 51.100
  libavcodec     58. 91.100 / 58. 91.100
  libavformat    58. 45.100 / 58. 45.100
  libavdevice    58. 10.100 / 58. 10.100
  libavfilter     7. 85.100 /  7. 85.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
  libpostproc    55.  7.100 / 55.  7.100
[matroska,webm @ 0x55d9252d2600] Could not find codec parameters for stream 5 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55d9252d2600] Could not find codec parameters for stream 6 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55d9252d2600] Could not find codec parameters for stream 7 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, matroska,webm, from 'movie.mkv':
  Metadata:
    title           : movie
    encoder         : libebml v1.3.9 + libmatroska v1.5.2
    creation_time   : 2022-01-29T13:15:18.000000Z
  Duration: 01:40:50.69, start: 0.000000, bitrate: 23456 kb/s
    Chapter #0:0: start 0.000000, end 573.990083
    Metadata:
      title           : Chapter 01
    Chapter #0:1: start 573.990083, end 1128.710917
    Metadata:
      title           : Chapter 02
    Chapter #0:2: start 1128.710917, end 1691.981958
    Metadata:
      title           : Chapter 03
    Chapter #0:3: start 1691.981958, end 2270.268000
    Metadata:
      title           : Chapter 04
    Chapter #0:4: start 2270.268000, end 2706.161792
    Metadata:
      title           : Chapter 05
    Chapter #0:5: start 2706.161792, end 3229.976750
    Metadata:
      title           : Chapter 06
    Chapter #0:6: start 3229.976750, end 4013.384375
    Metadata:
      title           : Chapter 07
    Chapter #0:7: start 4013.384375, end 4604.224625
    Metadata:
      title           : Chapter 08
    Chapter #0:8: start 4604.224625, end 5581.409167
    Metadata:
      title           : Chapter 09
    Chapter #0:9: start 5581.409167, end 6050.502792
    Metadata:
      title           : Chapter 10
    Stream #0:0(eng): Video: vc1 (Advanced) (WVC1 / 0x31435657), yuv420p(bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default) (forced)
    Metadata:
      BPS-eng         : 20424569
      DURATION-eng    : 01:40:50.503000000
      NUMBER_OF_FRAMES-eng: 145067
      NUMBER_OF_BYTES-eng: 15447365059
      _STATISTICS_WRITING_APP-eng: mkvmerge v41.0.0 ('Smarra') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2022-01-29 13:15:18
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:1(pol): Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s (default) (forced)
    Metadata:
      BPS-eng         : 448000
      DURATION-eng    : 01:40:50.688000000
      NUMBER_OF_FRAMES-eng: 189084
      NUMBER_OF_BYTES-eng: 338838528
      _STATISTICS_WRITING_APP-eng: mkvmerge v41.0.0 ('Smarra') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2022-01-29 13:15:18
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:2(eng): Audio: truehd, 48000 Hz, 5.1(side), s32 (24 bit)
    Metadata:
      BPS-eng         : 1822177
      DURATION-eng    : 01:40:50.504000000
      NUMBER_OF_FRAMES-eng: 7260604
      NUMBER_OF_BYTES-eng: 1378136292
      _STATISTICS_WRITING_APP-eng: mkvmerge v41.0.0 ('Smarra') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2022-01-29 13:15:18
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:3(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s
    Metadata:
      BPS-eng         : 640000
      DURATION-eng    : 01:40:50.688000000
      NUMBER_OF_FRAMES-eng: 189084
      NUMBER_OF_BYTES-eng: 484055040
      _STATISTICS_WRITING_APP-eng: mkvmerge v41.0.0 ('Smarra') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2022-01-29 13:15:18
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:4(pol): Subtitle: subrip
    Metadata:
      BPS-eng         : 34
      DURATION-eng    : 01:32:55.033000000
      NUMBER_OF_FRAMES-eng: 594
      NUMBER_OF_BYTES-eng: 23745
      _STATISTICS_WRITING_APP-eng: mkvmerge v41.0.0 ('Smarra') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2022-01-29 13:15:18
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:5(pol): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 19248
      DURATION-eng    : 01:33:01.180000000
      NUMBER_OF_FRAMES-eng: 1094
      NUMBER_OF_BYTES-eng: 13428762
      _STATISTICS_WRITING_APP-eng: mkvmerge v41.0.0 ('Smarra') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2022-01-29 13:15:18
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:6(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 21795
      DURATION-eng    : 01:30:15.723000000
      NUMBER_OF_FRAMES-eng: 1400
      NUMBER_OF_BYTES-eng: 14754884
      _STATISTICS_WRITING_APP-eng: mkvmerge v41.0.0 ('Smarra') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2022-01-29 13:15:18
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:7(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 17475
      DURATION-eng    : 01:30:16.516000000
      NUMBER_OF_FRAMES-eng: 1342
      NUMBER_OF_BYTES-eng: 11832148
      _STATISTICS_WRITING_APP-eng: mkvmerge v41.0.0 ('Smarra') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2022-01-29 13:15:18
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES

Application version

0.13.0

Device information

Amazon FireTV 4k Max 2021

Android version

Fire OS 7.2.5.5

Jellyfin server version

10.8.0 preview from https://hub.docker.com/r/nyanmisaka/jellyfin but official 10.7.0 is affected as well (no difference)

mueslimak3r commented 2 years ago

Can you upload the full client log (as a file so we can download it)? Make sure you remove any sensitive info from it first

QBANIN commented 2 years ago

Can you upload the full client log (as a file so we can download it)? Make sure you remove any sensitive info from it first

What do you mean by "full"? Since boot? The one in bug report was captured when the playback started with command adb logcat |grep jellyfin

mueslimak3r commented 2 years ago

not all useful lines will match against "jellyfin". instead what I'd do is force stop the app, run adb logcat > unfiltered_log.txt before starting and keep the log going while you reproduce the issues, and then stop it. Note the PID of the app (I think it's the second or third column, which in that log is 6381). Then do cat log.txt | grep 6381 > filtered_log.txt (replacing 6381 with the current PID)

QBANIN commented 2 years ago

not all useful lines will match against "jellyfin". instead what I'd do is force stop the app, run adb logcat > unfiltered_log.txt before starting and keep the log going while you reproduce the issues, and then stop it. Note the PID of the app (I think it's the second or third column, which in that log is 6381). Then do cat log.txt | grep 6381 > filtered_log.txt (replacing 6381 with the current PID)

Ok. Can you delete this issue? I'll make a new one with filename removed.

mueslimak3r commented 2 years ago

I closed it as requested. fyi:you can close issues you've opened.

We usually don't delete issues, just close them

QBANIN commented 2 years ago

@mueslimak3r Well this is not what I meant :) I just wanted to remove filename from the logs but it stays in edit history anyway. AFAIK the only way is to delete the issue (or not?)

mueslimak3r commented 2 years ago

You can edit something and then delete the edit history.

https://docs.github.com/en/communities/moderating-comments-and-conversations/tracking-changes-in-a-comment#deleting-sensitive-information-from-a-comments-history

QBANIN commented 2 years ago

0.12.3.txt 0.13.0.txt

mueslimak3r commented 2 years ago

I took a look at the logs. It looks like the ffmpeg log you included in this issue is from 0.12.3? Can you find one from testing against 0.13? You can tell which is which because your device supports HLS so for 0.13 with exoplayer it would be writing to .ts (on server 10.8). The ffmpeg log shows writing to .mkv

Before putting time into that though, I suggest trying disabling "Allow encoding in HEVC format" in the Playback settings on your server.

Starting with 0.13 HEVC playback is supported by the app, and that means the server will encode in it if your server has that enabled.

Depending on your setup, it may just not be able to handle transcoding to HEVC. Lets see if the cause of the buffering issue is as simple as your server just transcoding VC1 -> HEVC too slow.

QBANIN commented 2 years ago

You're right. Tested again with HEVC encoding disabled and now the movie plays fine using 0.13.x player version. ffmpeg 0.13.0.txt

mueslimak3r commented 2 years ago

glad to hear it's working. Feel free to close this issue if everything's good now.

QBANIN commented 2 years ago

@mueslimak3r let me perform few more tests