mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-04 18:09:12 +03:00
Playback jumps back if pause was pressed (AndroidTV) #2569
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @morbificagent on GitHub (Jan 30, 2021).
Hi together,
I am using the actual git version from today in combination with the Android TV app.
And there is a problem when i ever pressed pause while im looking a film.
If i am constantly playing it everything works fine. But if i am pressing pause, go to toilet ;-) and pressing resume it plays something like 10 minutes and than it jumps back to the time when i pressed pause.
Eventually there is a problem with the transcoding-files but im not firm in this detailed stuff inside of jellyfin.
Here is a log of this.
Would be great if someone could help...
[2021-01-30 10:51:00.488 +01:00] [INF] Profile: "Android-VLC", Path: "/mnt/gdrive/videos9/erwachsen/filme/Deadpool (2016).mp4", isEligibleForDirectPlay: True, isEligibleForDirectStream: False
[2021-01-30 10:51:00.488 +01:00] [INF] Profile: "VideoCodecProfile", DirectPlay=false. Reason="Android-VLC".RefFrames Condition: GreaterThanEqual. ConditionValue: "2". IsRequired: False. Path: "/mnt/gdrive/videos9/erwachsen/filme/Deadpool (2016).mp4"
[2021-01-30 10:51:00.488 +01:00] [INF] RemoteClientBitrateLimit: 8000000, RemoteIp: "46.114.156.130", IsInLocalNetwork: False
[2021-01-30 10:51:00.488 +01:00] [INF] Bitrate exceeds DirectStream limit: media bitrate: 8792521, max bitrate: 7966805
[2021-01-30 10:51:00.488 +01:00] [INF] Profile: "Android-VLC", Path: "/mnt/gdrive/videos9/erwachsen/filme/Deadpool (2016).mp4", isEligibleForDirectPlay: True, isEligibleForDirectStream: False
[2021-01-30 10:51:00.488 +01:00] [INF] Profile: "VideoCodecProfile", DirectPlay=false. Reason="Android-VLC".RefFrames Condition: GreaterThanEqual. ConditionValue: "2". IsRequired: False. Path: "/mnt/gdrive/videos9/erwachsen/filme/Deadpool (2016).mp4"
[2021-01-30 10:51:00.488 +01:00] [INF] RemoteClientBitrateLimit: 8000000, RemoteIp: "46.114.156.130", IsInLocalNetwork: False
[2021-01-30 10:51:00.488 +01:00] [INF] Bitrate exceeds DirectStream limit: media bitrate: 8792521, max bitrate: 7966805
[2021-01-30 10:51:00.488 +01:00] [INF] Profile: "Android-VLC", Path: "/mnt/gdrive/videos9/erwachsen/filme/Deadpool (2016).mp4", isEligibleForDirectPlay: True, isEligibleForDirectStream: False
[2021-01-30 10:51:00.488 +01:00] [INF] Profile: "VideoCodecProfile", DirectPlay=false. Reason="Android-VLC".RefFrames Condition: GreaterThanEqual. ConditionValue: "2". IsRequired: False. Path: "/mnt/gdrive/videos9/erwachsen/filme/Deadpool (2016).mp4"
[2021-01-30 10:51:00.585 +01:00] [INF] GetPostedPlaybackInfo profile: DeviceProfile { Name: "Android-Exo", Id: null, Identification: null, FriendlyName: null, Manufacturer: null, ManufacturerUrl: null, ModelName: null, ModelDescription: null, ModelNumber: null, ModelUrl: null, SerialNumber: null, EnableAlbumArtInDidl: False, EnableSingleAlbumArtLimit: False, EnableSingleSubtitleLimit: False, SupportedMediaTypes: "Audio,Photo,Video", UserId: null, AlbumArtPn: null, MaxAlbumArtWidth: 0, MaxAlbumArtHeight: 0, MaxIconWidth: null, MaxIconHeight: null, MaxStreamingBitrate: 20000000, MaxStaticBitrate: 100000000, MusicStreamingTranscodingBitrate: 128000, MaxStaticMusicBitrate: null, SonyAggregationFlags: null, ProtocolInfo: null, TimelineOffsetSeconds: 0, RequiresPlainVideoItems: False, RequiresPlainFolders: False, EnableMSMediaReceiverRegistrar: False, IgnoreTranscodeByteRangeRequests: False, XmlRootAttributes: [], DirectPlayProfiles: [DirectPlayProfile { Container: "m4v,mov,xvid,vob,mkv,wmv,asf,ogm,ogv,mp4,webm", AudioCodec: "aac,ac3,eac3,aac_latm,mp3,mp2,dca,dts", VideoCodec: "h264,vp8,vp9,mpeg,mpeg2video", Type: Video }, DirectPlayProfile { Container: "aac,mp3,mpa,wav,wma,mp2,ogg,oga,webma,ape,opus", AudioCodec: null, VideoCodec: null, Type: Audio }, DirectPlayProfile { Container: "jpg,jpeg,png,gif", AudioCodec: null, VideoCodec: null, Type: Photo }], TranscodingProfiles: [TranscodingProfile { Container: "mkv", Type: Video, VideoCodec: "h264", AudioCodec: "ac3,aac,mp3", Protocol: null, EstimateContentLength: False, EnableMpegtsM2TsMode: False, TranscodeSeekInfo: Auto, CopyTimestamps: True, Context: Streaming, EnableSubtitlesInManifest: False, MaxAudioChannels: null, MinSegments: 0, SegmentLength: 0, BreakOnNonKeyFrames: False }, TranscodingProfile { Container: "mp3", Type: Audio, VideoCodec: null, AudioCodec: "mp3", Protocol: null, EstimateContentLength: False, EnableMpegtsM2TsMode: False, TranscodeSeekInfo: Auto, CopyTimestamps: False, Context: Streaming, EnableSubtitlesInManifest: False, MaxAudioChannels: null, MinSegments: 0, SegmentLength: 0, BreakOnNonKeyFrames: False }], ContainerProfiles: [], CodecProfiles: [CodecProfile { Type: Video, Conditions: [ProfileCondition { Condition: EqualsAny, Property: VideoProfile, Value: "high|main|baseline|constrained baseline", IsRequired: False }, ProfileCondition { Condition: LessThanEqual, Property: VideoLevel, Value: "51", IsRequired: False }], ApplyConditions: [], Codec: "h264", Container: null }, CodecProfile { Type: Video, Conditions: [ProfileCondition { Condition: LessThanEqual, Property: RefFrames, Value: "12", IsRequired: False }], ApplyConditions: [ProfileCondition { Condition: GreaterThanEqual, Property: Width, Value: "1200", IsRequired: False }], Codec: "h264", Container: null }, CodecProfile { Type: Video, Conditions: [ProfileCondition { Condition: LessThanEqual, Property: RefFrames, Value: "4", IsRequired: False }], ApplyConditions: [ProfileCondition { Condition: GreaterThanEqual, Property: Width, Value: "1900", IsRequired: False }], Codec: "h264", Container: null }, CodecProfile { Type: Video, Conditions: [ProfileCondition { Condition: NotEquals, Property: VideoProfile, Value: "none", IsRequired: False }], ApplyConditions: [], Codec: "hevc", Container: null }, CodecProfile { Type: VideoAudio, Conditions: [ProfileCondition { Condition: LessThanEqual, Property: AudioChannels, Value: "6", IsRequired: False }], ApplyConditions: [], Codec: null, Container: null }], ResponseProfiles: [], SubtitleProfiles: [SubtitleProfile { Format: "srt", Method: External, DidlMode: null, Language: null, Container: null }, SubtitleProfile { Format: "srt", Method: Embed, DidlMode: null, Language: null, Container: null }, SubtitleProfile { Format: "subrip", Method: Embed, DidlMode: null, Language: null, Container: null }, SubtitleProfile { Format: "ass", Method: Encode, DidlMode: null, Language: null, Container: null }, SubtitleProfile { Format: "ssa", Method: Encode, DidlMode: null, Language: null, Container: null }, SubtitleProfile { Format: "pgs", Method: Encode, DidlMode: null, Language: null, Container: null }, SubtitleProfile { Format: "pgssub", Method: Encode, DidlMode: null, Language: null, Container: null }, SubtitleProfile { Format: "dvdsub", Method: Embed, DidlMode: null, Language: null, Container: null }, SubtitleProfile { Format: "vtt", Method: Embed, DidlMode: null, Language: null, Container: null }, SubtitleProfile { Format: "sub", Method: Embed, DidlMode: null, Language: null, Container: null }, SubtitleProfile { Format: "idx", Method: Embed, DidlMode: null, Language: null, Container: null }] }
[2021-01-30 10:51:00.586 +01:00] [INF] User policy for "AnnieundAlex". EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
[2021-01-30 10:51:00.586 +01:00] [INF] Bitrate exceeds DirectStream limit: media bitrate: 8792521, max bitrate: 7966805
[2021-01-30 10:51:00.586 +01:00] [INF] Profile: "Android-Exo", Path: "/mnt/gdrive/videos9/erwachsen/filme/Deadpool (2016).mp4", isEligibleForDirectPlay: True, isEligibleForDirectStream: False
[2021-01-30 10:51:00.586 +01:00] [INF] RemoteClientBitrateLimit: 8000000, RemoteIp: "46.114.156.130", IsInLocalNetwork: False
[2021-01-30 10:51:00.586 +01:00] [INF] Bitrate exceeds DirectStream limit: media bitrate: 8792521, max bitrate: 7966805
[2021-01-30 10:51:00.586 +01:00] [INF] Profile: "Android-Exo", Path: "/mnt/gdrive/videos9/erwachsen/filme/Deadpool (2016).mp4", isEligibleForDirectPlay: True, isEligibleForDirectStream: False
[2021-01-30 10:51:00.586 +01:00] [INF] RemoteClientBitrateLimit: 8000000, RemoteIp: "46.114.156.130", IsInLocalNetwork: False
[2021-01-30 10:51:00.586 +01:00] [INF] Bitrate exceeds DirectStream limit: media bitrate: 8792521, max bitrate: 7966805
[2021-01-30 10:51:00.586 +01:00] [INF] Profile: "Android-Exo", Path: "/mnt/gdrive/videos9/erwachsen/filme/Deadpool (2016).mp4", isEligibleForDirectPlay: True, isEligibleForDirectStream: False
[2021-01-30 10:51:00.699 +01:00] [INF] /usr/lib/jellyfin-ffmpeg/ffmpeg -hwaccel vaapi -hwaccel_output_format vaapi -vaapi_device /dev/dri/renderD128 -i file:"/mnt/gdrive/videos9/erwachsen/filme/Deadpool (2016).mp4" -map 0:0 -map 0:1 -map -0:s -codec:v:0 h264_vaapi -mpegts_m2ts_mode 1 -force_key_frames "expr:gte(t,n_forced5)" -vf "scale_vaapi=format=nv12" -copyts -avoid_negative_ts disabled -start_at_zero -b:v 7246656 -maxrate 7246656 -bufsize 14493312 -profile:v:0 high -level 41 -vsync -1 -map_metadata -1 -map_chapters -1 -threads 0 -codec:a:0 ac3 -ac 6 -ab 640000 -y "/var/lib/jellyfin/transcodes/57e2259fd65373bdf8374d6fb5e226c2.mkv"
[2021-01-30 10:51:03.112 +01:00] [WRN] Slow HTTP Response from "https://jellyfin.xxx.de/videos/a804abea-403e-5890-16a8-73e667dc96bb/stream.mkv?DeviceId=04d8955a55ed03c0&MediaSourceId=a804abea403e589016a873e667dc96bb&Static=false&VideoCodec=h264&AudioCodec=ac3,aac,mp3&AudioStreamIndex=1&VideoBitrate=7246656&AudioBitrate=720149&PlaySessionId=bf87209ee16040049882d760b852de61&api_key=f86602adca104f42aef81cf6fd2fa1f1&CopyTimestamps=true&RequireAvc=false&Tag=b302ae35b7147fba63462f1efe022c09&h264-profile=high,main,baseline,constrainedbaseline&h264-level=51&h264-maxrefframes=4&ac3-audiochannels=6&aac-audiochannels=6&mp3-audiochannels=6&TranscodeReasons=ContainerBitrateExceedsLimit&allowVideoStreamCopy=false&allowAudioStreamCopy=false&allowAudioStreamCopy=false" to "46.114.156.130" in 0:00:02.4143334 with Status Code 200
[2021-01-30 10:51:25.419 +01:00] [INF] Sending ForceKeepAlive message to 1 inactive WebSockets.
[2021-01-30 10:51:37.420 +01:00] [INF] Lost 1 WebSockets.
[2021-01-30 10:53:37.426 +01:00] [WRN] WS "46.114.156.130" error receiving data: "The remote party closed the WebSocket connection without completing the close handshake."
[2021-01-30 10:53:37.691 +01:00] [INF] WS "46.114.156.130" closed
[2021-01-30 10:53:55.585 +01:00] [INF] Transcoding kill timer stopped for JobId "a665f10c5eab47beae1a063e23b6e8af" PlaySessionId "bf87209ee16040049882d760b852de61". Killing transcoding
[2021-01-30 10:53:55.585 +01:00] [INF] Stopping ffmpeg process with q command for "/var/lib/jellyfin/transcodes/57e2259fd65373bdf8374d6fb5e226c2.mkv"
[2021-01-30 10:53:55.680 +01:00] [INF] FFmpeg exited with code 0
[2021-01-30 10:53:55.680 +01:00] [INF] Deleting partial stream file(s) "/var/lib/jellyfin/transcodes/57e2259fd65373bdf8374d6fb5e226c2.mkv"
[2021-01-30 11:02:46.595 +01:00] [INF] /usr/lib/jellyfin-ffmpeg/ffmpeg -hwaccel vaapi -hwaccel_output_format vaapi -vaapi_device /dev/dri/renderD128 -i file:"/mnt/gdrive/videos9/erwachsen/filme/Deadpool (2016).mp4" -map 0:0 -map 0:1 -map -0:s -codec:v:0 h264_vaapi -mpegts_m2ts_mode 1 -force_key_frames "expr:gte(t,n_forced5)" -vf "scale_vaapi=format=nv12" -copyts -avoid_negative_ts disabled -start_at_zero -b:v 7246656 -maxrate 7246656 -bufsize 14493312 -profile:v:0 high -level 41 -vsync -1 -map_metadata -1 -map_chapters -1 -threads 0 -codec:a:0 ac3 -ac 6 -ab 640000 -y "/var/lib/jellyfin/transcodes/57e2259fd65373bdf8374d6fb5e226c2.mkv"
[2021-01-30 11:02:47.804 +01:00] [WRN] Slow HTTP Response from "https://jellyfin.xxx.de/videos/a804abea-403e-5890-16a8-73e667dc96bb/stream.mkv?DeviceId=04d8955a55ed03c0&MediaSourceId=a804abea403e589016a873e667dc96bb&Static=false&VideoCodec=h264&AudioCodec=ac3,aac,mp3&AudioStreamIndex=1&VideoBitrate=7246656&AudioBitrate=720149&PlaySessionId=bf87209ee16040049882d760b852de61&api_key=f86602adca104f42aef81cf6fd2fa1f1&CopyTimestamps=true&RequireAvc=false&Tag=b302ae35b7147fba63462f1efe022c09&h264-profile=high,main,baseline,constrainedbaseline&h264-level=51&h264-maxrefframes=4&ac3-audiochannels=6&aac-audiochannels=6&mp3-audiochannels=6&TranscodeReasons=ContainerBitrateExceedsLimit&allowVideoStreamCopy=false&allowAudioStreamCopy=false&allowAudioStreamCopy=false" to "46.114.156.130" in 0:00:01.2091985 with Status Code 200
[2021-01-30 11:09:25.136 +01:00] [INF] Stopping ffmpeg process with q command for "/var/lib/jellyfin/transcodes/57e2259fd65373bdf8374d6fb5e226c2.mkv"
[2021-01-30 11:09:29.077 +01:00] [INF] FFmpeg exited with code 0
[2021-01-30 11:09:29.077 +01:00] [INF] Deleting partial stream file(s) "/var/lib/jellyfin/transcodes/57e2259fd65373bdf8374d6fb5e226c2.mkv"
[2021-01-30 11:09:30.764 +01:00] [INF] Playback stopped reported by app "AndroidTV" "0.11.5" playing "Deadpool". Stopped at "86047" ms
[2021-01-30 11:09:30.824 +01:00] [WRN] Slow HTTP Response from "https://jellyfin.xxx.de/Sessions/Playing/Stopped" to "46.114.156.130" in 0:00:05.7119816 with Status Code 204
[2021-01-30 11:46:27.889 +01:00] [INF] WS "109.40.242.187" request
[2021-01-30 11:47:48.043 +01:00] [WRN] WS "109.40.242.187" error receiving data: "The remote party closed the WebSocket connection without completing the close handshake."
[2021-01-30 11:47:48.077 +01:00] [INF] WS "109.40.242.187" closed
[2021-01-30 11:54:24.204 +01:00] [INF] WS "109.40.242.187" request
[2021-01-30 11:54:28.412 +01:00] [INF] Logging out access token "3fbc6e7e8e664a619291e8daf748ac6f"
[2021-01-30 11:54:28.435 +01:00] [INF] WS "109.40.242.187" closed
[2021-01-30 11:55:11.172 +01:00] [INF] Authentication request for "Alex" has succeeded.
[2021-01-30 11:55:11.172 +01:00] [INF] Current/Max sessions for user "Alex": 0/0
[2021-01-30 11:55:11.173 +01:00] [INF] Creating new access token for user 43e14e42-49f7-4496-8537-135f3a9d4595
[2021-01-30 11:55:11.405 +01:00] [INF] WS "109.40.242.187" request
@morbificagent commented on GitHub (Jan 30, 2021):
Eventually this is the interesting part:
[2021-01-30 10:51:25.419 +01:00] [INF] Sending ForceKeepAlive message to 1 inactive WebSockets.
[2021-01-30 10:51:37.420 +01:00] [INF] Lost 1 WebSockets.
[2021-01-30 10:53:37.426 +01:00] [WRN] WS "46.114.156.130" error receiving data: "The remote party closed the WebSocket connection without completing the close handshake."
[2021-01-30 10:53:37.691 +01:00] [INF] WS "46.114.156.130" closed
[2021-01-30 10:53:55.585 +01:00] [INF] Transcoding kill timer stopped for JobId "a665f10c5eab47beae1a063e23b6e8af" PlaySessionId "bf87209ee16040049882d760b852de61". Killing transcoding
[2021-01-30 10:53:55.585 +01:00] [INF] Stopping ffmpeg process with q command for "/var/lib/jellyfin/transcodes/57e2259fd65373bdf8374d6fb5e226c2.mkv"
[2021-01-30 10:53:55.680 +01:00] [INF] FFmpeg exited with code 0
[2021-01-30 10:53:55.680 +01:00] [INF] Deleting partial stream file(s) "/var/lib/jellyfin/transcodes/57e2259fd65373bdf8374d6fb5e226c2.mkv"
@morbificagent commented on GitHub (Jan 30, 2021):
And the last info which could be relevant:
My nginx log from this moment.
Btw nginx is configured as reverse proxy as its written in the jellyfin doc.
46.114.156.130 - - [30/Jan/2021:10:52:40 +0100] "POST /Sessions/Playing/Progress HTTP/1.1" 204 0 "-" "Dalvik/2.1.0 (Linux; U; Android 11; SM-N986B Build/RP1A.200720.012)"
46.114.156.130 - - [30/Jan/2021:10:52:43 +0100] "POST /Sessions/Playing/Progress HTTP/1.1" 204 0 "-" "Dalvik/2.1.0 (Linux; U; Android 11; SM-N986B Build/RP1A.200720.012)"
46.114.156.130 - - [30/Jan/2021:10:52:46 +0100] "POST /Sessions/Playing/Progress HTTP/1.1" 204 0 "-" "Dalvik/2.1.0 (Linux; U; Android 11; SM-N986B Build/RP1A.200720.012)"
46.114.156.130 - - [30/Jan/2021:10:53:37 +0100] "GET /socket?api_key=f86602adca104f42aef81cf6fd2fa1f1&deviceId=04d8955a55ed03c0 HTTP/1.1" 101 714 "-" "-"
46.114.156.130 - - [30/Jan/2021:10:53:45 +0100] "GET /videos/a804abea-403e-5890-16a8-73e667dc96bb/stream.mkv?DeviceId=04d8955a55ed03c0&MediaSourceId=a804abea403e589016a873e667dc96bb&Static=false&VideoCodec=h264&AudioCodec=ac3,aac,mp3&AudioStreamIndex=1&VideoBitrate=7246656&AudioBitrate=720149&PlaySessionId=bf87209ee16040049882d760b852de61&api_key=f86602adca104f42aef81cf6fd2fa1f1&CopyTimestamps=true&RequireAvc=false&Tag=b302ae35b7147fba63462f1efe022c09&h264-profile=high,main,baseline,constrainedbaseline&h264-level=51&h264-maxrefframes=4&ac3-audiochannels=6&aac-audiochannels=6&mp3-audiochannels=6&TranscodeReasons=ContainerBitrateExceedsLimit&allowVideoStreamCopy=false&allowAudioStreamCopy=false&allowAudioStreamCopy=false HTTP/1.1" 200 156218765 "-" "ATV/ExoPlayer"
@crobibero commented on GitHub (Jan 30, 2021):
https://github.com/jellyfin/jellyfin-androidtv/issues/400